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


PHP CitruscartSelect::address方法代码示例

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


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

示例1: citruscartGetShippingRates

    if (empty($this->shipping_address)) {
        ?>
	                    <div>
	                        <input id="sameasbilling" name="sameasbilling" type="checkbox" checked="checked" onclick="citruscartShowHideDiv( 'shipping_input_addressForm' ); citruscartGetShippingRates( 'onCheckoutShipping_wrapper', document.adminForm ); citruscartGetPaymentOptions( 'onCheckoutPayment_wrapper', document.adminForm ); "/>&nbsp;
	                        <?php 
        echo JText::_('COM_CITRUSCART_SAME_AS_BILLING_ADDRESS');
        ?>
	                    </div>
					<?php 
    }
    ?>
            		<?php 
    $shipattribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => "citruscartCheckoutSetShippingAddress('{$baseurl}'+this.options[this.selectedIndex].value, 'shippingDefaultAddress', '" . JText::_('COM_CITRUSCART_UPDATING_SHIPPING_RATES') . "', '" . JText::_('COM_CITRUSCART_UPDATING_CART') . "', '" . JText::_('COM_CITRUSCART_UPDATING_ADDRESS') . "', this.form, this.options[this.selectedIndex].value ); ");
    // display select list of stored addresses
    if ($user->id) {
        echo CitruscartSelect::address($user->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:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:onepage-1col.php

示例2: array

echo JText::_('COM_CITRUSCART_SHIPPING_ADDRESS');
?>
</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><?php 
echo JText::_('COM_CITRUSCART_SELECT_FROM_SAVED_ADDRESSES') . ":";
?>
</td>
                        </tr>
                        <tr>
                            <td><?php 
$shipattribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'CitruscartSetAddressToDiv(\'shipping\');CitruscartGetOrderTotals();');
echo CitruscartSelect::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="CitruscartDisableShippingAddressControls(this);" />&nbsp;
                                    <?php 
echo JText::_('COM_CITRUSCART_SAME_AS_BILLING_ADDRESS');
?>
:
                                </div>
                            </td>
                        </tr>
                        <tr>
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:form_address_shipping.php

示例3: array

?>
</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><?php 
echo JText::_('COM_CITRUSCART_SELECT_FROM_SAVED_ADDRESSES') . ":";
?>
</td>
                        </tr>
                        <tr>
                            <td>
                                <?php 
$billattribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'CitruscartSetAddressToDiv(\'billing\'); CitruscartGetOrderTotals();');
echo CitruscartSelect::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="CitruscartShowAddressNameForSaveToAddressBook(this, 'billing_address_name_row', 'billing_input_address_name')" type="checkbox" />&nbsp;
                                    <?php 
echo JText::_('COM_CITRUSCART_SAVE_TO_ADDRESS_BOOK');
?>
:
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:form_address_billing.php

示例4: array

                <?php 
if ($this->showShipping) {
    ?>
              <div id="shippingAddress">
	            <h4 id='shipping_address_header' class="address_header">
	               <?php 
    echo JText::_('COM_CITRUSCART_SHIPPING_ADDRESS');
    ?>
	            </h4>

	            <?php 
    if (!empty($this->addresses)) {
        $shipattribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => "citruscartGrayOutAddressDiv('" . JText::_('COM_CITRUSCART_UPDATING_ADDRESS') . "');citruscartDoTask('{$baseurl}'+this.options[this.selectedIndex].value, 'shippingDefaultAddress', '', '', false); citruscartGetShippingRates( 'onCheckoutShipping_wrapper', document.adminForm, CitruscartDeleteCombinedGrayDiv ); ");
        // CitruscartGetCheckoutTotals();
        // display select list of stored addresses
        echo CitruscartSelect::address(JFactory::getUser()->id, $this->shipping_address->address_id, 'shipping_address_id', 2, $shipattribs, 'shipping_address_id', false);
        if (count($this->addresses) == 1) {
            echo "<input type=\"hidden\" id=\"shipping_address_id\" name=\"shipping_address_id\" value=\"" . $this->shipping_address->address_id . "\" />";
        }
    }
    ?>

                <?php 
    if (empty($this->addresses)) {
        ?>
                    <div>
                        <input id="sameasbilling" name="sameasbilling" type="checkbox" onclick="citruscartDisableShippingAddressControls(this,this.form);" />&nbsp;
                        <?php 
        echo JText::_('COM_CITRUSCART_SAME_AS_BILLING_ADDRESS');
        ?>
:
开发者ID:joomlacorner,项目名称:citruscart,代码行数:31,代码来源:default.php


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