<?php /* Smarty version 2.6.22, created on 2014-03-09 00:41:14
         compiled from /home/hamyarwp/public_html/market/zipmarket/apps/items/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/items/admin/list.html', 59, false),array('modifier', 'string_format', '/home/hamyarwp/public_html/market/zipmarket/apps/items/admin/list.html', 62, false),)), $this); ?>
   <div class="page-info">
    <?php if ($_GET['user'] == $this->_tpl_vars['user_id']): ?>
    <div class="container">
      <div id="breadcrumbs">
        <a href="/admin" class="first">Home</a> \
      </div>
      <h1 class="page-title">Items</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);
 ?>
	  
    <?php else: ?>
    <div class="container">
     <div id="breadcrumbs">
      <a href="/admin" class="first">Home</a> \ <a href="/admin/?m=users&amp;c=list">Users</a> \ <a href="/admin/?m=users&c=edit&id=<?php echo $_GET['user']; ?>
"><?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['d']):
        $this->_foreach['foo']['iteration']++;
?><?php if (($this->_foreach['foo']['iteration']-1) < 1): ?><?php echo $this->_tpl_vars['users'][$this->_tpl_vars['d']['user_id']]['username']; ?>
<?php endif; ?><?php endforeach; endif; unset($_from); ?></a> \
     </div>
     <h1 class="page-title">Portfolio</h1>
	</div>
     <div id="tabsy">
      <ul>
		<li><div></div><a href="/admin/?m=users&c=edit&id=<?php echo $_GET['user']; ?>
">Profile</a></li>
		<li><div></div><a href="/admin/?m=users&c=balance&id=<?php echo $_GET['user']; ?>
">Edit Balance</a></li>
		<li class="selected last"><div></div><a href="/admin/?m=items&c=list&user=<?php echo $_GET['user']; ?>
">Portfolio</a><div class="last"></div></li>
      </ul>
	 </div>
	<?php endif; ?>
    </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']; ?>
&user=<?php echo $_GET['user']; ?>
" title="">Item <?php echo $this->_tpl_vars['lang']['name']; ?>
</a></th>
				<th>Seller</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=price&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
&user=<?php echo $_GET['user']; ?>
" title=""><?php echo $this->_tpl_vars['lang']['price']; ?>
</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']; ?>
&user=<?php echo $_GET['user']; ?>
" 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=earning&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
&user=<?php echo $_GET['user']; ?>
" title=""><?php echo $this->_tpl_vars['lang']['win']; ?>
</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=freefile&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
&user=<?php echo $_GET['user']; ?>
" title=""><?php echo $this->_tpl_vars['lang']['free_file']; ?>
</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=weekly&dir=<?php echo $this->_tpl_vars['orderDir']; ?>
&user=<?php echo $_GET['user']; ?>
" title="">Featured</a></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']['id']; ?>
" class="<?php echo smarty_function_cycle(array('values' => "no,alt"), $this);?>
">
				<td><?php echo $this->_tpl_vars['d']['name']; ?>
</td>
				<td><?php echo $this->_tpl_vars['users'][$this->_tpl_vars['d']['user_id']]['username']; ?>
</td>
				<td><?php echo $this->_tpl_vars['currency']['symbol']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['d']['price'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f")); ?>
</td>
				<td><?php echo $this->_tpl_vars['d']['sales']; ?>
</td>
				<td><?php echo $this->_tpl_vars['currency']['symbol']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['d']['earning'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f")); ?>
</td>
				<td>
					<?php if ($this->_tpl_vars['d']['free_file'] == 'true'): ?>
						<img src="<?php echo $this->_tpl_vars['data_server']; ?>
/admin/images/icons/24x24/accept.png">
					<?php else: ?>
						<img src="<?php echo $this->_tpl_vars['data_server']; ?>
/admin/images/icons/24x24/delete.png">
					<?php endif; ?>
				</td>
				<td>
					<?php if ($this->_tpl_vars['d']['weekly_to'] == ''): ?>
						<img src="<?php echo $this->_tpl_vars['data_server']; ?>
/admin/images/icons/24x24/delete.png">
					<?php else: ?>
						<img src="<?php echo $this->_tpl_vars['data_server']; ?>
/admin/images/icons/24x24/accept.png">
					<?php endif; ?>
				</td>
				<td>
					<a href="?m=<?php echo $_GET['m']; ?>
&c=comments&id=<?php echo $this->_tpl_vars['d']['id']; ?>
" title="<?php echo $this->_tpl_vars['lang']['comments']; ?>
"><img class="middle" src="<?php echo $this->_tpl_vars['data_server']; ?>
/admin/images/icons/16x16/icon-comments.png" /> <?php echo $this->_tpl_vars['d']['comments']; ?>
 <?php echo $this->_tpl_vars['lang']['comments']; ?>
 </a>
					<br/>
					<a href="?m=<?php echo $_GET['m']; ?>
&c=edit&id=<?php echo $this->_tpl_vars['d']['id']; ?>
&p=<?php echo $_GET['p']; ?>
" 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']; ?>
 Item</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 '{\'delete\':true,\'id\':\''; ?>
<?php echo $this->_tpl_vars['d']['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']; ?>
 Item</a>
				</td>					
			</tr>
			<?php endforeach; endif; unset($_from); ?>
		</tbody>
	</table> <!-- END Table -->			
</div>
	<?php else: ?>
		<?php echo $this->_tpl_vars['lang']['no_records']; ?>

	<?php endif; ?>


  </div>
</div>
</div>