0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
USER
/
[
Home
]
File: search_payment_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 PaymentSearch { //7 public function printPaymentDetails($sql1) {//10 $sql=mysql_query($sql1); if(mysql_affected_rows()>0) {//14 ?> <div align="center"><b><font color="#853008">Payment Details</font></b> </div> <table width="976" height="81" border="1" align="center" bordercolor="#CC0000"> <tr bgcolor="#853008"> <th width="49" bgcolor="#853008"><font color="#F4E7BD"> S No </font></th> <th width="104" bgcolor="#853008"><font color="#F4E7BD"> Voucher no: </font></th> <th width="160" bgcolor="#853008"><font color="#F4E7BD">Account Name</font></th> <th width="97" bgcolor="#853008"><font color="#F4E7BD">Date </font></th> <th width="111" bgcolor="#853008"><font color="#F4E7BD">Amount</font></th> <th width="105" bgcolor="#853008"><font color="#F4E7BD">Discount</font></th> <th width="173" bgcolor="#853008"><font color="#F4E7BD">Description</font></th> <th width="72" bgcolor="#853008"><font color="#F4E7BD"> Edit </font></th> <th width="70" bgcolor="#853008"><font color="#F4E7BD">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['voucher']; ?></a></th> <th><?php echo $row['account_Name']; ?></th> <th><?php echo $row['p_date']; ?></th> <th><?php echo $row['amount']; ?></th> <th><?php echo $row['discount']; ?></th> <th><?php echo $row['description']; ?></th> <th><a href="../USER/edit_payment.php?id=<?php echo $row['payment_id']; ?>"><img src="../images/edit.png" alt="edit" width="25" height="25" /></a></th> <th> <a href="../USER/delete_payment.php?id=<?php echo $row['payment_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 Payment Details to display"; ?></b></font><?php }//14 }//10 }//7 ?>