<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<link rel="stylesheet" href="../window/modal.css" type="text/css" />
<link rel="stylesheet" href="../window/dhtmlwindow.css" type="text/css" />
<script type="text/javascript" src="../window/modal.js"></script>
<script type="text/javascript" src="../window/dhtmlwindow.js"></script>


<script type="text/javascript">
function accessdenied(){
accessdeniedwindow=dhtmlmodal.open('EmailBox', 'iframe', '../include/access_denied.php', 'Access denied', 'width=350px,height=170px,center=1,resize=0,scrolling=1')
//needToConfirm = false;
accessdeniedwindow.onclose=function(){return window}
}
</script>

<?php
include ("../navigation/header.php");
$page_name = "admin";

$table_name = $_SESSION['db_prefix']."_permissions";
$permission_query = "SELECT user_id  FROM  $table_name  WHERE user_id ='". $_SESSION['user_id']."' AND page_name = '". $page_name ."' ";
$permission_result = mySQL_query($permission_query);
$permission_num = mysql_num_rows($permission_result);
?>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>

<?php 
if ($permission_num==1) {
	include ("../navigation/admin_sidebar.php");
?>

<body>
<?php  ?>
<div class="main_frame">
<table width="800" id="table_display">
  <tr>
    <td>show this please!</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>

</div>

</body>
<?php } else {
include ("../navigation/hr_sidebar.php");?>
	<body onload="accessdenied(); return false">
	</body>
<?php }
?>
</html>