0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: search_custemaccountcashentry_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 custemaccountSearch { //7 public function printcustemaccountDetails($sql1) {//10 $sql=mysql_query($sql1); if(mysql_affected_rows()>0) {//14 ?> <div align="center"> <p><b><font color="#660000">Custom account cash entry Details</font></b></p> </div> <table width="646" height="81" border="1" align="center" bordercolor="#CC0000"> <tr bgcolor="#853008"> <th width="24"><font color="#F7E7BD"> S No </font></th> <th width="42"><font color="#F7E7BD">Date</font></th> <th width="108"><font color="#F7E7BD">Group name </font></th> <th width="104"><font color="#F7E7BD">Account name</font></th> <th width="52"><font color="#F7E7BD">Debit</font></th> <th width="51"><font color="#F7E7BD">Credit</font></th> <th width="98"><font color="#F7E7BD">Description</font></th> <th width="51"><font color="#F7E7BD"> Edit </font></th> <th width="58"><font color="#F7E7BD">Delete</font></th> </tr> <tr><?php while($row=mysql_fetch_array($sql)) {//32 ?> <th height="50"><?php @$_SESSION['sl_no']=@$_SESSION['sl_no']+1; echo @$_SESSION['sl_no']; ?></th> <th><?php echo $row['date']; ?></th> <th><?php echo $row['groupname']; ?></th> <th><?php echo $row['accountname']; ?></th> <th><?php echo $row['debit']; ?></th> <th><?php echo $row['credit']; ?></th> <th><?php echo $row['description']; ?></th> <th><a href="../USER/edit_custemaccountcashentry.php?id=<?php echo $row['custem_id']; ?>"><img src="../images/edit.png" alt="edit" width="25" height="25" /></a></th> <th> <a href="../USER/delete_custemaccountcashentry.php?id=<?php echo $row['custem_id']; ?>"><img src="../images/delete.jpg" alt="Delete" width="25" height="25" /></a></th> </tr> <?php }//32 ?> </table> <?php }//14 else {//14 ?><font color="#CC0000"><b><?php echo "No details to display"; ?></b></font><?php }//14 }//10 }//7 ?>