<?php /* Smarty version Smarty-3.1.15, created on 2015-05-17 20:13:41
         compiled from "/home/hushdogcafe/public_html/cube/skins/foundation/templates/content.orders.php" */ ?>
<?php /*%%SmartyHeaderCode:1312841427553e3623286f76-30842823%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7fd9ddfbe5e6fb3ad1f7d69cfc2836cfedc52077' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/skins/foundation/templates/content.orders.php',
      1 => 1431864812,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1312841427553e3623286f76-30842823',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_553e36233b1fb8_77746378',
  'variables' => 
  array (
    'IS_USER' => 0,
    'LANG' => 0,
    'ORDERS' => 0,
    'PAGINATION' => 0,
    'order' => 0,
    'STORE_URL' => 0,
    'VAL_SELF' => 0,
    'ORDER_NUMBER' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_553e36233b1fb8_77746378')) {function content_553e36233b1fb8_77746378($_smarty_tpl) {?>
<?php if ($_smarty_tpl->tpl_vars['IS_USER']->value) {?>
<h2><?php echo $_smarty_tpl->tpl_vars['LANG']->value['account']['your_orders'];?>
</h2>
<?php if ($_smarty_tpl->tpl_vars['ORDERS']->value) {?>
<p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['account']['your_orders_explained'];?>
</p>
<div class="pagination"><?php echo $_smarty_tpl->tpl_vars['PAGINATION']->value;?>
</div>
<table class="expand">
   <thead>
      <tr>
         <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['customer']['order_count_single'];?>
</th>
         <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total'];?>
</th>
         <th><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['status'];?>
</th>
         <th>&nbsp;</th>
      </tr>
   </thead>
   <tbody>
      <?php  $_smarty_tpl->tpl_vars['order'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['order']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ORDERS']->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><?php echo $_smarty_tpl->tpl_vars['order']->value['time'];?>
<br><a href="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/index.php?_a=vieworder&cart_order_id=<?php echo $_smarty_tpl->tpl_vars['order']->value['cart_order_id'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['view_details'];?>
"><?php echo $_smarty_tpl->tpl_vars['order']->value['cart_order_id'];?>
</a></td>
         <td><?php echo $_smarty_tpl->tpl_vars['order']->value['total'];?>
</td>
         <td><?php echo $_smarty_tpl->tpl_vars['order']->value['status']['text'];?>
</td>
         <td width="120">
            <?php if ($_smarty_tpl->tpl_vars['order']->value['make_payment']) {?>
            <a href="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/index.php?_a=gateway&cart_order_id=<?php echo $_smarty_tpl->tpl_vars['order']->value['cart_order_id'];?>
&retrieve=1" class="button tiny expand thinmarg-bottom"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['complete_payment'];?>
</a>
            <?php }?>

            <a href="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/index.php?_a=vieworder&cart_order_id=<?php echo $_smarty_tpl->tpl_vars['order']->value['cart_order_id'];?>
" class="button tiny expand thinmarg-bottom" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['view_details'];?>
"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['view_details'];?>
</a>
            <?php if (!$_smarty_tpl->tpl_vars['order']->value['make_payment']&&!empty($_smarty_tpl->tpl_vars['order']->value['basket'])) {?>
            <a href="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/index.php?_a=vieworder&reorder=<?php echo $_smarty_tpl->tpl_vars['order']->value['cart_order_id'];?>
" class="button tiny expand thinmarg-bottom" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['reorder'];?>
"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['reorder'];?>
</a>
            <?php }?>

            <?php if ($_smarty_tpl->tpl_vars['order']->value['cancel']) {?>
            <a href="<?php echo $_smarty_tpl->tpl_vars['STORE_URL']->value;?>
/index.php?_a=vieworder&cancel=<?php echo $_smarty_tpl->tpl_vars['order']->value['cart_order_id'];?>
" class="button tiny alert expand nomarg" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['cancel_order'];?>
"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['cancel_order'];?>
</a>
            <?php }?>

         </td>
      </tr>
      <?php } ?>
   </tbody>
</table>
<?php echo $_smarty_tpl->tpl_vars['PAGINATION']->value;?>

<?php } else { ?>
<p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['account']['no_orders_made'];?>
</p>
<?php }?>
<?php } else { ?>
<h2><?php echo $_smarty_tpl->tpl_vars['LANG']->value['account']['lookup_order'];?>
</h2>
<form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" id="lookup_order" method="post">
   <div class="row">
   <div class="small-12 large-8 columns">
   	<label for="lookup_order_id"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['order_number'];?>
</label><input type="text" id="lookup_order_id" name="cart_order_id" value="<?php echo $_smarty_tpl->tpl_vars['ORDER_NUMBER']->value;?>
">
   	</div>
   	</div>
   <div class="row">
   <div class="small-12 large-8 columns"><label for="lookup_email"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['email'];?>
</label><input type="text" id="lookup_email" name="email" value=""></div></div>
   <div><input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['search'];?>
" class="button"></div>
   <div class="hide" id="validate_field_required"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['field_required'];?>
</div>
   <div class="hide" id="validate_email"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['error_email_invalid'];?>
</div>
</form>
<?php }?>
<?php }} ?>
