$sql = "UPDATE {$tb_prefix}trades SET display_order='1',display_expiration='" . ($time_stamp + 86400) . "' WHERE id=" . $item['id']; $result = $pdb->Execute($sql); $point->update("moderate", $the_memberid); flash("success"); } break; case "edit": if (!empty($company_id)) { $company->primaryKey = "member_id"; $company->newCheckStatus($companyinfo['status']); $company_info = $company->getInfoById($company_id); setvar("CompanyInfo", $company_info); } setvar("Forms", $form->getAttributes()); if (!empty($id)) { $trade_info = $trade->getInfoByCondition($id, " AND t.member_id=" . $the_memberid); if (empty($trade_info) || !$trade_info) { flash('data_not_exists'); } if (!empty($trade_info['formattribute_ids'])) { setvar("Forms", $form->getAttributes(explode(",", $trade_info['formattribute_ids']))); } $trade_info['expire_date'] = df($trade_info['expire_time']); //industry ids, 1 to n. if (!empty($trade_info['picture'])) { $trade_info['image'] = pb_get_attachmenturl($trade_info['picture'], "../"); } if (!empty($trade_info['country_id'])) { $trade_info['country'] = $countries[$trade_info['country_id']]['picture']; } if (isset($trade_info['OfferPrimImaccount'])) {