uawdijnntqw1x1x1
IP : 216.73.216.26
Hostname : server.wtmmart.in
Kernel : Linux server.wtmmart.in 4.18.0-553.45.1.el8_10.x86_64 #1 SMP Wed Mar 19 09:44:46 EDT 2025 x86_64
Disable Function : exec,passthru,shell_exec,system
OS : Linux
PATH:
/
home2
/
wtmwscom
/
public_html
/
doc
/
..
/
.
/
member
/
report_paid_income.php
/
/
<?php $title= "Paid Income Report"; include 'header.php'; include_once('lib/ps_pagination.php'); $uid = $_SESSION['userid']; $total = 0; ?> <h1>Ledger Income Report</h1> <?php echo getMessage();?> <section> <table style="width: 100%;"> <thead> <tr> <th>S. No.</th> <th>Date</th> <th>Amount</th> <th>Income Type</th> <th>Status</th> </tr> </thead> <?php $query = "SELECT uid, amount, income_type, datetime, status, closing_date FROM income WHERE closing_date = (SELECT max(closing_date) FROM income) AND `uid`='".$uid."' AND status=1 ORDER BY `closing_date` DESC "; $pager = new PS_Pagination($link, $query, 100, 5 ); $pager->setDebug(true); $result = $pager->paginate(); if($result){ ?> <tbody> <?php if(!isset($_GET['page'])){ $i=1; }else{ $i=(($_GET['page']-1)*100)+1; } while ($row = mysqli_fetch_object($result)){ $total = $total+$row->amount; ?> <tr <?php if($i%2){echo "class='light'";}else{echo "class='dark'";}?>> <td><?php echo $i;?></td> <td><?php echo date("d M, Y", strtotime($row->closing_date));?></td> <td><?php echo $row->amount;?></td> <td><?php echo $master_income_type_array[$row->income_type];?></td> <td><?php echo $row->status==1? "Closed":"Not closed";?></td> </tr> <?php $i++;}?> </tbody> <thead> <tr> <th colspan="2" style="text-align: right;">Total Amount:</th> <th colspan="3" style="text-align: left;"><?php echo $total?></th> </tr> </thead> <?php }?> </table> <?php echo $pager->renderFullNav();?> </section> <?php include 'footer.php';?>
/home2/wtmwscom/public_html/doc/.././member/report_paid_income.php