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
/
DOCS
/
..
/
admin
/
bank_receipt_report.php
/
/
<?php $title = "Bank Receipt Report"; include 'header.php'; $param = ''; $param .= isset($_GET['login_id']) && $_GET['login_id'] != '' ? "&login_id=" . $_GET['login_id'] : ''; $param .= isset($_GET['from_date']) && $_GET['from_date'] != '' ? "&from_date=" . $_GET['from_date'] : ''; $param .= isset($_GET['to_date']) && $_GET['to_date'] != '' ? "&to_date=" . $_GET['to_date'] : ''; $query = "SELECT a.`id` AS id, a.`uid` AS uid, a.`amount` AS amount, a.`payment_type` AS payment_type, a.`file_name` AS file_name, a.`file_path` AS file_path, a.`remark` AS remark, a.`datetime` AS datetime, a.`status` AS status, " . "a.`payment_mode` AS payment_mode,a.`bank_name` AS bank_name, a.`bank_branch` AS bank_branch, a.`ifsc` AS ifsc,a.`mobile` AS mobile, a.`payment_datetime` AS payment_datetime, a.`transaction_number` AS transaction_number, " . "b.name as name, b.login_id as login_id FROM `bank_receipt` a INNER JOIN user b ON a.uid = b.uid WHERE a.uid !=0 "; $query .= isset($_GET['login_id']) && $_GET['login_id'] != '' ? " AND b.login_id = '" . $_GET['login_id'] . "'" : ''; $query .= isset($_GET['from_date']) && $_GET['from_date'] != '' && isset($_GET['to_date']) && $_GET['to_date'] != '' ? " AND (date(a.datetime) BETWEEN '" . $_GET['from_date'] . "' AND '" . $_GET['to_date'] . "')" : ''; $query != " ORDER BY a.`datetime`DESC"; ?> <div class="container-fluid" > <?php echo getMessage(); ?> <div class="row"> <div class="col-sm-12"> <div class="page-title-box"> <h4 class="page-title">Bank Receipt Report</h4> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index.php">Home</a></li> <li class="breadcrumb-item"><a href="#">Support</a></li> <li class="breadcrumb-item active">Bank Receipt Report</li> </ol> </div> </div> <div class="row"> <div> <div class="card m-b-20"> <div class="card-body"> <table class="table table-striped table-bordered mb-0 " id="datatable-ajax-page"> <thead> <tr> <th>S. No.</th> <th>Name</th> <th>Amount</th> <th>Payment for</th> <!--<th>Remark</th>--> <th>Date</th> <th>Receipt</th> <th>Payment Mode</th> <th>Bank Name</th> <!--<th>Bank Branch</th>--> <th>IFSC</th> <th>Mobile No</th> <th>Payment Date</th> <th>Transaction #</th> <th>Pin Package</th> <th>Status</th> </tr> </thead> <tbody> </tbody> <!-- <tr> <th colspan="3" style="text-align: right;">Total Amount:</th> <th colspan="3" style="text-align: left;">Rs. <?php echo $total ?></th> <th colspan="2" style="text-align: left;">Rs. <?php echo $net_total ?></th> </tr>--> </table> </div> </div> </div> <!-- end col --> </div> <!--table content ends here--> </div> </div> <script type="text/javascript"> var start; $(document).ready(function() { var table = $('#datatable-ajax-page').DataTable({ "ajax": { "url": "./report/bank_receipt_report_json.php", "type": "POST", dataType: 'json', data: function ( d ) { var formData = $("#search-form").serializeArray(); $.each(formData, function(i, field){ d[field.name] = field.value; }); }, }, "processing": true, "serverSide": true, "pageLength": 500, //"lengthMenu": [[100, 500, 1000, 2000, -1], [100, 500, 1000, 2000, "All"]], "lengthMenu": [[100, 500, 1000, 2000, 5000], [100, 500, 1000, 2000, 5000]], "dom": 'B<"top">rt<"bottom"lp><"clear">', buttons: [ 'excel', 'csv', 'pdf', 'print' ], "columns": [ { "data": "sno" }, { "title": "User", "data": "name", "render": function ( data, type, full, meta ) { return full.name +' ('+full.login_id+')'; }}, /* { "data": "parentRoleId" }, */ { "data": "amount" }, { "data": "payment_type" }, { "data": "datetime" }, { "data": "i", "render": function ( data, type, full, meta ) { return '<a href="../static/backend/user-resource/uploads/bank_receipt/ '+full.file_name+'" target="_blank"><img src="../static/backend/user-resource/uploads/bank_receipt/'+full.file_name+'" width="100px" /></a>'; // return '<button onclick="processStatus('+full.recid+', \''+full.description+'\', \''+full.name+'\', \''+full.email+'\', \''+full.mobile+'\', \''+full.account_holder_name+'\', \''+full.bank_name+'\', \''+full.branch_name+'\', \''+full.account_number+'\', \''+full.ifsc+'\');" class="btn btn-primary">' + 'View Pay Details' + '</buton>'; } }, { "data": "payment_mode" }, { "data": "bank_name" }, { "data": "ifsc" }, { "data": "mobile" }, { "data": "payment_datetime" }, { "data": "transaction_number" }, { "data": "pin_package" }, { "data": "uid", "render": function ( data, type, full, meta ) { return '<button onclick="processStatus('+full.recid+', \''+full.description+'\', \''+full.name+'\', \''+full.email+'\', \''+full.mobile+'\', \''+full.account_holder_name+'\', \''+full.bank_name+'\', \''+full.branch_name+'\', \''+full.account_number+'\', \''+full.ifsc+'\');" class="btn btn-primary">' + 'View Pay Details' + '</buton>'; } }, ], } ); table.on( 'xhr', function () { start = table.ajax.json().start; } ); } ); function processFieldUpdate(id, login_id, field_name, field_value) { var r = confirm("Do you want to update status of this id " + login_id); if (r) { $.get("process_field_update.php", {table_name: 'bank_receipt', where_field_name: 'id', id: id, field_name: field_name, field_value: field_value}, function (data) { alert(data); location.reload(); }); } } </script> <?php include 'footer.php'; ?>
/home2/wtmwscom/public_html/DOCS/../admin/bank_receipt_report.php