64 lines
1.8 KiB
PHP
64 lines
1.8 KiB
PHP
<?php include('pdf_header.php');
|
|
include('includes/config/config.php');
|
|
// include('pop_up_top.php');
|
|
?>
|
|
<table width="100%">
|
|
<tr>
|
|
<div style="font-size:12px">
|
|
<td width="25%" align="left"> Run Date :
|
|
<?php echo date("d-M-Y"); ?>
|
|
</td>
|
|
<td width="50%" align="center" style="font-size:20px"><strong>STAFF MASTER LIST </strong></td>
|
|
<td width="25%" align="left"> User :
|
|
<?php echo $username ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table border="1" style="text-align: center;">
|
|
<?php
|
|
$sql = "SELECT * from staff_master ORDER BY staff_id DESC";
|
|
echo $sql;
|
|
$sql = base64_decode($filterkey);
|
|
$result = mysqli_query($conn, $sql);
|
|
//echo $result;
|
|
?>
|
|
<tr bgcolor='#eeeeee'>
|
|
<td align="left" width="2%">SR</td>
|
|
<td>EMPLOYEE NAME</td>
|
|
<td>EMPLOYEE CODE</td>
|
|
<td>GENDER</td>
|
|
<td>CATEGORY</td>
|
|
<td>PHONE</td>
|
|
<td>EMAIL ID</td>
|
|
<td>ADDRESS</td>
|
|
|
|
</tr>
|
|
|
|
<?php
|
|
$count = 1;
|
|
while ($row_staff = mysqli_fetch_assoc($result)) {
|
|
extract($row_staff);
|
|
?>
|
|
|
|
<tr>
|
|
<td><?php echo $count ?></td>
|
|
<td><?php echo $row_staff['staff_name'] ?></td>
|
|
|
|
<td><?php echo $row_staff['emp_code'] ?></td>
|
|
<td><?php echo $row_staff['gender'] ?></td>
|
|
<?php $staff_category= getFieldFromTable('category_name','staff_category_master','id', $row_staff[
|
|
'staff_category']) ?>
|
|
|
|
<td><?= strtoupper($staff_category) ?></td>
|
|
<td><?= $row_staff['phone_number'] ?></td>
|
|
<td><?= $row_staff['email_id'] ?></td>
|
|
<td><?= $row_staff['address'] ?></td>
|
|
</tr>
|
|
<?php
|
|
$count++;
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
include('pdf_footer.php');
|
|
?>
|