0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: search_leave_credit.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Search Leave Credit| OFMSP</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="../style.css" rel="stylesheet" type="text/css" /> <link rel="icon" href="../images/icon.ico" /> <style type="text/css"> <!-- .style2 { font-size: 14px } .style3 {font-size: 16px} --> </style> </head> <body> <p> <!--<div id="headerbg"> <div id="headerblank">--> <?php include("include/userheader.php"); include("search_leave_credit_ctrl.php"); @$_SESSION['sl_no']=0; ?></p> <p> </p> <p> </p> <p> </p> <p align="center" class="projectboldtxt style3">Search for leave Credit details</p> <form action="search_leave_credit.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <p><span class="msgText"><?php if(isset($_GET['message'])) { ?><blink> <?php echo $_GET['message']; ?></blink><?php } ?></span></p> <table width="456" align="center"> <tr> <td width="113" height="45"><span class="projectboldtxt">Employee name</span></td> <td width="144"><label> <input type="text" name="txtemp_name" id="txtemp_name" /> </label></td> <td width="63"><label> <input type="submit" name="search" id="search" value="SEARCH" /> </label></td> <td width="33"><a href="#" class="projectboldtxt style2" onclick="window.print()"><strong>Print</strong></a></td> <td width="79"><div align="center"><a href="leavemanagement.php"><img src="../images/back_button_up.jpg" alt="back" width="61" height="35" /></a></div></td> </tr> </table> <?php if(isset($_POST['search'])) { // 51 $empname=@$_POST['txtemp_name']; //$u_name=@$_SESSION['username']; $p_id=@$_SESSION['project_id']; $u_id=@$_SESSION['user_id']; $sql1="select distinct(emp_id) from leave_credit where user_id='$u_id'"; $sql2=mysql_query($sql1); LeaveCreditSearch::printleaveCreditDetailsheader(); while($row_base=mysql_fetch_array($sql2)) { // 69 $emp_id_db=$row_base['emp_id']; $sql_emp="select `emp_name` from employe where `emp_id`='$emp_id_db'"; $sql3=mysql_query($sql_emp); while($row_emp=mysql_fetch_array($sql3)) { $emp_name_var=$row_emp['emp_name']; } if ($empname=="") { LeaveCreditSearch::printLeaveCreditDetails($emp_id_db); } else { if((substr_count ($emp_name_var,$empname))>0) { LeaveCreditSearch::printLeaveCreditDetails($emp_id_db); } } } //69 } //51 ?> </form> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </div> <?php include "include/footer.php"; ?> </p> </body> </html>