-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviewByCompID.php
More file actions
82 lines (79 loc) · 2.69 KB
/
Copy pathviewByCompID.php
File metadata and controls
82 lines (79 loc) · 2.69 KB
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
<?php
$cid = (int)$_GET['compId'];
$sql = "SELECT * FROM fir
WHERE fid = $cid";
$result = dbQuery($sql);
while($row = dbFetchAssoc($result)) {
extract($row);
?>
<form action="processf.php?action=assignComplain" method="post">
<table width="600" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#336699" class="entryTable">
<tr id="entryTableHeader">
<td>:: View Complains Details::</td>
</tr>
<tr>
<td class="contentArea"><div class="errorMessage" align="center"></div>
<table width="100%" border="0" cellpadding="2" cellspacing="1" class="text">
<tr align="center">
<td colspan="2">
<input type="text" name="compId" value="<?php echo $fid; ?>"/> </td>
</tr>
<tr class="entryTable">
<td class="label"> Complainer Name </td>
<td class="content"><font color="#0066FF"><b><?php echo ucwords($cname); ?></b></font></td>
</tr>
<tr class="entryTable">
<td class="label"> Complain Type </td>
<td class="content"><font color="#FF0000"><b><?php echo $cr_type; ?></b></font></td>
</tr>
<tr class="entryTable">
<td valign="top" class="label"> Complain Description .</td>
<td class="content">
<textarea name="compDesc" cols="50" rows="6" class="box" id="compDesc" readonly="readonly"><?php echo $cr_desc; ?></textarea></td>
</tr>
<tr>
<td valign="top" class="label"> Status</td>
<td class="content"><font color="#66FF00"><b><?php echo ucwords($status); ?></b></font></td>
</tr>
<tr>
<td valign="top" class="label"> Date Of Creation</td>
<td class="content">
<?php echo $create_date; ?> </td>
</tr>
<tr>
<td valign="top" class="label"> Assign Complain To</td>
<td class="content">
<select name="engId" class="box" id="engId">
<?php
$sql = "SELECT pid, pname
FROM police_inspector";
$result = dbQuery($sql);
while($row = dbFetchAssoc($result)){
extract($row);
?>
<option value="<?php echo $pid; ?>"><?php echo $pname; ?></option>
<?php } ?>
</select> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td width="200"> </td>
<td width="372"> </td>
</tr>
<tr>
<td> </td>
<td><input name="btnLogin" type="submit" id="btnLogin" value=" Assing Complain "></td>
</tr>
</table></td>
</tr>
</table>
</form>
<?php
}//while
?>
<p> </p>
<p> </p>
<p> </p>