<? 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='#F9966B'>

<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/att_mnu.php" TARGET='z'>Attendance</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/exper.php" TARGET='z'>Experience 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/wage_regmnu1.php" TARGET='Y'>*Wage Register New</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/wagesummnu7.php" TARGET='Y'>*PF Wage Register<br>&nbsp;&nbsp;-Branch wise</a></td></tr>
<?
if($brcode=='ERA153' || $brcode=='BAN682' ||$brcode=='HUB570' )
{
?>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/bonusummnu1314.php" TARGET='Y'>Bonus12-13(Br.Detailed) <br></a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/bonusumry1314.php" TARGET='Y'>Bonus12-13(Br.Summary) <br></a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/bonusumry_1314.php" TARGET='Y'>Bonus12-13(Summary All Br) <br></a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/bonusummnu.php" TARGET='Y'>Bonus11-12(Br.Detailed) <br></a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/bonusumry1213.php" TARGET='Y'>Bonus11-12(Br.Summary) <br></a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/bonusummnu.php" TARGET='Y'>Bonus089(Br.Detailed) <br></a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/bonusumry.php" TARGET='Y'>Bonus089(Br.Summary) <br></a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/bonusgpsumry.php" TARGET='Y'>Bonus089(Grp.Summary) <br></a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/bonuscosumry.php" TARGET='Y'>Bonus089(Co.Summary) <br></a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/leavedetails.php" TARGET='Y'>Leave<br></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="paypdf/genpaymnu.php" TARGET='X'>Mail Payslip</a></td></tr>

<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/wage_reg_sms.php" TARGET='X'>Payroll SMS</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/1seaemp.php" >List All Employees</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/empdet.php" TARGET='z'>Employee List</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/wage_sbi.php" TARGET='z'>*Bank Transfer List</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/wage_sbi1.php" TARGET='z'>*Bank Payment Details</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>
<?
if($brcode=='PSN236')
{
?>
<table bgcolor=brown cellspacing=1 cellpadding=1 width=97%>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/genpaydsec.php">Set Leave (SEC)</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/genpaymnusec.php" TARGET='X'>Gen Payroll (SEC)</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/wage_regmnusec.php" TARGET='Y'>Wage Register (SEC)</a></td></tr>

</table>

<?
}
}
?>

<BR>

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


<?

if($user_level<4 && $user_level>2 || $user_level==1 )
{
?>
<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>
