/* Decoded by unphp.net */ require_once '../api/config.php'; $table = 'buy_tb'; $primaryKey = 'b_id'; $columns = array( array('db'=>'b_id','dt'=>0, 'formatter'=>function($d,$row) { return "".$d.""; } ), array('db'=>'pdi_name','dt'=>1, 'formatter'=>function($d,$row) { return "".$d.""; } ), array('db'=>'b_qty','dt'=>2, 'formatter'=>function($d,$row) { return "".number_format($d,0,"","").""; } ), array('db'=>'b_total','dt'=>3, 'formatter'=>function($d,$row) { return "".number_format($d,2,".",",").""; } ), array('db'=>'b_hidden_text','dt'=>4, 'formatter'=>function($d,$row) { return "".$d.""; } ), array('db'=>'u_username','dt'=>5, 'formatter'=>function($d,$row) { return "".$d.""; } ), array('db'=>'pdc_name','dt'=>6, 'formatter'=>function($d,$row) { return "".$d.""; } ), array('db'=>'pdm_name','dt'=>7, 'formatter'=>function($d,$row) { return "".$d.""; } ), array('db'=>'b_date_create','dt'=>8, 'formatter'=>function($d,$row) { return "".$d.""; } ), array('db'=>'b_time_create','dt'=>9, 'formatter'=>function($d,$row) { return "".$d.""; } ), array('db'=>'b_status','dt'=>10, 'formatter'=>function($d,$row) { if($d == "0") { return " รอทำรายการ"; } else if($d == "1") { return " สำเร็จ"; } else if($d == "2") { return " จองคิว"; } else if($d == "3") { return " ยกเลิก"; } } ) ); $sql_details = array( 'user'=>DB::$str_username, 'pass'=>DB::$str_password, 'db'=>DB::$str_database, 'host'=>DB::$str_hosting ); require( 'ssp.class.php'); echo json_encode( SSP::complex( $_GET,$sql_details,$table,$primaryKey,$columns,"order by b_id desc","b_type = 'gameonline' AND b_subtype = 'manual' AND b_date_create >= '".$_GET['startdate']."' AND b_date_create <= '".$_GET['enddate']."'") );