/* Decoded by unphp.net */ require_once '../api/config.php'; $table = 'topup_tb'; $primaryKey = 't_id'; $columns = array( array('db'=>'t_id','dt'=>0, 'formatter'=>function($d,$row) { return "".$d.""; } ), array('db'=>'t_txid','dt'=>1, 'formatter'=>function($d,$row) { return "".$d.""; } ), array('db'=>'t_amount','dt'=>2, 'formatter'=>function($d,$row) { return "".$d.""; } ), array('db'=>'t_username','dt'=>3, 'formatter'=>function($d,$row) { return "".$d.""; } ), array('db'=>'t_status','dt'=>4, 'formatter'=>function($d,$row) { if($d == "0") { return " รอทำรายการ"; } else if($d == "1") { return "สำเร็จ"; } else if($d == "3") { return " จองคิว"; } else if($d == "2") { return "ยกเลิก"; } } ), array('db'=>'t_admin','dt'=>5, 'formatter'=>function($d,$row) { return "".$d.""; } ), array('db'=>'t_remark','dt'=>6) ); $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 t_id desc","t_type = 'promptpay' AND (t_status = '1' OR t_status = '2')") );