public function getCitys()
 {
     $citys = city::getCity(Tools::getValue());
     foreach ($citys as $city) {
         $this->citys[] = array('id' => $city['id_egms_city'], 'name' => $city['cityname1']);
     }
 }
 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']);
 }
Beispiel #3
0
    }
    $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';