<?php /* Smarty version Smarty-3.1.15, created on 2015-05-26 09:45:08
         compiled from "/home/hushdogcafe/public_html/cube/admin/skins/default/templates/orders.index.php" */ ?>
<?php /*%%SmartyHeaderCode:34625846553efa534eae10-78829477%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7061c32d572fe5f651a9cce6fdcbc70a81d7dd07' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/admin/skins/default/templates/orders.index.php',
      1 => 1432604704,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '34625846553efa534eae10-78829477',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_553efa53ea6031_80901954',
  'variables' => 
  array (
    'VAL_SELF' => 0,
    'DISPLAY_ORDER_LIST' => 0,
    'LANG' => 0,
    'ORDER_LIST' => 0,
    'THEAD' => 0,
    'order' => 0,
    'SKIN_VARS' => 0,
    'LIST_ORDER_STATUS' => 0,
    'status' => 0,
    'TOTAL_RESULTS' => 0,
    'PAGINATION' => 0,
    'DISPLAY_FORM' => 0,
    'SUMMARY' => 0,
    'OVERVIEW_SUMMARY' => 0,
    'BANKSLIP' => 0,
    'DISPLAY_DASHBOARD' => 0,
    'DISPLAY_OVERVIEW' => 0,
    'DISPLAY_COMMENTS' => 0,
    'PRODUCTS' => 0,
    'product' => 0,
    'TAX_SUMMARY' => 0,
    'tax' => 0,
    'LIST_ADDRESS' => 0,
    'address' => 0,
    'LIST_COUNTRY' => 0,
    'country' => 0,
    'PRODUCT' => 0,
    'LIST_TAXES' => 0,
    'SELECT_TAX' => 0,
    'taxes' => 0,
    'LIST_NOTES' => 0,
    'note' => 0,
    'LIST_HISTORY' => 0,
    'history' => 0,
    'DISPLAY_TRANSACTIONS' => 0,
    'DISPLAY_ACTIONS' => 0,
    'TRANSACTIONS' => 0,
    'transaction' => 0,
    'action' => 0,
    'DISPLAY_CARD' => 0,
    'CARD_DATA' => 0,
    'card' => 0,
    'data' => 0,
    'CARD_DELETE' => 0,
    'PLUGIN_TABS' => 0,
    'tab' => 0,
    'STATE_JSON' => 0,
    'ADDRESS_JSON' => 0,
    'SESSION_TOKEN' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_553efa53ea6031_80901954')) {function content_553efa53ea6031_80901954($_smarty_tpl) {?>
<form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post" enctype="multipart/form-data">
   <?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_ORDER_LIST']->value)) {?>
   <div id="orders" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_orders'];?>
</h3>
      <?php if ($_smarty_tpl->tpl_vars['ORDER_LIST']->value) {?>
      <table width="100%">
         <thead>
            <tr>
               <td>&nbsp;</td>
               <td nowrap="nowrap"><?php echo $_smarty_tpl->tpl_vars['THEAD']->value['cart_order_id'];?>
</td>
               <td>&nbsp;</td>
               <td><?php echo $_smarty_tpl->tpl_vars['THEAD']->value['customer'];?>
</td>
               <td nowrap="nowrap"><?php echo $_smarty_tpl->tpl_vars['THEAD']->value['status'];?>
</td>
               <td><?php echo $_smarty_tpl->tpl_vars['THEAD']->value['date'];?>
</td>
               <td><?php echo $_smarty_tpl->tpl_vars['THEAD']->value['total'];?>
</td>
               <td>&nbsp;</td>
            </tr>
         </thead>
         <tbody>
            <?php  $_smarty_tpl->tpl_vars['order'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['order']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ORDER_LIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['order']->key => $_smarty_tpl->tpl_vars['order']->value) {
$_smarty_tpl->tpl_vars['order']->_loop = true;
?>
            <tr>
               <td align="center"><input type="checkbox" id="" name="multi-order[]" value="<?php echo $_smarty_tpl->tpl_vars['order']->value['cart_order_id'];?>
" class="all-orders"></td>
               <td><a href="<?php echo $_smarty_tpl->tpl_vars['order']->value['link_edit'];?>
"><?php echo $_smarty_tpl->tpl_vars['order']->value['cart_order_id'];?>
</a></td>
               <td align="center">
                  <?php if ($_smarty_tpl->tpl_vars['order']->value['icon']=='user_registered') {?>
                  <i class="fa fa-user registered" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['customer']['title_key_registered'];?>
"></i>
                  <?php } else { ?>
                  <i class="fa fa-user unregistered" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['customer']['title_key_unregistered'];?>
"></i>
                  <?php }?>
               </td>
               <td><a href="<?php echo $_smarty_tpl->tpl_vars['order']->value['link_customer'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['order']->value['name'];?>
"><?php echo $_smarty_tpl->tpl_vars['order']->value['name'];?>
</a></td>
               <td><?php echo $_smarty_tpl->tpl_vars['order']->value['status'];?>
</td>
               <td><?php echo $_smarty_tpl->tpl_vars['order']->value['date'];?>
</td>
               <td align="right"><?php echo $_smarty_tpl->tpl_vars['order']->value['prod_total'];?>
</td>
               <td align="center">
                  <a href="<?php echo $_smarty_tpl->tpl_vars['order']->value['link_print'];?>
" class="print" target="_blank" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['print'];?>
"><i class="fa fa-print" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['print'];?>
"></i></a>
                  <a href="<?php echo $_smarty_tpl->tpl_vars['order']->value['link_edit'];?>
" class="edit" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['edit'];?>
"><i class="fa fa-pencil-square-o" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['edit'];?>
"></i></a>
                  <a href="<?php echo $_smarty_tpl->tpl_vars['order']->value['link_delete'];?>
" 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 } ?>
         </tbody>
         <tfoot>
            <tr>
               <td><img src="<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['admin_folder'];?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['skin_folder'];?>
/images/select_all.gif" alt=""></td>
               <td><a href="#" class="check-all" rel="all-orders"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['check_uncheck'];?>
</a></td>
               <td colspan="6">
                  <?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['with_selected'];?>
:
                  <select name="multi-status" class="textbox">
                     <option value=""><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['option_status_no_change'];?>
</option>
                     <optgroup label="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['change_order_status'];?>
">
                        <?php  $_smarty_tpl->tpl_vars['status'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['status']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LIST_ORDER_STATUS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['status']->key => $_smarty_tpl->tpl_vars['status']->value) {
$_smarty_tpl->tpl_vars['status']->_loop = true;
?><option value="<?php echo $_smarty_tpl->tpl_vars['status']->value['id'];?>
"<?php echo $_smarty_tpl->tpl_vars['status']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['status']->value['string'];?>
</option><?php } ?>
                     </optgroup>
                  </select>
                  <?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['then'];?>

                  <select name="multi-action" class="textbox">
                     <option value=""><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['option_nothing'];?>
</option>
                     <option value="print"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['option_print'];?>
</option>
                     <option value="delete" style="color: red;"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['option_delete'];?>
</option>
                  </select>
                  <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['go'];?>
" name="go" class="tiny">
               </td>
            </tr>
            <tr>
               <td colspan="8">
                  <div class="pagination">
                     <span><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['total'];?>
: <?php echo $_smarty_tpl->tpl_vars['TOTAL_RESULTS']->value;?>
</span>
                     <?php echo $_smarty_tpl->tpl_vars['PAGINATION']->value;?>
&nbsp;
                  </div>
               </td>
            </tr>
         </tfoot>
      </table>
      <?php } else { ?>
      <p align="center"><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['notify_orders_none'];?>
</strong></p>
      <?php }?>
   </div>
   <div id="search" class="tab_content">
      <fieldset>
         <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_search'];?>
</legend>
         <div><label for="order_no"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['order_number'];?>
</label><span><input type="text" name="search[order_number]" class="textbox"></span></div>
         <div>
            <label for="customer_id"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['customer_name'];?>
</label>
            <span><input type="text" id="search_customer_id" class="textbox ajax" rel="user"><input type="hidden" id="result_search_customer_id" name="search[search_customer_id]" value=""></span>
         </div>
         <div>
            <label for="search_status"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_order_status'];?>
</label>
            <span>
               <select name="search[status]" id="search_status" class="textbox">
                  <option value=""><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['all'];?>
</option>
                  <?php  $_smarty_tpl->tpl_vars['status'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['status']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LIST_ORDER_STATUS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['status']->key => $_smarty_tpl->tpl_vars['status']->value) {
$_smarty_tpl->tpl_vars['status']->_loop = true;
?><option value="<?php echo $_smarty_tpl->tpl_vars['status']->value['id'];?>
"<?php echo $_smarty_tpl->tpl_vars['status']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['status']->value['string'];?>
</option><?php } ?>
               </select>
            </span>
         </div>
      </fieldset>
      <fieldset>
         <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['search']['title_by_date'];?>
</legend>
         <div><label for="date_range"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['search']['date_range'];?>
</label><span><input type="text" name="search[date][from]" class="textbox number date"> - <input type="text" name="search[date][to]" class="textbox number date"></span></div>
      </fieldset>
      <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['search'];?>
">
   </div>
   <?php }?>
   <?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_FORM']->value)) {?>
   <div>
      <div id="order_summary" class="tab_content" style="width: 660px;">
         <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_order_summary'];?>
</h3>
         <p><a href="?_g=orders&node=index&print[]=<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['cart_order_id'];?>
" class="print" target="_blank"><i class="fa fa-print" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['print'];?>
"></i></a>&nbsp;&nbsp;

         <?php if ($_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['status']==2||$_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['status']==3) {?>
           <a href="uploads/<?php echo $_smarty_tpl->tpl_vars['BANKSLIP']->value['filename'];?>
" target="_blank">View Bank In Slip</a>
         <?php }?>

         </p>
         <fieldset>
            <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_status_change'];?>
</legend>
            <div><label for="o_status"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_order_status'];?>
</label><span><select name="order[status]" id="o_status">
               <?php  $_smarty_tpl->tpl_vars['status'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['status']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LIST_ORDER_STATUS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['status']->key => $_smarty_tpl->tpl_vars['status']->value) {
$_smarty_tpl->tpl_vars['status']->_loop = true;
?><option value="<?php echo $_smarty_tpl->tpl_vars['status']->value['id'];?>
"<?php echo $_smarty_tpl->tpl_vars['status']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['status']->value['string'];?>
</option><?php } ?>
               </select></span>
            </div>
            <?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_DASHBOARD']->value)) {?>
            <div>
               <label for="dashboard"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['dashboard_show'];?>
</label>
               <span><input type="hidden" name="dashboard" id="dashboard" class="toggle" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['dashboard'];?>
"></span>
            </div>
            <?php }?>
         </fieldset>
         <?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_OVERVIEW']->value)) {?>
         <?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_COMMENTS']->value)) {?>
         <div class="note">
            <span class="actions"></span>
            <div class="note-header"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['note_from'];?>
 <?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['first_name'];?>
 <?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['last_name'];?>
</div>
            &quot;<?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['customer_comments'];?>
&quot;
         </div>
         <?php }?>
         <div id="order_overview">
            <fieldset class="order_address" id="shipping_address">
               <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['delivery_address'];?>
</legend>
               <?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['name_d'];?>
<br>
               <?php if (!empty($_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['company_name_d'])) {?><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['company_name_d'];?>
<br><?php }?>
               <?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['line1_d'];?>
<br>
               <?php if (!empty($_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['line2_d'])) {?><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['line2_d'];?>
<br><?php }?>
               <?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['town_d'];?>
<br>
               <?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['state_d'];?>
, <?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['postcode_d'];?>
<br>
               <?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['country_d'];?>

            </fieldset>
            <fieldset class="order_address">
               <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['billing_address'];?>
</legend>
               <?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['name'];?>
<br>
               <?php if (!empty($_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['company_name'])) {?><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['company_name'];?>
<br><?php }?>
               <?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['line1'];?>
<br>
               <?php if (!empty($_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['line2'])) {?><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['line2'];?>
<br><?php }?>
               <?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['town'];?>
<br>
               <?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['state'];?>
, <?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['postcode'];?>
<br>
               <?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['country'];?>

            </fieldset>
            <fieldset id="items">
               <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['title_items'];?>
</legend>
               <?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['PRODUCTS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
$_smarty_tpl->tpl_vars['product']->_loop = true;
?>
               <div id="item">
                  <?php echo $_smarty_tpl->tpl_vars['product']->value['quantity'];?>
 x <?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
 - <?php echo $_smarty_tpl->tpl_vars['product']->value['product_code'];?>
 (<?php echo $_smarty_tpl->tpl_vars['product']->value['line_formatted'];?>
) <?php if ($_smarty_tpl->tpl_vars['product']->value['digital']) {?><a href="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
&reset_id=<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
">[<?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['reset_download_link'];?>
]</a><?php }?><span><?php echo $_smarty_tpl->tpl_vars['product']->value['price_total_formatted'];?>
</span>
                  <?php if ($_smarty_tpl->tpl_vars['product']->value['options_text']) {?>
                  <br><?php echo $_smarty_tpl->tpl_vars['product']->value['options_text'];?>

                  <?php }?>
               </div>
               <?php } ?>
               <div><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_sub'];?>
:<span><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['subtotal'];?>
</span></div>
               <div><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_discount'];?>
  <?php if (!empty($_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['percent'])) {?>(<?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['percent'];?>
)<?php }?>:<span><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['discount'];?>
</span></div>
               <div><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['shipping'];?>
:<span><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['shipping'];?>
</span></div>
               <?php if (isset($_smarty_tpl->tpl_vars['TAX_SUMMARY']->value)) {?>
               <?php  $_smarty_tpl->tpl_vars['tax'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tax']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TAX_SUMMARY']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tax']->key => $_smarty_tpl->tpl_vars['tax']->value) {
$_smarty_tpl->tpl_vars['tax']->_loop = true;
?>
               <div><?php echo $_smarty_tpl->tpl_vars['tax']->value['tax_name'];?>
:<span><?php echo $_smarty_tpl->tpl_vars['tax']->value['tax_amount'];?>
</span></div>
               <?php } ?>
               <?php }?>
               <div><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total'];?>
:<span><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['total'];?>
</span></strong></div>
            </fieldset>
            <fieldset class="other">
               <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['account']['contact_details'];?>
</legend>
               <div><label><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['email'];?>
</label><span><a href="mailto:<?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['email'];?>
"><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['email'];?>
</a></span></div>
               <div><label><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['phone'];?>
</label><span><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['phone'];?>
</span></div>
               <?php if (!empty($_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['mobile'])) {?>
               <div><label><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['mobile'];?>
</label><span><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['mobile'];?>
</span></div>
               <?php }?>
               <div><label><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['ip_address'];?>
</label><span><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['ip_address'];?>
</span></div>
            </fieldset>
            <fieldset class="other">
               <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_shipping'];?>
</legend>
               <?php if (!empty($_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['ship_date'])) {?>
               <div><label><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['shipping_date'];?>
</label><span><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['ship_date'];?>
</span></div>
               <?php }?>
               <?php if (!empty($_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['ship_method'])) {?>
               <div><label><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['shipping_method'];?>
</label><span><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['ship_method'];?>
</span></div>
               <?php }?>
               <?php if (!empty($_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['ship_product'])) {?>
               <div><label><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['shipping_product'];?>
</label><span><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['ship_product'];?>
</span></div>
               <?php }?>
               <?php if (!empty($_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['ship_tracking'])) {?>
               <div><label><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['shipping_tracking'];?>
</label><span><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['ship_tracking'];?>
</span></div>
               <?php }?>
               <?php if (!empty($_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['gateway'])) {?>
               <div><label><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['gateway_name'];?>
</label><span><?php echo $_smarty_tpl->tpl_vars['OVERVIEW_SUMMARY']->value['gateway'];?>
</span></div>
               <?php }?>
            </fieldset>
         </div>
         <?php }?>
      </div>
      <div id="order_billing" class="tab_content">
         <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['billing_address'];?>
</h3>
         <fieldset>
            <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['billing_address'];?>
</legend>
            <div>
               <label for="sum_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_find_customers'];?>
</label>
               <span>
               <input type="hidden" id="ajax_customer_id" name="customer[customer_id]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['customer_id'];?>
">
               <input type="text" id="sum_name" class="textbox ajax" rel="user">
               </span>
            </div>
            <div>
               <label for="addresses"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['title_address'];?>
</label>
               <span>
                  <select class="address-list textbox" rel="sum">
                     <option value="0"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['form_address_select'];?>
</option>
                     <?php if (isset($_smarty_tpl->tpl_vars['LIST_ADDRESS']->value)) {?><?php  $_smarty_tpl->tpl_vars['address'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['address']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LIST_ADDRESS']->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;
?>
                     <option value="<?php echo $_smarty_tpl->tpl_vars['address']->value['key'];?>
" class="temporary"><?php echo $_smarty_tpl->tpl_vars['address']->value['description'];?>
</option>
                     <?php } ?><?php }?>
                  </select>
               </span>
            </div>
            <div><label for="ajax_title"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['title'];?>
</label><span><input type="text" id="ajax_title" name="customer[title]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['title'];?>
" class="textbox billing"></span></div>
            <div><label for="ajax_first_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['name_first'];?>
</label><span><input type="text" id="ajax_first_name" name="customer[first_name]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['first_name'];?>
" class="textbox billing required"></span></div>
            <div><label for="ajax_last_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['name_last'];?>
</label><span><input type="text" id="ajax_last_name" name="customer[last_name]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['last_name'];?>
" class="textbox billing required"></span></div>
            <div><label for="sum_company_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['company_name'];?>
</label><span><input type="text" id="sum_company_name" name="customer[company_name]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['company_name'];?>
" class="textbox billing"></span></div>
            <div><label for="sum_line1"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['line1'];?>
</label><span><input type="text" id="sum_line1" name="customer[line1]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['line1'];?>
" class="textbox billing required"></span></div>
            <div><label for="sum_line2"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['line2'];?>
</label><span><input type="text" id="sum_line2" name="customer[line2]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['line2'];?>
" class="textbox billing"></span></div>
            <div><label for="sum_town"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['town'];?>
</label><span><input type="text" id="sum_town" name="customer[town]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['town'];?>
" class="textbox billing required"></span></div>
            <div>
               <label for="sum_country"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['country'];?>
</label>
               <span>
               <select name="customer[country]" id="sum_country" class="textbox billing country-list required" rel="sum_state">
               <?php  $_smarty_tpl->tpl_vars['country'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['country']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LIST_COUNTRY']->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['is_billing'];?>
 <?php echo $_smarty_tpl->tpl_vars['country']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['country']->value['name'];?>
</option><?php } ?>
               </select>
               </span>
            </div>
            <div><label for="sum_state"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['state'];?>
</label><span><input type="text" id="sum_state" name="customer[state]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['state'];?>
" class="textbox billing state-list required"></span></div>
            <div><label for="sum_postcode"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['postcode'];?>
</label><span><input type="text" id="sum_postcode" name="customer[postcode]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['postcode'];?>
" class="textbox billing"></span></div>
         </fieldset>
         <fieldset>
            <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['account']['contact_details'];?>
</legend>
            <div><label for="ajax_email"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['email'];?>
</label><span><input type="text" id="ajax_email" name="customer[email]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['email'];?>
" class="textbox billing required"></span></div>
            <div><label for="ajax_phone"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['phone'];?>
</label><span><input type="text" id="ajax_phone" name="customer[phone]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['phone'];?>
" class="textbox billing required"></span></div>
            <div><label for="ajax_mobile"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['mobile'];?>
</label><span><input type="text" id="ajax_mobile" name="customer[mobile]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['mobile'];?>
" class="textbox billing"></span></div>
         </fieldset>
      </div>
      <div id="order_delivery" class="tab_content">
         <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['delivery_address'];?>
</h3>
         <fieldset>
            <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['delivery_address'];?>
</legend>
            <div>
               <label for="d_addresses"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['title_address'];?>
</label>
               <span>
                  <select id="d_addresses" class="address-list textbox" rel="d_sum:d_ajax">
                     <option value="0"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['form_address_select'];?>
</option>
                     <?php if (isset($_smarty_tpl->tpl_vars['LIST_ADDRESS']->value)) {?><?php  $_smarty_tpl->tpl_vars['address'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['address']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LIST_ADDRESS']->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;
?>
                     <option value="<?php echo $_smarty_tpl->tpl_vars['address']->value['key'];?>
" class="temporary"><?php echo $_smarty_tpl->tpl_vars['address']->value['description'];?>
</option>
                     <?php } ?><?php }?>
                  </select>
               </span>
               <a href="#" class="duplicate" rel="billing" target="d_"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['copy_from_billing'];?>
</a>
            </div>
            <div><label for="d_ajax_title"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['title'];?>
</label><span><input type="text" id="d_ajax_title" name="customer[title_d]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['title_d'];?>
" class="textbox"></span></div>
            <div><label for="d_ajax_first_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['name_first'];?>
</label><span><input type="text" id="d_ajax_first_name" name="customer[first_name_d]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['first_name_d'];?>
" class="textbox required"></span></div>
            <div><label for="d_ajax_last_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['name_last'];?>
</label><span><input type="text" id="d_ajax_last_name" name="customer[last_name_d]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['last_name_d'];?>
" class="textbox required"></span></div>
            <div><label for="d_sum_company_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['company_name'];?>
</label><span><input type="text" id="d_sum_company_name" name="customer[company_name_d]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['company_name_d'];?>
" class="textbox"></span></div>
            <div><label for="d_sum_line1"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['line1'];?>
</label><span><input type="text" id="d_sum_line1" name="customer[line1_d]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['line1_d'];?>
" class="textbox required"></span></div>
            <div><label for="d_sum_line2"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['line2'];?>
</label><span><input type="text" id="d_sum_line2" name="customer[line2_d]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['line2_d'];?>
" class="textbox"></span></div>
            <div><label for="d_sum_town"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['town'];?>
</label><span><input type="text" id="d_sum_town" name="customer[town_d]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['town_d'];?>
" class="textbox required"></span></div>
            <div>
               <label for="d_sum_country"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['country'];?>
</label>
               <span>
               <select name="customer[country_d]" id="d_sum_country" class="textbox country-list required" rel="d_sum_state">
               <?php  $_smarty_tpl->tpl_vars['country'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['country']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LIST_COUNTRY']->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['is_delivery'];?>
 <?php echo $_smarty_tpl->tpl_vars['country']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['country']->value['name'];?>
</option><?php } ?>
               </select>
               </span>
            </div>
            <div><label for="d_sum_state"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['state'];?>
</label><span><input type="text" id="d_sum_state" name="customer[state_d]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['state_d'];?>
" class="textbox state-list required"></span></div>
            <div><label for="d_sum_postcode"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['postcode'];?>
</label><span><input type="text" id="d_sum_postcode" name="customer[postcode_d]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['postcode_d'];?>
" class="textbox required"></span></div>
         </fieldset>
         <fieldset>
            <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_shipping'];?>
</legend>
            <div><label for="sum_ship_date"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['shipping_date'];?>
</label><span><input type="text" id="sum_ship_date" name="summary[ship_date]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['ship_date'];?>
" class="textbox date"></span></div>
            <div><label for="sum_ship_method"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['shipping_method'];?>
</label><span><input type="text" id="sum_ship_method" name="summary[ship_method]" placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['shipping_method_eg'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['ship_method'];?>
" class="textbox"></span></div>
            <div><label for="sum_ship_product"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['shipping_product'];?>
</label><span><input type="text" id="sum_ship_product" name="summary[ship_product]" placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['shipping_product_eg'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['ship_product'];?>
" class="textbox"></span></div>
            <div><label for="sum_ship_tracking"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['shipping_tracking'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['shipping_url_or_code'];?>
</label><span><input type="text" id="sum_ship_tracking" name="summary[ship_tracking]" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['ship_tracking'];?>
" class="textbox"></span></div>
         </fieldset>
      </div>
      <div id="order_inventory" class="tab_content">
         <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_order_inventory'];?>
</h3>
         <div style="display: none;">
            <span class="actions">
            <i class="fa fa-trash" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delete'];?>
"></i>
            </span>
         </div>
         <table id="order-builder">
            <thead>
               <tr>
                  <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['quantity'];?>
</th>
                  <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['product_name'];?>
</th>
                  <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['price_unit'];?>
</th>
                  <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['price'];?>
</th>
                  <th width="20">&nbsp;</th>
               </tr>
            </thead>
            <tbody id="inventory-list">
               <?php if (isset($_smarty_tpl->tpl_vars['PRODUCTS']->value)) {?>
               <?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['PRODUCTS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
$_smarty_tpl->tpl_vars['product']->_loop = true;
?>
               <tr class="update-subtotal">
                  <td>
                     <input type="hidden" name="inv[<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
][id]" class="saved" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
">
                     <input type="text" name="inv[<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
][quantity]" class="textbox number quantity" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['quantity'];?>
">
                     <?php if ($_smarty_tpl->tpl_vars['product']->value['product_id']>0) {?>
                     <input type="hidden" name="inv[<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
][product_id]" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['product_id'];?>
">
                     <?php }?>
                  </td>
                  <td>
                     <span class="editable" name="inv[<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
][name]"><?php echo $_smarty_tpl->tpl_vars['product']->value['name'];?>
</span>
                     <?php echo $_smarty_tpl->getSubTemplate ('templates/element.product_options.php', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

                  </td>
                  <td align="right">
                     <input type="text" name="inv[<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
][price]" id="<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
_price" class="textbox number-right lineprice original-fix" original="<?php echo $_smarty_tpl->tpl_vars['product']->value['line_price_less_options'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['line'];?>
">
                  </td>
                  <td align="right"><input type="text" name="inv[<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
][line_price]" class="textbox number-right subtotal" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['price_total'];?>
"></td>
                  <td align="center"><a href="#<?php echo $_smarty_tpl->tpl_vars['product']->value['id'];?>
" class="remove" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['notification']['confirm_delete'];?>
" name="inv_remove" rel="<?php echo $_smarty_tpl->tpl_vars['PRODUCT']->value['id'];?>
"><i class="fa fa-trash" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delete'];?>
"></i></a></td>
               </tr>
               <?php } ?>
               <?php }?>
            </tbody>
            <tfoot>
               <tr class="update-subtotal inline-add">
                  <td><input type="text" class="textbox number quantity" rel="product_quantity" value="1"></td>
                  <td><input type="hidden" id="ajax_product_id" rel="product_id"><input type="text" id="ajax_name" placeholder="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['type_to_search'];?>
" class="textbox ajax not-empty" rel="product"></td>
                  <td><input type="text" id="ajax_price" class="textbox number-right lineprice" rel="price" value="0.00"></td>
                  <td  align="right"><input type="text" rel="line_price" class="textbox number-right subtotal" value="0.00"></td>
                  <td align="center" class="action"><a href="#" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['add'];?>
" class="add" target="inventory-list"><i class="fa fa-plus-circle" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['add'];?>
"></i></a></td>
               </tr>
               <!-- Source for inline adding -->
               <tr class="update-subtotal inline-source" name="inv_add">
                  <td><input type="text" rel="product_quantity" class="textbox number quantity"></td>
                  <td><input type="hidden" rel="product_id"><input type="hidden" rel="product"><span rel="product"></span> <span rel="product_options"></span></td>
                  <td>
                     <input type="text" rel="price" class="textbox number-right lineprice">
                  </td>
                  <td><input type="text" rel="line_price" class="textbox number-right subtotal"></td>
                  <td align="center"><span class="action"><a href="#" class="remove dynamic" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['decision_remove'];?>
"><i class="fa fa-trash" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delete'];?>
"></i></a></td>
               </tr>
               <tr>
                  <th colspan="3"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_sub'];?>
</th>
                  <td><input type="text" id="subtotal" name="summary[subtotal]" class="textbox number-right" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['subtotal'];?>
"></td>
                  <td>&nbsp;</td>
               </tr>
               <tr class="update-subtotal">
                  <th colspan="3">
                     <select name="summary[discount_type]" id="discount_type">
                     <option value="f" <?php if ($_smarty_tpl->tpl_vars['SUMMARY']->value['discount_type']=="f") {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['discount_price'];?>
</option>
                     <option value="p" <?php if ($_smarty_tpl->tpl_vars['SUMMARY']->value['discount_type']=="p") {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['discount_percent'];?>
</option>
                     </select>
                  </th>
                  <td><input type="text" id="discount" name="summary[discount]" class="textbox number-right lineprice" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['discount_form'];?>
"></td>
                  <td><span id="discount_percent"><?php if ($_smarty_tpl->tpl_vars['SUMMARY']->value['discount_type']=="p") {?>%<?php }?></span></td>
               </tr>
               <tr class="update-subtotal">
                  <th colspan="3"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['shipping'];?>
</th>
                  <td><input type="text" id="shipping" name="summary[shipping]" class="textbox number-right lineprice" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['shipping'];?>
"></td>
                  <td>&nbsp;</td>
               </tr>
               <?php if (isset($_smarty_tpl->tpl_vars['LIST_TAXES']->value)) {?>
               <?php  $_smarty_tpl->tpl_vars['tax'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tax']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LIST_TAXES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tax']->key => $_smarty_tpl->tpl_vars['tax']->value) {
$_smarty_tpl->tpl_vars['tax']->_loop = true;
?>
               <tr class="update-subtotal">
                  <th colspan="3"><?php echo $_smarty_tpl->tpl_vars['tax']->value['type_name'];?>
: <?php echo $_smarty_tpl->tpl_vars['tax']->value['display'];?>
</th>
                  <td><input type="text" name="tax[<?php echo $_smarty_tpl->tpl_vars['tax']->value['id'];?>
]" class="textbox number-right tax" value="<?php echo $_smarty_tpl->tpl_vars['tax']->value['amount'];?>
"></td>
                  <td><a href="#" class="remove" name="tax_remove" rel="<?php echo $_smarty_tpl->tpl_vars['tax']->value['id'];?>
" title=""><i class="fa fa-trash" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['remove'];?>
"></i></a></td>
               </tr>
               <?php } ?>
               <?php }?>
               <tr class="inline-source">
                  <th colspan="3"><?php echo $_smarty_tpl->tpl_vars['tax']->value['type_name'];?>
: <?php echo $_smarty_tpl->tpl_vars['tax']->value['display'];?>
</th>
                  <td><input type="text" name="tax[<?php echo $_smarty_tpl->tpl_vars['tax']->value['id'];?>
]" class="textbox number-right tax" value="<?php echo $_smarty_tpl->tpl_vars['tax']->value['amount'];?>
"></td>
                  <td><a href="#" class="remove" name="tax_remove" rel="<?php echo $_smarty_tpl->tpl_vars['tax']->value['id'];?>
" title=""><i class="fa fa-trash" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['remove'];?>
"></i></a></td>
               </tr>
               <tr class="inline-add">
                  <th colspan="3">
                     <select class="textbox not-empty" rel="tax_id">
                        <option value=""><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['please_select'];?>
</option>
                        <?php if (isset($_smarty_tpl->tpl_vars['SELECT_TAX']->value)) {?>
                        <?php  $_smarty_tpl->tpl_vars['country'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['country']->_loop = false;
 $_smarty_tpl->tpl_vars['taxes'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['SELECT_TAX']->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;
 $_smarty_tpl->tpl_vars['taxes']->value = $_smarty_tpl->tpl_vars['country']->key;
?>
                        <optgroup label="<?php echo $_smarty_tpl->tpl_vars['taxes']->value;?>
">
                           <?php  $_smarty_tpl->tpl_vars['tax'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tax']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['country']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tax']->key => $_smarty_tpl->tpl_vars['tax']->value) {
$_smarty_tpl->tpl_vars['tax']->_loop = true;
?>
                           <option value="<?php echo $_smarty_tpl->tpl_vars['tax']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['tax']->value['type_name'];?>
: <?php echo $_smarty_tpl->tpl_vars['tax']->value['display'];?>
</option>
                           <?php } ?>
                        </optgroup>
                        <?php } ?>
                        <?php }?>
                     </select>
                  </th>
                  <td><input type="text" rel="amount" class="textbox number-right tax not-empty" ></td>
                  <td align="center"><a href="#" class="add" target="tax-list"><i class="fa fa-plus-circle" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['add'];?>
"></i></a></td>
               </tr>
               <!-- Source for inline adding -->
               <tr class="update-subtotal inline-source" name="tax_add">
                  <th colspan="3"><input type="hidden" rel="tax_id"><span rel="tax_id"></span></th>
                  <td><input type="text" rel="amount" class="textbox number-right tax"></td>
                  <td align="center"><a href="#" class="remove dynamic" title=""><i class="fa fa-trash" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delete'];?>
"></i></a></td>
               </tr>
               <tr>
                  <th colspan="3"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_tax'];?>
</th>
                  <td><input type="text" id="total_tax" name="summary[total_tax]" class="textbox number-right" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['total_tax'];?>
"></td>
                  <td>&nbsp;</td>
               </tr>
               <!-- Add total tax: read only -->
               <tr>
                  <th colspan="3"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total'];?>
</th>
                  <td><input type="text" id="total" name="summary[total]" class="textbox number-right" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['total'];?>
"></td>
                  <td align="center"><a href="#" class="refresh"><i class="fa fa-refresh" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['refresh'];?>
"></i></a></td>
               </tr>
            </tfoot>
         </table>
      </div>
      <div id="order_notes" class="tab_content">
         <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_order_notes'];?>
</h3>
         <?php if (isset($_smarty_tpl->tpl_vars['LIST_NOTES']->value)) {?><?php  $_smarty_tpl->tpl_vars['note'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['note']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LIST_NOTES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['note']->key => $_smarty_tpl->tpl_vars['note']->value) {
$_smarty_tpl->tpl_vars['note']->_loop = true;
?>
         <div class="note">
            <span class="actions">
            <a href="<?php echo $_smarty_tpl->tpl_vars['note']->value['delete'];?>
" 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>
            </span>
            <div class="note-header"><?php if (!empty($_smarty_tpl->tpl_vars['note']->value['author'])) {?><?php echo $_smarty_tpl->tpl_vars['LANG']->value['dashboard']['note_by'];?>
 <?php echo $_smarty_tpl->tpl_vars['note']->value['author'];?>
 - <?php }?><?php echo $_smarty_tpl->tpl_vars['note']->value['time'];?>
</div>
            <?php echo nl2br($_smarty_tpl->tpl_vars['note']->value['content']);?>

         </div>
         <?php } ?>
         <?php }?>
         <fieldset>
            <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_note_add'];?>
</legend>
            <div>
               <div><label for="note"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['note_content'];?>
<br>(<?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['note_explain_viewable'];?>
)</label><span><textarea name="note" class="textbox"></textarea></span></div>
               <div><label class="spacer">&nbsp;</label></div>
            </div>
            <div>
               <div><label for="note"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['note_content_public'];?>
<br>(<?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['note_explain_email'];?>
)</label><span><textarea name="summary[note_to_customer]" class="textbox"><?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['note_to_customer'];?>
</textarea></span></div>
               <div><label class="spacer">&nbsp;</label></div>
            </div>
         </fieldset>
      </div>
      <div id="order_history" class="tab_content">
         <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_order_history'];?>
</h3>
         <table>
            <thead>
               <tr>
                  <td width="150"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['status'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['date_time'];?>
</td>
               </tr>
            </thead>
            <tbody>
               <?php if (isset($_smarty_tpl->tpl_vars['LIST_HISTORY']->value)) {?>
               <?php  $_smarty_tpl->tpl_vars['history'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['history']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LIST_HISTORY']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['history']->key => $_smarty_tpl->tpl_vars['history']->value) {
$_smarty_tpl->tpl_vars['history']->_loop = true;
?>
               <tr>
                  <td width="200"><?php echo $_smarty_tpl->tpl_vars['history']->value['status'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['history']->value['updated'];?>
</td>
               </tr>
               <?php } ?>
               <?php }?>
            </tbody>
         </table>
      </div>
      <?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_TRANSACTIONS']->value)) {?>
      <div id="order_transactions" class="tab_content">
         <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_transaction_logs'];?>
</h3>
         <table>
            <thead>
               <tr>
                  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['transaction_id'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['status'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['amount'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['gateway_name'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['date_time'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['notes'];?>
</td>
                  <?php if ($_smarty_tpl->tpl_vars['DISPLAY_ACTIONS']->value) {?>
                  <td width="60"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['action'];?>
</td>
                  <?php }?>
               </tr>
            </thead>
            <tbody>
               <?php  $_smarty_tpl->tpl_vars['transaction'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['transaction']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TRANSACTIONS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['transaction']->key => $_smarty_tpl->tpl_vars['transaction']->value) {
$_smarty_tpl->tpl_vars['transaction']->_loop = true;
?>
               <tr>
                  <td><?php echo $_smarty_tpl->tpl_vars['transaction']->value['trans_id'];?>
</td>
                  <td align="center"><?php echo $_smarty_tpl->tpl_vars['transaction']->value['status'];?>
</td>
                  <td align="center"><?php echo $_smarty_tpl->tpl_vars['transaction']->value['amount'];?>
</td>
                  <td align="center"><?php echo $_smarty_tpl->tpl_vars['transaction']->value['gateway'];?>
</td>
                  <td align="center"><?php echo $_smarty_tpl->tpl_vars['transaction']->value['time'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['transaction']->value['notes'];?>
</td>
                  <?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_ACTIONS']->value)) {?>
                  <td align="center">
                     <?php  $_smarty_tpl->tpl_vars['action'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['action']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['transaction']->value['actions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['action']->key => $_smarty_tpl->tpl_vars['action']->value) {
$_smarty_tpl->tpl_vars['action']->_loop = true;
?>
                     <a href="<?php echo $_smarty_tpl->tpl_vars['action']->value['url'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['action']->value['title'];?>
" class="delete"><img src="<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['admin_folder'];?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['skin_folder'];?>
/images/<?php echo $_smarty_tpl->tpl_vars['action']->value['icon'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['action']->value['title'];?>
"></a>
                     <?php } ?>
                  </td>
                  <?php }?>
               </tr>
               <?php } ?>
            </tbody>
         </table>
      </div>
      <?php }?>
      <?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_CARD']->value)) {?>
      <div id="credit_card" class="tab_content">
         <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_card_details'];?>
</h3>
         <fieldset>
            <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_card_details'];?>
</legend>
            <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['CARD_DATA']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value) {
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
            <div><label for="<?php echo $_smarty_tpl->tpl_vars['card']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['data']->value['name'];?>
</label><span><input type="text" name="card[<?php echo $_smarty_tpl->tpl_vars['card']->value;?>
]" id="<?php echo $_smarty_tpl->tpl_vars['card']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['data']->value['value'];?>
" class="textbox"></span></div>
            <?php } ?>
            <div><label for="delete"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['card_delete'];?>
</label><span><a href="<?php echo $_smarty_tpl->tpl_vars['CARD_DELETE']->value;?>
" 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></span></div>
         </fieldset>
      </div>
      <?php }?>
      <?php if (isset($_smarty_tpl->tpl_vars['PLUGIN_TABS']->value)) {?>
      <?php  $_smarty_tpl->tpl_vars['tab'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tab']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['PLUGIN_TABS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tab']->key => $_smarty_tpl->tpl_vars['tab']->value) {
$_smarty_tpl->tpl_vars['tab']->_loop = true;
?>
      <?php echo $_smarty_tpl->tpl_vars['tab']->value;?>

      <?php } ?>
      <?php }?>
      <?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="hidden" name="previous-tab" id="previous-tab">
         <input type="hidden" name="cart_order_id" value="<?php echo $_smarty_tpl->tpl_vars['SUMMARY']->value['cart_order_id'];?>
">
         <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['save'];?>
"> <input type="submit" name="submit_cont" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['save_reload'];?>
">
      </div>
   </div>
   <script type="text/javascript">
      var county_list	= <?php echo $_smarty_tpl->tpl_vars['STATE_JSON']->value;?>
;<!-- BEGIN: address_json -->
      <?php if ($_smarty_tpl->tpl_vars['ADDRESS_JSON']->value) {?>var addresses		= <?php echo $_smarty_tpl->tpl_vars['ADDRESS_JSON']->value;?>
;<!-- END: address_json --><?php }?>
   </script>
   <?php }?>
   <input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
</form><?php }} ?>
