-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathempRep.php
More file actions
57 lines (49 loc) · 1.39 KB
/
empRep.php
File metadata and controls
57 lines (49 loc) · 1.39 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
<?php
$id = $_GET['id'];
//echo $id;
?>
<h3>Report - Admin View</h3>
<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="303">Employee Name</td>
<td width="260">Employee Address </td>
<td width="150">Employee Email</td>
<td width="150">Employee Contact</td>
<td width="150">Employee Joining Date</td>
</tr>
<?php
$sql = "SELECT *
FROM tbl_employee
LIMIT 0,20";
$result = dbQuery($sql);
$i=0;
while($row = dbFetchRow($result)) {
//extract($row);
if ($i%2) {
$class = 'row1';
} else {
$class = 'row2';
}
$i += 1;
?>
<tr class="<?php echo $class; ?>" style="height:25px;">
<td> <?php echo ucwords($row[1]); ?></td>
<td width="344" align="center"><?php echo ucwords($row[3]); ?></td>
<td width="284" align="center"><?php echo ucwords($row[4]); ?></td>
<td width="270" align="center"><?php echo ucwords($row[5]); ?></td>
<td width="270" align="center"><?php echo ucwords($row[6]); ?></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>