0byt3m1n1
Path:
C:
/
wamp64
/
www
/
cpms_new
/
ADMIN
/
[
Home
]
File: budget_expand_ctrl.php
<?php require_once "../lib/config.php"; require_once BASE_DIR."/lib/db/connection.php"; $p_id=$_GET['pid']; $f_year1=$_GET['fyear']; $f_year2 = $f_year1 + 1; $fin_date1= $f_year1.$fin_year_from; $fin_date2= $f_year2.$fin_year_to; @$_SESSION['sl_no'] = 0; $sql_budget="select * from custemaccount_cashentry where project_id ='$p_id' and credit>0 and date between '$fin_date1' and '$fin_date2'"; //echo $sql_budget; ledgerreport::printledgerDetails($sql_budget); class ledgerreport { //7 public function printledgerDetails($sql1) {//10 $sql=mysql_query($sql1); if(mysql_affected_rows()>0) {//14 //echo "By Account:$byaccount"; //echo "To Account: $a_name"; ?></div> <style type="text/css"> <!-- .style1 {color: #FF0000} --> </style> <table width="1055" height="76" border="1" align="center" id="ledgertable"> <tr> <th width="24" height="42"> S No </th> <th width="92">Date </th> <th width="150">Group Name</th> <th width="150">Account Name</th> <th width="100">Ammount</th> <th width="152">Description </th> <th width="100">Reference </th> <th width="50">Reference id</th> </tr> <tr><?php $i=0;$credit=0; while($row=mysql_fetch_array($sql)) {//32 ?> <td><div align="center"> <?php @$_SESSION['sl_no']=@$_SESSION['sl_no']+1; echo @$_SESSION['sl_no']; ?> </div></td> <td><div align="center"> <?php $datedb=$row['date']; echo $datedb; ?> </div></td> <td><div align="center"> <?php echo $row['groupname']; ?> </div></td> <td><div align="center"> <?php echo $row['accountname']; ?> </div></td> <td><div align="center"> <?php $credit_db=$row['credit']; echo $credit_db; $credit=$credit+$credit_db; ?> </div></td> <td><div align="center"> <?php echo $row['description']; ?> </div></td> <td><div align="center"> <?php echo "Custom Account"; ?> </div></td> <td><div align="center"> <?php echo $row['custem_id']; ?> </div></td> <!-- <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 } //14 ?> </table> <table width="803" align="center"> <tr> <td width="122"><div align="left"><strong>Grand total</strong></div></td> <td width="308"> </td> <td width="357"><div align="center" class="style1"> <div align="left"><strong><?php echo $credit;?></strong></div> </div></td> </tr> </table> <blockquote> <p> </p> </blockquote> <?php }//10 } //7 ?>