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


PHP city::getCity方法代碼示例

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


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

示例1: getCitys

 public function getCitys()
 {
     $citys = city::getCity(Tools::getValue());
     foreach ($citys as $city) {
         $this->citys[] = array('id' => $city['id_egms_city'], 'name' => $city['cityname1']);
     }
 }
開發者ID:evgrishin,項目名稱:mh16014,代碼行數:7,代碼來源:AdminEGMSShopsController.php

示例2: getFieldsValues

 public function getFieldsValues()
 {
     $id_egms_city = Tools::getValue('id_egms_city');
     if ($id_egms_city != false) {
         $row = city::getCity($id_egms_city);
     }
     return array('id_egms_city' => $id_egms_city, 'cityname1' => $row[0]['cityname1'], 'cityname2' => $row[0]['cityname2'], 'cityname3' => $row[0]['cityname3'], 'psyname' => $row[0]['psyname'], 'alias' => $row[0]['alias']);
 }
開發者ID:evgrishin,項目名稱:mh16014,代碼行數:8,代碼來源:AdminEGMSCitysController.php

示例3: ceil

    }
    $pages = ceil($count_frl_catalog / $frl_pp);
    $cur_page_url = $GLOBALS['host'] . strtok($_SERVER["REQUEST_URI"], '?') . "?" . ($hhf_prm ? str_replace('&', '', $hhf_prm) . '&' : '') . ($order && $order != 'gnr' ? "order={$order}&" : "") . ($direction ? "dir={$direction}&" : "") . ($show_all_freelancers ? "show=all&" : "") . ($key_word ? 'word=' . str_replace('%', '%%', urlencode(stripslashes($key_word))) . '&' : '');
    //Cсылка для new_paginator()
    $sHref = "%s" . $cur_page_url . "page=%d%s";
    if ($page > 1) {
        $additional_header .= '<link rel="prev" href="' . $cur_page_url . 'page=' . ($page - 1) . '">';
    }
    if ($page < $pages) {
        $additional_header .= '<link rel="next" href="' . $cur_page_url . 'page=' . ($page + 1) . '">';
    }
    $content = "content.php";
}
//------------------------------------------------------------------------------
if ($f_city_id) {
    $city_info = city::getCity($f_city_id);
    $page_title = preg_replace("/%cityname%/", ' ' . $city_info['city_name'], $page_title);
    $page_title = preg_replace("/%prepositional_cityname%/", $city_info['prepositional_city_name'] ? ' в ' . $city_info['prepositional_city_name'] : ' ' . $city_info['city_name'], $page_title);
} else {
    $page_title = preg_replace("/%cityname%/", '', $page_title);
    $page_title = preg_replace("/%prepositional_cityname%/", '', $page_title);
}
//------------------------------------------------------------------------------
//require_once("metadata.inc.php");
//if ($page < 20) $buffer_on = true;
/*
$additional_header = '<script type="text/javascript" src="/scripts/kwords.js"></script>' .
                     '<script type="text/javascript" src="/kword_js.php"></script>';	
*/
//------------------------------------------------------------------------------
require_once ABS_PATH . '/freelancers/widgets/FreelancersTServicesWidget.php';
開發者ID:Nikitian,項目名稱:fl-ru-damp,代碼行數:31,代碼來源:index.php


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