本文整理匯總了PHP中UserSettings::listCurrencies方法的典型用法代碼示例。如果您正苦於以下問題:PHP UserSettings::listCurrencies方法的具體用法?PHP UserSettings::listCurrencies怎麽用?PHP UserSettings::listCurrencies使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UserSettings
的用法示例。
在下文中一共展示了UserSettings::listCurrencies方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Event
<div>
<?php
// Currency details starts here
$inv_currency = $UserSettings->getSettingValue("currency");
if ($inv_currency && is_array($inv_currency)) {
$e_inv_currency = new Event("UserSettings->eventUpdateCurrency");
$e_inv_currency->setLevel(30);
$e_inv_currency->addParam("id_currency", $inv_currency["iduser_settings"]);
$e_inv_currency->addParam("goto", $_SERVER['PHP_SELF']);
echo '<table width="50%" height="100px"><tr><td width="40%">';
echo $e_inv_currency->getFormHeader();
echo $e_inv_currency->getFormEvent();
echo '<b>' . _('Currency details') . '</b><br />';
echo _('Select Currency :') . '<br />';
echo $UserSettings->listCurrencies($inv_currency["setting_value"]);
echo '</td>';
echo '<td width="10%" style="text-align:left;">';
echo $e_inv_currency->getFormFooter(_('Save'));
echo '</td></tr></table>';
} else {
$e_inv_currency = new Event("UserSettings->eventAddCurrency");
$e_inv_currency->setLevel(30);
$e_inv_currency->addParam("goto", $_SERVER['PHP_SELF']);
echo '<table width="50%" height="100px"><tr><td width="40%">';
echo $e_inv_currency->getFormHeader();
echo $e_inv_currency->getFormEvent();
echo '<b>' . _('Currency details') . '</b><br />';
echo _('Select Currency :') . '<br />';
echo $UserSettings->listCurrencies();
echo '</td>';