<?php /* Smarty version 2.6.22, created on 2015-12-29 22:07:40
         compiled from E:/xampp/htdocs/templates/admin/default%5Csystem%5Cconsole.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'string_format', 'E:/xampp/htdocs/templates/admin/default\\system\\console.html', 67, false),array('modifier', 'date_format', 'E:/xampp/htdocs/templates/admin/default\\system\\console.html', 136, 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">

		<div class="rightdetail_admin">
			<div id="finance_chart" class="reportblock"></div>
			<?php if ($this->_tpl_vars['updated_items']): ?>
			<div id="sales_chart" class="reportblock"></div>
			<?php endif; ?>
			<?php if ($this->_tpl_vars['lastContact']): ?>
			<h2 class="pagetit text-black">支持中心</h2>
			<table class="general_table">
				<tbody>
				<?php $_from = $this->_tpl_vars['lastContact']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<tr><td><a href="?m=contacts&c=view&id=<?php echo $this->_tpl_vars['i']['id']; ?>
">有新消息需要处理：</a><?php echo $this->_tpl_vars['i']['name']; ?>
</td></tr>
				<?php endforeach; endif; unset($_from); ?>
				</tbody>
			</table>
			<?php endif; ?>
			<?php if ($this->_tpl_vars['items']): ?>
			<h2 class="pagetit text-black">待审核的新作品</h2>
			<table class="general_table">
				<tbody>
				<?php $_from = $this->_tpl_vars['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<tr><td><a href="?m=items&c=queue_view&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" title=""><?php echo $this->_tpl_vars['i']['name']; ?>
</td></tr>
				<?php endforeach; endif; unset($_from); ?>
				</tbody>
			</table>
			<?php endif; ?>
			<?php if ($this->_tpl_vars['updated_items']): ?>
			<h2 class="pagetit text-black">待审核的作品更新</h2>
			<table class="general_table">
				<tbody>
				<?php $_from = $this->_tpl_vars['updated_items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<tr><td><a href="?m=items&c=queue_view_update&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" title=""><?php echo $this->_tpl_vars['i']['name']; ?>
</td></tr>
				<?php endforeach; endif; unset($_from); ?>
				</tbody>
			</table>
			<?php endif; ?>
			<h2 class="pagetit text-black">本月收入情况统计</h2>
			<table class="general_table">	
				<tbody>
				<tr>
				<td>本月毛收入</td>
				<td class="ta-right"></td>
				<td class="ta-right"><?php echo $this->_tpl_vars['currency']['symbol']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['sales']['total'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</td>
				</tr>
				<tr>
				<td>本月用户分成</td>
				<td class="ta-right"></td>
				<td class="ta-right"><?php echo $this->_tpl_vars['currency']['symbol']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['sales']['receive'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</td>
				</tr>
				<tr>
				<td><strong>本月净收入</strong></td>
				<td class="ta-right"></td>
				<td class="ta-right"><strong style="color: <?php if ($this->_tpl_vars['sales']['win'] > 0): ?>green<?php else: ?>red<?php endif; ?>;"><?php echo $this->_tpl_vars['currency']['symbol']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['sales']['win'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
</strong></td>
				</tr>
				</tbody>
			</table>
		</div>
		
		</div>
	</div>
</div>

<?php echo '
<script type="text/javascript">
seajs.use(["modules/pageui/admin"], function(admin){
	var
	settings1 = {
		credits: {
			enabled: false
		},
		chart: {
			renderTo: \'finance_chart\', 
			defaultSeriesType: \'area\'
		},	
		legend: {
			align: \'center\',
			verticalAlign: \'top\',
			y: 0,
			floating: false,
			borderWidth: 0
		},			
		title: {
			text: ""
		},
		xAxis: {
			categories: '; ?>
<?php echo $this->_tpl_vars['days']; ?>
<?php echo '
		},
		yAxis: {
			title: {
				text: \'\'
			},
			min: 0
		},
		plotOptions: {
			area: {
				marker: {
					enabled: false,
					symbol: \'circle\',
					radius: 2,
					states: {
						hover: {
							enabled: true
						}
					}
				}
			}
		},
		tooltip: {
			shared: true,
			crosshairs: true,
			valueSuffix: \' '; ?>
<?php echo $this->_tpl_vars['valuta']; ?>
<?php echo '\',
			headerFormat: \''; ?>
<?php echo ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m") : smarty_modifier_date_format($_tmp, "%Y-%m")); ?>
<?php echo '-{point.key}<br />\'
		},
		series: '; ?>
<?php echo $this->_tpl_vars['finance_array']; ?>
<?php echo '
	},
	settings2 = {
		credits: {
			enabled: false
		},
		legend: { 
			align: \'center\',
			verticalAlign: \'top\',
			y: 0,
			floating: false,
			borderWidth: 0
		},		
		chart: {
			renderTo: \'sales_chart\', 
			defaultSeriesType: \'area\'
		},				
		title: {
			text: ""
		},
		xAxis: {
			categories: '; ?>
<?php echo $this->_tpl_vars['days']; ?>
<?php echo '
		},
		yAxis: {
			title: {
				text: \'\'
			},
			min: 0
		},
		tooltip: {
			shared: true,
			crosshairs: true,
			headerFormat: \''; ?>
<?php echo ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m") : smarty_modifier_date_format($_tmp, "%Y-%m")); ?>
<?php echo '-{point.key}<br />\'
		},
		series: '; ?>
<?php echo $this->_tpl_vars['sales_array']; ?>
<?php echo '
	};
	admin.idxChartInit([settings1, settings2]);
});
</script>
'; ?>

</body>
</html>