0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: search_acc_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 AccSearch { //7 public function printAccDetails($sql1) {//10 $sql=mysql_query($sql1); if(mysql_affected_rows()>0) {//14 ?> <div align="center"><b><font color="#853008">Account Details</font></b> </div> <table width="472" height="85" border="1" align="center" bordercolor="#660000"> <tr bgcolor="#853008"> <th width="60" bgcolor="#853008" ><font color="#F4E7BD">S NO</font></th> <th width="116" bgcolor="#853008"><font color="#F4E7BD"> AccountName </font></th> <th width="128" bgcolor="#853008" ><font color="#F4E7BD">Groupname</font></th> <th width="89" bgcolor="#853008" > <div align="center"><font color="#F4E7BD">Edit </font></div></th> <th width="45" bgcolor="#853008" ><font color="#F4E7BD">Delete</font></th> </tr><?php while($row=mysql_fetch_array($sql)) {//32 ?> <tr> <th><?php @$_SESSION['sl_no']=@$_SESSION['sl_no']+1; echo @$_SESSION['sl_no']; ?></th> <th><?php echo $row['account_name']; ?></th> <th><?php echo $row['group_name']; ?></th> <th><a href="edit_acc.php?id=<?php echo $row['account_id'];?>&name=<?php echo $row['account_name'];?>"><img src="../images/business_user_edit.png" alt="edit" width="25" height="25" /></a></th> <th> <a href="delete_account.php?id=<?php echo $row['account_id']; ?>&name=<?php echo $row['account_name'];?>"><img src="../images/remove_male_user_256.png" alt="Delete" width="25" height="25" /></a> </tr> <?php }//32 ?> </table> <?php }//14 else {//14 ?><font color="#CC0000"><b><?php echo "No Account to display"; ?></b></font><?php }//14 }//10 }//7 ?>