recent list

This commit is contained in:
CHIEFSOFT\ameye
2023-09-03 08:12:18 -04:00
parent ad6e54e652
commit 5fa1f5fafd
+22
View File
@@ -105,6 +105,28 @@ class ResultFormatter extends Model
// id AS coupon_id, ca.code, ca.amount, ca.added::date,ca.status
switch ($in["action"]) {
case WRENCHBOARD_ACCOUNT_RECENTS:
$total = $out["total_record"];
$res = array(
"status" => $out["status"],
"total_record" => ($total),
"internal_return" => $out["internal_return"],
"result_list" => array(),
);
for ($i = 0; $i < $total; $i++) {
$key = sprintf("%05d", $i);
$banner_img = ( $out["banner_${key}"] !="" ) ? $out["banner_${key}"] : 'default.jpg';
$res["result_list"][] = array(
"uid" => $out["uid_${key}"],
"description" => $out["description_${key}"],
"title" => $out["title_${key}"],
"added" => $out["added_${key}"],
"status" => $out["status_${key}"],
"banner" => $banner_img,
);
}
break;
case WRENCHBOARD_MYFILES_LIST:
$total = $out["total_record"];
$res = array(