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
/
www
/
admin
/
report
/
report_withdraw_json.php
/
/
<?php session_start(); include "../../connection.php"; include '../../function_lib.php'; $data = array(); $query_select = " t1.recid AS recid, t1.uid AS uid, t1.amount AS amount, t1.tds AS tds, t1.service_tax AS service_tax, t1.service AS service, t1.net_amount AS net_amount, t1.datetime AS datetime, t1.status AS status, t1.description AS description, " . " t2.login_id as login_id, t2.name as name, t2.email as email, t2.mobile as mobile, t2.account_holder_name as account_holder_name, t2.bank_name as bank_name, t2.branch_name as branch_name, t2.account_number as account_number, t2.ifsc as ifsc"; $query = " FROM `withdraw` t1 INNER JOIN user t2 ON t1.uid = t2.uid WHERE t1.uid != 0 "; //$query .=!empty($_REQUEST['income_type']) ? " AND i.income_type='" . $_REQUEST['income_type'] . "'" : ''; $query .=!empty($_REQUEST['from_date']) && !empty($_REQUEST['to_date']) ? " AND (t1.datetime BETWEEN '" . $_REQUEST['from_date'] . "' AND '" . $_REQUEST['to_date'] . "') " : ''; $query .= !empty($_REQUEST['hold_payment']) ? " AND t2.hold_payment='" . $_REQUEST['hold_payment'] . "'" : ''; $query .= !empty($_REQUEST['status']) ? " AND t2.status='" . $_REQUEST['status'] . "'" : ''; $query .=!empty($_REQUEST['login_id']) ? " AND t2.login_id='" . $_REQUEST['login_id'] . "'" : ''; $query .= " ORDER BY t1.`datetime` DESC"; $totalRecordCount = mysqli_fetch_object(mysqli_query($connection, "SELECT COUNT(t1.uid) as count " . $query))->count; $query_limit = $_REQUEST['length'] == -1 ? '' : " LIMIT " . $_REQUEST['start'] . ", " . $_REQUEST['length']; $query_final = "SELECT " . $query_select . $query . $query_limit; //echo $query_final; $result = mysqli_query($connection, $query_final); $sno = $_REQUEST['start'] + 1; while ($row = mysqli_fetch_assoc($result)) { $row['sno'] = $sno; // $row['income_type'] = $master_income_type_array[$row['income_type']]; $row['datetime'] = date("d/m/Y", strtotime($row['datetime'])); // $row['payment_status'] = $row['payment_status'] == 1 ? "Paid" : "Unpaid"; // $row['payment_date'] = !empty($row['payment_date']) ? date("d/m/Y h:i A", strtotime($row['payment_date'])) : ''; // $row['status'] = $row['status'] == 1 ? "Closed" : "Unclosed"; // $row['closing_date'] = !empty($row['closing_date']) ? date("d/m/Y h:i A", strtotime($row['closing_date'])) : ''; $data[] = $row; $sno++; } $json_array = array('data' => $data, 'recordsFiltered' => $totalRecordCount, 'recordsTotal' => $totalRecordCount); echo json_encode($json_array); ?>
/home2/wtmwscom/www/admin/report/report_withdraw_json.php