本文整理汇总了PHP中CitruscartSelect::currency方法的典型用法代码示例。如果您正苦于以下问题:PHP CitruscartSelect::currency方法的具体用法?PHP CitruscartSelect::currency怎么用?PHP CitruscartSelect::currency使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CitruscartSelect
的用法示例。
在下文中一共展示了CitruscartSelect::currency方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
" size="10" maxlength="250" />
</td>
</tr>
<tr>
<td class="key hasTip" title="<?php
echo JText::_('COM_CITRUSCART_COUPON_CURRENCY') . '::' . JText::_('COM_CITRUSCART_COUPON_CURRENCY_TIP');
?>
" style="width: 125px; text-align: right;">
<?php
echo JText::_('COM_CITRUSCART_CURRENCY');
?>
:
</td>
<td>
<?php
echo CitruscartSelect::currency($row['currency_id'], 'currency_id');
?>
</td>
</tr>
<tr>
<td style="width: 125px; text-align: right;" class="key">
<?php
echo JText::_('COM_CITRUSCART_VALUE_TYPE');
?>
:
</td>
<td>
<?php
echo CitruscartSelect::btbooleanlist('coupon_value_type', '', $row['coupon_value_type'], 'COM_CITRUSCART_PERCENTAGE', 'COM_CITRUSCART_FLAT_RATE');
?>
</td>
示例2:
echo JText::_('COM_CITRUSCART_GENERAL_INFORMATION');
?>
</th>
</tr>
</thead>
<tbody>
<tr>
<th style="width: 100px;" class="key">
<?php
echo JText::_('COM_CITRUSCART_ORDER_CURRENCY');
?>
:
</th>
<td>
<?php
echo CitruscartSelect::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_CITRUSCART_CUSTOMER_INFORMATION');
?>
:
</th>
<td>
<?php
echo $row->userinfo->name . ' [ ' . $row->user_id . ' ]';
?>
<br/>
示例3:
echo $this->row->get('date_format', '%a, %d %b %Y, %I:%M%p');
?>
" type="text" size="40" />
</td>
<td><?php
echo JText::_('COM_CITRUSCART_CONFIG_SET_DATE_FORMAT');
?>
</td>
</tr>
<tr>
<th style="width: 25%;"><?php
echo JText::_('COM_CITRUSCART_SELECT_DEFAULT_CURRENCY_FOR_DB_VALUES');
?>
</th>
<td><?php
echo CitruscartSelect::currency($this->row->get('default_currencyid', '1'), 'default_currencyid');
?>
</td>
<td><?php
echo JText::_('COM_CITRUSCART_CONFIG_DEFAULT_CURRENCY');
?>
</td>
</tr>
<tr>
<th style="width: 25%;"><?php
echo JText::_('COM_CITRUSCART_AUTO_UPDATE_EXCHANGE_RATES');
?>
</th>
<td><?php
echo CitruscartSelect::btbooleanlist('currency_exchange_autoupdate', 'class="inputbox"', $this->row->get('currency_exchange_autoupdate', '1'));
?>
示例4: defined
# Websites: http://citruscart.com
# Technical Support: Forum - http://citruscart.com/forum/index.html
-------------------------------------------------------------------------*/
/** ensure this file is being included by a parent file */
defined('_JEXEC') or die('Restricted access');
Citruscart::load('CitruscartHelperBase', 'helpers._base');
Citruscart::load('CitruscartSelect', 'library.select');
JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_citruscart/tables');
$helper = CitruscartHelperBase::getInstance();
$url = JRoute::_('index.php?option=com_citruscart&view=currency&task=set&return=' . base64_encode(JURI::getInstance()->__toString()), false);
// Check the currently selected currency
$selected = CitruscartHelperBase::getSessionVariable('currency_id', Citruscart::getInstance()->get('default_currencyid', 1));
?>
<div id="mod_citruscart_currency">
<form action="<?php
echo $url;
?>
" method="post" name="currencySwitch">
<?php
// echo JText::_('COM_CITRUSCART_SELECT_CURRENCY').': ';
?>
<?php
$attribs = array('onChange' => 'document.currencySwitch.submit(); ');
?>
<?php
echo CitruscartSelect::currency($selected, 'currency_id', $attribs);
?>
</form>
</div>