<?php /* Smarty version 2.6.22, created on 2014-03-09 00:35:01
         compiled from /home/hamyarwp/public_html/market/zipmarket/apps/users/admin/list.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', '/home/hamyarwp/public_html/market/zipmarket/apps/users/admin/list.html', 44, false),array('modifier', 'string_format', '/home/hamyarwp/public_html/market/zipmarket/apps/users/admin/list.html', 46, false),)), $this); ?>
<div class="page-info">
    <div class="container">
      <div id="breadcrumbs">
        <a href="/admin" class="first">Home</a> \
      </div>
      <h1 class="page-title">Users</h1>
    </div>
   <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['root_path'])."/zipmarket/apps/admin/admin_tabsy.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  </div>
    <div id="content">
      <div class="container">
    <?php echo $this->_tpl_vars['errorMessage']; ?>

	
  	<?php if ($this->_tpl_vars['paging'] != ""): ?>
       <div class="page-controls">
        <form class="sort-control" method="post" style="width: 350px;" action="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
">
         <input type="text" id="q" name="q" value="<?php echo $this->_tpl_vars['lang']['start_searching']; ?>
..." onfocus="this.value=='<?php echo $this->_tpl_vars['lang']['start_searching']; ?>
...'?this.value='':false;" onblur="this.value==''?this.value='<?php echo $this->_tpl_vars['lang']['start_searching']; ?>
...':false;">
          <button type="submit" class="image-button search no-margin">Search</button>
        </form>
        <?php echo $this->_tpl_vars['paging']; ?>

       </div></div>
	<?php endif; ?>
  
	<?php if (is_array ( $this->_tpl_vars['data'] )): ?>
<div class="general_table_border">
	<table class="general_table" cellspacing="0" cellpadding="0" border="0">
		<thead>
			<tr>
				<th><a href="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
&p=<?php echo $_GET['p']; ?>
&q=<?php echo $_GET['q']; ?>
&order=name&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
" title=""><?php echo $this->_tpl_vars['lang']['username']; ?>
</a></th>
				<th><a href="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
&p=<?php echo $_GET['p']; ?>
&q=<?php echo $_GET['q']; ?>
&order=money&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
" title=""><?php echo $this->_tpl_vars['lang']['current_balance']; ?>
</a></th>
				<th><?php echo $this->_tpl_vars['lang']['commission']; ?>
</th>
				<th><a href="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
&p=<?php echo $_GET['p']; ?>
&q=<?php echo $_GET['q']; ?>
&order=items&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
" title=""><?php echo $this->_tpl_vars['lang']['items']; ?>
</a></th>
				<th><a href="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
&p=<?php echo $_GET['p']; ?>
&q=<?php echo $_GET['q']; ?>
&order=sales&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
" title=""><?php echo $this->_tpl_vars['lang']['sales']; ?>
</a></th>
				<th><a href="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
&p=<?php echo $_GET['p']; ?>
&q=<?php echo $_GET['q']; ?>
&order=sold&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
" title=""><?php echo $this->_tpl_vars['lang']['sales_earnings']; ?>
</a></th>
				<th><a href="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
&p=<?php echo $_GET['p']; ?>
&q=<?php echo $_GET['q']; ?>
&order=referals&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
" title=""><?php echo $this->_tpl_vars['lang']['referals']; ?>
</a></th>
				<th><a href="?m=<?php echo $_GET['m']; ?>
&c=<?php echo $_GET['c']; ?>
&p=<?php echo $_GET['p']; ?>
&q=<?php echo $_GET['q']; ?>
&order=referal_money&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
" title=""><?php echo $this->_tpl_vars['lang']['referal_earnings']; ?>
</a></th>
				<th>Featured</th>
				<th width="150"></th>
			</tr>
		</thead>

		<tbody>
		<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['d']):
?>
			<tr id="row<?php echo $this->_tpl_vars['d']['user_id']; ?>
" class="<?php echo smarty_function_cycle(array('values' => "no,alt"), $this);?>
">
				<td><?php echo $this->_tpl_vars['d']['username']; ?>
</td>
				<td class="ta-right"><?php echo ((is_array($_tmp=$this->_tpl_vars['d']['total'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f")); ?>
 <?php echo $this->_tpl_vars['currency']['symbol']; ?>
</td>
				<td class="ta-right"><?php echo $this->_tpl_vars['d']['commission']; ?>
 %</td>
				<td><a href="?m=items&c=list&user=<?php echo $this->_tpl_vars['d']['user_id']; ?>
" title=""><?php echo $this->_tpl_vars['d']['items']; ?>
</a></td>
				<td><?php echo $this->_tpl_vars['d']['sales']; ?>
</td>
				<td class="ta-right"><?php echo ((is_array($_tmp=$this->_tpl_vars['d']['sold'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f")); ?>
 <?php echo $this->_tpl_vars['currency']['symbol']; ?>
</td>
				<td><?php echo $this->_tpl_vars['d']['referals']; ?>
</td>
				<td class="ta-right"><?php echo ((is_array($_tmp=$this->_tpl_vars['d']['referal_money'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f")); ?>
 <?php echo $this->_tpl_vars['currency']['symbol']; ?>
</td>
				<td>
					<?php if ($this->_tpl_vars['d']['featured_author'] == 'true'): ?>
						<img src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/24x24/accept.png" alt="" class="middle" />
					<?php else: ?>
						<img src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/24x24/delete.png" alt="" class="middle" />
					<?php endif; ?>
				</td>
				<td>
					<a href="?m=<?php echo $_GET['m']; ?>
&c=balance&id=<?php echo $this->_tpl_vars['d']['user_id']; ?>
" title="<?php echo $this->_tpl_vars['lang']['current_balance']; ?>
"><img class="middle" src="<?php echo $this->_tpl_vars['data_server']; ?>
/admin/images/icons/16x16/coins.png" /> <?php echo $this->_tpl_vars['lang']['edit']; ?>
 <?php echo $this->_tpl_vars['lang']['balance1']; ?>
</a>
					<br/>
					<a href="?m=<?php echo $_GET['m']; ?>
&c=edit&id=<?php echo $this->_tpl_vars['d']['user_id']; ?>
" title="<?php echo $this->_tpl_vars['lang']['edit']; ?>
"><img class="middle" src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/16x16/edit.png" /> <?php echo $this->_tpl_vars['lang']['edit']; ?>
 User</a>
					<br/>
					<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['lang']['delete']; ?>
" onclick="eAjax('/zipmarket/apps/<?php echo $_GET['m']; ?>
/ajax/delete.php',<?php echo '{\'deleteUser\':true,\'id\':\''; ?>
<?php echo $this->_tpl_vars['d']['user_id']; ?>
<?php echo '\'}'; ?>
,'deleteRow');"><img class="middle" src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/16x16/delete.png" /> <?php echo $this->_tpl_vars['lang']['delete']; ?>
 User</a>
				</td>					
			</tr>
		<?php endforeach; endif; unset($_from); ?>
		</tbody>
	</table> 		
</div>
	<?php else: ?>
		<?php echo $this->_tpl_vars['lang']['no_records']; ?>

	<?php endif; ?>
  </div>
</div>