當前位置: 首頁>>代碼示例>>PHP>>正文


PHP city::getCityIdByCountry方法代碼示例

本文整理匯總了PHP中city::getCityIdByCountry方法的典型用法代碼示例。如果您正苦於以下問題:PHP city::getCityIdByCountry方法的具體用法?PHP city::getCityIdByCountry怎麽用?PHP city::getCityIdByCountry使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在city的用法示例。


在下文中一共展示了city::getCityIdByCountry方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: preg_replace

     $keywords = $_POST['pf_keywords'];
     if ($keywords) {
         $keywords = preg_replace('/\\s+/si', ' ', $keywords);
     }
     $prj_filter = new projects_filters();
     $f_category = isset($_POST['pf_categofy']) ? $_POST['pf_categofy'] : '';
     if ((int) $_POST['comboe_column_id'] === 1 && $_POST['comboe_db_id'] > 0) {
         $f_category[1][$_POST['comboe_db_id']] = 1;
     }
     if ((int) $_POST['comboe_column_id'] === 0 && $_POST['comboe_db_id'] > 0) {
         $f_category[0][$_POST['comboe_db_id']] = 1;
     }
     // Временное решение
     list($f_country, $f_city) = split(": ", $_POST['location']);
     $_POST['pf_country'] = country::getCountryId($f_country);
     $_POST['pf_city'] = city::getCityIdByCountry($f_city, (int) $_POST['pf_country']);
     if ((int) $_POST['pf_cost_from'] == 0) {
         $_POST['pf_wo_budjet'] = 1;
         ##0028132
     }
     $prj_filter->Save(get_uid(), $_POST['pf_cost_from'], $_POST['pf_cost_to'], $_POST['pf_currency'], isset($_POST['pf_wo_budjet']), $f_category, $_POST['pf_country'], $_POST['pf_city'], $_POST['pf_keywords'], isset($_POST['pf_my_specs']), $rerror, $error, 0, $filter_page, $kind == 1 || $kind == 2, $_POST['pf_only_sbr'], $_POST['pf_pro_only'], $_POST['pf_verify_only'], $_POST['pf_less_offers'], $_POST['pf_end_days_from'], $_POST['pf_end_days_to'], false, 4, $_POST['pf_urgent_only'], $_POST['pf_block_only'], isset($_POST['hide_exec']));
     $location = '/projects/' . ($kind != 5 ? '?kind=' . $kind : '');
     break;
     // Деактивация фильтра проектов
 // Деактивация фильтра проектов
 case "deletefilter":
     if ($PDA) {
         $prj_filter = new projects_filters_pda();
         $prj_filter->UpdateActiveFilter(get_uid(), false);
     } else {
         $prj_filter = new projects_filters();
開發者ID:Nikitian,項目名稱:fl-ru-damp,代碼行數:31,代碼來源:index.php


注:本文中的city::getCityIdByCountry方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。