0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: lsearch_leave.php
<?php require_once "../lib/config.php"; //require_once BASE_DIR."/lib/db/DBconnection.php"; require_once BASE_DIR."/lib/db/connection.php"; class EmployeeSearch { public function printEmployeeDetails($sql1) { //$staff_name=$_POST['txtstaffname']; $sql=mysql_query($sql1); ?> <table border="1" bordercolor="#CC0000"> <tr> <th width="43"> Staff Code </th> <th width="76"> Name </th> <th width="84"> Designation </th> <th width="59"> Division </th> <th width="69"> Leave Type </th> <th width="58"> Start Date </th> <th width="57"> End Date</th> <th width="35">No. of Leaves</th> <th width="100"> Photo </th> <th width="31"> Edit </th> <th width="49"> Delete </th> </tr> <?php while($row=mysql_fetch_array($sql)) { ?> <tr> <td> <?php echo $row['staff_code']; ?> </td> <td> <?php echo $row['name']; ?> </td> <td> <?php echo $row['designation']; ?> </td> <td> <?php echo $row['division']; ?> </td> <td> <?php echo $row['join_date']; ?> </td> <td> <?php echo $row['retirement_date']; ?> </td> <td> <?php echo $row['lws']; ?> </td> <td> <?php echo $row['hpl']; ?> </td> <td> <img src="../photos/<?php echo $row['photo'];?>" alt="" name="imgProfile<?php echo $row['photo'];?>" width="100" height="100" id="imgProfile<?php echo $row['photo'];?>" /></td> <td> <img src="../images/edit.jpg" alt="" name="imgEdit" width="20" height="20" id="imgEdit" title="Edit" /> </td> <td> <a href="../admin/deleteStaff.php?id=<?php echo $row['staff_code']; ?>&name=<?php echo $row['name']; ?>"><img src="../images/delete.jpg" alt="" name="imgDelete" width="20" height="20" id="imgDelete" title="Delete" /></a> </td> </tr> <?php } ?> </table> <?php } } ?>