<?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 id="mainpage">
<table width="100%"><tr><td>
<caption><img src="Picture/salary.gif" width="30" height="30" />Daily Bookstore Management System - Salary</caption>
</td></tr></table>
<table width="70%">
<fieldset>
<legend><img src="Picture/salary.gif" width="40" height="40">Salary Management</legend>
<tr>
<td width="20%"><a href="salarylist.php"><img src="Picture/salary.gif" width="30" height="30" alt="salary"><a href="salarylist.php">Salary</a></td>
<td width="20%"><a href="socsolist.php"><img src="Picture/socso.gif" width="30" height="30" alt="Socso"><a href="socsolist.php">Socso</a></td>
<td width="20%"><a href="editepf.php"><img src="Picture/epf.gif" width="30" height="30" alt="EPF"><a href="editepf.php">EPF</a></td>
</fieldset>
</table>
</div>

<br/>

<hr/>
</td>
</tr>
</table>
<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>";
}
?>