?>
 DISTRICT</td></tr>
<tr>
  <td align="center">PERSONNEL IN GOVT. CATEGORY</td></tr>
<tr><td align="center"><form method="post" name="form1" id="form1" target="_blank" action="reports/govt-cat-wise-report.php">
    <table width="70%" class="form" cellpadding="0">
	<tr><td align="center" colspan="2"><img src="images/blank.gif" alt="" height="2px" /></td></tr>
    <tr><td height="18px" colspan="2" align="center"><span id="msg" class="error"></span></td></tr>
    <tr><td colspan="2"><img src="images/blank.gif" alt="" height="5px" /></td></tr>
    <tr>
	  <td align="left">District</td>
	  <td align="left"><select name="district" id="district" style="width:240px;" onchange="javascript:return district_change(this.value);">
      						<option value="0">-Select District-</option>
                            <?php 
include_once "function/master_fun.php";
$rsDist = fatch_district_master('');
$num_rows = rowCount($rsDist);
if ($num_rows > 0) {
    for ($i = 1; $i <= $num_rows; $i++) {
        $rowDist = getRows($rsDist);
        echo "<option value='{$rowDist['0']}'>{$rowDist['1']}</option>";
        $rowSubDiv = NULL;
    }
}
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>
コード例 #2
0
?>
<table width="100%">
<tr>
	<td align="center">
		<table width='750px' cellpadding='0' cellspacing='0' border='0'>
        <thead>
        	<tr>
            	<th align='center' colspan='2'>Government Category Wise Report</th>
            </tr>
            <tr>
            	<th align='center' colspan='2'>&nbsp;</th>
            </tr>
        </thead>
        <?php 
include_once '../function/master_fun.php';
$rsDist = fatch_district_master($dist_cd);
$num_rows = rowCount($rsDist);
$rowDist = getRows($rsDist);
$dist = $rowDist['districtcd'];
?>
        	<tr>
            	<th align='left' width='30%'>District</th><th align='left'><?php 
echo $rowDist['district'];
?>
</th>
            </tr>
            <tr><td colspan='2' align='center'>
            <table width='100%' class='table'>
            <?php 
$rsSubdiv = fatch_subdivision_master($subdiv_cd, $dist);
$num_rowsSubdiv = rowCount($rsSubdiv);