}
}
unset($rsBn, $num_rows, $rowSubDiv);
?>
      				</select></td></tr>
	<tr>
	  <td align="left">Subdivision</td>
	  <td align="left" id="subdiv_result"><select name="Subdivision" id="Subdivision" style="width:240px;">
      				</select></td></tr>
    <tr>
      <td align="left">Government Category</td>
      <td align="left"><select name="govt_cat" id="govt_cat" style="width:240px;">
      					<option value="0">-Select Government Category-</option>
                            <?php 
include_once "function/add_fun.php";
$rsBn = fatch_statusofoffice('');
$num_rows = rowCount($rsBn);
if ($num_rows > 0) {
    for ($i = 1; $i <= $num_rows; $i++) {
        $rowBn = getRows($rsBn);
        echo "<option value='{$rowBn['0']}'>{$rowBn['1']}</option>\n";
        $rowBn = NULL;
    }
}
unset($rsBn, $rowBn, $num_rows);
?>
                        </select></td>
    </tr>    
    <tr><td colspan="2"><img src="images/blank.gif" alt="" height="2px" /></td></tr>
    <tr>
      <td colspan="2" align="center"><input type="submit" name="submit" id="submit" value="Submit" class="button" /></td></tr>
} else {
    $dist_cd == '';
}
if (isset($_REQUEST['Subdivision'])) {
    $subdiv_cd = $_REQUEST['Subdivision'];
} else {
    $subdiv_cd == '';
}
if (isset($_REQUEST['govt_cat'])) {
    $govt_cat = $_REQUEST['govt_cat'];
} else {
    $govt_cat == '';
}
include_once '../function/add_fun.php';
if ($govt_cat != '' && $govt_cat != '0') {
    $rsBn = fatch_statusofoffice($govt_cat);
    $rowBn = getRows($rsBn);
    $govcat = $rowBn[1];
} else {
    $govcat = "All";
}
$rsDist = fatch_district_master($dist_cd);
$num_rows = rowCount($rsDist);
if ($num_rows > 0) {
    for ($i = 1; $i <= $num_rows; $i++) {
        $rowDist = getRows($rsDist);
        $dist = $rowDist['districtcd'];
        ?>
            <tr>
            	<th align='left' width='30%'>District</th><th align='left'><?php 
        echo $rowDist['district'];