diff --git a/www-api/public/svs/user/formarter.php b/www-api/public/svs/user/formarter.php index 379a123d..a7a78349 100755 --- a/www-api/public/svs/user/formarter.php +++ b/www-api/public/svs/user/formarter.php @@ -212,9 +212,48 @@ function processOutJson($in, $out) { } break; - - case WRENCHBOARD_START_JOBLIST: + case WRENCHBOARD_ACCOUNT_JOBLIST: + + + $total = $out["total_record"]; + $res = array( + "status" => $out["status"], + "total_record" => ($total - 1), + "internal_return" => $out["internal_return"], + "result_list" => array(), + "categories" => dummyCategory() + ); + for ($i = 0; $i < $total; $i++) { + $key = sprintf("%05d", $i); + $res["result_list"][] = array( + "title" => $out["title_${key}"], + "description" => $out["description_${key}"], + "id" => $out["id_${key}"], + "offer_uid" => $out["offer_uid_${key}"], + "job_uid" => $out["job_uid_${key}"], + "job_description" => cleanUpDescription($out["job_description_${key}"]), + "job_detail" => cleanUpDescription($out["job_detail_${key}"]), + "price" => $out["price_${key}"], + "timeline_days" => $out["timeline_days_${key}"], + "expire" => $out["expire_${key}"], + "sent" => $out["sent_${key}"], + "offer_code" => $out["offer_code_${key}"], + "whishlisted"=> false, + "thumbnil" => 'marketplace-product-1.jpg', + 'isActive' => true, + 'offer_added' => $out["offer_added_${key}"], + 'job_country' => $out["job_country_${key}"], + 'currency' => 'Naira', + 'currency_code' => 'NGN', + 'category' => dummyGetCategory() + ); + } + + break; + + case WRENCHBOARD_START_JOBLIST: + /* case WRENCHBOARD_ACCOUNT_JOBLIST: */ case WRENCHBOARD_ACCOUNT_PENDJOB: case WRENCHBOARD_JOB_OFFERS: