本文整理汇总了PHP中country::getCountryName方法的典型用法代码示例。如果您正苦于以下问题:PHP country::getCountryName方法的具体用法?PHP country::getCountryName怎么用?PHP country::getCountryName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类country
的用法示例。
在下文中一共展示了country::getCountryName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setPaymentMethod
//.........这里部分代码省略.........
$this->bank = bank_payments::GetBank($bp->bank_code);
break;
case 'bank_print':
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/reqv.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/reqv_ordered.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/city.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/country.php';
if ($_GET['order'] > 0) {
$this->payment_template = 'bank/tpl.bank_jur_transfer.php';
$this->tid = intval($_GET['order']);
} else {
$this->payment_template = 'bank/tpl.bank_jur_print.php';
}
$this->type_menu_block = 'bank';
$this->payment_type = exrates::BANK;
$this->bank_sum = $_SESSION['sum_bank_print'];
$this->bank_id = $_SESSION['id_bank_print'];
unset($_SESSION['sum_bank_print'], $_SESSION['id_bank_print']);
break;
case 'bank':
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/reqv.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/reqv_ordered.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/city.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/country.php';
$this->payment_template = 'bank/tpl.bank_jur.php';
$this->type_menu_block = 'bank';
$this->payment_type = exrates::BANK;
$this->pm = new reqv();
$reqvByUid = $this->pm->GetByUid($this->user['uid']);
$reqvs_ord = new reqv_ordered();
$this->pm->billNum = sizeof($reqvs_ord->GetByUid($this->user['uid']));
$this->pm->BindRequest($reqvByUid[0]);
if (isset($_POST['action']) && $_POST['action'] == 'payment') {
$_POST['country'] = country::getCountryName($_POST['country_db_id']);
$_POST['city'] = city::getCityName($_POST['city_db_id']);
$this->pm->BindRequest($_POST);
$this->error = $this->pm->CheckInput();
if ($_POST['sum'] < 10) {
$this->error['sum'] = 'Минимальная сумма платежа 10 рублей';
}
if (!$this->error) {
$this->pm->user_id = $this->user['uid'];
if ($reqvByUid[0]['id'] > 0) {
$id = $reqvByUid[0]['id'];
$this->pm->Update($id, " AND user_id= {$this->user['uid']}");
} else {
$id = $this->pm->Add($err, true);
}
$prepare = $this->preparePayments($this->getTotalAmmountOrders());
if ($prepare) {
$_SESSION['id_bank_print'] = $id;
$_SESSION['sum_bank_print'] = intval($_POST['sum']);
header('Location: /bill/payment/print/?type=bank_print');
exit;
}
}
}
break;
case 'alphabank':
$this->payment_template = 'bank/tpl.alphabank.php';
$this->type_menu_block = 'bank';
$this->payment_type = exrates::BANK;
if (isset($_POST['action']) && $_POST['action'] == 'reserve') {
header('Location: /bill/');
exit;
}
示例2: getCountryTitle
/**
* Возвращает название текущей страны.
*
* @return mixed
*/
public function getCountryTitle()
{
if (is_null($this->_country)) {
$this->_country = '';
if ($this->filter->country) {
$countryModel = new country();
$this->_country = $countryModel->getCountryName($this->filter->country) . ': Все города';
}
}
return $this->_country;
}
示例3: elseif
return 0;
}
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/country.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/city.php";
$has_hidd = TRUE;
$filter_categories = professions::GetAllGroupsLite(TRUE);
//$filter_countries = country::GetCountries();
//if ($filter['country']) {$filter_cities = city::GetCities($filter['country']);}
if ($filter['city']) {
$location_selector = "drop_down_default_{$filter['city']} multi_drop_down_default_column_1";
$location_value = city::GetCountryName($filter['city']) . ": " . city::getCityName($filter['city']);
} elseif ($filter['country']) {
$location_selector = "drop_down_default_{$filter['country']} multi_drop_down_default_column_0";
$location_value = country::getCountryName($filter['country']) . ": Все города";
}
if (!$_SESSION['ph'] && !$_SESSION['top_payed']) {
$has_hidd = false;
// скрываем блок если нечего скрывать
}
if (!$filter) {
$filter = array('user_id' => $uid, 'cost_from' => '', 'cost_to' => '', 'currency' => 2, 'wo_cost' => 't', 'country' => 0, 'city' => 0, 'keywords' => '', 'categories' => array());
}
if ($filter_params && is_array($filter_params)) {
$filter_inputs = '';
$filter_query = '';
foreach ($filter_params as $pn => $pv) {
$filter_inputs .= '<input type="hidden" name="' . $pn . '" value="' . $pv . '" />';
$filter_query .= "&{$pn}={$pv}";
}