0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: search_emp_ctrl.php
<?php require_once "../lib/config.php"; require_once BASE_DIR."/lib/db/connection.php"; class EmpSearch { //7 public function printEmpDetails($sql1) {//10 $sql=mysql_query($sql1); if(mysql_affected_rows()>0) {//14 ?> <div align="center"><b><font color="#853008">Employee Details</font></b> </div> <table width="854" height="154" border="1" align="center" bordercolor="#CC0000"> <tr bgcolor="#853008"> <th width="32" height="26" bgcolor="#853008"><font color="#F4E7BD"> S No </font></th> <th width="78" bgcolor="#853008"><font color="#F4E7BD"> Employee Name </font></th> <th width="72" bgcolor="#853008"><font color="#F4E7BD"> Address </font></th> <th width="84" bgcolor="#853008"><font color="#F4E7BD">Phone</font></th> <th width="70" bgcolor="#853008"><font color="#F4E7BD">Mobile</font></th> <th width="70" bgcolor="#853008"><font color="#F4E7BD">Designation</font></th> <th width="49" bgcolor="#853008"><font color="#F4E7BD">Date of Start</font></th> <th width="76" bgcolor="#853008"><font color="#F4E7BD">Date of Completion</font></th> <th width="53" bgcolor="#853008"><font color="#F4E7BD">Salary</font></th> <th width="94" bgcolor="#853008"><font color="#F4E7BD">MailId</font></th> <th width="45" bgcolor="#853008"><font color="#F4E7BD">Status</font></th> <th width="83" bgcolor="#853008"><font color="#F4E7BD">Photo</font></th> <th width="42" bgcolor="#853008"><font color="#F4E7BD"> Edit </font></th> <th width="45" bgcolor="#853008"><font color="#F4E7BD">Delete</font></th> </tr> <tr><?php while($row=mysql_fetch_array($sql)) {//32 ?> <th height="104"><?php @$_SESSION['sl_no']=@$_SESSION['sl_no']+1; echo @$_SESSION['sl_no']; ?></th> <th><?php echo $row['emp_name']; ?></a></th> <th><?php echo $row['address']; ?></th> <th><?php echo $row['phone']; ?></th> <th><?php echo $row['mobile']; ?></th> <th><?php echo $row['designation']; ?></th> <th><?php echo $row['join_date']; ?></th> <th><?php echo $row['validupto_date']; ?></th> <th><?php echo $row['salary']; ?></th> <th><?php echo $row['mail_id']; ?></th> <th><?php if($row['status'] == 1) { $status="Active"; } else { $status="In Active"; } echo $status; ?></th> <th><img src="../Proposels/<?php echo $row['photo'];?>"alt="" name="imgProfile<?php echo $row['photo'];?>" width="60" height="63" id="imgProfile<?php echo $row['photo'];?>"/></th> <th><a href="../USER/edit_emp.php?id=<?php echo $row['emp_id']; ?>&name=<?php echo $row['emp_name'];?>"><img src="../images/business_user_edit.png" alt="edit" width="25" height="25" /></a></th> <th><a href="../USER/Employee_delete.php?id=<?php echo $row['emp_id']; ?>&name=<?php echo $row['emp_name'];?>"><img src="../images/remove_male_user_256.png" alt="Delete" width="25" height="25" /></a><a href="../USER/edit_emp.php?id=<?php echo $row['emp_id']; ?>&name=<?php echo $row['emp_name'];?>"></a></th> </tr> <?php }//32 ?> </table> <?php }//14 else {//14 ?><font color="#CC0000"><b><?php echo "No Employee to display"; ?></b></font><?php }//14 }//10 }//7 ?>