<!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" />
<link rel="stylesheet" type="text/css" href="../css/all.css" />
<link rel="stylesheet" type="text/css" href="../css/main.css" />
<?php
include("include/db.php");
include("css/formAssist.php");
$q = "SELECT username FROM active_users";
$r = execsql($q);
$num = mysql_num_rows($r);


$today=date('Y-m-d');
include("include/tooltip.php");
?>

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

<script language="JavaScript" src="gen_validatorv4.js"
    type="text/javascript" xml:space="preserve"></script>

</head>
<body>


<script type="text/javascript">
function capitalize(form) {
value = form.value;
newValue = '';
value = value.split(' ');
for(var i = 0; i < value.length; i++) {
newValue += value[i].substring(0,1).toUpperCase() +
value[i].substring(1,value[i].length) + ' ';
}
form.value = newValue;
}
</script>

<script language="javascript">
    function ToLower(ctrl)
    {  
    var t = ctrl.value;
    ctrl.value = t.toLowerCase();
    }
</script>

<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?type=week">Human Resources</a></span></span></li>
	<li><span><span><a href="../Production/productionMenu.php">Production</a></span></span></li>
	<li class="active"><span><span><a href="../Store/showAllProducts.php?cat=Tiles and Accessories&productSelect=All&colorSelect=All">Store</a></span></span></li>
	
</ul>
</div>
<div id="middle">
<div id="left-column">
<h3>Store Entries</h3>
<ul class="nav">
	<li><a href="storeWiz0.php">New Item</a></li>
	<li><a href="../Store/deliveryWiz0.php">Receive</a></li>
	<li><a href="../Store/orderWiz0.php">Order</a></li>
	<li><a href="issueWiz0.php">Deliver</a></li>
    <li><a href="returnWiz0.php">Returns</a></li>
	<li class="last"><a href="../Store/stockCountWiz0.php">Stock Count</a></li>
</ul>
<h3>Store Displays</h3>


<ul class="nav">

<li><a href="storeListWiz0.php">Stock Item List</a></li>
<li><a href="outstandingOrder.php">Outstanding orders</a></li>   <!--showAllProducts.php?cat=Tiles and Accessories&productSelect=All&colorSelect=All-->
<li><a href="orderList.php?date=0&custNoText=">Orders</a></li>
<li><a href="delListWiz0.php">Deliveries</a></li>
<li><a href="recListWiz0.php">Receivals</a></li>
<li><a href="stockCountListWiz0.php?date=0">Stock Loss</a></li>
<li><a href="accListWiz0.php">Accounts</a></li>
</ul>

<h3>Admin</h3>
  <ul class="nav">
    <li><a href="editWiz0.php">Edits</a></li>
    <li><a href="ordersTotal.php?date=0&search_select=0">Sale report</a></li>
    <li><a href="trackingList.php?date=0&search_select=All&action_select=All">Tracking</a></li>
    <li><a href="dropList.php?set=&page_select=">Pre-Define</a></li>
  </ul>
  
  <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="../../mainmenu.php" class="link">Inlog menu</a>
<a href="../../process.php" class="link">Logout</a></div>

<div id="center-column">
<div class="top-bar" id="top-bar">