当前位置: 首页>>代码示例>>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;未经允许,请勿转载。