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
/
post
/
..
/
mail
/
..
/
nbproject
/
..
/
admin
/
payout.php
/
/
<?php $title = "Payout Report"; include 'header.php'; ?> <div class="container-fluid"> <div class="row"> <div class="col-sm-12"> <div class="page-title-box"> <h4 class="page-title">Payout</h4> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index.php">Home</a></li> <li class="breadcrumb-item"><a href="#">Income</a></li> <li class="breadcrumb-item active">Payout</li> </ol> <!-- <div class="state-information d-none d-sm-block"> <div class="state-graph"> <div id="header-chart-1"></div> <div class="info">Balance $ 2,317</div> </div> <div class="state-graph"> <div id="header-chart-2"></div> <div class="info">Item Sold 1230</div> </div> </div>--> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="card m-b-20"> <div class="card-body"> <form class="form-inline" id="search-form" action=""> <div class="form-group " > <label class="form-control" for="login_id"> UserId: </label> <input type="text" class="form-control" id="login_id" placeholder="Enter login id" name="login_id"> </div> <div class="form-group " > <label class="form-control " > From Date: </label> <input type="text" class="form-control datepicker" placeholder="From date" name="from_date" autocomplete="off"> </div> <div class="form-group"> <label class="form-control "> To date: </label> <input type="text" class="form-control datepicker" placeholder="To date" name="to_date" autocomplete="off" > </div><br> <!-- <label class="form-control" for="hold_payment"> : </label>--> <select name="hold_payment" id="income_type" class="form-control"> <option value="">All Payment User</option> <option value="0">Active Payment</option> <option value="1">Hold Payment</option> </select> <!-- <label class="form-control" for="status"> </label>--> <select name="status" id="income_type" class="form-control"> <option value="">All Status User</option> <option value="0">Active User</option> <option value="1">Blocked User</option> </select> <button type="submit" class="btn btn-primary" id="submit">Search</button><br><br><br> </form> <table class="table mb-0" id="datatable-ajax-page"> <thead> <tr> <th>S. No.</th> <th><input type="checkbox" onchange="checkUncheckAllPayout(this)"/></th> <th>User</th> <th>Amount</th> <th>TDS (<?php echo $master_tds_rate; ?>%)</th> <th>Service Charge (<?php echo $master_service_rate; ?>%)</th> <th>Net Amount</th> <th>Action</th> </tr> </thead> <tbody> </tbody> </table> <?php //echo $pager->renderFullNav(); ?> </div> </div> </div> <!-- end col --> </div> <!--table content ends here--> </div> <!-- end row --> <script type="text/javascript"> //$(function() { // $( ".dialog" ).dialog({ autoOpen: false, minWidth: 550 }); //}); var start; $(document).ready(function () { var table = $('#datatable-ajax-page').DataTable({ "ajax": { "url": "./report/payout_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"}, {"data": "uid", "render": function (data, type, full, meta) { return '<input type="checkbox" onchange="checkUncheckAllPayout(this)">'; } }, {"data": "name", "render": function (data, type, full, meta) { return full.name + ' (' + full.login_id + ')'; }}, /* { "data": "parentRoleId" }, */ {"data": "wallet"}, {"data": "tds"}, {"data": "service"}, {"data": "net_amount"}, {"data": "uid", "render": function (data, type, full, meta) { return '<span id="rowPaymentTD-' + full.sno + '"><input type="text" name="description" id="description-' + full.sno + '" placeholder="Enter Transaction details" /> <button onclick="processStatus(' + full.uid + ', \'' + full.login_id + '\', \'' + full.sno + '\');">' + 'Make Payment' + '</button></span>'; } }, ], } ); $("#search-form").submit(function (e) { table.ajax.reload(); e.preventDefault(); // avoid to execute the actual submit of the form. }); table.on('xhr', function () { start = table.ajax.json().start; }); }); function processStatus(uid, login_id, rowCounter) { // $( "#"+domId).dialog( "open" ); if ($("#description-" + rowCounter).val() == '') { alert("Please enter transaction details!"); return; } var r = confirm("Do you want make payment of user ID " + login_id); if (r) { $.post("process_payout.php", {uid: uid, description: $("#description-" + rowCounter).val()}, function (data) { var htmlMessage = data.status ? '<span style="color:green">DONE</span>' : '<span style="color:red">ERROR</span>'; $("#rowPaymentTD-" + rowCounter).html(htmlMessage); }, 'json'); } } function checkUncheckAllPayout(thisObj) { if ($(thisObj).is(':checked')) { $(".uid_checkbox").prop('checked', true); } else { $(".uid_checkbox").prop('checked', false); } } </script> <?php include 'footer.php'; ?>
/home2/wtmwscom/public_html/post/../mail/../nbproject/../admin/payout.php