<?php
//session
session_start();
include ("connect.php");
$username = $_SESSION['staff'];

if($_SESSION['staff']!= null)
{
?>

<html>
<head>
<title>Daily Bookstore - Management System</title>
<!--include css file-->
<link href="bookstaff.css" rel="stylesheet" type="text/css"/>
</head>

<body>

<?php
include ("stafffunctionbar.php");
?>
</div>
</fieldset>
</td>
</tr>
</table>

<div id="mainpage">
<table width="100%"><tr><td>
<caption><img src="Picture/bill.gif" width="30" height="30" />Daily Bookstore Management System - Manage Bill</caption>
</td></tr></table>
<table width="70%">
<fieldset>
<legend><img src="Picture/salescontrol.gif" width="40" height="40">Sales Management</legend>
<tr>
<td width="20%"><a href="onlineorderlist.php"><img src="Picture/onlineorder.gif" width="30" height="30" alt="manage online order"><a href="onlineorderlist.php">Online Order</a></td>
<td width="20%"><a href="deliveryorderlist.php"><img src="Picture/do.gif" width="30" height="30" alt="manage delivery order"><a href="deliveryorderlist.php">Delivery Order</a></td>
<td width="20%"><a href="salesorder.php"><img src="Picture/salesorder.gif" width="30" height="30" alt="manage sales order"><a href="salesorder.php">Sales Order</a></td>
<td width="20%"><a href="invlist.php"><img src="Picture/invoice.gif" width="30" height="30" alt="manage invoice"><a href="invlist.php">Invoice</a></td>
<td width="20%"><a href="totalsales.php"><img src="Picture/salescontrol.gif" width="30" height="30" alt="total sales"><a href="totalsales.php">Total Sales</a></td>
</fieldset>
</table>

<table width="70%">
<fieldset>
<legend><img src="Picture/purchase.gif" width="40" height="40">Purchase Management</legend>
<tr>
<td width="20%"><a href="purchaseorderlist.php"><img src="Picture/po.gif" width="30" height="30" alt="manage purchase order"><a href="purchaseorderlist.php">Purchase Order</a></td>
<td width="20%"><a href="rinvlist.php"><img src="Picture/receive.gif" width="30" height="30" alt="manage received bill"><a href="rinvlist.php">Received Bill</a></td>
<td width="20%"><a href="totalpurchase.php"><img src="Picture/purchase.gif" width="30" height="30" alt="total purchase"><a href="totalpurchase.php">Total Purchase</a></td>
<td width="20%"></td>
<td width="20%"></td>
</tr>
</fieldset>
</table>
</div>

<br/>

<hr/>

<center>
<div id="bottom">
<br/>
Copyright &#169; with Tian Tian Bookstore 2011. All Rights Reserved.
<br/>
Website:<a href="../bookstore" target="_blank">www.dailybook.com.my
</div>
</center>

</body>
</html>

<?php
}
else
{
	echo "<script language='javascript'>alert ('Only authorised user can visit this page!')</script>";
	echo "<script language='javascript'>window.location='index.php'</script>";
}
?>