????

Your IP : 216.73.216.174


Current Path : /home2/morganrand/www/store/includes/checkout/
Upload File :
Current File : /home2/morganrand/www/store/includes/checkout/billing_address.php.bk

<div id="billingAddress" style="padding:15px;">
<?php
if (tep_session_is_registered('customer_id'))
	{
	echo tep_address_label($customer_id, $billto, true, ' ', '<br>');
	}
else
	{
	if (tep_session_is_registered('onepage'))
		{
		$billingAddress = $onepage['billing'];
		$customerAddress = $onepage['customer'];
		}
?>
<table border="0" width="100%" cellspacing="3" cellpadding="3">
<?php
if (ACCOUNT_GENDER == 'true' && !tep_session_is_registered('customer_id'))
	{
	$gender = $billingAddress['entry_gender'];
	if (isset($gender))
		{
		$male = ($gender == 'm') ? true : false;
		$female = ($gender == 'f') ? true : false;
		}
	else
		{
		$male = false;
		$female = false;
		}
?>
	<tr>
		<td class="main" colspan="2"><?php echo ENTRY_GENDER; ?>&nbsp;<?php echo tep_draw_radio_field('billing_gender', 'm', $male) . '&nbsp;&nbsp;' . MALE . '&nbsp;&nbsp;' . tep_draw_radio_field('billing_gender', 'f', $female) . '&nbsp;&nbsp;' . FEMALE; ?></td>
	</tr>
<?php
	}
?>
	<tr>
		<td class="main" width="30%"><?php echo ENTRY_FIRST_NAME .'<span class="red">*</span>'; ?>&nbsp;</td>
		<td class="main" width="70%"><?php echo tep_draw_input_field('billing_firstname', (isset($billingAddress) ? $billingAddress['firstname'] : ''), 'class="required" style="width:80%;float:left;"'); ?></td>
	</tr>
	<tr>
		<td class="main" width="30%"><?php echo ENTRY_LAST_NAME .'<span class="red">*</span>'; ?>&nbsp;</td>
		<td class="main" width="70%"><?php echo tep_draw_input_field('billing_lastname', (isset($billingAddress) ? $billingAddress['lastname'] : ''), 'class="required" style="width:80%;float:left;"'); ?></td>
	</tr>
<?php
if (ACCOUNT_DOB == 'true' && !tep_session_is_registered('customer_id'))
	{
?>
	<tr>
		<td class="main" nowrap><?php echo ENTRY_DATE_OF_BIRTH; ?></td>
		<td class="main"><?php echo tep_draw_input_field('billing_dob', (isset($customerAddress) ? $customerAddress['dob'] : ''), 'style="width:80%;float:left;"'); ?></td>
	</tr>
<?php
	}
if (!tep_session_is_registered('customer_id'))
	{
?>
	<tr id="newAccountEmail">
		<td class="main" nowrap><?php echo ENTRY_EMAIL_ADDRESS .'<span class="red">*</span>'; ?></td>
		<td class="main"><?php echo tep_draw_input_field('billing_email_address', (isset($customerAddress) ? $customerAddress['email_address'] : ''), 'class="required" style="width:80%;float:left;"'); ?></td>
	</tr>
<?php
	}
?>
	<tr>
		<td class="main" nowrap><?php echo ENTRY_COUNTRY; ?></td>
		<td class="main"><?php echo tep_get_country_list('billing_country', (isset($billingAddress) && tep_not_null($billingAddress['country_id']) ? $billingAddress['country_id'] : ONEPAGE_DEFAULT_COUNTRY), 'class="required" style="float:left;width:80%"'); ?><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('billing_company', (isset($billingAddress) ? $billingAddress['company'] : ''), 'style="width:80%;float:left;"'); ?></td>
	</tr>
<?php
	}
