<div class="page-header md-shadow-z-1-i navbar navbar-fixed-top">
	<div class="page-header-inner">
		<div class="page-logo">
			<a href="<?=site_url()?>" class="text-center" style="margin-top:17px;text-decoration:none">
				<span class="logo-default" style="color:#fff; font-size:23px;text-decoration:none"><span style="font-weight:1">MSI</span> <span style="font-size:13px; color:#fff">v<?=$this->Content_m->get_value('siak_re_data','id','8','value')?></span></span>
			</a>
			<div class="menu-toggler sidebar-toggler"></div>
		</div>
		<a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse"></a>
		<div class="page-top">
			
			<div class="top-menu">
				<ul class="nav navbar-nav pull-right">
					
					
					<li class="dropdown dropdown-user">
						<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true" aria-expanded="false">
						<?php 
						$project = explode('/', $_SERVER['REQUEST_URI'])[1];
						$filename=$_SERVER['DOCUMENT_ROOT'].'/media/images/foto/'.$this->session->userdata('userid').".jpg"; ?>
						
						<?php if (!file_exists($filename)) { ?>
						<img alt="" class="img-circle" src="<?=base_url()?>media/assets/admin/layout2/img/avatar3_small.jpg">
						<?php }else{ ?>
						<img alt="" style="width:40px;" class="img-circle" src="<?=base_url()?>/media/images/foto/<?=$this->session->userdata('userid')?>.jpg">
						<?php }?>

						
						<span class="username username-hide-on-mobile">
						<?php echo ucwords(strtolower($this->session->userdata('name')))?> </span>
						<i class="fa fa-angle-down"></i>
						</a>
						<ul class="dropdown-menu dropdown-menu-default">
							<?php if (!in_array(1, $this->session->userdata('id_global_hakakses'))) { ?>
							<li>
								<a href="<?php echo site_url()?>/account/data_diri/administrator">
								<i class="icon-user"></i> Profile </a>
							</li>
							<li>
								<a href="<?php echo site_url()?>/account/change_password/administrator">
								<i class="icon-lock"></i> Change Password </a>
							</li>
							<?php } ?>
							
							<!--
							<li>
								<a href="<?php echo site_url()?>/account/lock_screen">
								<i class="icon-lock"></i> Lock Screen </a>
							</li>
							
							-->
							<li class="divider">
							</li>
							<li>
								<a href="<?php echo site_url()?>/account/logout">
								<i class="icon-key"></i> Log Out </a>
							</li>
						</ul>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>