0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: search_leave_credit_ctrl.php
<?php require_once "../lib/config.php"; //require_once BASE_DIR."/lib/db/DBconnection.php"; require_once BASE_DIR."/lib/db/connection.php"; class LeaveCreditSearch { //7 public function printleaveCreditDetailsheader() { ?> <div align="center"><b><font color="#853008">Leave Credit Details </font></b> </div> <table width="413" height="67" border="1" align="center" bordercolor="#CC0000"> <tr bgcolor="#853008"> <th width="24" height="61" bgcolor="#853008"><font color="#F4E7BD"> S No </font></th> <th width="82"><font color="#F4E7BD">Employee</font></th> <th width="56"><font color="#F4E7BD">Credit</font> </th> <th width="32"><font color="#F4E7BD">Year</font></th> <th width="95"><font color="#F4E7BD">Date of details entered</font></th> <!--<th width="33"><font color="#F4E7BD"> Edit </font></th>--> <th width="45"><font color="#F4E7BD">Delete</font></th> </tr> </table> <?php } public function printLeaveCreditDetails($emp_id_var) {//10 $sql1="select * from leave_credit where `emp_id`='$emp_id_var'"; $sql=mysql_query($sql1); if(mysql_affected_rows()>0) {//14 ?> <table width="413" height="67" border="1" align="center" bordercolor="#CC0000"> <tr><?php while($row=mysql_fetch_array($sql)) {//32 ?> <th width="24"><?php @$_SESSION['sl_no']=@$_SESSION['sl_no']+1; echo @$_SESSION['sl_no']; ?></th> <th width="82" ><?php $emp_db=$row['emp_id']; $sql_emp="select emp_name from employe where emp_id='$emp_db'"; $sql3=mysql_query($sql_emp); while($row_emp=mysql_fetch_array($sql3)) { echo $row_emp['emp_name']; } ?></th> <th width="56"><?php echo $row['credit_count']; ?></th> <th width="32"><?php echo $row['year']; ?></th> <th width="95"><?php echo $row['today_date']; ?></th> <!--<th width="33" ><a href="../USER/edit_leave_entry.php?id=<?php echo $row['credit_id']; ?>&name=<?php echo $row['project_code'];?>"><img src="../images/edit.png" alt="edit" width="25" height="25" /></a></th>--> <th width="45"><a href="../USER/delete_leave_credit.php?id=<?php echo $row['credit_id']; ?>&name=<?php echo $row['project_code'];?>"><img src="../images/delete.jpg" alt="Delete" width="25" height="25" /></a></th> </tr> <?php }//32 ?> </table> <?php }//14 else {//14 ?><font color="#CC0000"><b><?php echo "No to display"; ?></b></font><?php }//14 }//10 }//7 ?>