本文整理匯總了PHP中Translate::currency方法的典型用法代碼示例。如果您正苦於以下問題:PHP Translate::currency方法的具體用法?PHP Translate::currency怎麽用?PHP Translate::currency使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Translate
的用法示例。
在下文中一共展示了Translate::currency方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: index
public function index()
{
//$profiler = new Profiler;
if (isset($_GET['emailtest'])) {
$this->emailtest();
die;
}
if (isset($_GET['database'])) {
$this->alterDatabase();
}
if (isset($_GET['cronjob'])) {
$this->cronjob();
die;
}
@session_start();
// $lan = (@$_GET['l']<>'en') ? "es" : 'en';
if (@$_GET['l'] != '') {
$_SESSION['lan'] = @$_GET['l'] != 'en' ? array("es_ES", 'España') : array("en_US", 'USA');
}
if (@$_SESSION['lan'] != "") {
Kohana::config_set("locale.language", $_SESSION['lan']);
}
$lang = new Translate();
$lang->currency();
$defaultobj = "category";
$defaultact = "index";
$module = $this->uri->segment("index") != '' ? $this->uri->segment("index") : $defaultobj;
$action = $this->uri->segment($module) != '' ? $this->uri->segment($module) : $defaultact;
$module = ucfirst($lang->word->{$module});
$lib = new $module();
$action = @$lang->word->{$action};
$this->template->widget = $lib->GetWidgets();
if (method_exists($lib, $action) === FALSE) {
$lib = new $module();
$lib->{$defaultact}();
} else {
$lib->{$action}();
}
$table_page = new fpp_page_Model();
$header = $table_page->db2cls(46);
$footer = $table_page->db2cls(47);
$meta_description = $table_page->db2cls(48);
$tr_content_page = Basic::TransVar("content_page");
$this->template->header = strip_tags($header->{$tr_content_page});
$this->template->footer = $footer->{$tr_content_page};
$this->template->meta_description = strip_tags($meta_description->{$tr_content_page});
//Executes Action's
$this->template->title = $this->uri->segment() == '' ? 'floreria Rosabel | florerias peru | floreria | enviar flores peru' : Kohana::config("core.title_page") . $lib->GetTitle();
$this->template->content = $lib->GetContent();
$this->template->keywords = $lib->GetKeywords() != '' ? $lib->GetKeywords() : 'enviar flores peru, florerías en lima, florerias en lima, envio de flores a peru,florerías,florerias lima, florerias en Lima,floreria lima, Florerias de Lima, Flores domicilio Lima, Florerias en San Isidro, envio de flores a lima, envio de flores en peru,floreria amor y amistad,flores dia de las madres,arreglos florales, floreria san borja peru, florerias en trujillo, florerias en arequipa, floreria los olivos, florerias unidas,envio de flores lima, delivery flores lima, envio flores, floreria san isidro, arreglos flores, rosas, orquideas, giraloes, tulipanes, delivery flowers, send flowers lima, roses, flower shop lima';
if (request::is_ajax()) {
$this->auto_render = FALSE;
echo $lib->GetContent();
}
}
示例2: endstep
function endstep()
{
$_GET['currency'] = 2;
$trans = new Translate();
$trans->currency();
$cart = new Cart();
$cart->refresh_prices_product();
$order = $_SESSION['conf']['order'];
$_SESSION['conf']['cart']['uniqueid'] = time();
$totalvalue = $_SESSION['conf']['cart']['subtotal_noformat'] + $_SESSION['conf']['order']['district_price'];
Basic::currency($totalvalue);
Basic::clearsimbol($totalvalue);
Basic::currency($order['district_price']);
Basic::clearsimbol($order['district_price']);
$_SESSION['conf']['cart']['product'][0] = array('name_product' => "envio a {$order['district_name']}", 'quantity' => '1', 'subtotal' => $order['district_price']);
// echo $totalvalue;
$view = View::factory("extras/pay_paypal")->set("direccion_entrega", $order['address'])->set("distrito_entrega", $order['district_name'])->set("zip_entrega", "")->set("idunico", $_SESSION['conf']['cart']['uniqueid'])->set("valorcarro", "{$totalvalue}")->set("products", $_SESSION['conf']['cart']['product'])->render();
// echo Kohana::debug($_SESSION);
return $view;
}
示例3: co_message
public function co_message()
{
$this->_NoTemplate();
if (isset($_SESSION['conf']['order']['payment_type']) && $_SESSION['conf']['order']['payment_type'] == 'Pay_2co') {
if (isset($_SESSION['previous_currency'])) {
$_GET['currency'] = $_SESSION['previous_currency'];
$trans = new Translate();
$trans->currency();
unset($_SESSION['previous_currency']);
$cart = new Cart();
$cart->refresh_prices_product();
}
$this->saveAndSendOrder(true);
echo $_SESSION['conf']['id_status_cart'];
}
}
示例4: isset
<textarea name="tarjeta_mensaje" id="textarea" cols="45" rows="5"
class="input_confirmation"><?php
echo @$_POST['tarjeta_mensaje'];
?>
</textarea>
</label></td>
</tr>
</table>
<?php
if ($payment_type == 'Pay_2co') {
?>
<?php
$_SESSION['previous_currency'] = isset($_SESSION['conf']['currency']) ? $_SESSION['conf']['currency'] : 1;
$_GET['currency'] = 2;
$trans = new Translate();
$trans->currency();
$cart = new Cart();
$cart->refresh_prices_product();
$order = $_SESSION['conf']['order'];
$_SESSION['conf']['cart']['uniqueid'] = time();
$totalvalue = $_SESSION['conf']['cart']['subtotal_noformat'] + $_SESSION['conf']['order']['district_price'];
Basic::currency($totalvalue);
Basic::clearsimbol($totalvalue);
Basic::currency($order['district_price']);
Basic::clearsimbol($order['district_price']);
$_SESSION['conf']['cart']['product'][0] = array('name_product' => "envio a {$order['district_name']}", 'quantity' => '1', 'subtotal' => $order['district_price']);
echo View::factory('extras/pay_2co2')->set("country", $country)->set("client", $client)->set("products", $_SESSION['conf']['cart']['product'])->set("ship_name", $_SESSION['conf']['order']['fname'] . " " . $_SESSION['conf']['order']['lname'])->set("direccion_entrega", $_SESSION['conf']['order']['single_address'])->set("distrito_entrega", $_SESSION['conf']['order']['district_name'])->set("ship_city", $_SESSION['conf']['order']['city'])->set("ship_state", $_SESSION['conf']['order']['state'])->set("ship_zip", $_SESSION['conf']['order']['postal'])->set("ship_country", $_SESSION['conf']['order']['country'])->set("email", $_SESSION['conf']['order']['client_email'])->set("phone", $_SESSION['conf']['order']['phone'])->render();
?>
<?php
} else {
?>