Update loadMoreRecentTransactions.php
This commit is contained in:
parent
0ce31abf3d
commit
d19f674da0
@ -1,17 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Created by PhpStorm.
|
|
||||||
* User: Abhishek Kumar Sinha
|
|
||||||
* Date: 10/6/2017
|
|
||||||
* Time: 7:09 PM
|
|
||||||
*/
|
|
||||||
|
|
||||||
require_once '../includes/imp_files.php';
|
require_once '../includes/imp_files.php';
|
||||||
|
|
||||||
if(isset($_POST['req']) && $_POST['req'] == 'loadMoreRecentTransactions') {
|
if(isset($_POST['req']) && $_POST['req'] == 'loadMoreRecentTransactions') {
|
||||||
|
|
||||||
if (isset($UserClass, $OrderClass)) {
|
|
||||||
|
|
||||||
$std = new stdClass();
|
$std = new stdClass();
|
||||||
$std->msg = array();
|
$std->msg = array();
|
||||||
$std->error = true;
|
$std->error = true;
|
||||||
@ -21,7 +12,7 @@ if(isset($_POST['req']) && $_POST['req'] == 'loadMoreRecentTransactions') {
|
|||||||
$start = (int) $_POST['start'];
|
$start = (int) $_POST['start'];
|
||||||
$records = (int) $_POST['records_per_page'];
|
$records = (int) $_POST['records_per_page'];
|
||||||
|
|
||||||
$megs = $OrderClass->last_transaction_list($start, $records);
|
$megs = last_transaction_list($start, $records);
|
||||||
|
|
||||||
if (is_array($megs) && !empty($megs)) {
|
if (is_array($megs) && !empty($megs)) {
|
||||||
$std->trade_list = $megs;
|
$std->trade_list = $megs;
|
||||||
@ -29,5 +20,4 @@ if(isset($_POST['req']) && $_POST['req'] == 'loadMoreRecentTransactions') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo json_encode($std);
|
echo json_encode($std);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user