<?php $grup=$this->session->userdata('grup'); $dept=$this->session->userdata('deptid');?>
<!-- #section:basics/sidebar.horizontal -->
			<div id="sidebar" class="sidebar      h-sidebar                navbar-collapse collapse">
				<script type="text/javascript">
					try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
				</script>

				<div class="sidebar-shortcuts" id="sidebar-shortcuts">
					

					<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
						<span class="btn btn-dark"></span>

						<span class="btn btn-inverse"></span>

						<span class="btn btn-inverse"></span>

						<span class="btn btn-dark"></span>
					</div>
				</div><!-- /.sidebar-shortcuts -->
				<?php if(substr($this->session->userdata('userid'),0,1)!='2'){ ?>
				<ul class="nav nav-list">
					<?php $arr=array('home'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arr)) echo 'active open ';?>hover">
						<a href="home.html">
							<i class="menu-icon fa fa-home"></i>
							<span class="menu-text"> Beranda <?php //print_r($grup);?></span>
						</a>

						<b class="arrow"></b>
					</li>
					<?php if(!(in_array('19',$grup) || in_array('20',$grup) || in_array('25',$grup)|| in_array('24',$grup))){ ?>
					<?php $arrrj=array('list-registrasi','pasien-belum-pulang'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arrrj)) echo 'active open ';?>hover">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-medkit"></i>
							<span class="menu-text"> Rawat Jalan </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="<?php if($this->uri->segment('1')=='list-registrasi') echo 'active ';?>hover">
								<a href="list-registrasi.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Data Registrasi
								</a>

								<b class="arrow"></b>
							</li>
							<li class="<?php if($this->uri->segment('1')=='pasien-belum-pulang') echo 'active ';?>hover">
								<a href="pasien-belum-pulang.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Pasien Belum pulang
								</a>

								<b class="arrow"></b>
							</li>							
						</ul>
					</li>
					
					<?php $arrinap=array('kelola-kamar','pasien-belum-pulang'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arrinap)) echo 'active open ';?>hover">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-medkit"></i>
							<span class="menu-text"> Rawat Inap </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="<?php if($this->uri->segment('1')=='pasien-belum-pulang') echo 'active ';?>hover">
								<a href="pasien-belum-pulang.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Pasien Belum pulang
								</a>

								<b class="arrow"></b>
							</li>
							<li class="<?php if($this->uri->segment('1')=='kelola-kamar') echo 'active ';?>hover">
								<a href="kelola-kamar.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Kelola Kamar
								</a>

								<b class="arrow"></b>
							</li>
							
							<li class="hover">
								<a href="http://103.4.167.31/rsip/info-kamar.html" target="_blank">
									<i class="menu-icon fa fa-caret-right"></i>
									Lihat Kamar
								</a>

								<b class="arrow"></b>
							</li>
						</ul>
					</li>
					
					<?php } ?>
					<!-- MAnajer-->
					<?php if(in_array('1',$grup) || in_array('8',$grup) || in_array('9',$grup) || in_array('4',$grup) || in_array('6',$grup) || in_array('7',$grup)){ ?>
					
					<?php $arrla=array('rekap-kunjungan-perpoli','result-rekap-kunjungan','report-data-pasien',
					'result-rekap-data-pasien','rekap-diagnosa-kosong','result-rekap-diagnosa-kosong','registrasi-pasien','data-pasien-bydokter',
					'rekap-pasien-bydokter','result-rekap-penunjang','rekap-pasien-ruangan'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arrla)) echo 'active open ';?>hover">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-calendar"></i>
							<span class="menu-text"> Report Pasien</span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<?php $arrsubla=array('rekap-kunjungan-perpoli','result-rekap-kunjungan');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsubla)) echo 'active ';?>hover">
								<a href="rekap-kunjungan-perpoli.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap Kunjungan Per-Poli
								</a>

								<b class="arrow"></b>
							</li>
							<?php $arrsubl=array('report-data-pasien','result-rekap-data-pasien');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsubl)) echo 'active ';?>hover">
								<a href="report-data-pasien.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap Pasien Belum Lengkap
								</a>

								<b class="arrow"></b>
							</li>
							<?php $arrsubl=array('rekap-diagnosa-kosong','result-rekap-diagnosa-kosong');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsubl)) echo 'active ';?>hover">
								<a href="rekap-diagnosa-kosong.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap Diagnosa Kosong
								</a>

								<b class="arrow"></b>
							</li>
							<?php $arrsubl=array('registrasi-pasien');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsubl)) echo 'active ';?>hover">
								<a href="registrasi-pasien.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap Pendaftaran
								</a>

								<b class="arrow"></b>
							</li>
							<?php $arrsubl=array('data-pasien-bydokter');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsubl)) echo 'active ';?>hover">
								<a href="data-pasien-bydokter.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap Pasien By Dokter Hari Ini
								</a>

								<b class="arrow"></b>
							</li>
							<?php $arrsubl=array('rekap-pasien-bydokter');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsubl)) echo 'active ';?>hover">
								<a href="rekap-pasien-bydokter.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap Data Pasien By Dokter
								</a>

								<b class="arrow"></b>
							</li>
							<?php $arrsubl=array('result-rekap-penunjang');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsubl)) echo 'active ';?>hover">
								<a href="result-rekap-penunjang.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap Data Pasien Penunjang
								</a>

								<b class="arrow"></b>
							</li>
							<?php $arrsubl=array('rekap-pasien-ruangan');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsubl)) echo 'active ';?>hover">
								<a href="rekap-pasien-ruangan.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap Data Pasien Ruangan/Nursestation
								</a>

								<b class="arrow"></b>
							</li>
						</ul>
					</li>
					
					<?php $arrla=array('indikator-bor','hasil-bor'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arrla)) echo 'active open ';?>hover">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-tachometer"></i>
							<span class="menu-text"> Analisa RS</span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<?php $arrsubla=array('indikator-bor','hasil-bor');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsubla)) echo 'active ';?>hover">
								<a href="indikator-bor.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Analisa Report
								</a>

								<b class="arrow"></b>
							</li>
							
							<?php $arrsubla=array('indikator-bor-','');?>
							<!--li class="<?php if(in_array($this->uri->segment('1'), $arrsubla)) echo 'active ';?>hover">
								<a href="rekap-chasmix.html">
									<i class="menu-icon fa fa-caret-right"></i>
									LOS
								</a>

								<b class="arrow"></b>
							</li>
							
							<?php $arrsubla=array('indikator-bor--','');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsubla)) echo 'active ';?>hover">
								<a href="rekap-chasmix.html">
									<i class="menu-icon fa fa-caret-right"></i>
									TOI
								</a>

								<b class="arrow"></b>
							</li>
							
							<?php $arrsubla=array('indikator-bor---','');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsubla)) echo 'active ';?>hover">
								<a href="rekap-chasmix.html">
									<i class="menu-icon fa fa-caret-right"></i>
									BTO
								</a>

								<b class="arrow"></b>
							</li>
							<?php $arrsubla=array('indikator-bor----','');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsubla)) echo 'active ';?>hover">
								<a href="rekap-chasmix.html">
									<i class="menu-icon fa fa-caret-right"></i>
									NDR
								</a>

								<b class="arrow"></b>
							</li-->
						</ul>
					</li>
					<?php } ?>
					
					<?php if(isset($grup) && in_array('1',$grup) || in_array('6',$grup) || in_array('23',$grup)){ ?>
					
					<?php $arrla=array('rekap-chasmix','result-rekap-chasmix','rekap-chasmix-radiologi','rekap-chasmix-laborat','pasien-belum-pulang'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arrla)) echo 'active open ';?>hover">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-calendar"></i>
							<span class="menu-text"> Report Chasmix</span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<?php $arrsubla=array('rekap-chasmix','result-rekap-chasmix');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsubla)) echo 'active ';?>hover">
								<a href="rekap-chasmix.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap BPJS
								</a>

								<b class="arrow"></b>
							</li>	
							<?php $arrsublal=array('rekap-chasmix-laborat');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsublal)) echo 'active ';?>hover">
								<a href="rekap-chasmix-laborat.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap BPJS Laborat
								</a>

								<b class="arrow"></b>
							</li>	
							<?php $arrsublar=array('rekap-chasmix-radiologi');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsublar)) echo 'active ';?>hover">
								<a href="rekap-chasmix-radiologi.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap BPJS Radiologi
								</a>

								<b class="arrow"></b>
							</li>	
							<?php $arrsublar=array('pasien-belum-pulang');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrsublar)) echo 'active ';?>hover">
								<a href="pasien-belum-pulang.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Pasien Belum Pulang
								</a>

								<b class="arrow"></b>
							</li>	
						</ul>
					</li>					
					<?php } ?>
					
					<?php if(isset($grup) && in_array('1',$grup) || in_array('4',$grup)){ ?>
					<?php $arrinap=array('pasien-dalam-perawatan','rekap-pendapatan-rajal','rekap-pendapatan-ranap','omset-bulan-berjalan'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arrinap)) echo 'active open ';?>hover">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-dollar"></i>
							<span class="menu-text"> Keuangan </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="<?php if($this->uri->segment('1')=='pasien-dalam-perawatan') echo 'active ';?>hover">
								<a href="pasien-dalam-perawatan.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Tagihan Px Dalam Perawatan
								</a>

								<b class="arrow"></b>
							</li>
							
							<li class="<?php if($this->uri->segment('1')=='omset-bulan-berjalan') echo 'active ';?>hover">
								<a href="omset-bulan-berjalan.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Omzet
								</a>

								<b class="arrow"></b>
							</li>
							
							<li class="hover">
								<a href="" target="_blank">
									<i class="menu-icon fa fa-caret-right"></i>
									Realisasi Target Omzet
								</a>

								<b class="arrow"></b>
							</li>
							<?php $arrpd=array('rekap-pendapatan-rajal','rekap-pendapatan-ranap');?>
							<li class="<?php if(in_array($this->uri->segment('1'), $arrpd)) echo 'active open ';?> hover">								
								<a href="" class="dropdown-toggle">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap Pendapatan
									<b class="arrow fa fa-angle-down"></b>
								</a>
								<b class="arrow"></b>								
								<ul class="submenu">
									<li class="<?php if($this->uri->segment('1')=='rekap-pendapatan-rajal') echo 'active ';?>hover">
										<a href="rekap-pendapatan-rajal.html">
											<i class="menu-icon fa fa-caret-right"></i>
											Rawat Jalan
										</a>

										<b class="arrow"></b>
									</li>

									<li class="<?php if($this->uri->segment('1')=='rekap-pendapatan-ranap') echo 'active ';?>hover">
										<a href="rekap-pendapatan-ranap.html">
											<i class="menu-icon fa fa-caret-right"></i>
											Rawat Inap
										</a>

										<b class="arrow"></b>
									</li>
								</ul>
							</li>							
						</ul>
					</li>
					<?php } ?>
					
					<?php if(isset($grup) && in_array('1',$grup) || in_array('4',$grup) || in_array('16',$grup)){ ?>
					<?php $arrinap=array('list-pasien','admision-byjenis-pasien','admision-pasien-penjamin','admision-pasien-byrujukan','admision-pasien-penunjang-byjenis','perujuk-daftar-pasien'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arrinap)) echo 'active open ';?>hover">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-list"></i>
							<span class="menu-text"> Admision </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="<?php if($this->uri->segment('1')=='list-pasien') echo 'active ';?>hover">
								<a href="list-pasien.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Kartu Pasien
								</a>

								<b class="arrow"></b>
							</li>
							
							<li class="<?php if($this->uri->segment('1')=='admision-pasien-byrujukan') echo 'active ';?>hover">
								<a href="admision-pasien-byrujukan.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap Pasien by Perujuk
								</a>

								<b class="arrow"></b>
							</li>
							
							<li class="<?php if($this->uri->segment('1')=='admision-pasien-penjamin') echo 'active ';?>hover">
								<a href="admision-pasien-penjamin.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap Pasien Jaminan
								</a>

								<b class="arrow"></b>
							</li>
							
							<li class="<?php if($this->uri->segment('1')=='admision-byjenis-pasien') echo 'active ';?>hover">
								<a href="admision-byjenis-pasien.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap Pasien Baru/Lama
								</a>

								<b class="arrow"></b>
							</li>
							
							<li class="<?php if($this->uri->segment('1')=='admision-pasien-penunjang-byjenis') echo 'active ';?>hover">
								<a href="admision-pasien-penunjang-byjenis.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Rekap Pasien Penunjang Baru/Lama
								</a>

								<b class="arrow"></b>
							</li>
							<li class="<?php if($this->uri->segment('1')=='pasien-belum-pulang') echo 'active ';?>hover">
								<a href="pasien-belum-pulang.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Pasien Belum Pulang
								</a>

								<b class="arrow"></b>
							</li>
							<li class="<?php if($this->uri->segment('1')=='perujuk-daftar-pasien') echo 'active ';?>hover">
								<a href="perujuk-daftar-pasien.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Daftar Pasien Perujuk
								</a>

								<b class="arrow"></b>
							</li>
						</ul>
					</li>
					<?php } ?>
					
					<?php if(isset($grup) && in_array('1',$grup) || in_array('17',$grup) || in_array('18',$grup)){ ?>
					<?php $arrinap=array('data-registrasi'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arrinap)) echo 'active open ';?>hover">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-book"></i>
							<span class="menu-text"> Rekam Medis </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="<?php if($this->uri->segment('1')=='data-registrasi') echo 'active ';?>hover">
								<a href="data-registrasi.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Data Registrasi
								</a>

								<b class="arrow"></b>
							</li>
							
						</ul>
					</li>
					<?php } ?>
					
					<?php if(isset($grup) && in_array('1',$grup) || in_array('4',$grup) || in_array('5',$grup) || in_array('21',$grup) || in_array('22',$grup)){ ?>
					<?php $arrinap=array('pasien-belum-pulang','pasien-belum-tertagih'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arrinap)) echo 'active open ';?>hover">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-book"></i>
							<span class="menu-text"> Kasir </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="<?php if($this->uri->segment('1')=='pasien-belum-pulang') echo 'active ';?>hover">
								<a href="pasien-belum-pulang.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Data Pasien Belum pulang
								</a>

								<b class="arrow"></b>
							</li>
							
							<li class="<?php if($this->uri->segment('1')=='pasien-belum-tertagih') echo 'active ';?>hover">
								<a href="pasien-belum-tertagih.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Data Pasien Belum Tertagih
								</a>

								<b class="arrow"></b>
							</li>
							
						</ul>
					</li>
					<?php } ?>
					
					<?php if(isset($grup) && in_array('1',$grup) || in_array('24',$grup) || in_array('25',$grup)){ ?>
					<?php $arrlab=array('pasien-laborat'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arrlab)) echo 'active open ';?>hover">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-flask"></i>
							<span class="menu-text"> Laborat </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="<?php if($this->uri->segment('1')=='pasien-laborat') echo 'active ';?>hover">
								<a href="pasien-laborat.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Cetak Hasil Laborat
								</a>

								<b class="arrow"></b>
							</li>
							
						</ul>
					</li>
					<?php } ?>
					<?php //if(isset($grup) && in_array('1',$grup) || in_array('26',$grup) || in_array('28',$grup)){ ?>
					<?php if(isset($grup) && in_array('1',$grup) || $dept=='11' || $dept=='14'){ ?>
					<?php $arrlab=array('daftar-registrasi-all'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arrlab)) echo 'active open ';?>hover">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-cogs"></i>
							<span class="menu-text"> Admin Perujuk </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="<?php if($this->uri->segment('1')=='daftar-registrasi-all') echo 'active ';?>hover">
								<a href="daftar-registrasi-all.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Data Pasien Perujuk
								</a>

								<b class="arrow"></b>
							</li>
							
						</ul>
					</li>
					<?php } ?>
					<!-- Perujuk-->	
					<?php if(isset($grup) AND in_array('1',$grup)){ ?>
					<?php $arrPRJ=array('add-pasien-byperujuk','pasien-byperujuk','registrasi-pxlama-byperujuk','daftar-registrasi-byperujuk','perujuk-daftar-pasien'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arrPRJ)) echo 'active open ';?>hover">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-pencil-square-o"></i>
							<span class="menu-text"> Dev </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="<?php if($this->uri->segment('1')=='add-pasien-byperujuk') echo 'active ';?>hover">
								<a href="add-pasien-byperujuk.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Registrasi Pasien Baru
								</a>

								<b class="arrow"></b>
							</li>
							<!--li class="hover">
								<a href="">
									<i class="menu-icon fa fa-caret-right"></i>
									Data Pasien Baru
								</a>

								<b class="arrow"></b>
							</li-->

							<li class="<?php if($this->uri->segment('1')=='pasien-byperujuk') echo 'active ';?>hover">
								<a href="pasien-byperujuk.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Registrasi Pasien Lama
								</a>

								<b class="arrow"></b>
							</li>
							<li class="<?php if($this->uri->segment('1')=='daftar-registrasi-byperujuk') echo 'active ';?>hover">
								<a href="daftar-registrasi-byperujuk.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Data Registrasi Pasien
								</a>

								<b class="arrow"></b>
							</li>
							<li class="<?php if($this->uri->segment('1')=='daftar-registrasi-all') echo 'active ';?>hover">
								<a href="daftar-registrasi-all.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Data Registrasi Pasien ALL
								</a>

								<b class="arrow"></b>
							</li>
							<li class="<?php if($this->uri->segment('1')=='perujuk-daftar-pasien') echo 'active ';?>hover">
								<a href="perujuk-daftar-pasien.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Data Registrasi Pasien Admision
								</a>

								<b class="arrow"></b>
							</li>
							<li class="<?php if($this->uri->segment('1')=='perujuk-daftar-pasien') echo 'active ';?>hover">
								<a href="pasien-laborat.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Cari Pasien Laborat
								</a>

								<b class="arrow"></b>
							</li>
							
						</ul>
					</li>
					<?php } ?>					
				</ul><!-- /.nav-list -->
				<?php }else{ ?>
				<ul class="nav nav-list">
					<?php $arr=array('home'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arr)) echo 'active open ';?>hover">
						<a href="home.html">
							<i class="menu-icon fa fa-home"></i>
							<span class="menu-text"> Beranda <?php //print_r($grup);?></span>
						</a>

						<b class="arrow"></b>
					</li>
					
					<!-- Perujuk-->						
					<?php $arrPRJ=array('add-pasien-byperujuk','pasien-byperujuk','registrasi-pxlama-byperujuk','daftar-registrasi-byperujuk'); ?>
					<li class="<?php if(in_array($this->uri->segment('1'), $arrPRJ)) echo 'active open ';?>hover">
						<a href="#" class="dropdown-toggle">
							<i class="menu-icon fa fa-pencil-square-o"></i>
							<span class="menu-text"> Pendaftaran </span>

							<b class="arrow fa fa-angle-down"></b>
						</a>

						<b class="arrow"></b>

						<ul class="submenu">
							<li class="<?php if($this->uri->segment('1')=='add-pasien-byperujuk') echo 'active ';?>hover">
								<a href="add-pasien-byperujuk.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Registrasi Pasien Baru
								</a>

								<b class="arrow"></b>
							</li>
							<!--li class="hover">
								<a href="">
									<i class="menu-icon fa fa-caret-right"></i>
									Data Pasien Baru
								</a>

								<b class="arrow"></b>
							</li-->

							<li class="<?php if($this->uri->segment('1')=='pasien-byperujuk') echo 'active ';?>hover">
								<a href="pasien-byperujuk.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Registrasi Pasien Lama
								</a>

								<b class="arrow"></b>
							</li>
							<li class="<?php if($this->uri->segment('1')=='daftar-registrasi-byperujuk') echo 'active ';?>hover">
								<a href="daftar-registrasi-byperujuk.html">
									<i class="menu-icon fa fa-caret-right"></i>
									Data Registrasi Pasien
								</a>

								<b class="arrow"></b>
							</li>
							
						</ul>
					</li>
									
				</ul><!-- /.nav-list -->
				<?php } ?>

				<!-- #section:basics/sidebar.layout.minimize -->

				<!-- /section:basics/sidebar.layout.minimize -->
				<script type="text/javascript">
					try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
				</script>
			</div>