<?php /* Smarty version 2.6.22, created on 2017-12-13 16:31:48
         compiled from D:%5CphpStudy%5CWWW/templates/admin/default%5Creports%5Clist.html */ ?>
<?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);
 ?>
<link href="<?php echo $this->_tpl_vars['admin_template_data']; ?>
scripts/plug/datepicker/datepicker.css" rel="stylesheet" />
</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">

		<div class="rightdetail_admin">
			<div class="sideblock">
                <div class="sideheader">报表</div>
                <div class="sidebody">
				<form action="" class="horizontal-form item-form disable-on-submit" action="" method="post" enctype="multipart/form-data">
					<div class="input-group clr">
					<label class="control-label" for="datepick"><?php echo $this->_tpl_vars['lang']['from_date']; ?>
</label>
					<div class="inputs">
					<input type="text" class="ipttheme" id="datepick" value="<?php echo $_POST['from_date']; ?>
" name="from_date"/>
					</div>
					</div>
					<div class="input-group clr">
					<label class="control-label" for="datepick2"><?php echo $this->_tpl_vars['lang']['to_date']; ?>
</label>
					<div class="inputs">
					<input type="text" class="ipttheme" id="datepick2" value="<?php echo $_POST['to_date']; ?>
" name="to_date"/>
					</div>
					</div>
					<div class="form-submit">
					<button type="submit" name="report" class="btntheme btnsize btn-primary"><?php echo $this->_tpl_vars['lang']['generate_report']; ?>
</button>
					</div>
				</form>
				</div>
				<?php if ($this->_tpl_vars['reportData']): ?>
				<div class="input-group clr">
					<label class="control-label" for="datepick"><?php echo $this->_tpl_vars['lang']['results']; ?>
</label>
					<div class="inputs clr">
						<div id="placeholder" style="width:600px;height:300px;float:left;"></div>
						<p id="choices" style="float: left;"><?php echo $this->_tpl_vars['lang']['graph']; ?>
:</p>  
					</div>
				</div>
				<?php echo '
				<script id="source" language="javascript" type="text/javascript">
	seajs.use(["jq", "modules/pageui/admin"], function($, adm){
		$(function () {
			var datasets = {
				"Total": {
				label: "'; ?>
<?php echo $this->_tpl_vars['lang']['grid_total']; ?>
<?php echo '",
				data: ['; ?>
<?php $_from = $this->_tpl_vars['reportData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['r']):
        $this->_foreach['foo']['iteration']++;
?>[<?php echo ($this->_foreach['foo']['iteration']-1); ?>
, <?php echo $this->_tpl_vars['r']['total']; ?>
]<?php if (! ($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?>,<?php endif; ?><?php endforeach; endif; unset($_from); ?><?php echo ']
				},        
				"Receive": {
				label: "'; ?>
<?php echo $this->_tpl_vars['lang']['grid_receive']; ?>
<?php echo '",
				data: ['; ?>
<?php $_from = $this->_tpl_vars['reportData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['r']):
        $this->_foreach['foo']['iteration']++;
?>[<?php echo ($this->_foreach['foo']['iteration']-1); ?>
, <?php echo $this->_tpl_vars['r']['receive']; ?>
]<?php if (! ($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?>,<?php endif; ?><?php endforeach; endif; unset($_from); ?><?php echo ']
				},        
				"Referal": {
				label: "'; ?>
<?php echo $this->_tpl_vars['lang']['grid_referal']; ?>
<?php echo '",
				data: ['; ?>
<?php $_from = $this->_tpl_vars['reportData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['r']):
        $this->_foreach['foo']['iteration']++;
?>[<?php echo ($this->_foreach['foo']['iteration']-1); ?>
, <?php echo $this->_tpl_vars['r']['referal']; ?>
]<?php if (! ($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?>,<?php endif; ?><?php endforeach; endif; unset($_from); ?><?php echo ']
				},        
				"Win": {
				label: "'; ?>
<?php echo $this->_tpl_vars['lang']['grid_win']; ?>
<?php echo '",
				data: ['; ?>
<?php $_from = $this->_tpl_vars['reportData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['r']):
        $this->_foreach['foo']['iteration']++;
?>[<?php echo ($this->_foreach['foo']['iteration']-1); ?>
, <?php echo $this->_tpl_vars['r']['win']; ?>
]<?php if (! ($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?>,<?php endif; ?><?php endforeach; endif; unset($_from); ?><?php echo ']
				},
				"Deposit": {
				label: "'; ?>
<?php echo $this->_tpl_vars['lang']['grid_deposit']; ?>
<?php echo '",
				data: ['; ?>
<?php $_from = $this->_tpl_vars['reportData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['r']):
        $this->_foreach['foo']['iteration']++;
?>[<?php echo ($this->_foreach['foo']['iteration']-1); ?>
, <?php echo $this->_tpl_vars['r']['deposit']; ?>
]<?php if (! ($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?>,<?php endif; ?><?php endforeach; endif; unset($_from); ?><?php echo ']
				},        			         
				"Withdraw": {
				label: "'; ?>
<?php echo $this->_tpl_vars['lang']['grid_withdraw']; ?>
<?php echo '",
				data: ['; ?>
<?php $_from = $this->_tpl_vars['reportData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['r']):
        $this->_foreach['foo']['iteration']++;
?>[<?php echo ($this->_foreach['foo']['iteration']-1); ?>
, <?php echo $this->_tpl_vars['r']['withdraw']; ?>
]<?php if (! ($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?>,<?php endif; ?><?php endforeach; endif; unset($_from); ?><?php echo ']
				}        			         
			},
			options = {
				xaxis: { mode: "time", ticks: ['; ?>
<?php $_from = $this->_tpl_vars['reportData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['r']):
        $this->_foreach['foo']['iteration']++;
?>[<?php echo ($this->_foreach['foo']['iteration']-1); ?>
, "<?php echo $this->_tpl_vars['k']; ?>
"]<?php if (! ($this->_foreach['foo']['iteration'] == $this->_foreach['foo']['total'])): ?>,<?php endif; ?><?php endforeach; endif; unset($_from); ?><?php echo '] },
				selection: { mode: "xy" },
				grid: { hoverable: true, clickable: true },
				series: { lines: { show: true }, points: { show: true } }
			};
			adm.plotInit("#placeholder", {
				datasets: datasets,
				options: options,
				contents: "'; ?>
<?php echo $this->_tpl_vars['currency']['symbol']; ?>
<?php echo '"
			});
		});
	});
				</script>
				'; ?>

				<?php endif; ?>
			</div>
		</div>

		</div>
	</div>
</div>
<?php echo '
<script type="text/javascript">
seajs.use(["jq", "modules/pageui/admin"], function($, adm){
	$(function(){
		adm.dateInput([$(\'#datepick\'), $(\'#datepick2\')]);
	});
});
</script>
'; ?>

</body>
</html>