<?php
session_start();
$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"/>
<link rel="stylesheet" type="text/css" href="paginate.css">
</head>

<body>

<?php
include ("stafffunctionbar.php");
?>

<hr/>
<center>
<h2>Bookstore Received Bill List</h2>

<form action="rinvlist.php" name="searchform" method="GET">
Search: <input type="text" size="100" name="keyword" value="Type your keyword here.">

<select name="searchBy">
	<option value="">Select One</option>
	<option value="rinvNo">Bill No</option>
	<option value="poNo">Ref PO No</option>
	<option value="supName">Supplier Name</option>
	<option value="rinvDate">Submit Date</option>
	</select>

<input type="submit" name="search" value="Search"><input type="submit" name="reset" value="Reset Result">
</form>
</center>

<center>
<div id="mainpage">
<table width="90%">
<tr>
<td width="15%" valign="top">
<fieldset style="margin:0 5 0 0">
<legend><img src="Picture/purchase.gif" width="30" height="30">Received Bill</legend>
<table>
<tr>
<td valign="top">
<a href="rinvlist.php"><img src="Picture/receive.gif" width="30" height="30" alt="Bill List"><a href="rinvlist.php">Bill List</a><br/>
<br/>
</td>
</tr>
</table>
</fieldset>
</td>
<td width="75%">
<?php
include("rinv.php");
?>
</td>
</tr>
</table>
</div>
</center>

<?php
}else{
	echo "<script language='javascript'>alert ('Please login.')</script>";
	echo "<script language='javascript'>window.location='index.php'</script>";
}
?>
<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>