本文整理汇总了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"> </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" />
<?php
echo JText::_('COM_TIENDA_SAVE_TO_ADDRESS_BOOK');
?>
:
示例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 ); "/>
<?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;
?>
示例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);" />
<?php
echo JText::_('COM_TIENDA_SAME_AS_BILLING_ADDRESS');
?>
:
</div>
</td>
</tr>
<tr>