<?php /* Smarty version Smarty-3.1.15, created on 2015-04-27 23:44:07
         compiled from "/home/hushdogcafe/public_html/cube/admin/skins/default/templates/reports.index.php" */ ?>
<?php /*%%SmartyHeaderCode:1185849478553e5947ed6757-82293161%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7ff3864bad4fc721893453dde51620e9b0519678' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/admin/skins/default/templates/reports.index.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1185849478553e5947ed6757-82293161',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'VAL_SELF' => 0,
    'REPORT_TITLE' => 0,
    'LANG' => 0,
    'REPORT_DATE' => 0,
    'data' => 0,
    'TALLY' => 0,
    'PAGINATION' => 0,
    'DOWNLOAD' => 0,
    'EXPORT' => 0,
    'module' => 0,
    'POST' => 0,
    'STATUS' => 0,
    'status' => 0,
    'SESSION_TOKEN' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_553e594814d677_79348324',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_553e594814d677_79348324')) {function content_553e594814d677_79348324($_smarty_tpl) {?>
<form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post">
  <div id="results" class="tab_content">
	<h3><?php echo $_smarty_tpl->tpl_vars['REPORT_TITLE']->value;?>
</h3>
	<table>
	  <thead>
		<tr>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['order_number'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_sub'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_discount'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['shipping'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_tax'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['basket']['total_grand'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['name'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['country'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['address']['state'];?>
</td>
		  <td><?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  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['REPORT_DATE']->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;
?>
		<tr><?php echo $_smarty_tpl->tpl_vars['data']->value['value'];?>

		  <td><a href="?_g=orders&action=edit&order_id=<?php echo $_smarty_tpl->tpl_vars['data']->value['cart_order_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['data']->value['cart_order_id'];?>
</a></td>
		  <td align="right"><?php echo $_smarty_tpl->tpl_vars['data']->value['subtotal'];?>
</td>
		  <td align="right"><?php echo $_smarty_tpl->tpl_vars['data']->value['discount'];?>
</td>
		  <td align="right"><?php echo $_smarty_tpl->tpl_vars['data']->value['shipping'];?>
</td>
		  <td align="right"><?php echo $_smarty_tpl->tpl_vars['data']->value['total_tax'];?>
</td>
		  <td align="right"><?php echo $_smarty_tpl->tpl_vars['data']->value['total'];?>
</td>
		  <td align="left"><a href="?_g=customers&action=edit&customer_id=<?php echo $_smarty_tpl->tpl_vars['data']->value['customer_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['data']->value['first_name'];?>
 <?php echo $_smarty_tpl->tpl_vars['data']->value['last_name'];?>
</a></td>
		  <td><?php echo $_smarty_tpl->tpl_vars['data']->value['country'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['data']->value['state'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['data']->value['status'];?>
</td>
		  <td align="center"><?php echo $_smarty_tpl->tpl_vars['data']->value['date'];?>
</td>
		</tr>
		<?php }
if (!$_smarty_tpl->tpl_vars['data']->_loop) {
?>
		<tr><td colspan="11" align="center"><strong><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['error_no_results'];?>
</strong></td></tr>
		<?php } ?>
	  </tbody>
	  <tfoot>
		<tr class="foot" style="font-weight: bold;">
		  <td align="right"><?php echo $_smarty_tpl->tpl_vars['TALLY']->value['orders'];?>
 <?php if ($_smarty_tpl->tpl_vars['TALLY']->value['orders']==1) {?><?php echo $_smarty_tpl->tpl_vars['LANG']->value['customer']['order_count_single'];?>
<?php } else { ?><?php echo $_smarty_tpl->tpl_vars['LANG']->value['customer']['order_count'];?>
<?php }?></td>
		  <td align="right"><?php echo $_smarty_tpl->tpl_vars['TALLY']->value['subtotal'];?>
</td>
		  <td align="right"><?php echo $_smarty_tpl->tpl_vars['TALLY']->value['discount'];?>
</td>
		  <td align="right"><?php echo $_smarty_tpl->tpl_vars['TALLY']->value['shipping'];?>
</td>
		  <td align="right"><?php echo $_smarty_tpl->tpl_vars['TALLY']->value['total_tax'];?>
</td>
		  <td align="right"><?php echo $_smarty_tpl->tpl_vars['TALLY']->value['total'];?>
</td>
		  <td align="center" colspan="6">&nbsp;</td>
		</tr>
	  </tfoot>
	</table>
	<div><?php echo $_smarty_tpl->tpl_vars['PAGINATION']->value;?>
</div>
  	<div>
	<?php if ($_smarty_tpl->tpl_vars['DOWNLOAD']->value) {?><input type="submit" name="download" class="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['export'];?>
"><?php }?>
	<?php  $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['module']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['EXPORT']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value) {
$_smarty_tpl->tpl_vars['module']->_loop = true;
?>
	<input type="submit" name="external_report[<?php echo $_smarty_tpl->tpl_vars['module']->value['folder'];?>
]" class="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['customer']['export_to'];?>
 <?php echo $_smarty_tpl->tpl_vars['module']->value['description'];?>
">
	<?php } ?>
  </div>
  </div>

  <div id="search" class="tab_content">
	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['search']['title_filter'];?>
</h3>
	<fieldset>
		<div>
		  <label for="date_range_from"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['search']['date_range'];?>
</label>
		  <span>
			<input type="text" id="date_range_from" name="report[date][from]" class="textbox number date" value="<?php echo $_smarty_tpl->tpl_vars['POST']->value['date']['from'];?>
"> -
			<input type="text" id="date_range_to" name="report[date][to]" class="textbox number date" value="<?php echo $_smarty_tpl->tpl_vars['POST']->value['date']['to'];?>
">
		  </span>
		</div>
		<div>
			<label for="date_range"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['orders']['title_order_status'];?>
</label>
			<span>
				<select multiple="multiple" name="report[status][]">
					<?php  $_smarty_tpl->tpl_vars['status'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['status']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['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['value'];?>
" <?php echo $_smarty_tpl->tpl_vars['status']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['status']->value['name'];?>
</option>
					<?php } ?>
				</select>
			</span>
		</div>
	</fieldset>
	<div><input type="submit" class="button" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['display'];?>
"></div>
  </div>
  <input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
</form><?php }} ?>
