本文整理汇总了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>';