<?php /* Smarty version 2.6.22, created on 2014-02-11 19:52:52
         compiled from /home/joomaria/public_html/zipmarket/apps/users/admin/balance.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', '/home/joomaria/public_html/zipmarket/apps/users/admin/balance.html', 38, false),array('modifier', 'string_format', '/home/joomaria/public_html/zipmarket/apps/users/admin/balance.html', 39, false),array('modifier', 'date_format', '/home/joomaria/public_html/zipmarket/apps/users/admin/balance.html', 40, false),)), $this); ?>
   <div class="page-info">
    <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['id']; ?>
"><?php echo $this->_tpl_vars['users'][$_GET['id']]['username']; ?>
</a> \
     </div>
     <h1 class="page-title">Edit Balance</h1>
	</div>
     <div id="tabsy">
      <ul>
		<?php if ($this->_tpl_vars['users'][$_GET['id']]['items'] != '0'): ?>
		<li><div></div><a href="/admin/?m=users&c=edit&id=<?php echo $_GET['id']; ?>
">Profile</a></li>
		<li class="selected"><div></div><a href="/admin/?m=users&c=balance&id=<?php echo $_GET['id']; ?>
">Edit Balance</a></li>
		<li class="last"><div></div><a href="/admin/?m=items&c=list&user=<?php echo $_GET['id']; ?>
">Portfolio</a><div class="last"></div></li>
		<?php else: ?>
		<li><div></div><a href="/admin/?m=users&c=edit&id=<?php echo $_GET['id']; ?>
">Profile</a></li>
		 <li class="selected last"><div></div><a href="/admin/?m=users&c=balance&id=<?php echo $_GET['id']; ?>
">Edit Balance</a><div class="last"></div></li>
		<?php endif; ?>
      </ul>
	 </div>
    </div>
    <div id="content">
      <div class="container">
	<?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>Amount</th>
				<th><?php echo $this->_tpl_vars['lang']['date']; ?>
</th>
				<th><?php echo $this->_tpl_vars['lang']['paid']; ?>
</th>
				<th><?php echo $this->_tpl_vars['lang']['from_admin']; ?>
</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 class="ta-right"><?php echo ((is_array($_tmp=$this->_tpl_vars['d']['deposit'])) ? $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 ((is_array($_tmp=$this->_tpl_vars['d']['datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "l, j F Y H:i:s") : smarty_modifier_date_format($_tmp, "l, j F Y H:i:s")); ?>
</td>
				<td style="font-weight:bold; color:<?php if ($this->_tpl_vars['d']['paid'] == 'true'): ?> #48691d; <?php else: ?> #c00; <?php endif; ?>"><?php if ($this->_tpl_vars['d']['paid'] == 'true'): ?> <?php echo $this->_tpl_vars['lang']['yes']; ?>
 <?php else: ?> <?php echo $this->_tpl_vars['lang']['no']; ?>
 <?php endif; ?></td>
				<td style="font-weight:bold; color:<?php if ($this->_tpl_vars['d']['from_admin']): ?> #48691d; <?php else: ?> #c00; <?php endif; ?>"><?php if ($this->_tpl_vars['d']['from_admin']): ?> <?php echo $this->_tpl_vars['lang']['yes']; ?>
 <?php else: ?> <?php echo $this->_tpl_vars['lang']['no']; ?>
 <?php endif; ?></td>
				<td>
					<a href="?m=<?php echo $_GET['m']; ?>
&c=editBalance&id=<?php echo $this->_tpl_vars['d']['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']; ?>
</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 '{\'deleteBalance\':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']; ?>
</a>
				</td>					
			</tr>
		<?php endforeach; endif; unset($_from); ?>
		</tbody>
	</table>
    </div>
	<?php endif; ?>
  <div class="form-submit">
   <button onclick="window.location='?m=<?php echo $_GET['m']; ?>
&c=addBalance&user_id=<?php echo $_GET['id']; ?>
';" type="button" class="btn-icon submit auto-width"><?php echo $this->_tpl_vars['lang']['add_new']; ?>
</button>
  </div>
   </div>
 </div>