<? session_start();
 include("opendb.php");
$us=mysqli_query($db,"select level from bruser where username='$user'")or die(mysqli_error());
$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/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/wage_regmnu2.php" TARGET='Y'>**Wage Register for Labour(Trainee)</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/wage_regmnu4.php" TARGET='Y'>**Wage Register for Labour(Others)</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'> Erned Basic & PF(Periodwise)<br>&nbsp;&nbsp;-Branch wise</a></td></tr>

<?
if($brcode=='PSN236' || $brcode=='Aut141')
{
?>
<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/bonusummnu1213.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/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/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/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>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/wage_sbi.php" TARGET='z'>SBI 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'>SBI Payment Details</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/udemp.php" TARGET='z'>Salary Payment Verification</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/wage_esi.php" TARGET='z'>ESI Payment Report</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>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/bonusummnu1.php" TARGET='Y'>Bonus Details (SEC)</a></td></tr>
<tr bgcolor=silver onMouseOver=bgColor='aliceblue'; onMouseOut=bgColor='silver'><td>&nbsp;&nbsp;<a href="emp/bonusumry1.php" TARGET='Y'>Bonus Summary (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>
