172 lines
3.9 KiB
PHTML
172 lines
3.9 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle('后台管理');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
|
|
$this->headScript()->appendFile('/js/jquery.masonry.min.js');
|
|
?>
|
|
<style>
|
|
.tables{width:320px;float:left;}
|
|
.tables .stitle{width:100%;font-size:16px;font-weight:bold;}
|
|
</style>
|
|
<div id="leftPanel">
|
|
<?= $this->partial('stat/left.phtml'); ?>
|
|
</div>
|
|
<div id="rightPanel">
|
|
|
|
<div class="tables">
|
|
<div class="stitle">数据服务次数</div>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td width="150">关键词</td>
|
|
<td width="80">数据通过数</td>
|
|
<td width="80">数据拒绝数</td>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
foreach($this->type as $k=>$v)
|
|
{
|
|
if ($v['status']==5)
|
|
echo '<tr><td>'.$v['keyword'].'</td><td>'.$v['num'].'</td>';
|
|
elseif ($v['status']==-1)
|
|
echo '<td>'.$v['num'].'</td></tr>';
|
|
}
|
|
?>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
<div class="tables">
|
|
<div class="stitle">申请中的数据</div>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td width="100">年</td>
|
|
<td width="100">月</td>
|
|
<td width="100">申请数据数量</td>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
foreach($this->month as $k=>$v)
|
|
{
|
|
echo '<tr>
|
|
<td>'.$v['y'].'</td>
|
|
<td>'.$v['m'].'</td>
|
|
<td>'.$v['c'].'</td>
|
|
</tr>';
|
|
}
|
|
?>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tables">
|
|
<div class="stitle">申请个数</div>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td width="100">年</td>
|
|
<td width="100">月</td>
|
|
<td width="100">申请个数</td>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
foreach($this->order as $k=>$v)
|
|
{
|
|
echo '<tr>
|
|
<td>'.$v['y'].'</td>
|
|
<td>'.$v['m'].'</td>
|
|
<td>'.$v['c'].'</td>
|
|
</tr>';
|
|
}
|
|
?>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tables">
|
|
<div class="stitle">按月统计下载量</div>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td width="100">年</td>
|
|
<td width="100">月</td>
|
|
<td width="100">下载量</td>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
foreach($this->dm as $k=>$v)
|
|
{
|
|
echo '<tr>
|
|
<td>'.$v['y'].'</td>
|
|
<td>'.$v['m'].'</td>
|
|
<td>'.round($v['n'],3).' GB</td>
|
|
</tr>';
|
|
}
|
|
?>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tables">
|
|
<div class="stitle">服务总数据量</div>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td width="200">数据量统计</td>
|
|
<td width="100">大小(单位GB)</td>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
foreach($this->num as $k=>$v)
|
|
{
|
|
echo '<tr>
|
|
<td>服务总数据量</td>
|
|
<td>'.round($v['n'],2).'</td>
|
|
</tr>';
|
|
}
|
|
?>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
<div class="tables">
|
|
<div class="stitle">按单位统计</div>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td width="200">单位名称</td>
|
|
<td width="100">数据服务次数</td>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
foreach($this->units as $k=>$v)
|
|
{
|
|
echo '<tr><td>'.$v['u'].'</td><td>'.$v['c'].'</td></tr>';
|
|
}
|
|
?>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tables">
|
|
<div class="stitle">单位离线申请次数</div>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<td width="200">单位名称</td>
|
|
<td width="100">离线申请次数</td>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
foreach($this->ounit as $k=>$v)
|
|
{
|
|
echo '<tr><td>'.$v['unit'].'</td><td>'.$v['c'].'</td></tr>';
|
|
}
|
|
?>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
</div>
|