<?php /* Smarty version 2.6.22, created on 2015-12-29 18:41:17
         compiled from E:/xampp/htdocs/templates/admin/default%5Cusers%5Cbalance.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'E:/xampp/htdocs/templates/admin/default\\users\\balance.html', 46, false),array('modifier', 'string_format', 'E:/xampp/htdocs/templates/admin/default\\users\\balance.html', 47, false),array('modifier', 'date_format', 'E:/xampp/htdocs/templates/admin/default\\users\\balance.html', 48, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['admin_template_path'])."/html/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</head>
<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['admin_template_path'])."/html/pagetops.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php if ($this->_tpl_vars['errorMessage']): ?>
<div id="errormsg">
<div class="msg">
  <div class="closebtn"><i data-icon="" class="icon-close"></i></div>
  <?php echo $this->_tpl_vars['errorMessage']; ?>

</div>
</div>
<?php echo '
<script type="text/javascript">
seajs.use(["modules/pageui/msg"], function(msg){
    msg.msginit("#errormsg");
});
</script>
'; ?>

<?php endif; ?>

<div class="pagebg">
  <div class="mcontent pagemain clr">
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['admin_template_path'])."/html/leftmenu.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    <div class="pagemainconent headtools">

    <div class="headtool b-b clr">
      <div class="toolbtns clr">
        <button class="btns btntheme btnsize" onclick="window.location='?m=<?php echo $_GET['m']; ?>
&c=addBalance&user_id=<?php echo $_GET['id']; ?>
';" type="button"><i class="fa fa-plus"></i> <?php echo $this->_tpl_vars['lang']['add_new']; ?>
</button>
      </div>
    </div>
    <div class="rightdetail_admin">
      <?php if (is_array ( $this->_tpl_vars['data'] )): ?>
      <div class="general_table_border">
        <table id="generlist" class="general_table" cellspacing="0" cellpadding="0" border="0">
          <thead>
            <tr>
              <th>数量</th>
              <th><?php echo $this->_tpl_vars['lang']['date']; ?>
</th>
              <th width="150"><?php echo $this->_tpl_vars['lang']['paid']; ?>
</th>
              <th width="150"><?php echo $this->_tpl_vars['lang']['from_admin']; ?>
</th>
              <th width="250">操作</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 $this->_tpl_vars['currency']['symbol']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['d']['deposit'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</td>
              <td><?php echo ((is_array($_tmp=$this->_tpl_vars['d']['datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%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']; ?>
"><i class="fa fa-edit text-success m-r-xs"></i> <?php echo $this->_tpl_vars['lang']['edit']; ?>
</a>
              <a class="deletebtn" ajax-url="/apps/<?php echo $_GET['m']; ?>
/ajax/delete.php" item-id="<?php echo $this->_tpl_vars['d']['id']; ?>
" href="javascript:void(0);" title="<?php echo $this->_tpl_vars['lang']['delete']; ?>
"><i class="fa fa-trash-o text-danger m-r-xs"></i> <?php echo $this->_tpl_vars['lang']['delete']; ?>
</a>
              </td>
            </tr>
            <?php endforeach; endif; unset($_from); ?>
          </tbody>
        </table>
      </div>
      <?php echo '
      <script type="text/javascript">
      seajs.use(["modules/ajax/btns"], function(aj){
        aj.deletebtninit("#generlist .deletebtn", "ajax-url", "item-id", {\'deleteBalance\':true,\'id\':\'\'}, "deleteRow");
      });
      </script>
      '; ?>

      <?php endif; ?>
    </div>

    </div>
  </div>
</div>
</body>
</html>