本文整理汇总了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']);
}
}
示例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']);
}
示例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';