?>
	<tr>
		<td class="main" nowrap><?php echo ENTRY_STREET_ADDRESS .'<span class="red">*</span>'; ?></td>
		<td class="main"><?php echo tep_draw_input_field('billing_street_address', (isset($billingAddress) ? $billingAddress['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('billing_suburb', (isset($billingAddress) ? $billingAddress['suburb'] : ''), 'style="width:80%;float:left"'); ?></td>
	</tr>
<?php
	}
?>
	<tr>
		<td class="main" nowrap><?php echo ENTRY_CITY .'<span class="red">*</span>'; ?></td>
		<td class="main" ><?php echo tep_draw_input_field('billing_city', (isset($billingAddress) ? $billingAddress['city'] : ''), 'class="required" style="width:80%;float:left;"'); ?></td>
	</tr>
<?php
if (ACCOUNT_STATE == 'true')
	{
?>
	<tr>
		<td class="main" nowrap><?php echo ENTRY_STATE .'<span class="red">*</span>'; ?></td>
<?php
		$defaultCountry = (isset($billingAddress) && tep_not_null($billingAddress['country_id']) ? $billingAddress['country_id'] : ONEPAGE_DEFAULT_COUNTRY);
?>
		<td class="main" id="stateCol_billing"><?php echo $onePageCheckout->getAjaxStateField($defaultCountry);?><div <?php if(tep_not_null($billingAddress['zone_id']) || tep_not_null($billingAddress['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 .'<span class="red">*</span>'?></td>
		<td class="main"><?php echo tep_draw_input_field('billing_zipcode', (isset($billingAddress) ? $billingAddress['postcode'] : ''), 'class="required" style="width:80%;float:left;"'); ?></td>
	</tr>
<?php if(!tep_session_is_registered('customer_id'))
	{
?>
	<tr>
		<td class="main"><?php echo ENTRY_TELEPHONE .'<span class="red">*</span>'; ?></td>
		<td>
<?php
	if(ONEPAGE_TELEPHONE == 'True')
		echo tep_draw_input_field('billing_telephone', (isset($customerAddress) ? $customerAddress['telephone'] : ''), 'class="required" style="width:80%;float:left;"'); 
	else
		echo tep_draw_input_field('billing_telephone', (isset($customerAddress) ? $customerAddress['telephone'] : ''), 'style="width:80%;float:left;"'); 
?>
		</td>
	</tr>
	<tr>
		<td class="main" colspan="2" align="right"><center><br />After entering address info, click here <?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="updateAddressBilling">Update</span>';?> to select shipping & payment method<br /></center></td>
	</tr>
<?php
	/*if (ONEPAGE_ACCOUNT_CREATE != 'required')
		{
?>
		<tr>
			<td colspan="2" class="main"><br>If you would like to create an account please enter a password below</td>
		</tr>
<?php
		}
	if(ONEPAGE_ADDR_LAYOUT == 'horizontal')
		{
?>
		<tr>
			<td class="main"><?php echo ENTRY_PASSWORD; ?></td>
			<td class="main"><?php echo ENTRY_PASSWORD_CONFIRMATION; ?></td>
		</tr>
		<tr>
			<td class="main"><?php echo tep_draw_password_field('password', '', 'autocomplete="off" ' . (ONEPAGE_ACCOUNT_CREATE == 'required' ? 'class="required" maxlength="40" ' : 'maxlength="40" ') . 'style="float:left;"'); ?></td>
			<td class="main"><?php echo tep_draw_password_field('confirmation', '', 'autocomplete="off" ' . (ONEPAGE_ACCOUNT_CREATE == 'required' ? 'class="required" ' : '') . 'maxlength="40" style="float:left;"'); ?></td>
		</tr>
<?php
		}
	elseif(ONEPAGE_ADDR_LAYOUT == 'vertical')
		{
?>
		<tr>
			<td class="main"><?php echo ENTRY_PASSWORD; ?></td>
			<td class="main"><?php echo tep_draw_password_field('password', '', 'autocomplete="off" ' . (ONEPAGE_ACCOUNT_CREATE == 'required' ? 'class="required" maxlength="40" ' : 'maxlength="40" ') . 'style="float:left;"'); ?></td>
		</tr>
		<tr>
			<td class="main"><?php echo ENTRY_PASSWORD_CONFIRMATION; ?></td>
			<td class="main"><?php echo tep_draw_password_field('confirmation', '', 'autocomplete="off" ' . (ONEPAGE_ACCOUNT_CREATE == 'required' ? 'class="required" ' : '') . 'maxlength="40" style="float:left;"'); ?></td>
		</tr>
<?php
		}*/
?>
	<!--<tr>
		<td class="main" colspan="2"><div id="pstrength_password"></div></td>
	</tr>-->
	<!--<tr>
		<td class="main" colspan="2"><?php echo ENTRY_NEWSLETTER; ?> <?php echo tep_draw_checkbox_field('billing_newsletter', '1', (isset($customerAddress) && $customerAddress['newsletter'] == '1' ? true : false)); ?></td>
	</tr>-->
	<?php echo tep_draw_hidden_field('password', '');?>
	<?php echo tep_draw_hidden_field('confirmation', '');?>
	<?php echo tep_draw_hidden_field('billing_newsletter', (isset($customerAddress) && $customerAddress['newsletter'] == '1' ? 1 : 0));?>
<?php
	}
?>
</table>
<?php
	}
?>
</div>