<?php /* Smarty version Smarty-3.1.15, created on 2015-04-27 21:14:54
         compiled from "/home/hushdogcafe/public_html/cube/skins/foundation/templates/content.addressbook.php" */ ?>
<?php /*%%SmartyHeaderCode:361466486553e364ec02c32-17491471%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c5d18c9371be302f47d39ffde55980e0148a9922' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/skins/foundation/templates/content.addressbook.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '361466486553e364ec02c32-17491471',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'ADDRESSES' => 0,
    'LANG' => 0,
    'VAL_SELF' => 0,
    'address' => 0,
    'STORE_URL' => 0,
    'CTRL_FORM' => 0,
    'DATA' => 0,
    'ADDRESS_LOOKUP' => 0,
    'COUNTRIES' => 0,
    'country' => 0,
    'VAL_JSON_STATE' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_553e364eeb5391_67473527',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_553e364eeb5391_67473527')) {function content_553e364eeb5391_67473527($_smarty_tpl) {?>
<?php if (isset($_smarty_tpl->tpl_vars['ADDRESSES']->value)) {?>
<h2><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['your_address_book'];?>
</h2>
<form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post" enctype="multipart/form-data">
   <?php  $_smarty_tpl->tpl_vars['address'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['address']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ADDRESSES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['address']->key => $_smarty_tpl->tpl_vars['address']->value) {
$_smarty_tpl->tpl_vars['address']->_loop = true;
?>
   <div class="panel <?php if ($_smarty_tpl->tpl_vars['address']->value['billing']) {?>callout<?php }?>">
      <div class="row">
         <div class="small-4 columns">
            <a href="?_a=addressbook&action=edit&address_id=<?php echo $_smarty_tpl->tpl_vars['address']->value['address_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['address']->value['description'];?>
</a><br>
            <?php echo $_smarty_tpl->tpl_vars['address']->value['line1'];?>
,<br/><?php if (!empty($_smarty_tpl->tpl_vars['address']->value['line2'])) {?> <?php echo $_smarty_tpl->tpl_vars['address']->value['line2'];?>
,<br/><?php }?> <?php echo $_smarty_tpl->tpl_vars['address']->value['town'];?>
,<br/> <?php echo $_smarty_tpl->tpl_vars['address']->value['state'];?>
,<br/> <?php echo $_smarty_tpl->tpl_vars['address']->value['postcode'];?>
<br><?php echo $_smarty_tpl->tpl_vars['address']->value['country'];?>

         </div>
         <div class="small-6 columns">
            <div class="row">
               <div class="small-4 columns text-center">
                  <?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['billing_address'];?>

               </div>
               <div class="small-4 columns text-center">
                  <?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['delivery_address'];?>
 (<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['default'];?>
)
               </div>
               <div class="small-4 columns text-center">
                  <?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['delivery_address'];?>

               </div>
            </div>
            <div class="row pad-top">
               <div class="small-4 columns text-center">
                  <i class="fa fa-<?php if ($_smarty_tpl->tpl_vars['address']->value['billing']) {?>check<?php } else { ?>times<?php }?>"></i>
               </div>
               <div class="small-4 columns text-center">
                  <i class="fa fa-<?php if ($_smarty_tpl->tpl_vars['address']->value['default']) {?>check<?php } else { ?>times<?php }?>"></i>
               </div>
               <div class="small-4 columns text-center">
                  <i class="fa fa-check"></i>
               </div>
            </div>
         </div>
         <div class="small-2 columns text-center">
            <a href="?_a=addressbook&action=edit&address_id=<?php echo $_smarty_tpl->tpl_vars['address']->value['address_id'];?>
" class="button tiny expand"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['edit'];?>
</a>
            <br><input type="checkbox" name="delete[]" value="<?php echo $_smarty_tpl->tpl_vars['address']->value['address_id'];?>
"<?php if ($_smarty_tpl->tpl_vars['address']->value['billing']) {?> disabled<?php }?>>
         </div>
      </div>
   </div>
   <?php } ?>
   <div class="clearfix">
      <div class="right"><button type="submit" class="button alert"><i class="fa fa-trash-o"></i> <?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delete_selected'];?>
</button></div>
      <div class="left"><a href="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/index.php?_a=addressbook&action=add" class="button"><i class="fa fa-plus"></i> <?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['address_add'];?>
</a></div>
   </div>
</form>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['CTRL_FORM']->value)) {?>
<h2><?php if ($_smarty_tpl->tpl_vars['DATA']->value['address_id']>0) {?><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['edit_address'];?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['add_address'];?>
<?php }?></h2>
<form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post" id="addressbook_form" enctype="multipart/form-data">
   <div class="row">
      <div class="small-12 large-8 columns"><label for="addr_description"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['description'];?>
</label><input type="text" name="description" id="addr_description" value="<?php echo $_smarty_tpl->tpl_vars['DATA']->value['description'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['example_address_description'];?>
"></div>
   </div>
   <div class="row">
      <div class="small-12 large-8 columns"><label for="addr_title"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['title'];?>
</label><input type="text" name="title" id="addr_title" value="<?php echo $_smarty_tpl->tpl_vars['DATA']->value['title'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['title'];?>
"></div>
   </div>
   <div class="row">
      <div class="small-12 large-8 columns"><label for="addr_first_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['name_first'];?>
</label><input type="text" name="first_name" id="addr_first_name" value="<?php echo $_smarty_tpl->tpl_vars['DATA']->value['first_name'];?>
" required placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['name_first'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['required'];?>
"></div>
   </div>
   <div class="row">
      <div class="small-12 large-8 columns"><label for="addr_last_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['name_last'];?>
</label><input type="text" name="last_name" id="addr_last_name" value="<?php echo $_smarty_tpl->tpl_vars['DATA']->value['last_name'];?>
" required placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['name_last'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['required'];?>
"></div>
   </div>
   <div class="row">
      <div class="small-12 large-8 columns"><label for="addr_company_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['company_name'];?>
</label><input type="text" name="company_name" id="addr_company_name" value="<?php echo $_smarty_tpl->tpl_vars['DATA']->value['company_name'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['company_name'];?>
"></div>
   </div>
   <address>
      <div class="row">
         <div class="small-12 large-8 columns"><label for="addr_line1"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['line1'];?>
 </label><input type="text" name="line1" id="addr_line1" value="<?php echo $_smarty_tpl->tpl_vars['DATA']->value['line1'];?>
" required placeholder="<?php if ($_smarty_tpl->tpl_vars['ADDRESS_LOOKUP']->value) {?><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['address_lookup'];?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['line1'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['required'];?>
<?php }?>" autocomplete="off" autocorrect="off" class="address_lookup">
         </div>
      </div>
      <?php if ($_smarty_tpl->tpl_vars['ADDRESS_LOOKUP']->value) {?><p id="lookup_fail"><a href="#"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['address_not_found'];?>
</a></p><?php }?>
      <div<?php if ($_smarty_tpl->tpl_vars['ADDRESS_LOOKUP']->value) {?> class="hide"<?php }?> id="address_form">
      <div class="row">
         <div class="small-12 large-8 columns"><label for="addr_line2"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['line2'];?>
</label><input type="text" name="line2" id="addr_line2" value="<?php echo $_smarty_tpl->tpl_vars['DATA']->value['line2'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['line2'];?>
"></div>
      </div>
      <div class="row">
         <div class="small-12 large-8 columns"><label for="addr_town"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['town'];?>
</label><input type="text" name="town" id="addr_town" value="<?php echo $_smarty_tpl->tpl_vars['DATA']->value['town'];?>
" required placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['town'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['required'];?>
"></div>
      </div>
      <div class="row">
         <div class="small-12 large-8 columns">
            <label for="country-list"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['country'];?>
</label><select name="country" id="country-list">
            <?php  $_smarty_tpl->tpl_vars['country'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['country']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['COUNTRIES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['country']->key => $_smarty_tpl->tpl_vars['country']->value) {
$_smarty_tpl->tpl_vars['country']->_loop = true;
?>
            <option value="<?php echo $_smarty_tpl->tpl_vars['country']->value['numcode'];?>
" <?php echo $_smarty_tpl->tpl_vars['country']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['country']->value['name'];?>
</option>
            <?php } ?></select>
         </div>
      </div>
      <div class="row">
         <div class="small-12 large-8 columns"><label for="state-list"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['state'];?>
</label><input type="text" name="state" id="state-list" required value="<?php echo $_smarty_tpl->tpl_vars['DATA']->value['state'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['state'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['required'];?>
"></div>
      </div>
      <div class="row">
         <div class="small-12 large-8 columns"><label for="addr_postcode"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['postcode'];?>
</label><input type="text" name="postcode" id="addr_postcode" value="<?php echo $_smarty_tpl->tpl_vars['DATA']->value['postcode'];?>
" required placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['postcode'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['required'];?>
"></div>
      </div>
      </div>
   </address>
   <div class="row">
      <div class="small-12 large-8 columns"><input name="billing" type="checkbox" id="addr_billing" value="1" <?php echo $_smarty_tpl->tpl_vars['DATA']->value['billing'];?>
><label for="addr_billing"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['billing_address'];?>
</label> </div>
   </div>
   <div class="row">
      <div class="small-12 large-8 columns"><input name="default" type="checkbox" id="addr_default" value="1" <?php echo $_smarty_tpl->tpl_vars['DATA']->value['default'];?>
> <label for="addr_default"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['default_delivery_address'];?>
</label></div>
   </div>
   <div class="row clearfix">
      <div class="small-12 large-8 columns">
         <input type="hidden" name="address_id" value="<?php echo $_smarty_tpl->tpl_vars['DATA']->value['address_id'];?>
">
         <input type="submit" name="save" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['save'];?>
" class="button left"> <button type="reset" class="button secondary right"><i class="fa fa-refresh"></i> <?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['reset'];?>
</button>
      </div>
   </div>
   <div class="hide" id="validate_field_required"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['field_required'];?>
</div>
</form>
<script type="text/javascript">
   var county_list = <?php echo $_smarty_tpl->tpl_vars['VAL_JSON_STATE']->value;?>

</script>
<?php }?><?php }} ?>
