????
| Current Path : /home2/morganrand/www/store/includes/checkout/ |
| Current File : /home2/morganrand/www/store/includes/checkout/shipping_address.php |
<div id="shippingAddress" style="padding:15px;">
<?php
if (tep_session_is_registered('customer_id'))
{
if((int)$sendto<1) $sendto = $billto;
echo tep_address_label($customer_id, $sendto, true, ' ', '<br>');
}
else
{
if (tep_session_is_registered('onepage'))
{
$shippingAddress = $onepage['delivery'];
}
?>
<table border="0" width="100%" cellspacing="3" cellpadding="3">
<tr>
<td class="main" width="30%"><?php echo ENTRY_FIRST_NAME; ?></td>
<td class="main" width="70%"><?php echo tep_draw_input_field('shipping_firstname', $shippingAddress['firstname'], 'class="required" style="width:80%;float:left;"'); ?></td>
</tr>
<tr>
<td class="main" width="30%"><?php echo ENTRY_LAST_NAME; ?></td>
<td class="main" width="70%"><?php echo tep_draw_input_field('shipping_lastname', $shippingAddress['lastname'], 'class="required" style="width:80%;float:left;"'); ?></td>
</tr>
<tr>
<td class="main" nowrap><?php echo ENTRY_COUNTRY; ?></td>
<td class="main"><?php echo tep_get_country_list('shipping_country', (isset($shippingAddress['country_id']) ? $shippingAddress['country_id'] : ONEPAGE_DEFAULT_COUNTRY), 'class="required" style="width:80%;float:left;"'); ?><div class="success_icon ui-icon-green ui-icon-circle-check" style="margin-left: 3px; margin-top: 1px; float: left;" title="false" /></td>
</tr>
<?php if (ACCOUNT_COMPANY == 'true')
{
?>
<tr>
<td class="main" nowrap><?php echo ENTRY_COMPANY; ?></td>
<td class="main"><?php echo tep_draw_input_field('shipping_company', '', 'style="width:80%;float:left;"'); ?></td>
</tr>
<?php
}
?>
<tr>
<td class="main" nowrap><?php echo ENTRY_STREET_ADDRESS; ?></td>
<td class="main"><?php echo tep_draw_input_field('shipping_street_address', $shippingAddress['street_address'], 'class="required" style="width:80%;float:left;"'); ?></td>
</tr>
<?php
if (ACCOUNT_SUBURB == 'true')
{
?>
<tr>
<td class="main" nowrap><?php echo ENTRY_SUBURB; ?></td>
<td class="main" ><?php echo tep_draw_input_field('shipping_suburb', $shippingAddress['suburb'], 'style="width:80%;float:left;"'); ?></td>
</tr>
<?php
}
?>
<tr>
<td class="main" nowrap><?php echo ENTRY_CITY; ?></td>
<td class="main"><?php echo tep_draw_input_field('shipping_city', $shippingAddress['city'], 'class="required" style="width:80%;float:left;"'); ?></td>
</tr>
<?php
if (ACCOUNT_STATE == 'true')
{
?>
<tr>
<td class="main" nowrap><?php echo ENTRY_STATE; ?></td>
<?php
$defaultCountry = (isset($shippingAddress) && tep_not_null($shippingAddress['country_id']) ? $shippingAddress['country_id'] : ONEPAGE_DEFAULT_COUNTRY);
?>
<td class="main" id="stateCol_delivery"><?php echo $onePageCheckout->getAjaxStateField($defaultCountry, 'delivery');?><div <?php if(tep_not_null($shippingAddress['zone_id']) || tep_not_null($shippingAddress['state'])){ ?>class= "success_icon ui-icon-green ui-icon-circle-check" <?php }else{?> class="required_icon ui-icon-red ui-icon-gear" <?php } ?> style="margin-left: 3px; margin-top: 1px; float: left;" title="Required" /></div></td>
</tr>
<?php
}
?>
<tr>
<td class="main" nowrap><?php echo ENTRY_POST_CODE; ?></td>
<td class="main"><?php echo tep_draw_input_field('shipping_zipcode', $shippingAddress['postcode'], 'class="required" style="width:80%;float:left;"'); ?></td>
</tr>
<tr>
<td class="main" colspan="2" align="right"><?php echo '<span class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-focus" style="padding:5px;" id="updateAddressShipping">Update</span>';?></td>
</tr>
</table>
<?php
}
?>
</div>