diff --git a/ajax/current_prices.php b/ajax/current_prices.php new file mode 100644 index 0000000..3b6fb66 --- /dev/null +++ b/ajax/current_prices.php @@ -0,0 +1,20 @@ +bc = array(); + $std->error = true; + if (isset($OrderClass)) { + + $wallet = $OrderClass->tx_data(null,$bc2,null); + + $std->bc = $wallet; + $std->error = false; + + } + echo json_encode($std); +} +return false; \ No newline at end of file diff --git a/ajax/myOrders.php b/ajax/myOrders.php new file mode 100644 index 0000000..5e19264 --- /dev/null +++ b/ajax/myOrders.php @@ -0,0 +1,78 @@ +UserOrdersList($user_id, 0, 10); + + if (is_array($myOrders) && !empty($myOrders)) { + + foreach($myOrders as $myOrder): + + switch ($myOrder->status) { + case '0': + $status = 'Cancelled'; + break; + case '1': + $status = 'Successful'; + break; + case '2': + $status = 'Pending'; + break; + case '3': + $status = 'Pending'; + break; + default: + $status = 'Pending'; + } + + if($myOrder->status == '1') { + $status = 'Successful'; + } else if ($myOrder->status == '2') { + $status = 'Pending'; + } else if ($myOrder->status == '3'){ + $status = 'Pending'; + } else if($myOrder->status == '0') { + $status = 'Cancelled'; + } + + if($myOrder->order_type == '1') { + $OrderType = 'Sell'; + } elseif($myOrder->order_type == '0') { + $OrderType = 'Buy'; + } + + $iter .= "