Job country added

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-03-18 22:35:39 -04:00
parent aa48339d76
commit 84dc7355e4
2 changed files with 11 additions and 2 deletions
+8 -1
View File
@@ -435,7 +435,7 @@ long WrenchReturnJobList(CVars in, CVars &out) {
res = pgsql_query("SELECT j.title,j.description,m.id AS job_id,m.expire,m.job_description,j.price, "
"m.offer_code,j.timeline_days, to_char(m.expire, 'Day Mon dd, yyyy HH:MI AM') AS expire2,"
"m.uid AS offer_uid,j.uid AS job_uid "
"m.uid AS offer_uid,j.uid AS job_uid,m.added AS offer_added,j.country AS job_country "
"FROM members_jobs_offer m "
"LEFT JOIN members_jobs j ON j.id=m.job_id "
"WHERE m.status = 1 AND m.client_id=0 "
@@ -481,6 +481,13 @@ long WrenchReturnJobList(CVars in, CVars &out) {
snprintf(vname, sizeof (vname), "job_uid_%05d", i);
out[vname] = rec["job_uid"];
snprintf(vname, sizeof (vname), "offer_added_%05d", i);
out[vname] = rec["offer_added"];
snprintf(vname, sizeof (vname), "job_country_%05d", i);
out[vname] = rec["job_country"];
}
}
ret = PHP_API_OK;
+3 -1
View File
@@ -169,7 +169,9 @@ function processOutJson($in, $out) {
"offer_code" => $out["offer_code_${key}"],
"whishlisted"=> false,
"thumbnil" => 'marketplace-product-1.jpg',
'isActive' => true
'isActive' => true,
'offer_added' => $out["offer_added_${key}"],
'job_country' => $out["job_country_${key}"],
);
}