Update refresh_table.php
This commit is contained in:
parent
ff7282c0ec
commit
ebae79f7c7
@ -1,11 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Created by PhpStorm.
|
|
||||||
* User: Abhishek Sinha
|
|
||||||
* Date: 11/15/2016
|
|
||||||
* Time: 6:22 PM
|
|
||||||
*/
|
|
||||||
|
|
||||||
require_once '../includes/imp_files.php';
|
require_once '../includes/imp_files.php';
|
||||||
|
|
||||||
if (isset($_POST['task']) && trim($_POST['task'])=='refresh') {
|
if (isset($_POST['task']) && trim($_POST['task'])=='refresh') {
|
||||||
@ -16,17 +9,17 @@ if (isset($_POST['task']) && trim($_POST['task'])=='refresh') {
|
|||||||
$std->message = array();
|
$std->message = array();
|
||||||
$std->error = true;
|
$std->error = true;
|
||||||
|
|
||||||
if (isset($OrderClass, $UserClass)) {
|
|
||||||
|
|
||||||
$buy_list = $OrderClass->get_top_buy_sell_list(TOP_BUYS_TABLE, $asc_desc='DESC'); // buy
|
$buy_list = get_top_buy_sell_list(TOP_BUYS_TABLE, $asc_desc='DESC'); // buy
|
||||||
$sell_list = $OrderClass->get_top_buy_sell_list(TOP_SELL_TABLE, $asc_desc='ASC'); // sell
|
$sell_list = get_top_buy_sell_list(TOP_SELL_TABLE, $asc_desc='ASC'); // sell
|
||||||
|
|
||||||
$std->buys = $buy_list;
|
$std->buys = $buy_list;
|
||||||
$std->sells = $sell_list;
|
$std->sells = $sell_list;
|
||||||
$std->error = false;
|
$std->error = false;
|
||||||
}
|
|
||||||
echo json_encode($std);
|
echo json_encode($std);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user