-
Notifications
You must be signed in to change notification settings - Fork 0
/
adminCompDetails.php
46 lines (46 loc) · 1.49 KB
/
adminCompDetails.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
<h3>Complaint Details - Admin View</h3>
<form action="processLeave.php?action=addUser" method="post" name="frmListUser" id="frmListUser" style="animation-delay: 1s;animation-name: zoomIn;" data-wow-delay="1s" class="wow zoomIn animated animated">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
<tr align="center" id="listTableHeader" bgcolor="#f5f5f5">
<td width="747">Complaint Title</td>
<td width="260">Com. Type </td>
<td width="139">Status</td>
<td width="150">Detail</td>
</tr>
<?php
$cust_id = (int)$_SESSION['user_id'];
$sql = "SELECT *
FROM tbl_complains
WHERE status != 'close'
ORDER BY create_date DESC
LIMIT 0,20";
$result = dbQuery($sql);
$i=0;
while($row = dbFetchAssoc($result)) {
extract($row);
if ($i%2) {
$class = 'row1';
} else {
$class = 'row2';
}
$i += 1;
?>
<tr class="<?php echo $class; ?>" style="height:25px;background: #ffffcc">
<td align="center"> <?php echo $comp_title; ?></td>
<td width="260" align="center"><?php echo ucwords($comp_type); ?></td>
<td width="139" align="center"><?php echo ucwords($status); ?></td>
<td width="150" align="center"><a href="javascript:viewComplainDetail(<?php echo $cid; ?>);" style="color: #34ad00">Detail</a></td>
</tr>
<?php
} // end while
?>
<tr>
<td colspan="5"> </td>
</tr>
<tr>
<td colspan="5" align="right"> </td>
</tr>
</table>
<p> </p>
</form>
<p> </p>