287 lines
15 KiB
PHP
287 lines
15 KiB
PHP
<?php /* Smarty version 2.6.26, created on 2018-06-26 14:24:37
|
|
compiled from user/count-chart.tpl */ ?>
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'in_array', 'user/count-chart.tpl', 19, false),array('modifier', 'number_format', 'user/count-chart.tpl', 195, 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);
|
|
?>
|
|
<script src="/m/js/zingchart.min.js"></script>
|
|
<script src="/m/js/zingchart.jquery.js"></script>
|
|
<link rel="stylesheet" href="/m/js/layui/build/css/layui.css" media="all">
|
|
<table width="100%" align=center border="0" cellspacing="1" cellpadding="0" class=nr>
|
|
<tr class=gy>
|
|
<td height=25 class=nr_nr>
|
|
<a href="count.php">全部统计</a>
|
|
|
|
|
<?php if ($this->_tpl_vars['GG']['type'] == 'fang'): ?><font color=red><?php else: ?><a href="count-chart.php?type=fang"><?php endif; ?> 房卡</font></a> |
|
|
<?php if ($this->_tpl_vars['GG']['data'] == 'fk' || ( ! $this->_tpl_vars['GG']['type'] && ! $this->_tpl_vars['GG']['data'] )): ?><font color=red><?php else: ?><a href="count-chart.php?data=fk"><?php endif; ?> 房卡总计</font></a> |
|
|
<?php if ($this->_tpl_vars['GG']['data'] == 'fk-yh,fk-ybd,fk-hz'): ?><font color=red><?php else: ?><a href="count-chart.php?data=fk-yh,fk-ybd,fk-hz"><?php endif; ?> 麻将</font></a> |
|
|
<?php if ($this->_tpl_vars['GG']['data'] == 'fk-pdk16,fk-pdk15'): ?><font color=red><?php else: ?><a href="count-chart.php?data=fk-pdk16,fk-pdk15"><?php endif; ?> 跑得快</font></a> |
|
|
<?php if ($this->_tpl_vars['GG']['data'] == 'fk-ddz,fk-dz,fk-dzw,fk-zjh'): ?><font color=red><?php else: ?><a href="count-chart.php?data=fk-ddz,fk-dz,fk-dzw,fk-zjh"><?php endif; ?> 地炸金</font></a> |
|
|
<?php if ($this->_tpl_vars['GG']['data'] == 'fk-bwz,fk-qz,fk-pcd'): ?><font color=red><?php else: ?><a href="count-chart.php?data=fk-bwz,fk-qz,fk-pcd"><?php endif; ?> 牛牛</font></a> |
|
|
<?php if ($this->_tpl_vars['GG']['data'] == 'fk-ssqz,fk-sslz,fk-ssbw,fk-ssjd'): ?><font color=red><?php else: ?><a href="count-chart.php?data=fk-ssqz,fk-sslz,fk-ssbw,fk-ssjd"><?php endif; ?> 十三张</font></a> |
|
|
<?php if ($this->_tpl_vars['GG']['type'] == 'fkr'): ?><font color=red><?php else: ?><a href="count-chart.php?type=fkr"><?php endif; ?> 游戏日报</font></a> |
|
|
<?php if ($this->_tpl_vars['GG']['type'] == 'fky'): ?><font color=red><?php else: ?><a href="count-chart.php?type=fky"><?php endif; ?> 游戏月报</font></a> |
|
|
<?php if (((is_array($_tmp='dl')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['data']['url']) : in_array($_tmp, $this->_tpl_vars['data']['url']))): ?><font color=red><?php else: ?><a href="count-chart.php?type=user&data=dl"><?php endif; ?> 会员登录</font></a> |
|
|
<?php if (((is_array($_tmp='hy')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['data']['url']) : in_array($_tmp, $this->_tpl_vars['data']['url']))): ?><font color=red><?php else: ?><a href="count-chart.php?type=user&data=hy"><?php endif; ?>会员活跃</font></a> |
|
|
<?php if (((is_array($_tmp='zc')) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['data']['url']) : in_array($_tmp, $this->_tpl_vars['data']['url']))): ?><font color=red><?php else: ?><a href="count-chart.php?type=user&data=zc"><?php endif; ?> 会员注册</font></a> |
|
|
|
|
<?php if ($this->_tpl_vars['GG']['type'] == 'on'): ?><font color=red><?php else: ?><a href="count-chart.php?type=on"><?php endif; ?> 会员在线</font></a> |
|
|
<?php if ($this->_tpl_vars['GG']['type'] == 'cw'): ?><font color=red><?php else: ?><a href="count-chart.php?type=cw"><?php endif; ?> 财务统计</font></a> |
|
|
<?php if ($this->_tpl_vars['GG']['type'] == 'yb'): ?><font color=red><?php else: ?><a href="count-chart.php?type=yb"><?php endif; ?> 元宝日报</font></a> |
|
|
<?php if ($this->_tpl_vars['GG']['type'] == 'yby'): ?><font color=red><?php else: ?><a href="count-chart.php?type=yby"><?php endif; ?> 元宝月报</font></a> |
|
|
<?php if ($this->_tpl_vars['GG']['type'] == 'yuebao'): ?><font color=red><?php else: ?><a href="count-chart.php?type=yuebao"><?php endif; ?> 月报</font></a>
|
|
<br>
|
|
<div class="layui-inline" style="margin-top:5px;">
|
|
<div class="layui-input-inline" style="width:145px;">
|
|
<input class="layui-input" style="width:135px;" id="dday" value="<?php echo $this->_tpl_vars['GG']['date']; ?>
|
|
" placeholder="选择日期" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD<?php if ($this->_tpl_vars['GG']['type'] == 'on'): ?> hh:mm:ss<?php endif; ?>'})">
|
|
</div>
|
|
<div class="layui-input-inline" style="width: 130px;">
|
|
<button class="layui-btn layui-btn-primary" onclick="tz();">查询</button>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script src="/m/js/layui/build/layui.js" charset="utf-8"></script>
|
|
<script>
|
|
function tz(){
|
|
var dday = $("#dday").val();
|
|
if(dday){
|
|
location.href="count-chart.php?type=<?php echo $this->_tpl_vars['GG']['type']; ?>
|
|
&data=<?php echo $this->_tpl_vars['GG']['data']; ?>
|
|
&date="+dday;
|
|
}
|
|
}
|
|
layui.use('laydate', function(){
|
|
var laydate = layui.laydate;
|
|
});
|
|
$(document).ready( function() {
|
|
var ex1 = {
|
|
"type": "line",
|
|
"plot":{
|
|
valueBox : {type:"all", placement:"top" },//标签
|
|
"aspect":"spline" ,
|
|
},
|
|
"background-color":"#C3DAF9",
|
|
"legend":{},
|
|
"title":{
|
|
"margin-top":"7px",
|
|
"margin-left":"12px",
|
|
"text":"<?php echo $this->_tpl_vars['data']['title']; ?>
|
|
",
|
|
"background-color":"none",
|
|
"shadow":0,
|
|
"text-align":"left",
|
|
"font-family":"Arial",
|
|
"font-size":"14px",
|
|
"font-color":"#707d94"
|
|
},
|
|
"plotarea":{
|
|
"margin":"50px 25px 100px 46px"
|
|
},
|
|
"scale-y":{
|
|
//"values":"0:100:25",
|
|
"line-color":"#999",
|
|
"line-width":"1px",
|
|
"guide":{
|
|
"line-style":"solid",
|
|
"line-color":"#d2dae2",
|
|
"line-width":"1px",
|
|
"alpha":0.5
|
|
},
|
|
"tick":{
|
|
"visible":false
|
|
},
|
|
"item":{
|
|
"font-color":"#8391a5",
|
|
"font-family":"Arial",
|
|
"font-size":"10px",
|
|
"padding-right":"5px"
|
|
}
|
|
},
|
|
"scale-x":{
|
|
"line-color":"#999",
|
|
"line-width":"1px",
|
|
"values":<?php echo $this->_tpl_vars['data']['date']; ?>
|
|
,
|
|
"tick":{
|
|
"line-color":"#999",
|
|
"line-width":"1px"
|
|
},
|
|
"guide":{
|
|
"visible":false
|
|
},
|
|
"item":{
|
|
"font-color":"#333",
|
|
"font-family":"Arial",
|
|
"font-size":"12px",
|
|
"padding-top":"5px"
|
|
}
|
|
},
|
|
"legend":{
|
|
"layout":"x6",
|
|
"background-color":"none",
|
|
"shadow":0,
|
|
"margin":"auto auto 15 auto",
|
|
"border-width":0,
|
|
"item":{
|
|
"font-color":"#707d94",
|
|
"font-family":"Arial",
|
|
"padding":"0px",
|
|
"margin":"0px",
|
|
"font-size":"14px"
|
|
},
|
|
"marker":{
|
|
"show-line":"true",
|
|
"type":"match",
|
|
"font-family":"Arial",
|
|
"font-size":"14px",
|
|
"size":4,
|
|
"line-width":4,
|
|
"padding":"6px"
|
|
}
|
|
},
|
|
"crosshair-x":{
|
|
"lineWidth":1,
|
|
"line-color":"#707d94",
|
|
"plotLabel":{
|
|
"shadow":false,
|
|
"font-color":"#000",
|
|
"font-family":"Arial",
|
|
"font-size":"12px",
|
|
"padding":"5px 10px",
|
|
"border-radius":"5px",
|
|
"alpha":1
|
|
},
|
|
"scale-label":{
|
|
"font-color":"#ffffff",
|
|
"background-color":"#707d94",
|
|
"font-family":"Arial",
|
|
"font-size":"14px",
|
|
"padding":"5px 10px",
|
|
"border-radius":"5px"
|
|
}
|
|
},
|
|
"tooltip":{
|
|
"visible":false
|
|
},
|
|
"series":[
|
|
<?php $this->assign('da', $this->_tpl_vars['data']['data']); ?>
|
|
<?php unset($this->_sections['loop']);
|
|
$this->_sections['loop']['name'] = 'loop';
|
|
$this->_sections['loop']['loop'] = is_array($_loop=$this->_tpl_vars['da']) ? 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']);
|
|
?>
|
|
<?php $this->assign('txt', $this->_tpl_vars['data']['txt']); ?>
|
|
{
|
|
"values":<?php if (is_array ( $this->_tpl_vars['da'][$this->_sections['loop']['index']] )): ?><?php echo $this->_tpl_vars['da'][$this->_sections['loop']['index']][0]; ?>
|
|
<?php else: ?><?php echo $this->_tpl_vars['da'][$this->_sections['loop']['index']]; ?>
|
|
<?php endif; ?>,
|
|
"text":"<?php echo $this->_tpl_vars['txt'][$this->_sections['loop']['index']]; ?>
|
|
",
|
|
"line-color":"<?php echo $this->_tpl_vars['color'][$this->_sections['loop']['index']]; ?>
|
|
",
|
|
"line-width":"2px",
|
|
"shadow":0,
|
|
"marker":{
|
|
"background-color":"#fff",
|
|
"size":2,
|
|
"border-width":2,
|
|
"border-color":"<?php echo $this->_tpl_vars['color'][$this->_sections['loop']['index']]; ?>
|
|
",
|
|
"shadow":0
|
|
},
|
|
"palette":<?php echo $this->_sections['loop']['index']; ?>
|
|
|
|
},
|
|
<?php endfor; endif; ?>
|
|
]
|
|
};
|
|
// render example one
|
|
$('#ex_1').zingchart({
|
|
height : 450,
|
|
width : $(window).width(),
|
|
data:ex1,
|
|
hideprogresslogo:true
|
|
});
|
|
|
|
});
|
|
</script>
|
|
<div id="ex_1" class="zingchart"></div>
|
|
<?php if ($this->_tpl_vars['qb_data']): ?>
|
|
<div style="text-align:center;line-height:25px;">
|
|
<font color=#999>0.65元/房卡 按消费房卡计算</font>
|
|
本月:<?php echo ((is_array($_tmp=$this->_tpl_vars['qb_data']['day'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元(<?php echo ((is_array($_tmp=$this->_tpl_vars['qb_data']['day']/$this->_tpl_vars['d_day'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元/天)
|
|
本月预计:<?php echo ((is_array($_tmp=$this->_tpl_vars['qb_data']['day']/$this->_tpl_vars['d_day']*$this->_tpl_vars['b_day'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元
|
|
上月:<?php echo ((is_array($_tmp=$this->_tpl_vars['qb_data']['days'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元(<?php echo ((is_array($_tmp=$this->_tpl_vars['qb_data']['days']/$this->_tpl_vars['s_day'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元/天)
|
|
<br>
|
|
麻将:<?php echo ((is_array($_tmp=$this->_tpl_vars['qb_data']['mj'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元
|
|
斗地主:<?php echo ((is_array($_tmp=$this->_tpl_vars['qb_data']['ddz'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元
|
|
牛牛:<?php echo ((is_array($_tmp=$this->_tpl_vars['qb_data']['nn'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元
|
|
打炸:<?php echo ((is_array($_tmp=$this->_tpl_vars['qb_data']['dz'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元
|
|
十三张:<?php echo ((is_array($_tmp=$this->_tpl_vars['qb_data']['ss'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元
|
|
炸金花:<?php echo ((is_array($_tmp=$this->_tpl_vars['qb_data']['zjh'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元
|
|
跑得快:<?php echo ((is_array($_tmp=$this->_tpl_vars['qb_data']['pdk'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元 </div>
|
|
<?php endif; ?>
|
|
<?php if ($this->_tpl_vars['GG']['type'] == 'fkr'): ?>
|
|
<div style="text-align:center;line-height:25px;">
|
|
<?php echo ((is_array($_tmp=$this->_tpl_vars['qbr_data']['zh'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元/每天
|
|
麻将:<?php echo ((is_array($_tmp=$this->_tpl_vars['qbr_data']['mj'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元
|
|
斗地主:<?php echo ((is_array($_tmp=$this->_tpl_vars['qbr_data']['ddz'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元
|
|
牛牛:<?php echo ((is_array($_tmp=$this->_tpl_vars['qbr_data']['nn'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元
|
|
打炸:<?php echo ((is_array($_tmp=$this->_tpl_vars['qbr_data']['dz'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元
|
|
十三张:<?php echo ((is_array($_tmp=$this->_tpl_vars['qbr_data']['ss'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元
|
|
炸金花:<?php echo ((is_array($_tmp=$this->_tpl_vars['qbr_data']['zjh'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元
|
|
跑得快:<?php echo ((is_array($_tmp=$this->_tpl_vars['qbr_data']['pdk'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
|
|
元
|
|
</div>
|
|
<?php endif; ?>
|
|
<?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>
|