| Current Path : /home2/wtmwscom/public_html/member/ |
| Current File : /home2/wtmwscom/public_html/member/report_receiver.php |
<?php
$title = "Users Profile";
include 'header.php';
?>
<!---new table--->
<div class="container-fluid scrollmenu" >
<div class="row">
<div class="col-sm-12">
<div class="page-title-box">
<h4 class="page-title">Users Profile</h4>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item"><a href="#">Users</a></li>
<li class="breadcrumb-item active">Users Profile</li>
</ol>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-15">
<div class="card m-b-20 scrolling-wrapper">
<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> -->
<button type="submit" class="btn btn-primary" id="submit">Search</button><br><br><br>
</form>
<table class="table mb-0 table-bordered table-striped" id="datatable-ajax-page">
<thead>
<tr>
<th>S. No.</th>
<!--<th>Help Id</th>-->
<th>Sender</th>
<th>Receiver</th>
<th>Amount</th>
<th>Date</th>
<th>Status</th>
<th>Extend</th>
<!--<th>Lock Status</th>>-->
</tr>
</thead>
<tbody>
</tbody>
</table>
<?php //echo $pager->renderFullNav(); ?>
</div>
</div>
</div> <!-- end col -->
</div>
<!--table content ends here-->
</div>
<script type="text/javascript">
var start;
$(document).ready(function () {
var table = $('#datatable-ajax-page').DataTable({
"ajax": {
"url": "./report/report_receiver_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": "help_id"},
/* { "data": "parentRoleId" }, */
{"data": "user_name"},
{"data": "user_name1"},
{"data": "amount"},
{"data": "datetime"},
// {"data": "type"},
{"data": "confirm_status",
"render": function (data, type, full, meta) {
var html = '';
// console.log('(full.confirm_status' + full);
if(full.confirm_status == 0 ){
html = 'Unconfirm';
}else{
html = 'Confirm';
}
return html;
}},
{"data": "lock_status",
"render": function (data, type, full, meta) {
var html = '';
// console.log('(full.confirm_status' + full);
if(full.confirm_status == 0 && full.lock_status == 0){
html = '<a href="extend_time.php?help_id=' + full.help_id + '" title="Click To Extend Time" target="_blank"> Extend </a>';
}
return html;
}},
// {"data": "name",
// "render": function (data, type, full, meta) {
// return '<a href="user_login_process.php?uid=' + full.uid + '" title="Login this user" target="_blank">' + full.name + '</a>';
// }},
// {"data": "total_income"},
// {"data": "total_binary"},
// {"data": "uid",
// "render": function (data, type, full, meta) {
// var btnHTML = '<button onclick="processBlock(' + full.uid + ',\'' + full.login_id + '\',' + full.status + ');" class="btn btn-primary">' + (full.status == 0 ? 'Block' : 'UnBlock') + '</button>'
// + '<button onclick="processFieldUpdate(' + full.uid + ', \'' + full.login_id + '\' , \'hold_payment\' ,' + (full.hold_payment == 0 ? 1 : 0) + ');" class="btn btn-primary">' + (full.hold_payment == 0 ? 'Hold Payment' : 'Unhold Payment') + '</button>'
// + '<button onclick="processFieldUpdate(' + full.uid + ', \'' + full.login_id + '\' , \'block_task\' ,' + (full.block_task == 0 ? 1 : 0) + ');" class="btn btn-primary">' + (full.block_task == 0 ? 'Block Growth' : 'Un-Block Growth') + '</button>';
//
// return btnHTML;
// }
// },
],
}
);
$("#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 searchform(){
// table.ajax.reload();
// }
</script>
<?php include 'footer.php'; ?>