<?php /* Smarty version 2.6.18, created on 2008-12-29 13:50:39
         compiled from /homez.47/arboreth/www/arborethic_boutique/themes/prestashop/address.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'intval', '/homez.47/arboreth/www/arborethic_boutique/themes/prestashop/address.tpl', 2, false),array('function', 'l', '/homez.47/arboreth/www/arborethic_boutique/themes/prestashop/address.tpl', 14, false),)), $this); ?>
<script type="text/javascript">

	idSelectedCountry = <?php if (isset ( $_POST['id_state'] )): ?><?php echo ((is_array($_tmp=$_POST['id_state'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
<?php else: ?>false<?php endif; ?>;

	countries = new Array();

	<?php $_from = $this->_tpl_vars['countries']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['country']):
?>

	<?php if (isset ( $this->_tpl_vars['country']['states'] )): ?>

	countries[<?php echo ((is_array($_tmp=$this->_tpl_vars['country']['id_country'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
] = new Array();

	<?php $_from = $this->_tpl_vars['country']['states']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['states'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['states']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['state']):
        $this->_foreach['states']['iteration']++;
?>

	countries[<?php echo ((is_array($_tmp=$this->_tpl_vars['country']['id_country'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
]['<?php echo ((is_array($_tmp=$this->_tpl_vars['state']['id_state'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
'] = '<?php echo $this->_tpl_vars['state']['name']; ?>
';

	<?php endforeach; endif; unset($_from); ?>

	<?php endif; ?>

	<?php endforeach; endif; unset($_from); ?>

</script>



<?php ob_start(); ?><?php echo smartyTranslate(array('s' => 'Your addresses'), $this);?>
<?php $this->_smarty_vars['capture']['path'] = ob_get_contents(); ob_end_clean(); ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./breadcrumb.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>



<h2><?php echo smartyTranslate(array('s' => 'Your addresses'), $this);?>
</h2>



<h3><?php if (isset ( $this->_tpl_vars['id_address'] )): ?><?php echo smartyTranslate(array('s' => 'Modify the address'), $this);?>
 "<?php echo $_POST['alias']; ?>
"<?php else: ?><?php echo smartyTranslate(array('s' => 'To add a new address, please fill out the form below.'), $this);?>
<?php endif; ?></h3>



<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['tpl_dir'])."./errors.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>



<form action="<?php echo $this->_tpl_vars['request_uri']; ?>
" method="post" class="std">

	<fieldset>

		<h3><?php if (isset ( $this->_tpl_vars['id_address'] )): ?><?php echo smartyTranslate(array('s' => 'Your address'), $this);?>
<?php else: ?><?php echo smartyTranslate(array('s' => 'New address'), $this);?>
<?php endif; ?></h3>

		<p>

			<input type="hidden" name="token" value="<?php echo $this->_tpl_vars['token']; ?>
" />

			<label for="company"><?php echo smartyTranslate(array('s' => 'Company'), $this);?>
</label>

			<input type="text" id="company" name="company" value="<?php if (isset ( $_POST['company'] )): ?><?php echo $_POST['company']; ?>
<?php endif; ?>" />

		</p>

		<p class="required">

			<label for="firstname"><?php echo smartyTranslate(array('s' => 'First name'), $this);?>
</label>

			<input type="text" name="firstname" id="firstname" value="<?php if (isset ( $_POST['firstname'] )): ?><?php echo $_POST['firstname']; ?>
<?php endif; ?>" />

			<sup>*</sup>

		</p>

		<p class="required">

			<label for="lastname"><?php echo smartyTranslate(array('s' => 'Last name'), $this);?>
</label>

			<input type="text" id="lastname" name="lastname" value="<?php if (isset ( $_POST['lastname'] )): ?><?php echo $_POST['lastname']; ?>
<?php endif; ?>" />

			<sup>*</sup>

		</p>

		<p class="required">

			<label for="address1"><?php echo smartyTranslate(array('s' => 'Address'), $this);?>
</label>

			<input type="text" id="address1" name="address1" value="<?php if (isset ( $_POST['address1'] )): ?><?php echo $_POST['address1']; ?>
<?php endif; ?>" />

			<sup>*</sup>

		</p>

		<p class="required">

			<label for="address2"><?php echo smartyTranslate(array('s' => 'Address (2)'), $this);?>
</label>

			<input type="text" id="address2" name="address2" value="<?php if (isset ( $_POST['address2'] )): ?><?php echo $_POST['address2']; ?>
<?php endif; ?>" />

		</p>

		<p class="required">

			<label for="postcode"><?php echo smartyTranslate(array('s' => 'Postal code / Zip code'), $this);?>
</label>

			<input type="text" id="postcode" name="postcode" value="<?php if (isset ( $_POST['postcode'] )): ?><?php echo $_POST['postcode']; ?>
<?php endif; ?>" />

			<sup>*</sup>

		</p>

		<p class="required">

			<label for="city"><?php echo smartyTranslate(array('s' => 'City'), $this);?>
</label>

			<input type="text" name="city" id="city" value="<?php if (isset ( $_POST['city'] )): ?><?php echo $_POST['city']; ?>
<?php endif; ?>" maxlength="64" />

			<sup>*</sup>

		</p>

		<p class="required">

			<label for="id_country"><?php echo smartyTranslate(array('s' => 'Country'), $this);?>
</label>

			<select id="id_country" name="id_country"><?php echo $this->_tpl_vars['countries_list']; ?>
</select>

			<sup>*</sup>

		</p>

		<p class="required id_state">

			<label for="id_state"><?php echo smartyTranslate(array('s' => 'State'), $this);?>
</label>

			<select name="id_state" id="id_state">

				<option value="">-</option>

			</select>

			<sup>*</sup>

		</p>

		<p>

			<label for="other"><?php echo smartyTranslate(array('s' => 'Additional information'), $this);?>
</label>

			<textarea id="other" name="other" cols="26" rows="3"><?php if (isset ( $_POST['other'] )): ?><?php echo $_POST['other']; ?>
<?php endif; ?></textarea>

		</p>

		<p>

			<label for="phone"><?php echo smartyTranslate(array('s' => 'Home phone'), $this);?>
</label>

			<input type="text" id="phone" name="phone" value="<?php if (isset ( $_POST['phone'] )): ?><?php echo $_POST['phone']; ?>
<?php endif; ?>" />

		</p>

		<p>

			<label for="phone_mobile"><?php echo smartyTranslate(array('s' => 'Mobile phone'), $this);?>
</label>

			<input type="text" id="phone_mobile" name="phone_mobile" value="<?php if (isset ( $_POST['phone_mobile'] )): ?><?php echo $_POST['phone_mobile']; ?>
<?php endif; ?>" />

		</p>

		<p class="required">

			<label for="alias"><?php echo smartyTranslate(array('s' => 'Assign an address title for future reference'), $this);?>
</label>

			<input type="text" id="alias" name="alias" value="<?php if (isset ( $_POST['alias'] )): ?><?php echo $_POST['alias']; ?>
<?php else: ?><?php echo smartyTranslate(array('s' => 'My address'), $this);?>
<?php endif; ?>" />

			<sup>*</sup>

		</p>

	</fieldset>

		<p class="submit">

			<?php if (isset ( $this->_tpl_vars['id_address'] )): ?><input type="hidden" name="a" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['id_address'])) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp)); ?>
" /><?php endif; ?>

			<?php if (isset ( $this->_tpl_vars['back'] )): ?><input type="hidden" name="back" value="<?php echo $this->_tpl_vars['back']; ?>
" /><?php endif; ?>

			<input type="submit" name="submitAddress" id="submitAddress" value="<?php echo smartyTranslate(array('s' => 'Save'), $this);?>
" class="button" />

		</p>

		<p class="required"><sup>*</sup><?php echo smartyTranslate(array('s' => 'Required field'), $this);?>
</p>

</form>
