remove unused statstics
This commit is contained in:
parent
06439a4300
commit
4100514816
|
@ -40,13 +40,7 @@ class Admin_StatController extends Zend_Controller_Action
|
||||||
$sql = "select sum(num) as num from (select m.filesize/1024 as num,m.title,d.userid from dataorder d left join metadata m on d.uuid=m.uuid where d.status=0 and m.filesize>0 group by m.title,d.userid,m.filesize) as t";
|
$sql = "select sum(num) as num from (select m.filesize/1024 as num,m.title,d.userid from dataorder d left join metadata m on d.uuid=m.uuid where d.status=0 and m.filesize>0 group by m.title,d.userid,m.filesize) as t";
|
||||||
$res = $this->db->query($sql);
|
$res = $this->db->query($sql);
|
||||||
$onlinesize = $res->fetch();
|
$onlinesize = $res->fetch();
|
||||||
$this->view->onlinesize = $onlinesize;
|
$this->view->onlinesize = $onlinesize;
|
||||||
|
|
||||||
$sql="select sum(configvalue::real)/1024/1024/1024 as num from g6ftpusersettings where userid in (select id from g6ftpusers where name like 'westdc%' or name='newwestdc') and configname='StatsDownloaded'";
|
|
||||||
$res = $this->db->query($sql);
|
|
||||||
$onlinesize = $res->fetch();
|
|
||||||
$this->view->onlineg6size = $onlinesize;
|
|
||||||
|
|
||||||
|
|
||||||
}//indexAction 首页
|
}//indexAction 首页
|
||||||
|
|
||||||
|
|
|
@ -11,19 +11,46 @@
|
||||||
?>
|
?>
|
||||||
<div id="leftPanel">
|
<div id="leftPanel">
|
||||||
<?= $this->partial('stat/left.phtml'); ?>
|
<?= $this->partial('stat/left.phtml'); ?>
|
||||||
<ul>
|
|
||||||
<li class="title">概况</li>
|
|
||||||
<li>用户总数:<?php echo $this->stat['alluser']; ?>人</li>
|
|
||||||
<li>元数据条数:<?php echo $this->stat['alldata']; ?>条</li>
|
|
||||||
<li>在线数据下载数:<?php echo $this->stat['onlinedown']; ?>条</li>
|
|
||||||
<li>离线数据下载数:<?php echo $this->stat['offlinedown']; ?>条</li>
|
|
||||||
<li>已通过的离线申请:<?php echo $this->stat['offlinepass']; ?>次</li>
|
|
||||||
<li>未完成的离线申请:<?php echo $this->stat['offlineunfinished']; ?>次</li>
|
|
||||||
<li>被拒绝的离线数据:<?php echo $this->stat['offlinedenied']; ?>条</li>
|
|
||||||
<li>有记录的在线下载数:<?php echo $this->stat['onlineapp']; ?>次</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
<div id="rightPanel">
|
<div id="rightPanel">
|
||||||
|
<div class="tables">
|
||||||
|
<div class="stitle">概况</div>
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td>用户总数:</td>
|
||||||
|
<td><?php echo $this->stat['alluser']; ?>人</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>元数据条数:</td>
|
||||||
|
<td><?php echo $this->stat['alldata']; ?>条</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>在线数据下载数:</td>
|
||||||
|
<td><?php echo $this->stat['onlinedown']; ?>条</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>离线数据下载数:</td>
|
||||||
|
<td><?php echo $this->stat['offlinedown']; ?>条</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>已通过的离线申请:</td>
|
||||||
|
<td><?php echo $this->stat['offlinepass']; ?>次</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>未完成的离线申请:</td>
|
||||||
|
<td><?php echo $this->stat['offlineunfinished']; ?>次</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>被拒绝的离线数据:</td>
|
||||||
|
<td><?php echo $this->stat['offlinedenied']; ?>条</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>有记录的在线下载数:</td>
|
||||||
|
<td><?php echo $this->stat['onlineapp']; ?>次</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="tables">
|
<div class="tables">
|
||||||
<div class="stitle">数据下载量概况</div>
|
<div class="stitle">数据下载量概况</div>
|
||||||
<table>
|
<table>
|
||||||
|
@ -31,23 +58,19 @@
|
||||||
<tr><td width="200"></td><td width="100">单位:GB</td></tr>
|
<tr><td width="200"></td><td width="100">单位:GB</td></tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>总下载数据量(估计量,偏大)</td>
|
<td>总下载数据量</td>
|
||||||
<td><?php echo round($this->allsize['num'],2);?></td>
|
<td><?php echo round($this->allsize['num'],2);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>离线下载数据量(从09年4月)</td>
|
<td>离线下载数据量</td>
|
||||||
<td><?php echo round($this->offlinesize['num'],2);?></td>
|
<td><?php echo round($this->offlinesize['num'],2);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>在线下载数据量(估计量,偏大)</td>
|
<td>在线下载数据量</td>
|
||||||
<td><?php echo round($this->onlinesize['num'],2);?></td>
|
<td><?php echo round($this->onlinesize['num'],2);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td>G6在线下载数据量(精确量)</td>
|
|
||||||
<td><?php echo round($this->onlineg6size['num'],2);?></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2,6 +2,5 @@
|
||||||
<span class="label"><h4>系统管理</h4></span>
|
<span class="label"><h4>系统管理</h4></span>
|
||||||
<li><a href="/admin/sys/emailtext">邮件模板管理</a></li>
|
<li><a href="/admin/sys/emailtext">邮件模板管理</a></li>
|
||||||
<li><a href="/admin/sys/message">管理消息</a></li>
|
<li><a href="/admin/sys/message">管理消息</a></li>
|
||||||
<li><a href="/admin/sys/ftptest">数据FTP测试</a></li>
|
|
||||||
<li><a href="/admin/sys/regions">GN地点管理</a></li>
|
<li><a href="/admin/sys/regions">GN地点管理</a></li>
|
||||||
</ul>
|
</ul>
|
Loading…
Reference in New Issue