<?
session_start();
if(strlen($brcode)<=0)
{
 print "<script> alert('Session timed out'); parent.document.location='../ind.php'; </script>";
 return;
}

include("../opendb.php");
include("../test.php");
?>
<head>
<style>
body,td{font-family:'arial narrow';letter-spacing:1;}
tr{background-color:e3ecd2}
th{background-color:c1d799}
.mnu{margin-left:5}
body{BACKGROUND-COLOR:fcfff1}
</style>
</head>
<hr>
<center>
<h2>EDIT SET LEAVE </H2>
<FORM name='f1' ACTION='edit-genpay.php' method='post'>
<table width=50%>
 <th>Division<th>Branch 
<?
$result=mysqli_query($db,"select * from divmast where brcode='$brcode' order by divname");
$i=1;
print "<tr><td><center><select name='divi'>";
while($row=mysqli_fetch_array($result))
{
 print "\n<option>$row[divname]</option>";
}
?>

<?
$result=mysqli_query($db,"select * from br_master where brcode='$brcode' order by brname");
$i=1;
print "<td><center><select name='br'>";
while($row=mysqli_fetch_array($result))
{
 print "\n<option>$row[brname]</option>";
}
print "<tr><td align=center>Password </td><td align=center><input type=password name='pswd'></td></tr>";

?>
<tr><td>Select Month </td><td> From <input type=text name='fd' size=2> <select name='month'>
<option value='1'>January</option>
<option value='2'>February</option>
<option value='3'>March</option>
<option value='4'>April</option>
<option value='5'>May</option>
<option value='6'>Jun</option>
<option value='7'>July</option>
<option value='8'>August</option>
<option value='9'>September</option>
<option value='10'>October</option>
<option value='11'>November</option>
<option value='12'>December</option>
</select>
<select name='yea'>
<option>2014</option>
<option>2015</option>
<option>2016</option>
<option>2013</option>
<option>2012</option>
<option>2011</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
<option>2008</option>
<option>2009</option>
<option>2010</option>

</select>
<!-- <br>
To&nbsp;&nbsp;&nbsp;&nbsp; <input type=text name='td' size=2> <select name='tmonth'>
<option value='1'>January</option>
<option value='2'>February</option>
<option value='3'>March</option>
<option value='4'>April</option>
<option value='5'>May</option>
<option value='6'>Jun</option>
<option value='7'>July</option>
<option value='8'>August</option>
<option value='9'>September</option>
<option value='10'>October</option>
<option value='11'>November</option>
<option value='12'>December</option>
</select>
<select name='tyea'>
<option>2014</option>
<option>2015</option>
<option>2016</option>
<option>2013</option>
<option>2012</option>
<option>2008</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
<option>2009</option>
</select>
-->
</td></tr>
<tr><td align=center colspan='2'><input type=submit value='Get Employees'></td></tr>
</table>
</form>

<HR>
<br>&nbsp;
