221 lines
9.3 KiB
Smarty
221 lines
9.3 KiB
Smarty
<!--{include file='top.tpl'}-->
|
|
<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>
|
|
|
|
|
<!--{if $GG.type=='fang'}--><font color=red><!--{else}--><a href="count-chart.php?type=fang"><!--{/if}--> 房卡</font></a> |
|
|
<!--{if $GG.data=='fk' || (!$GG.type && !$GG.data)}--><font color=red><!--{else}--><a href="count-chart.php?data=fk"><!--{/if}--> 房卡总计</font></a> |
|
|
<!--{if $GG.data=='fk-yh,fk-ybd,fk-hz'}--><font color=red><!--{else}--><a href="count-chart.php?data=fk-yh,fk-ybd,fk-hz"><!--{/if}--> 麻将</font></a> |
|
|
<!--{if $GG.data=='fk-pdk16,fk-pdk15'}--><font color=red><!--{else}--><a href="count-chart.php?data=fk-pdk16,fk-pdk15"><!--{/if}--> 跑得快</font></a> |
|
|
<!--{if $GG.data=='fk-ddz,fk-dz,fk-dzw,fk-zjh'}--><font color=red><!--{else}--><a href="count-chart.php?data=fk-ddz,fk-dz,fk-dzw,fk-zjh"><!--{/if}--> 地炸金</font></a> |
|
|
<!--{if $GG.data=='fk-bwz,fk-qz,fk-pcd'}--><font color=red><!--{else}--><a href="count-chart.php?data=fk-bwz,fk-qz,fk-pcd"><!--{/if}--> 牛牛</font></a> |
|
|
<!--{if $GG.data=='fk-ssqz,fk-sslz,fk-ssbw,fk-ssjd'}--><font color=red><!--{else}--><a href="count-chart.php?data=fk-ssqz,fk-sslz,fk-ssbw,fk-ssjd"><!--{/if}--> 十三张</font></a> |
|
|
<!--{if $GG.type=='fkr'}--><font color=red><!--{else}--><a href="count-chart.php?type=fkr"><!--{/if}--> 游戏日报</font></a> |
|
|
<!--{if $GG.type=='fky'}--><font color=red><!--{else}--><a href="count-chart.php?type=fky"><!--{/if}--> 游戏月报</font></a> |
|
|
<!--{if 'dl'|in_array:$data.url}--><font color=red><!--{else}--><a href="count-chart.php?type=user&data=dl"><!--{/if}--> 会员登录</font></a> |
|
|
<!--{if 'hy'|in_array:$data.url}--><font color=red><!--{else}--><a href="count-chart.php?type=user&data=hy"><!--{/if}-->会员活跃</font></a> |
|
|
<!--{if 'zc'|in_array:$data.url}--><font color=red><!--{else}--><a href="count-chart.php?type=user&data=zc"><!--{/if}--> 会员注册</font></a> |
|
|
|
|
<!--{if $GG.type == 'on'}--><font color=red><!--{else}--><a href="count-chart.php?type=on"><!--{/if}--> 会员在线</font></a> |
|
|
<!--{if $GG.type == 'cw'}--><font color=red><!--{else}--><a href="count-chart.php?type=cw"><!--{/if}--> 财务统计</font></a> |
|
|
<!--{if $GG.type == 'yb'}--><font color=red><!--{else}--><a href="count-chart.php?type=yb"><!--{/if}--> 元宝日报</font></a> |
|
|
<!--{if $GG.type == 'yby'}--><font color=red><!--{else}--><a href="count-chart.php?type=yby"><!--{/if}--> 元宝月报</font></a> |
|
|
<!--{if $GG.type == 'yuebao'}--><font color=red><!--{else}--><a href="count-chart.php?type=yuebao"><!--{/if}--> 月报</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="<!--{$GG.date}-->" placeholder="选择日期" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD<!--{if $GG.type == 'on'}--> hh:mm:ss<!--{/if}-->'})">
|
|
</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=<!--{$GG.type}-->&data=<!--{$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":"<!--{$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":<!--{$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":[
|
|
<!--{assign var="da" value=$data.data}-->
|
|
<!--{section name=loop loop=$da}-->
|
|
<!--{assign var="txt" value=$data.txt}-->
|
|
{
|
|
"values":<!--{if is_array($da[loop])}--><!--{$da[loop][0]}--><!--{else}--><!--{$da[loop]}--><!--{/if}-->,
|
|
"text":"<!--{$txt[$smarty.section.loop.index]}-->",
|
|
"line-color":"<!--{$color[$smarty.section.loop.index]}-->",
|
|
"line-width":"2px",
|
|
"shadow":0,
|
|
"marker":{
|
|
"background-color":"#fff",
|
|
"size":2,
|
|
"border-width":2,
|
|
"border-color":"<!--{$color[$smarty.section.loop.index]}-->",
|
|
"shadow":0
|
|
},
|
|
"palette":<!--{$smarty.section.loop.index}-->
|
|
},
|
|
<!--{/section}-->
|
|
]
|
|
};
|
|
// render example one
|
|
$('#ex_1').zingchart({
|
|
height : 450,
|
|
width : $(window).width(),
|
|
data:ex1,
|
|
hideprogresslogo:true
|
|
});
|
|
|
|
});
|
|
</script>
|
|
<div id="ex_1" class="zingchart"></div>
|
|
<!--{if $qb_data}-->
|
|
<div style="text-align:center;line-height:25px;">
|
|
<font color=#999>0.65元/房卡 按消费房卡计算</font>
|
|
本月:<!--{$qb_data.day|number_format}-->元(<!--{$qb_data.day/$d_day|number_format}-->元/天)
|
|
本月预计:<!--{$qb_data.day/$d_day*$b_day|number_format}-->元
|
|
上月:<!--{$qb_data.days|number_format}-->元(<!--{$qb_data.days/$s_day|number_format}-->元/天)
|
|
<br>
|
|
麻将:<!--{$qb_data.mj|number_format}-->元
|
|
斗地主:<!--{$qb_data.ddz|number_format}-->元
|
|
牛牛:<!--{$qb_data.nn|number_format}-->元
|
|
打炸:<!--{$qb_data.dz|number_format}-->元
|
|
十三张:<!--{$qb_data.ss|number_format}-->元
|
|
炸金花:<!--{$qb_data.zjh|number_format}-->元
|
|
跑得快:<!--{$qb_data.pdk|number_format}-->元 </div>
|
|
<!--{/if}-->
|
|
<!--{if $GG.type=='fkr'}-->
|
|
<div style="text-align:center;line-height:25px;">
|
|
<!--{$qbr_data.zh|number_format}-->元/每天
|
|
麻将:<!--{$qbr_data.mj|number_format}-->元
|
|
斗地主:<!--{$qbr_data.ddz|number_format}-->元
|
|
牛牛:<!--{$qbr_data.nn|number_format}-->元
|
|
打炸:<!--{$qbr_data.dz|number_format}-->元
|
|
十三张:<!--{$qbr_data.ss|number_format}-->元
|
|
炸金花:<!--{$qbr_data.zjh|number_format}-->元
|
|
跑得快:<!--{$qbr_data.pdk|number_format}-->元
|
|
</div>
|
|
<!--{/if}-->
|
|
<!--{include file='bottom.tpl'}-->
|
|
</body>
|
|
</html> |