total_record
This commit is contained in:
@@ -121,14 +121,14 @@ class ResultFormatter extends Model
|
|||||||
switch ($in["action"]) {
|
switch ($in["action"]) {
|
||||||
|
|
||||||
case WRENCHBOARD_PROMOADMIN_GETLIST:
|
case WRENCHBOARD_PROMOADMIN_GETLIST:
|
||||||
$total = $out["sum_total_record"];
|
$total = $out["total_record"];
|
||||||
$res = array(
|
$res = array(
|
||||||
"status" => $out["status"],
|
"status" => $out["status"],
|
||||||
"total_record" => $total,
|
"total_record" => $total,
|
||||||
"internal_return" => $out["internal_return"],
|
"internal_return" => $out["internal_return"],
|
||||||
"result_list" => array(),
|
"result_list" => array(),
|
||||||
);
|
);
|
||||||
for ($i = 0; $i <= $total; $i++) {
|
for ($i = 0; $i < $total; $i++) {
|
||||||
$key = sprintf("%05d", $i);
|
$key = sprintf("%05d", $i);
|
||||||
$res["result_list"][] = array(
|
$res["result_list"][] = array(
|
||||||
"firstname" => $out["firstname_${key}"],
|
"firstname" => $out["firstname_${key}"],
|
||||||
|
|||||||
Reference in New Issue
Block a user