<? session_start();
 include("opendb.php");
$us=mysqli_query($db,"select level from bruser where username='$user'")or die(mysqli_error($db));
$r=mysqli_fetch_row($us);
$user_level=$r[0];

print $user_level;
if($user_level>=6)
 print "<script> document.location='prformd.php'</script>";
?>

<SCRIPT>
parent.main.document.location="blank.html";
</script>
<style>
td{background-color:ivory;font-family:'arial narrow';letter-spacing:1;}
.mnu{margin-left:5}
a{text-decoration:none}
</style>

<body bgcolor='e4ecc4'>

<base target=main>
<body topmargin="5" leftmargin="0" link=black vlink=black>
<center>
<font  size=4 face=sans-serif><b>PAY ROLL</font><hr>

<table bgcolor=brown cellspacing=1 cellpadding=1 width=97%>
<?
if($user_level>=4&&$user_level<6||$user=='admin')
{
?>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="blank.html" onClick=mastfun()><font color='darkbrown'><b>MASTER -></a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/grati.php" TARGET='z'>Gratiuty Report</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/inc.php" TARGET='z'>Increment Month</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/wage_regmnu.php" TARGET='Y'>Wage Register</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/wagesummnu.php" TARGET='Y'>Wage Register-Summary</a></td></tr>

<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/wagesummnubr.php" TARGET='Y'>Wage Register-Summary<br>&nbsp;&nbsp;-Branch wise</a></td></tr>

<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/genpayd.php">Set Leave for the month</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/edit-genpayd.php">Edit Setleave</a></td></tr>

<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/genpaymnu.php" TARGET='X'>Gen Payroll</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/seaemp.php" >Search Employee</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/newemp.php" >New Employee</a></td></tr>

<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/retemp.php" >Retired/Resigned </a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/tran.php" >Transfer </a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/wage_regmnu_pst.php" TARGET='Y'>Wage Register-<br> <font color=brown>&nbsp;&nbsp;&nbsp;(A/c Posting)</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/wagehis.php" TARGET='Y'>Wage History</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/staffhis.php" TARGET='z'>Staff History</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/emppf.php" TARGET='z'>Emp PF</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/empesi.php" TARGET='z'>Emp ESI</a></td></tr>

</table>
<?
}

?>

<BR>

<table bgcolor=brown cellspacing=1 cellpadding=1 width=97%>


<?

if($user_level>=1||$user=='admin')
{
?>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/genpayd.php">Set Leave for the month</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/edit-genpayd.php">Edit Setleave</a></td></tr>

<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/wage_regmnu.php" TARGET='Y'>Wage Register</a></td></tr>

<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/genpaymnu.php" TARGET='X'>Gen Payroll</a></td></tr>


<!--
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/pay_reportmnu.php" TARGET='Y1'>Payroll Report</a></td></tr>
-->


<?
}
?>
</table>

<script>
function mastfun()
{
 document.location='prmastmnu.html';
}

function fun1()
{
 document.location='vehreports.html';
}
function repfun1()
{
 document.location='repmnu.html';
}
function purfun()
{
 document.location='purmnu.html';
}
function oformfun()
{
 document.location='oformmnu.html';
}
function invoicefun()
{
 document.location='invoicemnu.html';
}

</script>
