<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<!--style sheets-->
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<!--jscript-->
<script language="JavaScript" src="../jscript/gen_validatorv4.js"  type="text/javascript" xml:space="preserve"></script>


<?php 
include('../include/session.php');


date_default_timezone_set('Africa/Gaborone');
$date_time = date("Y-m-d H:i:s", time()); 


$table_name = $_SESSION['db_prefix']."_users";
$select_query = "SELECT userid, username FROM $table_name ORDER BY username ";
	$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, "username");
		$arrName[$a] = mysql_result($select_result, $a, "username");
		$a++;
	}


?>
<script language="JavaScript" src="../jscript/cancel_confirmation.js"  type="text/javascript"></script> 
</head>

<body>
<?php
include ("../navigation/header.php");
$page_name = "AD-remove user";
include ("../navigation/access.php");

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


<div class="main_frame">

  <div class="page_head_frame">
    <table width="809" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="385"><label class="label_page_head">System</label></td>
        <td align="right">&nbsp;</td>
      </tr>
    </table>
  </div>
 
<div class="page_middle_frame">

<div class="page_inside_frame">
  <p>Reports<br>
  <br>
  <a href="../hr_module/daily_attendance_report_compile.php" target="_self">
  <input name="attendance_button" type="button" value="Daily attendance report" class="imagebutton">
  </a><br>
  <br>
  <a href="../sales/email_daily_sales_list.php" target="_self">
  <input name="sales_button" type="button" value="Daily sales report" class="imagebutton">
  </a><br>
  <br>
  <a href="../sales/email_daily_follow_up_list.php" target="_self">
  <input name="followup_button" type="button" value="Daily follow-up report" class="imagebutton">
  </a><br>
  <br>
  <a href="../sales/email_daily_quote_notes_list.php" target="_self">
  <input name="quotes_button" type="button" value="Daily quotes report" class="imagebutton">
  </a><br>
  <br>
  <a href="../store/email_min_stock_list.php" target="_self">
  <input name="minstock_button" type="button" value="Daily min stock report" class="imagebutton">
  </a><br>
  <br>
  <a href="../transport/email_report_license_renewal.php" target="_self">
  <input name="transport_button" type="button" value="Transport report" class="imagebutton">
  </a>
  </p>
  <p><a href="../cron_jobs/delete_chat.php" target="_self">
    <input name="delete_chat_button" type="button" value="Delete chat" class="imagebutton">
  </a></p>
</div>

</div> 
</div>


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

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

</html>