本文整理汇总了PHP中TiendaSelect::currency方法的典型用法代码示例。如果您正苦于以下问题:PHP TiendaSelect::currency方法的具体用法?PHP TiendaSelect::currency怎么用?PHP TiendaSelect::currency使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TiendaSelect
的用法示例。
在下文中一共展示了TiendaSelect::currency方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*/
/** ensure this file is being included by a parent file */
defined('_JEXEC') or die('Restricted access');
Tienda::load('TiendaHelperBase', 'helpers._base');
Tienda::load('TiendaSelect', 'library.select');
JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_tienda/tables');
$helper = TiendaHelperBase::getInstance();
$url = JRoute::_('index.php?option=com_tienda&view=products&task=setCurrency&return=' . base64_encode(JURI::getInstance()->toString()), false);
// Check the currently selected currency
$selected = TiendaHelperBase::getSessionVariable('currency_id', Tienda::getInstance()->get('default_currencyid', 1));
?>
<div id="currency">
<form action="<?php
echo $url;
?>
" method="post" name="currencySwitch">
<?php
echo JText::_('COM_TIENDA_SELECT_CURRENCY') . ': ';
?>
<?php
$attribs = array('onChange' => 'document.currencySwitch.submit(); ');
?>
<?php
echo TiendaSelect::currency($selected, 'currency_id', $attribs);
?>
</form>
</div>
示例2:
echo $this->row->get('date_format', '%a, %d %b %Y, %I:%M%p');
?>
" type="text" size="40" />
</td>
<td><?php
echo JText::_('COM_TIENDA_CONFIG_SET_DATE_FORMAT');
?>
</td>
</tr>
<tr>
<th style="width: 25%;"><?php
echo JText::_('COM_TIENDA_SELECT_DEFAULT_CURRENCY_FOR_DB_VALUES');
?>
</th>
<td><?php
echo TiendaSelect::currency($this->row->get('default_currencyid', '1'), 'default_currencyid');
?>
</td>
<td><?php
echo JText::_('COM_TIENDA_CONFIG_DEFAULT_CURRENCY');
?>
</td>
</tr>
<tr>
<th style="width: 25%;"><?php
echo JText::_('COM_TIENDA_AUTO_UPDATE_EXCHANGE_RATES');
?>
</th>
<td><?php
echo TiendaSelect::btbooleanlist('currency_exchange_autoupdate', 'class="inputbox"', $this->row->get('currency_exchange_autoupdate', '1'));
?>
示例3:
" size="10" maxlength="250" />
</td>
</tr>
<tr>
<td class="key hasTip" title="<?php
echo JText::_('COM_TIENDA_COUPON_CURRENCY') . '::' . JText::_('COM_TIENDA_COUPON_CURRENCY_TIP');
?>
" style="width: 125px; text-align: right;">
<?php
echo JText::_('COM_TIENDA_CURRENCY');
?>
:
</td>
<td>
<?php
echo TiendaSelect::currency(@$row->currency_id, 'currency_id');
?>
</td>
</tr>
<tr>
<td style="width: 125px; text-align: right;" class="key">
<?php
echo JText::_('COM_TIENDA_VALUE_TYPE');
?>
:
</td>
<td>
<?php
echo TiendaSelect::btbooleanlist('coupon_value_type', '', @$row->coupon_value_type, 'COM_TIENDA_PERCENTAGE', 'COM_TIENDA_FLAT_RATE');
?>
</td>
示例4:
echo JText::_('COM_TIENDA_GENERAL_INFORMATION');
?>
</th>
</tr>
</thead>
<tbody>
<tr>
<th style="width: 100px;" class="key">
<?php
echo JText::_('COM_TIENDA_ORDER_CURRENCY');
?>
:
</th>
<td>
<?php
echo TiendaSelect::currency(@$row->order_currency_id, 'order_currency_id', '', 'order_currency_id', false);
?>
</td>
</tr>
<tr>
<th style="width: 100px;" class="key">
<?php
echo JText::_('COM_TIENDA_CUSTOMER_INFORMATION');
?>
:
</th>
<td>
<?php
echo $row->userinfo->name . ' [ ' . $row->user_id . ' ]';
?>