0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: search_receipt.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 Receipt| 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"> <!-- .style1 {color: #F4E7BD} --> </style> </head> <body> <p> <!--<div id="headerbg"> <div id="headerblank">--> <?php include("include/first_userheader.php"); include("search_receipt_ctrl.php"); @$_SESSION['sl_no']=0; ?> </p> <p> </p> <form action="search_receipt.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="501" align="center"> <tr> <td width="156"><div align="center"><span class="projectboldtxt">Description</span></div></td> <td width="150"><label> <input type="text" name="txtvoucherno" id="txtvoucherno" /> </label></td> <td width="71"><label> <input type="submit" name="search" id="search" value="SEARCH" /> <div align="center"> </label></td> <td width="71"><div align="center"><a href="#" onclick="window.print()"><strong></strong></a><a href="#" onclick="window.print()"><strong><img src="../images/print_icon.gif" alt="print" width="53" height="44" /></strong></a></div></td> <td width="71"><div align="center"><a href="Receipt.php"><img src="../images/back_button_up.jpg" alt="back" width="61" height="35" /></a></div></td> </tr> </table> <?php if(isset($_POST['search'])) { $description=@$_POST['txtvoucherno']; //$u_name=@$_SESSION['username']; $p_id=@$_SESSION['project_id']; $u_id=@$_SESSION['user_id']; $sql1="select * from reciept where user_id='$u_id' and project_id='$p_id' and description LIKE '%$description%' ORDER BY r_date"; ReceiptSearch::printReceiptDetails($sql1); } ?> </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> </p> <p> </div> <?php include "include/footer.php"; ?> </p> </body> </html>