0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
ADMIN
/
[
Home
]
File: search_pi.php
<?php $MAIN_HEADING = "Search PI"; ?> <?php include("include/adminheader.php"); include("search_pi_ctrl.php"); @$_SESSION['sl_no']=0; ?> <p><span class="msgText"> <?php if(isset($_GET['message'])) { ?> <blink> <?php echo $_GET['message']; ?></blink> <?php } ?> </span></p> <p> </p> <p> </p> <form action="search_pi.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="501" align="center"> <tr> <td ><div align="center"><span class="style1">PI name</span></div></td> <td ><label> <input class="form-control" type="text" name="txtuser" id="txtuser" /> </label></td> <td ><label> <input class="btn btn-success" type="submit" name="search" id="search" value="SEARCH" /> </label></td> <td ><div align="center"><a class="btn btn-default" href="#" onclick="window.print()"><strong>Print</strong></a></div></td> <td ><div align="center"><a href="createpi.php">Back</a></div></td> </tr> </table> <p> </p> <p> </p> <p> <?php if(isset($_POST['search'])) { $username=@$_POST['txtuser']; $sql1="select * from pi where name LIKE '%$username%' ORDER BY name"; UserSearch::printUserDetails($sql1); } ?> </p> </form> <p> <?php include "include/footer.php"; ?></p> </body> </html>