当前位置: 首页>>代码示例>>PHP>>正文


PHP CitruscartSelect::currency方法代码示例

本文整理汇总了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>
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:form.php

示例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/>
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:form.php

示例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'));
?>
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:default_currency.php

示例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>
开发者ID:joomlacorner,项目名称:citruscart,代码行数:30,代码来源:default.php


注:本文中的CitruscartSelect::currency方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。