0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
ADMIN
/
[
Home
]
File: search_user.php
<?php $MAIN_HEADING = "Search User"; ?> <?php include("include/adminheader.php"); include("search_user_ctrl.php"); @$_SESSION['sl_no']=0; ?> <form action="search_user.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="style1">User name</span></div></td> <td width="150"><label> <input class="form-control" type="text" name="txtuser" id="txtuser" /></label></td> <td width="15"><label> </label></td> <td width="71"><label> <input class="btn btn-success" type="submit" name="search" id="search" value="SEARCH" /> </label></td> <td width="71"><div align="center"><a class="btn btn-default" href="#" onclick="window.print()"><strong>Print</strong></a></div></td> <td width="71"><div align="center"><a href="createuser.php">Back</a></div></td> </tr> </table> <?php if(isset($_POST['search'])) { $username=@$_POST['txtuser']; $u_id=@$_SESSION['user_id']; $sql1="select * from user where user_name LIKE '%$username%' AND is_admin=0 ORDER BY user_name "; UserSearch::printUserDetails($sql1); } ?> </form> <p> </div> <?php include "include/footer.php"; ?> </p> </body> </html>