0byt3m1n1
Path:
C:
/
GEOMATICS 23-01-2021
/
LAN
/
CPMS
/
ADMIN
/
[
Home
]
File: search_pi_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 UserSearch { //7 public function printUserDetails($sql1) {//10 $sql=mysql_query($sql1); if(mysql_affected_rows()>0) {//14 ?> <div align="center"><b>PI Details</b> </div> <table width="523" height="83" border="1" align="center"> <tr> <th width="69" height="42">S No</th> <th width="356">PI Name</th> <th width="76"> <div align="center">Edit </div></th> <th width="76"> <div align="center">Delete </div></th> </tr><?php while($row=mysql_fetch_array($sql)) {//32 ?> <tr> <th height="33"><?php @$_SESSION['sl_no']=@$_SESSION['sl_no']+1; echo @$_SESSION['sl_no']; ?></th> <th><?php echo $row['name']; $pi_name=$row['name']; $sql_pi="select pi_id from pi where name='$pi_name' "; $sql_pi=mysql_query($sql_pi); while($row_pi=mysql_fetch_array($sql_pi)) { $pi_id=$row_pi['pi_id']; } ?></th> <th><a href="../ADMIN/edit_pi.php?id=<?php echo $pi_id; ?>" title="Edit PI"><img src="../images/business_user_edit.png" alt="edit" width="25" height="25" /></a></th> <th><a href="../ADMIN/delete_pi.php?id=<?php echo $pi_id; ?> " title="Delete PI"><img src="../images/remove_male_user_256.png" alt="delete" width="25" height="25" /></a></th> </tr> <?php }//32 ?> </table> <?php }//14 else {//14 ?><font color="#CC0000"><b><?php echo "No User to display"; ?></b></font><?php }//14 }//10 }//7 ?>