<?php /* Smarty version Smarty-3.1.15, created on 2015-04-29 11:06:25
         compiled from "/home/hushdogcafe/public_html/cube/admin/skins/default/templates/settings.tax.php" */ ?>
<?php /*%%SmartyHeaderCode:185122873955404ab15208a6-25271907%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ecd1aa7d33e66cda642adde757005df8374dbaa8' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/admin/skins/default/templates/settings.tax.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '185122873955404ab15208a6-25271907',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'PHP_SELF' => 0,
    'LANG' => 0,
    'TAX_CLASSES' => 0,
    'class' => 0,
    'VAL_SELF' => 0,
    'TAX_DETAILS' => 0,
    'detail' => 0,
    'TAX_RULES' => 0,
    'rule' => 0,
    'COUNTRIES' => 0,
    'country' => 0,
    'CONFIG' => 0,
    'VAL_TAX_STATE' => 0,
    'FORM_HASH' => 0,
    'SESSION_TOKEN' => 0,
    'VAL_JSON_COUNTY' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_55404ab1742166_62458138',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_55404ab1742166_62458138')) {function content_55404ab1742166_62458138($_smarty_tpl) {?>
<form id="form-settings" action="<?php echo $_smarty_tpl->tpl_vars['PHP_SELF']->value;?>
" method="post" enctype="multipart/form-data">
   <div id="taxclasses" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['title_tax_class'];?>
</h3>
      <fieldset>
         <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['title_tax_class_current'];?>
</legend>
         <?php  $_smarty_tpl->tpl_vars['class'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['class']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TAX_CLASSES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['class']->key => $_smarty_tpl->tpl_vars['class']->value) {
$_smarty_tpl->tpl_vars['class']->_loop = true;
?>
         <div><input type="text" name="class[<?php echo $_smarty_tpl->tpl_vars['class']->value['id'];?>
][tax_name]" value="<?php echo $_smarty_tpl->tpl_vars['class']->value['tax_name'];?>
" class="textbox">
            <a href="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
&delete_class=<?php echo $_smarty_tpl->tpl_vars['class']->value['id'];?>
" class="delete" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['tax_delete'];?>
"><i class="fa fa-trash" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delete'];?>
"></i></a>
         </div>
         <?php } ?>
      </fieldset>
      <fieldset>
         <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['title_tax_class_add'];?>
</legend>
         <div><label for="addclass"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['tax_class_name'];?>
</label><span><input name="addclass[tax_name]" id="addclass" type="text" class="textbox" value=""></span></div>
      </fieldset>
   </div>
   <div id="taxdetails" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['title_tax_detail'];?>
</h3>
      <table>
         <thead>
            <tr>
               <td width="50"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['status'];?>
</td>
               <td width="302"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['tax_name'];?>
</td>
               <td width="302"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['tax_name_display'];?>
</td>
               <td width="20">&nbsp;</td>
            </tr>
         </thead>
         <tbody>
            <?php  $_smarty_tpl->tpl_vars['detail'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['detail']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TAX_DETAILS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['detail']->key => $_smarty_tpl->tpl_vars['detail']->value) {
$_smarty_tpl->tpl_vars['detail']->_loop = true;
?>
            <tr>
               <td align="center"><input type="hidden" name="detail[<?php echo $_smarty_tpl->tpl_vars['detail']->value['id'];?>
][status]" id="detail_<?php echo $_smarty_tpl->tpl_vars['detail']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['detail']->value['status'];?>
" class="toggle"></td>
               <td><span class="editable" name="detail[<?php echo $_smarty_tpl->tpl_vars['detail']->value['id'];?>
][name]"><?php echo $_smarty_tpl->tpl_vars['detail']->value['name'];?>
</span></td>
               <td><span class="editable" name="detail[<?php echo $_smarty_tpl->tpl_vars['detail']->value['id'];?>
][display]"><?php echo $_smarty_tpl->tpl_vars['detail']->value['display'];?>
</span></td>
               <td align="center"><a href="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
&delete_detail=<?php echo $_smarty_tpl->tpl_vars['detail']->value['id'];?>
" class="delete" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['tax_delete'];?>
" ><i class="fa fa-trash" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delete'];?>
"></i></a></td>
            </tr>
            <?php } ?>
         </tbody>
      </table>
      <fieldset>
         <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['title_tax_detail_add'];?>
</legend>
         <div><label for="detail-name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['tax_name'];?>
</label><span><input name="adddetail[name]" id="detail-name" type="text" class="textbox" value=""></span></div>
         <div><label for="detail-display"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['tax_name_display'];?>
</label><span><input name="adddetail[display]" id="detail-display" type="text" class="textbox" value=""></span></div>
         <div>
            <label for="detail-status"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['status'];?>
</label>
            <span>
               <select name="adddetail[status]" id="detail-status" class="textbox">
                  <option value="0"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['disabled'];?>
</option>
                  <option value="1"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['enabled'];?>
</option>
               </select>
            </span>
         </div>
      </fieldset>
   </div>
   <div id="taxrules" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['title_tax_rule'];?>
</h3>
      <fieldset>
         <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['title_tax_rule_current'];?>
</legend>
         <table>
            <thead>
               <tr>
                  <td width="50"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['status'];?>
</td>
                  <td width="100"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['title_tax_class'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['title_tax_detail'];?>
</td>
                  <td width="150"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['country'];?>
</td>
                  <td width="150"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['state'];?>
</td>
                  <td width="50"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_sub'];?>
</td>
                  <td width="50"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['shipping'];?>
</tc>
                  <td width="125"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['tax_rate'];?>
</td>
                  <td width="20">&nbsp;</td>
               </tr>
            </thead>
            <tbody>
               <?php  $_smarty_tpl->tpl_vars['rule'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['rule']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TAX_RULES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['rule']->key => $_smarty_tpl->tpl_vars['rule']->value) {
$_smarty_tpl->tpl_vars['rule']->_loop = true;
?>
               <tr>
                  <td align="center"><input type="hidden" name="rule[<?php echo $_smarty_tpl->tpl_vars['rule']->value['id'];?>
][active]" id="rule_<?php echo $_smarty_tpl->tpl_vars['rule']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['rule']->value['active'];?>
" class="toggle"></td>
                  <td><?php echo $_smarty_tpl->tpl_vars['rule']->value['class'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['rule']->value['detail'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['rule']->value['country'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['rule']->value['state'];?>
</td>
                  <td align="center"><input type="hidden" name="rule[<?php echo $_smarty_tpl->tpl_vars['rule']->value['id'];?>
][goods]" id="goods_<?php echo $_smarty_tpl->tpl_vars['rule']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['rule']->value['goods'];?>
" class="toggle"></td>
                  <td align="center"><input type="hidden" name="rule[<?php echo $_smarty_tpl->tpl_vars['rule']->value['id'];?>
][shipping]" id="shipping_<?php echo $_smarty_tpl->tpl_vars['rule']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['rule']->value['shipping'];?>
" class="toggle"></td>
                  <td nowrap="nowrap"><input type="text" name="rule[<?php echo $_smarty_tpl->tpl_vars['rule']->value['id'];?>
][tax_percent]" class="textbox number" style="text-align: right;" value="<?php echo $_smarty_tpl->tpl_vars['rule']->value['tax_percent'];?>
"> %</td>
                  <td align="center"><a href="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
&delete_rule=<?php echo $_smarty_tpl->tpl_vars['rule']->value['id'];?>
" class="delete" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['notification']['confirm_delete'];?>
" ><i class="fa fa-trash" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delete'];?>
"></i></a></td>
               </tr>
               <?php }
if (!$_smarty_tpl->tpl_vars['rule']->_loop) {
?>
               <tr>
                  <td align="center" colspan="9"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['none'];?>
</td>
               </tr>
               <?php } ?>
            </tbody>
         </table>
      </fieldset>
      <fieldset>
         <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['title_tax_rule_add'];?>
</legend>
         <div>
            <label for="rule-class"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['tax_class'];?>
</label>
            <span>
               <select name="addrule[type_id]" class="textbox" id="rule-class">
                  <?php  $_smarty_tpl->tpl_vars['class'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['class']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TAX_CLASSES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['class']->key => $_smarty_tpl->tpl_vars['class']->value) {
$_smarty_tpl->tpl_vars['class']->_loop = true;
?>
                  <option value="<?php echo $_smarty_tpl->tpl_vars['class']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['class']->value['tax_name'];?>
</option>
                  <?php } ?>
               </select>
            </span>
         </div>
         <div>
            <label for="rule-detail"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['tax_detail'];?>
</label>
            <span>
               <select name="addrule[details_id]" class="textbox" id="rule-detail">
                  <?php  $_smarty_tpl->tpl_vars['detail'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['detail']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TAX_DETAILS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['detail']->key => $_smarty_tpl->tpl_vars['detail']->value) {
$_smarty_tpl->tpl_vars['detail']->_loop = true;
?>
                  <option value="<?php echo $_smarty_tpl->tpl_vars['detail']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['detail']->value['display'];?>
</option>
                  <?php } ?>
               </select>
            </span>
         </div>
         <div><label for="rule-eu"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['country']['assign_to_eu'];?>
</label><span>
            <input type="checkbox" name="addrule[eu]" id="rule-eu" value="1" />
            </span>
         </div>
         <div id="country-region">
            <div><label for="country-list"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['country'];?>
</label><span><select name="addrule[country_id]" id="country-list" class="textbox no-custom-zone" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['regions_all'];?>
">
               <?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 if ($_smarty_tpl->tpl_vars['country']->value['numcode']==$_smarty_tpl->tpl_vars['CONFIG']->value['store_country']) {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['country']->value['name'];?>
</option><?php } ?>
               </select></span>
            </div>
            <div><label for="state-list"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['state'];?>
</label><span><input name="addrule[county_id]" type="text" id="state-list" class="textbox" value="<?php echo $_smarty_tpl->tpl_vars['VAL_TAX_STATE']->value;?>
"></span></div>
         </div>
         <div><label for="rule-taxrate"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['tax_rate'];?>
</label><span><input name="addrule[tax_percent]" id="rule-taxrate" type="text" class="textbox number"></span></div>
         <div><label for="rule-applyto"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['tax_apply_to'];?>
</label><span>
            <input type="hidden" name="addrule[goods]" id="rule-goods" value="0" class="toggle"> <?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['tax_on_goods'];?>
 
            <input type="hidden" name="addrule[shipping]" id="rule-shipping" value="0" class="toggle"> <?php echo $_smarty_tpl->tpl_vars['LANG']->value['settings']['tax_on_shipping'];?>
 
            </span>
         </div>
         <div>
            <label for="rule-status"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['status'];?>
</label>
            <span>
               <select name="addrule[active]" id="rule-status" class="textbox">
                  <option value="0"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['disabled'];?>
</option>
                  <option value="1"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['enabled'];?>
</option>
               </select>
            </span>
         </div>
      </fieldset>
   </div>
   <?php echo $_smarty_tpl->getSubTemplate ('templates/element.hook_form_content.php', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

   <div class="form_control">
      <input type="submit" id="submit" class="button" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['save'];?>
">
      <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['FORM_HASH']->value;?>
">
      <input type="hidden" name="previous-tab" id="previous-tab" value="">
      <input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
   </div>
</form>
<script type="text/javascript">
   var county_list = <?php echo $_smarty_tpl->tpl_vars['VAL_JSON_COUNTY']->value;?>
;
</script><?php }} ?>
