total rec
This commit is contained in:
@@ -59,8 +59,43 @@ return 0;
|
||||
// also used from accounts
|
||||
long WrenchHomeBanners(CVars in, CVars &out) {
|
||||
out["status"] = "long WrenchHomeBanners(CVars in, CVars &out)";
|
||||
WrenchReturnJobOffersList(in, out);
|
||||
return 111;
|
||||
CVars offV;
|
||||
|
||||
WrenchReturnJobOffersList(in, offV);
|
||||
long total_offers = offV["total_record"].Long();
|
||||
if( total_offers > 0){
|
||||
|
||||
for (int i = 0, n = total_offers; i < n; i++) {
|
||||
|
||||
snprintf(vname, sizeof (vname), "title_%05d", i);
|
||||
out[vname] = offV[vname];
|
||||
|
||||
snprintf(vname, sizeof (vname), "card_style_%05d", i);
|
||||
out[vname] = offV[vname];
|
||||
|
||||
snprintf(vname, sizeof (vname), "description_%05d", i);
|
||||
out[vname] = offV[vname];
|
||||
|
||||
snprintf(vname, sizeof (vname), "card_type_%05d", i);
|
||||
out[vname] = "OFFERS";
|
||||
|
||||
snprintf(vname, sizeof (vname), "offer_id_%05d", i);
|
||||
out[vname] = offV[vname];
|
||||
|
||||
snprintf(vname, sizeof (vname), "blog_id_%05d", i);
|
||||
out[vname] = "0";
|
||||
|
||||
snprintf(vname, sizeof (vname), "card_icon_%05d", i);
|
||||
out[vname] = "icon1";
|
||||
|
||||
snprintf(vname, sizeof (vname), "contract_%05d", i);
|
||||
out[vname] = offV[vname];;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
out["total_record"] = total_offers;
|
||||
return 0;
|
||||
}
|
||||
|
||||
long sendOffersRecommendation( CVars in, CVars &out){
|
||||
|
||||
Reference in New Issue
Block a user