<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>CMS Admin</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<style media="all" type="text/css">
@import "../css/all.css";
</style>
<?php
	include("include/db.php");
	$q = "SELECT username FROM active_users";
	$r = execsql($q);
	$num = mysql_num_rows($r);
?>
<script type="text/javascript" src="../include/tablesort.js"></script>
<script type="text/javascript" src="../include/jquery.js"></script>
<script type="text/javascript" src="../include/chat.js"></script>
<link type="text/css" rel="stylesheet" media="all" href="../css/chat.css" />
<!--[if lte IE 7]>
<link type="text/css" rel="stylesheet" media="all" href="../css/screen_ie.css" />
<![endif]-->
</head>
<body>
<div id="main">
  <div id="header"> <a href="http://www.tocotex.com/" class="logo"><img src="../img/Tocotex Logo.jpg" width="150" height="50" alt="" /></a>
    <ul id="top-navigation">
      <li><span><span><a href="../HR/employeeMenu.php">Human Resources</a></span></span></li>
      <li><span><span><a href="../Production/productionMenu.php">Production</a></span></span></li>
	  <li><span><span><a href="../Store/storeMenu.php">Store</a></span></span></li>
	  <li><span><span><a href="../Store/outstandingOrder.php">Deliveries</a></span></span></li>
      <li class="active"><span><span><a href="../Reports/reportsMenu.php">Reports</a></span></span></li>
    </ul>
  </div>
  <div id="middle">
    <div id="left-column">
      <h3>Human Resources</h3>
	<ul class="nav">
		<li><a href="empMegaSearch.php">Mega Search</a></li>
		<li><a href="employeeSearch.php">Employee Searches</a></li>
		<li><a href="removedEmpSearch.php">Removed employee Search</a></li>
		<li><a href="costingSearch.php">Costing Searches</a></li>
		<li><a href="violationSearch.php">Violation Searches</a></li> 
        <li><a href="showMonthsOvertime.php">Overtime</a></li>
              <li><a href="lateDates.php">Late By Dates</a></li>
        <li class="last"><a href="showLateSixMonths.php">Show Late In the Last 6 Months</a></li>
      </ul>
      
      <h3>Store</h3>
      <ul class="nav">
      	<li><a href="showAllProducts.php">All Products in Store</a></li>
      	 <li><a href="itemsOnLoan.php">Items on loan</a></li>
      </ul>
      
      <h3>Production</h3>
      <ul class="nav">
        
 
        <li><a href="productionToday.php">Show All Production Today</a></li>

      </ul>
 <ul class="nav"><h3>Chat to Online Users</h3>
 <?php
 	for($i=0; $i < $num; $i++){
 		$uname = mysql_result($r, $i, "username");
 		echo "<a href=\"javascript:void(0)\" onclick=\"javascript:chatWith('". $uname ."')\">". $uname . "</a><br />";
 	}
 ?>

</ul>

 <a href="../../adminControl.php" class="link">User Page</a>
      <a href="../../process.php" class="link">Logout</a> </div>
    <div id="center-column">
      <div class="top-bar">