remove unused statstics

This commit is contained in:
wlx 2014-03-06 07:32:27 +00:00
parent 06439a4300
commit 4100514816
3 changed files with 43 additions and 27 deletions

View File

@ -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 首页

View File

@ -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>

View File

@ -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>