<!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" />


<?php
include ("../navigation/header.php");
$page_name = "AD-permissions";
include ("../navigation/access.php");


$set = $_GET['set'];
$message='';

if ($set==0) {

$table_name = $_SESSION['db_prefix']."_users";
$select_query = "SELECT access_id, username FROM $table_name ";
	$arrId = array ();
	$arrName = array ();
	$select_result = execsql($select_query);
	$select_num = mysql_num_rows($select_result);
	$a = 0;
	while ($a < $select_num) {
		$arrId[$a] = mysql_result($select_result, $a, "access_id");
		$arrName[$a] = mysql_result($select_result, $a, "username");
		$a++;
	}
$user_name = '';
$email = '';	
} 
else {
$access_id = $_GET['user_select'];
$table_name = $_SESSION['db_prefix']."_users";
$email_query = "SELECT username, email FROM $table_name WHERE access_id = '".$access_id."'  ";
$email_result = mySQL_query($email_query);
$email_num = mysql_num_rows($email_result);
$user_name = mysql_result($email_result, 0, "username");
$email = mysql_result($email_result, 0, "email");	
}
?>



<link href="../css/main.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../jscript/gen_validatorv4.js"  type="text/javascript" xml:space="preserve"></script>
<script language="JavaScript" src="../jscript/show_hide_layers.js"  type="text/javascript"></script> 
<script language="JavaScript" src="../jscript/alert_message.js"  type="text/javascript"></script> 
</head>
<?php
if ($permission_num==1) {
	include ("../navigation/admin_sidebar.php");
?>
<body >

<div class="main_frame"  style="height:auto; min-height:570px;">
<div class="page_head_frame">
<label class="label_page_head">Set alerts</label>
</div>

<?php if ($set==0) { ?>
<div class="page_middle_frame" style="margin-top:20px;"><form name="form1" id="form1" action="alerts.php" method="get"> <label class="label_std">Select a user to set and send alerts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
  <select name="user_select" class="selectbox120">
    <option value=""></option>
    <?php
        	for ($i = 0; $i < count($arrId); $i++) {
    		echo "<option value=" . "\"" . $arrId[$i] . "\"" . ">" . $arrName[$i] . "</option>";
	}
?>
  </select>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input name="button" type="submit" class="imagebutton" id="button" value="go" />
    <input name="set" type="hidden" id="set" value="1" />
</form>
<script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("form1");
  frmvalidator.EnableMsgsTogether();
  frmvalidator.addValidation("user_select","req","Please select user.");
</script></div>
<?php }
else {
	?>
<form action="alerts_save.php" method="get">
<div class="page_middle_frame">
Set alerts and e-mail notification for:&nbsp;<?php echo $user_name ?>
<input type="hidden" name="access_id" id="access_id"  value="<?php echo $access_id?>"/><input type="hidden" name="user_name" id="user_name"  value="<?php echo $user_name?>"/>
<br />
<br />

      email address for this user:
      &nbsp;&nbsp;&nbsp;
<input name="email_text" type="text"  class="text300"  id="email_text"  value="<?php echo $email?>"   onblur="if (!document.getElementById('email_text').value)
{
    document.getElementById('receive_order_email_checkbox').checked = false;
    alertMessage(2, '', 'There is no e-mail address for this user.<br>To send alerts or reports by email, an email address is required.<br><br>If email alerts or reports were checked below, they have been deselected.');
    document.getElementById('receive_order_email_checkbox').checked = false;
    document.getElementById('min_stock_email_checkbox').checked = false;
    document.getElementById('emp_late_email_checkbox').checked = false;
    document.getElementById('sales_email_checkbox').checked = false;
}" >
<br />
      <br />
  </div>
    <br />
<br />
<div class="page_middle_frame">
  
    <label class="label_std" style="font-size:14px">Instant alerts:</label>
  
  <div class="page_inside_frame" style="width:650px;"> HR
    <table width="650" border="0" cellspacing="0" cellpadding="0">
      <!-- begin late coming -->
      <?php
	  	$table_name = $_SESSION['db_prefix']."_alerts";
		$check_query = "SELECT send_alert, send_email, condition_1  FROM $table_name WHERE alert_name = 'Late coming' AND user_name = '".$user_name."' ";
		$check_result = mySQL_query($check_query);
		$check_num = mysql_num_rows($check_result);
		if ($check_num!=0) {
		$send_alert = mysql_result($check_result, 0, "send_alert");
		$send_email = mysql_result($check_result, 0, "send_email");
		$condition_1 = mysql_result($check_result, 0, "condition_1");
		}
		else {
			$send_alert = '14';
			$send_email = '';
			$condition_1 = '';
		}
	?>
      <tr>
        <td colspan="4">&nbsp;</td>
      </tr>
      <tr>
        <td width="361" height="35">3 times or more late in a period of:&nbsp;&nbsp;&nbsp;
          <input type="text" name="late_textbox" id="late_textbox" class="text50" value="<?php echo $condition_1 ?>" />
          &nbsp;&nbsp;days</td>
        <td width="120">&nbsp;</td>
        <td width="90">&nbsp;&nbsp;
          <input type="checkbox" name="late_alert_checkbox" id="late_alert_checkbox" <?php if ($send_alert=='yes') {?> checked="checked" <?php } ?> />
          alert&nbsp;</td>
        <td width="79"><input type="checkbox" name="late_email_checkbox" id="late_email_checkbox"  <?php if ($send_email=='yes') {?> checked="checked" <?php } ?>  
      	onclick="if (!document.getElementById('email_text').value)
{
    document.getElementById('late_email_checkbox').checked = false;
    alertMessage(2, '', 'There is no e-mail address for this user.&lt;br&gt;To send alerts by email, an email address is required.&lt;br&gt;&lt;br&gt;Enter an email address in the box above and try again.');
}"
 />
          &nbsp;&nbsp;email </td>
      </tr>
      <!-- end late coming -->
      <!-- begin 3rd warning -->
      <?php
	  	$table_name = $_SESSION['db_prefix']."_alerts";
		$check_query = "SELECT send_alert, send_email, condition_1  FROM $table_name WHERE alert_name = 'Warning' AND user_name = '".$user_name."' ";
		$check_result = mySQL_query($check_query);
		$check_num = mysql_num_rows($check_result);
		if ($check_num!=0) {
		$send_alert = mysql_result($check_result, 0, "send_alert");
		$send_email = mysql_result($check_result, 0, "send_email");
		$condition_1 = mysql_result($check_result, 0, "condition_1");
		}
		else {
			$send_alert = '';
			$send_email = '';
			$condition_1 = '';
		}
	?>
      <tr>
        <td colspan="4">&nbsp;</td>
      </tr>
      <tr>
        <td width="361" height="35">Receive 3<sup>rd</sup> (final) warning:</td>
        <td width="120">&nbsp;</td>
        <td width="90">&nbsp;&nbsp;
          <input type="checkbox" name="warning_alert_checkbox" id="warning_alert_checkbox" <?php if ($send_alert=='yes') {?> checked="checked" <?php } ?> />
          alert&nbsp;</td>
        <td width="79"><input type="checkbox" name="warning_email_checkbox" id="warning_email_checkbox"  <?php if ($send_email=='yes') {?> checked="checked" <?php } ?>  
      	onclick="if (!document.getElementById('email_text').value)
{
    document.getElementById('warning_email_checkbox').checked = false;
    alertMessage(2, '', 'There is no e-mail address for this user.&lt;br&gt;To send alerts by email, an email address is required.&lt;br&gt;&lt;br&gt;Enter an email address in the box above and try again.');
}"
 />
          &nbsp;&nbsp;email </td>
      </tr>
      <!-- end 3rd warning -->
    </table>
  </div>
  <p>&nbsp;</p>
  <p><br />
  </p>
  <div class="page_inside_frame" style="width:650px;">
    <?php
	  	$table_name = $_SESSION['db_prefix']."_alerts";
		$check_query = "SELECT condition_1, send_alert, send_email  FROM $table_name WHERE alert_name = 'quotation' AND user_name = '".$user_name."' ";
		$check_result = mySQL_query($check_query);
		$check_num = mysql_num_rows($check_result);
		if ($check_num!=0) {
		$condition_1 = mysql_result($check_result, 0, "condition_1");
		$send_alert = mysql_result($check_result, 0, "send_alert");
		$send_email = mysql_result($check_result, 0, "send_email");
		}
		else {
			$condition_1 = '20000';
			$send_alert = '';
			$send_email = '';
		}
	?>
    Sales
    <table width="650" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="4">&nbsp;</td>
      </tr>
      <tr>
        <td width="361">Alert when a quotation made of more than:&nbsp;</td>
        <td width="120">P&nbsp;
          <select name="quotation_select" class="select100">
            <option value="20000">20000</option>
            <option value="30000">30000</option>
            <option value="40000">40000</option>
            <option value="50000">50000</option>
            <option value="60000">60000</option>
            <option value="70000">70000</option>
            <option value="80000">80000</option>
            <option value="90000">90000</option>
            <option value="100000">100000</option>
            <option value="110000">110000</option>
            <option value="120000">120000</option>
            <option value="<?php echo $condition_1?>" selected="selected"><?php echo $condition_1?></option>
          </select></td>
        <td width="90">&nbsp;&nbsp;
          <input type="checkbox" name="quotation_alert_checkbox" id="quotation_alert_checkbox" <?php if ($send_alert=='yes') {?> checked="checked" <?php } ?> />
          <label for="checkbox3"></label>
          alert&nbsp;</td>
        <td width="79"><input type="checkbox" name="quotation_email_checkbox" id="quotation_email_checkbox"  <?php if ($send_email=='yes') {?> checked="checked" <?php } ?>  
      	onclick="if (!document.getElementById('email_text').value)
{
    document.getElementById('quotation_email_checkbox').checked = false;
    alertMessage(2, '', 'There is no e-mail address for this user.&lt;br&gt;To send alerts by email, an email address is required.&lt;br&gt;&lt;br&gt;Enter an email address in the box above and try again.');
}"
 />
          &nbsp;&nbsp;email </td>
      </tr>
      <?php
	  	$table_name = $_SESSION['db_prefix']."_alerts";
		$check_query = "SELECT condition_1, send_alert, send_email  FROM $table_name WHERE alert_name = 'receive order' AND user_name = '".$user_name."' ";
		$check_result = mySQL_query($check_query);
		$check_num = mysql_num_rows($check_result);
		if ($check_num!=0) {
		$condition_1 = mysql_result($check_result, 0, "condition_1");
		$send_alert = mysql_result($check_result, 0, "send_alert");
		$send_email = mysql_result($check_result, 0, "send_email");
		}
		else {
			$condition_1 = '20000';
			$send_alert = '';
			$send_email = '';
		}
	?>
      <tr>
        <td colspan="4">&nbsp;</td>
      </tr>
      <tr>
        <td width="361">Alert when an order is received of more than:&nbsp;</td>
        <td width="120">P&nbsp;
          <select name="receive_order_select" class="select100">
            <option value="20000">20000</option>
            <option value="30000">30000</option>
            <option value="40000">40000</option>
            <option value="50000">50000</option>
            <option value="60000">60000</option>
            <option value="70000">70000</option>
            <option value="80000">80000</option>
            <option value="90000">90000</option>
            <option value="100000">100000</option>
            <option value="110000">110000</option>
            <option value="120000">120000</option>
            <option value="<?php echo $condition_1?>" selected="selected"><?php echo $condition_1?></option>
          </select></td>
        <td width="90">&nbsp;&nbsp;
          <input type="checkbox" name="receive_order_alert_checkbox" id="receive_order_alert_checkbox" <?php if ($send_alert=='yes') {?> checked="checked" <?php } ?> />
          <label for="checkbox3"></label>
          alert&nbsp;</td>
        <td width="79"><input type="checkbox" name="receive_order_email_checkbox" id="receive_order_email_checkbox"  <?php if ($send_email=='yes') {?> checked="checked" <?php } ?>  
      	onclick="if (!document.getElementById('email_text').value)
{
    document.getElementById('receive_order_email_checkbox').checked = false;
    alertMessage(2, '', 'There is no e-mail address for this user.&lt;br&gt;To send alerts by email, an email address is required.&lt;br&gt;&lt;br&gt;Enter an email address in the box above and try again.');
}"
 />
          &nbsp;&nbsp;email </td>
      </tr>
    </table>
</div>
  <div class="page_inside_frame" style="width:650px;">
    
    Production
    <table width="650" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td colspan="3">&nbsp;</td>
    </tr>
    <?php
	  	$table_name = $_SESSION['db_prefix']."_alerts";
		$check_query = "SELECT condition_1, send_alert, send_email  FROM $table_name WHERE alert_name = 'captured_quote' AND user_name = '".$user_name."' ";
		$check_result = mySQL_query($check_query);
		$check_num = mysql_num_rows($check_result);
		if ($check_num!=0) {
		$condition_1 = mysql_result($check_result, 0, "condition_1");
		$send_alert = mysql_result($check_result, 0, "send_alert");
		$send_email = mysql_result($check_result, 0, "send_email");
		}
		else {
			$condition_1 = '0';
			$send_alert = '';
			$send_email = '';
		}
	?>
    <tr>
      <td height="47">Alert when captured quote result is less than&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <select name="captured_quote_select" class="select100">
          <option value="0">0</option>
          <option value="5">5</option>
          <option value="10">10</option>
          <option value="15">15</option>
          <option value="20">20</option>
          <option value="25">25</option>
          <option value="<?php echo $condition_1?>" selected="selected"><?php echo $condition_1?></option>
      </select></td>
      <td width="90">&nbsp;&nbsp;
        <input type="checkbox" name="captured_quote_alert_checkbox" id="captured_quote_alert_checkbox" <?php if ($send_alert=='yes') {?> checked="checked" <?php } ?> />
        
        alert&nbsp;</td>
      <td width="79"><input type="checkbox" name="captured_quote_email_checkbox" id="captured_quote_email_checkbox"  <?php if ($send_email=='yes') {?> checked="checked" <?php } ?>  
      	onclick="if (!document.getElementById('email_text').value)
{
    document.getElementById('captured_quote_email_checkbox').checked = false;
    alertMessage(2, '', 'There is no e-mail address for this user.&lt;br&gt;To send alerts by email, an email address is required.&lt;br&gt;&lt;br&gt;Enter an email address in the box above and try again.');
}"
 />
        &nbsp;&nbsp;email </td>
    </tr>
    <?php
	  	$table_name = $_SESSION['db_prefix']."_alerts";
		$check_query = "SELECT condition_1, send_alert, send_email  FROM $table_name WHERE alert_name = 'cutting_timber' AND user_name = '".$user_name."' ";
		$check_result = mySQL_query($check_query);
		$check_num = mysql_num_rows($check_result);
		if ($check_num!=0) {
		$condition_1 = mysql_result($check_result, 0, "condition_1");
		$send_alert = mysql_result($check_result, 0, "send_alert");
		$send_email = mysql_result($check_result, 0, "send_email");
		}
		else {
			$condition_1 = '0';
			$send_alert = '';
			$send_email = '';
		}
	?>
    <tr>
      <td>Alert when cutting bill timber result is less than &nbsp;
        <select name="cutting_timber_select" class="select100">
          <option value="0">0</option>
          <option value="5">5</option>
          <option value="10">10</option>
          <option value="15">15</option>
          <option value="20">20</option>
          <option value="25">25</option>
          <option value="<?php echo $condition_1?>" selected="selected"><?php echo $condition_1?></option>
      </select></td>
      <td width="90">&nbsp;&nbsp;
        <input type="checkbox" name="cutting_timber_alert_checkbox" id="cutting_timber_alert_checkbox" <?php if ($send_alert=='yes') {?> checked="checked" <?php } ?> />
        <label for="checkbox2"></label>
        alert&nbsp;</td>
      <td width="79"><input type="checkbox" name="cutting_timber_email_checkbox" id="cutting_timber_email_checkbox"  <?php if ($send_email=='yes') {?> checked="checked" <?php } ?>  
      	onclick="if (!document.getElementById('email_text').value)
{
    document.getElementById('cutting_timber_email_checkbox').checked = false;
    alertMessage(2, '', 'There is no e-mail address for this user.&lt;br&gt;To send alerts by email, an email address is required.&lt;br&gt;&lt;br&gt;Enter an email address in the box above and try again.');
}"
 />
        &nbsp;&nbsp;email </td>
    </tr>
    <?php
	  	$table_name = $_SESSION['db_prefix']."_alerts";
		$check_query = "SELECT condition_1, send_alert, send_email  FROM $table_name WHERE alert_name = 'cutting_plate' AND user_name = '".$user_name."' ";
		$check_result = mySQL_query($check_query);
		$check_num = mysql_num_rows($check_result);
		if ($check_num!=0) {
		$condition_1 = mysql_result($check_result, 0, "condition_1");
		$send_alert = mysql_result($check_result, 0, "send_alert");
		$send_email = mysql_result($check_result, 0, "send_email");
		}
		else {
			$condition_1 = '0';
			$send_alert = '';
			$send_email = '';
		}
	?>
    <tr>
      <td colspan="3">&nbsp;</td>
    </tr>
    <tr>
      <td>Alert when cutting bill plate result is less than&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <select name="cutting_plate_select" class="select100">
          <option value="0">0</option>
          <option value="5">5</option>
          <option value="10">10</option>
          <option value="15">15</option>
          <option value="20">20</option>
          <option value="25">25</option>
          
          <option value="<?php echo $condition_1?>" selected="selected"><?php echo $condition_1?></option>
      </select></td>
      <td width="90">&nbsp;&nbsp;
        <input type="checkbox" name="cutting_plate_alert_checkbox" id="cutting_plate_alert_checkbox" <?php if ($send_alert=='yes') {?> checked="checked" <?php } ?> />
        <label for="checkbox2"></label>
        alert&nbsp;</td>
      <td width="79"><input type="checkbox" name="cutting_plate_email_checkbox" id="cutting_plate_email_checkbox"  <?php if ($send_email=='yes') {?> checked="checked" <?php } ?>  
      	onclick="if (!document.getElementById('email_text').value)
{
    document.getElementById('cutting_plate_email_checkbox').checked = false;
    alertMessage(2, '', 'There is no e-mail address for this user.&lt;br&gt;To send alerts by email, an email address is required.&lt;br&gt;&lt;br&gt;Enter an email address in the box above and try again.');
}"
 />
        &nbsp;&nbsp;email </td>
    </tr>
  </table>
  </div>
  <p><br />
    <!--start maintenance--><!--end maintenance-->
</p>
  <div class="page_inside_frame" style="width:650px;">
    Stores<br />
<br />
<div style="width:650px;">
  <table width="650" border="0" cellspacing="0" cellpadding="0">
      <!-- begin stock count -->
      <?php
	  	$table_name = $_SESSION['db_prefix']."_alerts";
		$check_query = "SELECT send_alert, send_email, condition_1  FROM $table_name WHERE alert_name = 'Stock count' AND user_name = '".$user_name."' ";
		$check_result = mySQL_query($check_query);
		$check_num = mysql_num_rows($check_result);
		if ($check_num!=0) {
		$send_alert = mysql_result($check_result, 0, "send_alert");
		$send_email = mysql_result($check_result, 0, "send_email");
		$condition_1 = mysql_result($check_result, 0, "condition_1");
		}
		else {
			$send_alert = '';
			$send_email = '';
			$condition_1 = '';
		}
	?>
      <tr>
        <td colspan="4">&nbsp;</td>
      </tr>
      <tr>
        <td width="361" height="35">Stock count not done.<br>(Friday after 13:00 hrs, repeat once on Monday)<br /><br /></td>
        <td width="120">&nbsp;</td>
        <td width="90">&nbsp;&nbsp;
          <input type="checkbox" name="stock_count_alert_checkbox" id="stock_count_alert_checkbox" <?php if ($send_alert=='yes') {?> checked="checked" <?php } ?> />
          alert&nbsp;</td>
        <td width="79"><input type="checkbox" name="stock_count_email_checkbox" id="stock_count_email_checkbox"  <?php if ($send_email=='yes') {?> checked="checked" <?php } ?>  
      	onclick="if (!document.getElementById('email_text').value)
{
    document.getElementById('stock_count_email_checkbox').checked = false;
    alertMessage(2, '', 'There is no e-mail address for this user.&lt;br&gt;To send alerts by email, an email address is required.&lt;br&gt;&lt;br&gt;Enter an email address in the box above and try again.');
}"
 />
          &nbsp;&nbsp;email </td>
      </tr>
      <!-- stock count -->
        <tr>
          <td colspan="4">Alert when stock becomes lower than required minimum in:</td>
        </tr>
        <?php
      $table_name = $_SESSION['db_prefix']."_alerts";
		$check_query = "SELECT condition_1, condition_2, condition_3, condition_4, condition_5, send_alert, send_email  FROM $table_name WHERE alert_name = 'min stock' AND user_name = '".$user_name."' ";
		$check_result = mySQL_query($check_query);
		$check_num = mysql_num_rows($check_result);
		
		if ($check_num!=0) {
		$send_alert = mysql_result($check_result, 0, "send_alert");
		$send_email = mysql_result($check_result, 0, "send_email");	
		$condition_1 = mysql_result($check_result, 0, "condition_1");
		$condition_2 = mysql_result($check_result, 0, "condition_2");
		$condition_3 = mysql_result($check_result, 0, "condition_3");
		$condition_4 = mysql_result($check_result, 0, "condition_4");
		$condition_5 = mysql_result($check_result, 0, "condition_5");
		}
		else {
			$condition_1 = '';
			$condition_2 = '';
			$condition_3 = '';
			$condition_4 = '';
			$condition_5 = '';
			$send_alert = '';
			$send_email = '';
		}
		?>
        <tr>
          <td width="363" height="42"><input type="checkbox" name="timber_checkbox" value="Timber" id="timber_checkbox" <?php if ($condition_1=='Timber') {?> checked="checked" <?php } ?>/>
            Timber
              <input type="checkbox" name="mitek_checkbox" value="Mitek" id="mitek_checkbox" <?php if ($condition_2=='Mitek') {?> checked="checked" <?php } ?>/>
            Mitek products
            <input type="checkbox" name="sundries_checkbox" value="Sundries" id="sundries_checkbox" <?php if ($condition_3=='Sundries') {?> checked="checked" <?php } ?>/>
            Sundries
            <label class="label_std"> &nbsp;&nbsp;
<input type="checkbox" name="other_checkbox" value="Other" id="other_checkbox"<?php if ($condition_4=='Other') {?> checked="checked" <?php } ?> />
              Other</label></td>
          <td width="118">&nbsp;</td>
          <td width="90">&nbsp;&nbsp;&nbsp;
            <input type="checkbox" name="min_stock_alert_checkbox" id="min_stock_alert_checkbox" <?php if ($send_alert=='yes') {?> checked="checked" <?php } ?>/>
            &nbsp;alert </td>
          <td width="79"><input type="checkbox" name="min_stock_email_checkbox" id="min_stock_email_checkbox" disabled="disabled" <?php if ($send_email=='yes') {?> checked="checked" <?php } ?> 
      onclick="if (!document.getElementById('email_text').value)
{
    alertMessage(2, '', 'There is no e-mail address for this user.&lt;br&gt;To send alerts by email, an email address is required.&lt;br&gt;&lt;br&gt;Enter an email address in the box above and try again.');
    document.getElementById('min_stock_email_checkbox').checked = false;
}"/>
            email</td>
        </tr>
      </table>
  </div>
</div>
</div>
<div class="page_middle_frame" align="right" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="save_button"  id="save_button" type="submit" class="imagebutton" value="Save"/>
    <input name="save_close_button" type="submit" class="imagebutton" id="save_close_button" value="Save &amp; Close"/>
  </div>
</form>
<?php
}
?>
</div>


</body>

<?php include ('../navigation/side_bar.php'); ?>

<?php } else {
    $_SESSION['denied_return'] = "admin_module/user_list.php";	
    include ("../navigation/admin_sidebar.php");?>
	<body onLoad="accessdenied(); return false">	
	</body>
<?php }
?>
</html>