-
Notifications
You must be signed in to change notification settings - Fork 0
/
employeeCompDetails.php
111 lines (110 loc) · 3.09 KB
/
employeeCompDetails.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
104
105
106
107
108
109
110
111
<h3>Student Complain Details - Employee View</h3>
<?php
$emp_id = (int)$_SESSION['user_id'];
$sql = "SELECT *
FROM tbl_complains
WHERE status != 'close'
AND eng_id = $emp_id
ORDER BY create_date DESC
LIMIT 0,20";
$result = dbQuery($sql);
if(dbNumRows($result) > 0){
?>
<form action="processLeave.php?action=addUser" method="post" name="frmListUser" id="frmListUser">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="text">
<tr align="center" id="listTableHeader">
<td width="747">Complain Title</td>
<td width="260">Com. Type </td>
<td width="139">Status</td>
<td width="150">Detail</td>
</tr>
<?php
$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;">
<td> <?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:viewEmployeeComDetail(<?php echo $cid; ?>);">Detail</a></td>
</tr>
<?php
} // end while
?>
<tr>
<td colspan="5"> </td>
</tr>
<tr>
<td colspan="5" align="right"> </td>
</tr>
</table>
<?php }//if
else {
echo "<h3><font color=red>No Complains Assign to You.</font></h3>";
}
?>
<p> </p>
</form>
<p> </p>
<h3>Faculty Complain Details - Employee View</h3>
<?php
$emp_id = (int)$_SESSION['user_id'];
$sql = "SELECT *
FROM tbl_complainsf
WHERE status != 'close'
AND eng_id = $emp_id
ORDER BY create_date DESC
LIMIT 0,20";
$resultf = dbQuery($sql);
if(dbNumRows($resultf) > 0){
?>
<form action="processLeave.php?action=addUser" method="post" name="frmListUser" id="frmListUser">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="text">
<tr align="center" id="listTableHeader">
<td width="747">Complain Title</td>
<td width="260">Com. Type </td>
<td width="139">Status</td>
<td width="150">Detail</td>
</tr>
<?php
$i=0;
while($row = dbFetchAssoc($resultf)) {
extract($row);
if ($i%2) {
$class = 'row1';
} else {
$class = 'row2';
}
$i += 1;
?>
<tr class="<?php echo $class; ?>" style="height:25px;">
<td> <?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:viewEmployeeComDetailFac(<?php echo $cid; ?>);">Detail</a></td>
</tr>
<?php
} // end while
?>
<tr>
<td colspan="5"> </td>
</tr>
<tr>
<td colspan="5" align="right"> </td>
</tr>
</table>
<?php }//if
else {
echo "<h3><font color=red>No Complains Assign to You.</font></h3>";
}
?>
<p> </p>
</form>
<p> </p>