/* 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')")
);