<!DOCTYPE html>
<html lang="en">
	<head>
		<?php $this->load->view('main/head'); $deptid=$this->session->userdata('deptid');?>
		<!-- bootstrap & fontawesome -->
		<link rel="stylesheet" href="dek/assets/css/bootstrap.css" />
		<link rel="stylesheet" href="dek/assets/css/font-awesome.css" />

		<!-- page specific plugin styles -->
		

		<!-- text fonts -->
		<link rel="stylesheet" href="dek/assets/css/ace-fonts.css" />

		<!-- ace styles -->
		<link rel="stylesheet" href="dek/assets/css/ace.css" class="ace-main-stylesheet" id="main-ace-style" />
		
		<!-- ace settings handler -->
		<script src="dek/assets/js/ace-extra.js"></script>
	</head>

	<body class="no-skin">
		<!-- #section:basics/navbar.layout -->
		<?php $this->load->view('main/menu_ndhuwur');?>

		<!-- /section:basics/navbar.layout -->
		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<!-- #section:basics/sidebar.horizontal -->
			<?php $this->load->view('main/top_menu');?>

			<!-- /section:basics/sidebar.horizontal -->
			<div class="main-content">
				<div class="main-content-inner">
					<div class="page-content">
						<!-- #section:settings.box -->
						
						<!-- /section:settings.box -->
						<div class="page-header">
							<h1>
								Beranda
								<small>
									<i class="ace-icon fa fa-angle-double-right"></i>
									top menu &amp; navigation
								</small>
							</h1>
						</div><!-- /.page-header -->

						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								Selamat Datang, Saudara/i <strong><font color="#006619"><?php echo $this->session->userdata('nama');?></font></strong> di Sistem Informasi <?php echo $instansi['nama'];?>
								<?php print_r($this->session->userdata('grup'));//echo base_url(); ?>
								<div class="row">
									<div class="space-6"></div>
									<?php if(isset($deptid) && $deptid=='J008'): ?>									
										<div class="col-sm-12 infobox-container">
										<?php foreach($qtyxdokter as $dtq){ ?>
											<div class="infobox infobox-green">											
												<div class="infobox-icon">
													<i class="ace-icon fa fa-user"></i>
												</div>
											
												<div class="infobox-data">
													<span class="infobox-data-number"><a href="pasien-by-dokter.html?dok=<?php echo base64_encode($dtq->ID);?>&jadwal=<?php echo base64_encode($dtq->JadwalID);?>"><?php echo $dtq->jml_x;?>  Pasien</a></span>	
													<div class="infobox-content"><?php echo $dtq->JamStart."-".$dtq->JamFinish;?></div>
												</div>
												<!--div class="stat stat-success">8%</div-->
											</div>
										<?php } ?>
										</div>
										
									<?php endif;?>
								</div>	
								
								<div class="row">
									<div class="space-4"></div>									
									<?php if(isset($deptid) && $deptid=='J008'): ?>
										<?php if(sizeof($pxvisitdokter) > 0){ ?>
										<h3 class="header smaller lighter pink text-center">Visit Hari Ini</h3>
										<div class="col-sm-12 infobox-container">
										<?php foreach($pxvisitdokter as $dtv){ ?>
											<div class="infobox infobox-pink">
												<div class="infobox-icon">
													<i class="ace-icon fa fa-user"></i>
												</div>
												<div class="infobox-data">
													<span class="infobox-data-number"><a href="pasien-visit-by-dokter.html?dok=<?php echo base64_encode($dtv->ID);?>"><?php echo $dtv->jml_px;?>  Pasien</a></span>	
													<div class="infobox-content"><?php //echo $dtq->JamStart."-".$dtq->JamFinish;?></div>
												</div>
												<!--div class="stat stat-success">8%</div-->
											</div>
										<?php } ?>
										</div>
										<?php } ?>
									<?php endif;?>
								</div>	
								

								<!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div>
			</div><!-- /.main-content -->

			<?php $this->load->view('main/footer');?>

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->
		
		<script type="text/javascript">
			window.jQuery || document.write("<script src='dek/assets/js/jquery.js'>"+"<"+"/script>");
		</script>
		
		<script type="text/javascript">
			if('ontouchstart' in document.documentElement) document.write("<script src='dek/assets/js/jquery.mobile.custom.js'>"+"<"+"/script>");
		</script>
		<script src="dek/assets/js/bootstrap.js"></script>

		<!-- page specific plugin scripts -->
		

		<!-- ace scripts -->
		<script src="dek/assets/js/ace/elements.scroller.js"></script>
		<script src="dek/assets/js/ace/elements.colorpicker.js"></script>
		<script src="dek/assets/js/ace/elements.fileinput.js"></script>
		<script src="dek/assets/js/ace/elements.typeahead.js"></script>
		<script src="dek/assets/js/ace/elements.wysiwyg.js"></script>
		<script src="dek/assets/js/ace/elements.spinner.js"></script>
		<script src="dek/assets/js/ace/elements.treeview.js"></script>
		<script src="dek/assets/js/ace/elements.wizard.js"></script>
		<script src="dek/assets/js/ace/elements.aside.js"></script>
		<script src="dek/assets/js/ace/ace.js"></script>
		<script src="dek/assets/js/ace/ace.ajax-content.js"></script>
		<script src="dek/assets/js/ace/ace.touch-drag.js"></script>
		<script src="dek/assets/js/ace/ace.sidebar.js"></script>
		<script src="dek/assets/js/ace/ace.sidebar-scroll-1.js"></script>
		<script src="dek/assets/js/ace/ace.submenu-hover.js"></script>
		<script src="dek/assets/js/ace/ace.widget-box.js"></script>
		<script src="dek/assets/js/ace/ace.settings.js"></script>
		<script src="dek/assets/js/ace/ace.settings-rtl.js"></script>
		<script src="dek/assets/js/ace/ace.settings-skin.js"></script>
		<script src="dek/assets/js/ace/ace.widget-on-reload.js"></script>
		<script src="dek/assets/js/ace/ace.searchbox-autocomplete.js"></script>
		<!-- the following scripts are used in demo only for onpage help and you don't need them -->
		<link rel="stylesheet" href="dek/assets/css/ace.onpage-help.css" />
		<link rel="stylesheet" href="dek/docs/assets/js/themes/sunburst.css" />

		<script type="text/javascript"> ace.vars['base'] = '..'; </script>
		<script src="dek/assets/js/ace/elements.onpage-help.js"></script>
		<script src="dek/assets/js/ace/ace.onpage-help.js"></script>
		<script src="dek/docs/assets/js/rainbow.js"></script>
		<script src="dek/docs/assets/js/language/generic.js"></script>
		<script src="dek/docs/assets/js/language/html.js"></script>
		<script src="dek/docs/assets/js/language/css.js"></script>
		<script src="dek/docs/assets/js/language/javascript.js"></script>
	</body>
</html>
