media_uid
This commit is contained in:
@@ -77,7 +77,7 @@ long WrenchJobManagerOffers( CVars in, CVars &out){
|
|||||||
out["total_record"] = pgsql_num_rows(res);
|
out["total_record"] = pgsql_num_rows(res);
|
||||||
|
|
||||||
res = pgsql_query(" SELECT j.id AS job_id,jo.expire,jo.public_view, j.*,jo.uid AS offer_uid,jo.offer_code AS offer_code, j.uid AS job_uid,"
|
res = pgsql_query(" SELECT j.id AS job_id,jo.expire,jo.public_view, j.*,jo.uid AS offer_uid,jo.offer_code AS offer_code, j.uid AS job_uid,"
|
||||||
" (CASE WHEN jo.public_view > 0 THEN 'public' ELSE jo.email END) AS job_to, j.job_type AS job_type, "
|
" (CASE WHEN jo.public_view > 0 THEN 'public' ELSE jo.email END) AS job_to, j.job_type AS job_type, j.media_uid AS media_uid, "
|
||||||
" c.code AS currency_code, c.description AS currency_description,j.country,mf.uid AS family_uid, j.banner AS banner "
|
" c.code AS currency_code, c.description AS currency_description,j.country,mf.uid AS family_uid, j.banner AS banner "
|
||||||
" FROM members_jobs_offer jo "
|
" FROM members_jobs_offer jo "
|
||||||
" LEFT JOIN members_jobs j ON j.id = jo.job_id "
|
" LEFT JOIN members_jobs j ON j.id = jo.job_id "
|
||||||
@@ -155,6 +155,9 @@ long WrenchJobManagerOffers( CVars in, CVars &out){
|
|||||||
snprintf(vname, sizeof (vname), "job_type_%05d", i);
|
snprintf(vname, sizeof (vname), "job_type_%05d", i);
|
||||||
out[vname] = rec["job_type"];
|
out[vname] = rec["job_type"];
|
||||||
|
|
||||||
|
snprintf(vname, sizeof (vname), "media_uid_%05d", i);
|
||||||
|
out[vname] = rec["media_uid"];
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ret = PHP_API_OK;
|
ret = PHP_API_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user