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


PHP TiendaSelect::address方法代码示例

本文整理汇总了PHP中TiendaSelect::address方法的典型用法代码示例。如果您正苦于以下问题:PHP TiendaSelect::address方法的具体用法?PHP TiendaSelect::address怎么用?PHP TiendaSelect::address使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TiendaSelect的用法示例。


在下文中一共展示了TiendaSelect::address方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

?>
</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><?php 
echo JText::_('COM_TIENDA_SELECT_FROM_SAVED_ADDRESSES') . ":";
?>
</td>
                        </tr>               
                        <tr>
                            <td>
                                <?php 
$billattribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'tiendaSetAddressToDiv(\'billing\'); tiendaGetOrderTotals();');
echo TiendaSelect::address($row->user_id, '', 'billing_address_id', 1, $billattribs, 'billing_address_id', true);
?>
                            </td>
                        </tr>
                        <tr>
                           <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <div id="billing_save_to_address_book_div">
                                    <input id="billing_save_to_address_book" name="billing_save_to_address_book" 
                                    onclick="tiendaShowAddressNameForSaveToAddressBook(this, 'billing_address_name_row', 'billing_input_address_name')" type="checkbox" />&nbsp;
                                    <?php 
echo JText::_('COM_TIENDA_SAVE_TO_ADDRESS_BOOK');
?>
:
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:form_address_billing.php

示例2: tiendaGetShippingRates

	                <?php 
    if (empty($this->shipping_address)) {
        ?>
	                    <div>
	                        <input id="sameasbilling" name="sameasbilling" type="checkbox" checked="checked" onclick="tiendaShowHideDiv( 'shipping_input_addressForm' ); tiendaGetShippingRates( 'onCheckoutShipping_wrapper', document.adminForm ); tiendaGetPaymentOptions( 'onCheckoutPayment_wrapper', document.adminForm ); "/>&nbsp;
	                        <?php 
        echo JText::_('COM_TIENDA_SAME_AS_BILLING_ADDRESS');
        ?>
	                    </div>
					<?php 
    }
    ?>
            		<?php 
    $shipattribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => "tiendaCheckoutSetShippingAddress('{$baseurl}'+this.options[this.selectedIndex].value, 'shippingDefaultAddress', this.form, this.options[this.selectedIndex].value ); ");
    // display select list of stored addresses
    echo TiendaSelect::address(JFactory::getUser()->id, @$this->shipping_address->address_id, 'shipping_address_id', 2, $shipattribs, 'shipping_address_id', false, true);
    ?>
						<div id="shippingDefaultAddress">
							<?php 
    if (!empty($this->shipping_address)) {
        echo $this->shipping_address->title . " " . $this->shipping_address->first_name . " " . $this->shipping_address->last_name . "<br>";
        echo $this->shipping_address->company . "<br>";
        echo $this->shipping_address->address_1 . " " . $this->shipping_address->address_2 . "<br>";
        echo $this->shipping_address->city . ", " . $this->shipping_address->zone_name . " " . $this->shipping_address->postal_code . "<br>";
        echo $this->shipping_address->country_name . "<br>";
    }
    ?>
						 </div>
							  <?php 
    echo @$this->shipping_address_form;
    ?>
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:onepage-opc.php

示例3: array

echo JText::_('COM_TIENDA_SHIPPING_ADDRESS');
?>
</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><?php 
echo JText::_('COM_TIENDA_SELECT_FROM_SAVED_ADDRESSES') . ":";
?>
</td>
                        </tr>
                        <tr>
                            <td><?php 
$shipattribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'tiendaSetAddressToDiv(\'shipping\');tiendaGetOrderTotals();');
echo TiendaSelect::address($row->user_id, '', 'shipping_address_id', 2, $shipattribs, 'shipping_address_id', true);
?>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div>
                                    <input id="sameasbilling" name="sameasbilling" type="checkbox" onclick="tiendaDisableShippingAddressControls(this);" />&nbsp;
                                    <?php 
echo JText::_('COM_TIENDA_SAME_AS_BILLING_ADDRESS');
?>
:
                                </div>
                            </td>
                        </tr>
                        <tr>
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:form_address_shipping.php


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