0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: search_group_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 GroupSearch { //7 public function printGroupDetails($sql1) {//10 $sql=mysql_query($sql1); if(mysql_affected_rows()>0) {//14 ?> <div align="center"><b><font color="#853008">Group Details</font></b> </div> <table width="336" height="103" border="1" align="center" bordercolor="#CC0000"> <tr bgcolor="#853008"> <th width="42" height="36" bgcolor="#853008"><font color="#F4E7BD">S No</font></th> <th width="139"><font color="#F4E7BD"> GroupName </font></th> <th width="62"> <div align="center"><font color="#F4E7BD">Edit </font></div></th> <th width="65"><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['groupname']; ?> </a></th> <th><a href="edit_group.php?id=<?php echo $row['group_id']; ?>&name=<?php echo $row['groupname'];?>"><img src="../images/business_user_edit.png" alt="edit" width="25" height="25" /></a><a href="../../USER/edit_group.php?id=<?php echo $row['group_id']; ?>&name=<?php echo $row['groupname'];?>"></a><a href="../../USER/edit_group.php?id=<?php echo $row['group_id']; ?>&name=<?php echo $row['groupname'];?>"></a></th> <th><a href="group_delete.php?id=<?php echo $row['group_id']; ?>&name=<?php echo $row['groupname'];?>"><img src="../images/remove_male_user_256.png" alt="Delete" width="25" height="25" /></a><a href="../../USER/group_delete.php?id=<?php echo $row['group_id']; ?>&name=<?php echo $row['groupname']; ?>"></a></th> </tr> <?php }//32 ?> </table> <?php }//14 else {//14 ?><font color="#CC0000"><b><?php echo "No Group to display"; ?></b></font><?php }//14 }//10 }//7 ?>