forked from abusalam/Lok-Sabha-Election-16th
-
Notifications
You must be signed in to change notification settings - Fork 0
/
personnel-report-in-govt-category.php
103 lines (102 loc) · 3.81 KB
/
personnel-report-in-govt-category.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Personnel in Government Category</title>
<?php
include('header/header.php');
?>
<script type="text/javascript" language="javascript">
function district_change(str)
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("subdiv_result").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","ajax-master.php?dist="+str+"&opn=subdiv",true);
xmlhttp.send();
}
</script>
</head>
<body>
<div width="100%" align="center">
<table cellpadding="2" cellspacing="0" border="0" width="100%">
<tr><td align="center"><table width="1000px" class="table_blue">
<tr><td align="center"><div width="50%" class="h2"><?php print isset($environment)?$environment:""; ?></div></td></tr>
<tr><td align="center"><?php print $district; ?> 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>
<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>
<tr><td colspan="2" align="center"><img src="images/blank.gif" alt="" height="5px" /></td></tr>
</table>
</form>
</td></tr></table>
</td></tr>
</table>
</div>
</body>
</html>