當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。