<?php
	session_start();
	include("config.php");
	include("general.php");
	
	if(!adminMode()){

		msgbox("Anda belum login!");
		lempar("index.php");

	}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $nama_perush ?></title>
<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen" title="default" />


    <meta charset="utf-8">
    <title><?php echo nama_perush?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="Bintang Pratama Perkasa">

    <!-- The styles -->
    <link id="bs-css" href="charisma-master/css/bootstrap-cerulean.min.css" rel="stylesheet">

    <link href="charisma-master/css/charisma-app.css" rel="stylesheet">
    <link href='charisma-master/bower_components/fullcalendar/dist/fullcalendar.css' rel='stylesheet'>
    <link href='charisma-master/bower_components/fullcalendar/dist/fullcalendar.print.css' rel='stylesheet' media='print'>
    <link href='charisma-master/bower_components/chosen/chosen.min.css' rel='stylesheet'>
    <link href='charisma-master/bower_components/colorbox/example3/colorbox.css' rel='stylesheet'>
    <link href='charisma-master/bower_components/responsive-tables/responsive-tables.css' rel='stylesheet'>
    <link href='charisma-master/bower_components/bootstrap-tour/build/css/bootstrap-tour.min.css' rel='stylesheet'>
    <link href='charisma-master/css/jquery.noty.css' rel='stylesheet'>
    <link href='charisma-master/css/noty_theme_default.css' rel='stylesheet'>
    <link href='charisma-master/css/elfinder.min.css' rel='stylesheet'>
    <link href='charisma-master/css/elfinder.theme.css' rel='stylesheet'>
    <link href='charisma-master/css/jquery.iphone.toggle.css' rel='stylesheet'>
    <link href='charisma-master/css/uploadify.css' rel='stylesheet'>
    <link href='charisma-master/css/animate.min.css' rel='stylesheet'>

    <!-- jQuery -->
    <script src="charisma-master/bower_components/jquery/jquery.min.js"></script>

    
    <!-- The fav icon -->
    <link rel="shortcut icon" href="charisma-master/img/favicon.ico">

    <style>
	    #button {
			width: 12em;
			border-right: 1px solid #000;
			padding: 0 0 1em 0;
			margin-bottom: 1em;
			font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, sans-serif;
			background-color: #90bade;
			color: #333;
		}

		#button ul {
			list-style: none;
			margin: 0;
			padding: 0;
			border: none;
		}
			
		#button li {
			border-bottom: 1px solid #90bade;
			margin: 0;
			list-style: none;
			list-style-image: none;
		}
			
		#button li a {
			display: block;
			padding: 5px 5px 5px 0.5em;
			border-left: 10px solid #1958b7;
			border-right: 10px solid #508fc4;
			background-color: #2175bc;
			color: #fff;
			text-decoration: none;
			width: 100%;
		}

		html>body #button li a {
			width: auto;
		}

		#button li a:hover {
			border-left: 10px solid #1c64d1;
			border-right: 10px solid #5ba3e0;
			background-color: #2586d7;
			color: #fff;
		}
    </style>
    
    
   <script src="scriptacc.js"></script>
   <link rel="stylesheet" href="stylesacc.css">
   
   <style type="text/css">
<!--
.style1 {font-weight: bold}
.style2 {font-family: Tahoma}
-->
   </style>
</head>
<body> 

	<!-- topbar starts -->
    <div class="navbar navbar-default" role="navigation" style="height:120px;margin-bottom:0px;">
    	<div align="center" class="style1">
	      	<table width="100%">
		      	<tr>
		      		<td width="20%"><a href="admin.php"> <img alt="Logo E-Pengadaan" width="80" height="80"src="images/logo.png" style="margin-left:40px"/></a></td>
		      		<td align="center" width="60%"><h3 align="center" style="color: #ffffff">SISTEM INFORMASI E-PENGADAAN BARANG/JASA DESA<br/>KABUPATEN MADIUN</h3></td>
	      			<td width="20%" valign="bottom"><h4 align="right" style="margin-right:40px; color:#FFFF00; font-size:12px">
	      			<?php 
	      			if($_SESSION["ses_admin_level"]=="TPK"){
	      				$slevel="Tim Pengelola Kegiatan (TPK)";
	      				$qryx=mysqli_query($mysqli,"SELECT * FROM m_desa WHERE id_desa='$_SESSION[ses_id_desa]'");
	      				$datax=mysqli_fetch_array($qryx);
	      				$nama_desa=$datax["nama_desa"];
	      				echo "Pengguna: " . $_SESSION["ses_admin_name"] . "<br/>Level: " . $slevel . " " . $nama_desa; 
	      			}elseif($_SESSION["ses_admin_level"]=="ULP"){
	      				$slevel="Unit Layanan Pengadaan Barang/Jasa";
	      				
	      				echo "Pengguna: " . $_SESSION["ses_admin_name"] . "<br/>Level: " . $slevel ; 
	      			}
	      			?>
	      			</h4></td>
		      	</tr>
	      	</table>
      	</div>  
    </div>
    
    
<table border="0" width="100%" height="80%" style="margin-top:0px">
    	<tr>
    		<td valign="top" background="images/sidebar.png" width="240">
    			<!-- menu -->
    			<?php
    				if($_SESSION["ses_admin_level"]=="ULP"){
    					include("menu_ulp.php");
    				}elseif($_SESSION["ses_admin_level"]=="TPK"){
    					include("menu_tpk.php");
    				}
    			?>
    		</td>
    		<td valign="top">
    			<!-- konten -->
    			<!--  start page-heading -->
				<div id="page-heading">
			    	
					<h1><?php echo $_GET["page_desc"] ?></h1>
				</div>
				<!-- end page-heading -->
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
				<tr>
					<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
					<th class="topleft"></th>
					<td id="tbl-border-top">&nbsp;</td>
				  <th class="topright"></th>
					<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
				</tr>
				<tr>
					<td id="tbl-border-left"></td>
					<td valign="top">
					<!--  start content-table-inner ...................................................................... START -->
					<div id="content-table-inner">
					
						<!--  start table-content  -->
						<div id="table-content">
						<!--<h2>Sub Heading </h2>
						<h3>Local Heading</h3>-->
						
						
			            <?php include("content.php"); ?>
						
						
						</div>
						<!--  end table-content  -->
				
						<div class="clear"></div>
					 
					</div>
					<!--  end content-table-inner ............................................END  -->
					</td>
					<td id="tbl-border-right"></td>
				</tr>
				<tr>
					<th class="sized bottomleft"></th>
					<td id="tbl-border-bottom">&nbsp;</td>
				  <th class="sized bottomright"></th>
				</tr>
				</table>
				<div class="clear">&nbsp;</div>

			</div>
			<!--  end content -->
			<div class="clear">&nbsp;</div>
			</div>
			<!--  end content-outer........................................................END -->

			<div class="clear">&nbsp;</div>

    		</td>
    	</tr>
    </table>
</body>
</html>