Files
wnmj/GonghuiWeb/www/m_c/%%85^854^8544679A%%cw.tpl.php
2026-02-24 09:25:17 +08:00

140 lines
8.0 KiB
PHP

<?php /* Smarty version 2.6.26, created on 2020-05-02 15:55:59
compiled from user/cw.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'number_format', 'user/cw.tpl', 15, false),array('modifier', 'strtotime', 'user/cw.tpl', 63, false),array('function', 'timename', 'user/cw.tpl', 63, false),array('function', 'convertip', 'user/cw.tpl', 64, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'top.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<style>
.nr_nr {line-height:18px;}
</style>
<div id=in>
<table width="100%" align=center border="0" cellspacing="1" cellpadding="0" class=nr>
<form action="cw.php" method="post" name="frmedit">
<tr class=gy>
<td height=25 class=nr_nr>
<input type="text" name="money" value="" fs="金额" style="width:100px;" maxLength="200">
<input type="text" name="remark" value="" fs="备注" style="width:200px;">
<input name="pass" id=pass type="password" value="" maxLength="50" style="width:70px;" fs="pass">
<input type="submit" name=submit value="提 交">
<div style="float:right;">
总账户:<?php echo ((is_array($_tmp=$this->_tpl_vars['info']['money']-$this->_tpl_vars['info']['pay'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
元<br>
总收入:<?php echo ((is_array($_tmp=$this->_tpl_vars['info']['money'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
元<br>
总支出:<?php echo ((is_array($_tmp=$this->_tpl_vars['info']['pay'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
</div>
<div style="float:right;width:150px;">
<br>
卖卡:<?php echo ((is_array($_tmp=$this->_tpl_vars['info']['mk'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
张<br>
平均:<?php echo ((is_array($_tmp=$this->_tpl_vars['info']['zq']/$this->_tpl_vars['info']['mk'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : number_format($_tmp, 3)); ?>
元/张
</div>
<div style="float:right;width:130px;">
当月收入:<?php echo ((is_array($_tmp=$this->_tpl_vars['info']['zz'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
元<br>
当月赚取:<?php echo ((is_array($_tmp=$this->_tpl_vars['info']['zq'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
元<br>
当月支出:<?php echo ((is_array($_tmp=$this->_tpl_vars['info']['kx'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
</div>
</td>
</tr>
</form>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class=nr>
<tr><td colspan=13 class=bt height=30><select onchange="FP_jumpMenu(this,'window',false)">
<?php $_from = $this->_tpl_vars['year']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['v']):
?>
<option value='<?php echo $this->_tpl_vars['GG']['Config']['FileName']; ?>
?m=<?php echo $this->_tpl_vars['v']; ?>
' <?php if ($this->_tpl_vars['GG']['m'] == $this->_tpl_vars['v']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['v']; ?>
</option>
<?php endforeach; endif; unset($_from); ?>
</select> <b>财务明细</b>
</td></tr>
<tr>
<td class=bb><b>操作信息</b></td>
<td width=90 class=bb><b>操作类型</b></td>
<td width=100 class=bb><b>充值房卡</b></td>
<td width=100 class=bb><b>操作金额</b></td>
<td width=100 class=bb><b>充值基数</b></td>
<td class=bb><b>操作时间</b></td>
<td class=bb><b>操作IP</b></td>
</tr>
<form name="forms" method="post" action="">
<?php unset($this->_sections['loop']);
$this->_sections['loop']['name'] = 'loop';
$this->_sections['loop']['loop'] = is_array($_loop=$this->_tpl_vars['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['loop']['show'] = true;
$this->_sections['loop']['max'] = $this->_sections['loop']['loop'];
$this->_sections['loop']['step'] = 1;
$this->_sections['loop']['start'] = $this->_sections['loop']['step'] > 0 ? 0 : $this->_sections['loop']['loop']-1;
if ($this->_sections['loop']['show']) {
$this->_sections['loop']['total'] = $this->_sections['loop']['loop'];
if ($this->_sections['loop']['total'] == 0)
$this->_sections['loop']['show'] = false;
} else
$this->_sections['loop']['total'] = 0;
if ($this->_sections['loop']['show']):
for ($this->_sections['loop']['index'] = $this->_sections['loop']['start'], $this->_sections['loop']['iteration'] = 1;
$this->_sections['loop']['iteration'] <= $this->_sections['loop']['total'];
$this->_sections['loop']['index'] += $this->_sections['loop']['step'], $this->_sections['loop']['iteration']++):
$this->_sections['loop']['rownum'] = $this->_sections['loop']['iteration'];
$this->_sections['loop']['index_prev'] = $this->_sections['loop']['index'] - $this->_sections['loop']['step'];
$this->_sections['loop']['index_next'] = $this->_sections['loop']['index'] + $this->_sections['loop']['step'];
$this->_sections['loop']['first'] = ($this->_sections['loop']['iteration'] == 1);
$this->_sections['loop']['last'] = ($this->_sections['loop']['iteration'] == $this->_sections['loop']['total']);
?>
<tr class=gy>
<td class=nr_nr><font color=#999><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Rid']; ?>
.</font>
<?php if ($this->_tpl_vars['data'][$this->_sections['loop']['index']]['OperCount']): ?>
<?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['NickName']; ?>
<font color=#999>(<?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['GameID']; ?>
)</font>
<?php else: ?>
<font color=green><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['remark']; ?>
</font>
<?php endif; ?>
</td>
<td class=nr_nr align=center><?php if ($this->_tpl_vars['data'][$this->_sections['loop']['index']]['PayMoney'] > 0): ?><font color=red>充值<?php else: ?><font color=green>支出<?php endif; ?></font></td>
<td class=nr_nr align=right><?php if ($this->_tpl_vars['data'][$this->_sections['loop']['index']]['PayMoney'] > 0): ?><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['OperCount']; ?>
<?php endif; ?></td>
<td class=nr_nr align=right><?php if ($this->_tpl_vars['data'][$this->_sections['loop']['index']]['PayMoney'] < 0): ?><font color=green><?php endif; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['data'][$this->_sections['loop']['index']]['PayMoney'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
元</font></td>
<td class=nr_nr align=right><?php if ($this->_tpl_vars['data'][$this->_sections['loop']['index']]['PayMoney'] > 0): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['data'][$this->_sections['loop']['index']]['pjz'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : number_format($_tmp, 3)); ?>
<?php endif; ?></td>
<td class=nr_nr><?php echo timename(array('time' => ((is_array($_tmp=$this->_tpl_vars['data'][$this->_sections['loop']['index']]['Date'])) ? $this->_run_mod_handler('strtotime', true, $_tmp) : strtotime($_tmp))), $this);?>
</td>
<td class=nr_nr><?php echo convertip(array('ip' => $this->_tpl_vars['data'][$this->_sections['loop']['index']]['AddIP']), $this);?>
<font color=#999><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['AddIP']; ?>
</font>
<!----a href="?del=<?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Rid']; ?>
">d</a-----></td>
</tr>
<?php endfor; endif; ?>
</form>
</table>
</div>
<script>
function tz(){
var dday = $("#dday").val();
if(dday){
location.href="cw.php?m="+dday;
}
}
</script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'bottom.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
</body>
</html>