更新统计首页信息及分月统计文字说明

This commit is contained in:
wlx 2011-12-23 05:36:58 +00:00
parent b39bd3dbfb
commit 831ff26eec
3 changed files with 9 additions and 7 deletions

View File

@ -18,8 +18,8 @@ class Admin_StatController extends Zend_Controller_Action
(select count(id) from normalmetadata) as alldata,
(select count(id) as num from dataorder where status=0) as onlinedown,
(select count(id) as num from dataorder where status=5) as offlinedown,
(select count(id) as num from dataorder where offlineappid>0 and status>4) as offlinepass,
(select count(id) as num from dataorder where offlineappid>0 and status in (2,3,4)) as offlineunfinished,
(select count(id) as num from offlineapp where ts_approved is not null) as offlinepass,
(select count(id) as num from offlineapp where ts_approved is null) as offlineunfinished,
(select count(id) as num from dataorder where offlineappid>0 and status=-1) as offlinedenied,
(select count(id) as num from onlineapp) as onlineapp";
$this->view->stat=$this->db->fetchRow($sql);

View File

@ -15,11 +15,11 @@
<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['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['offlinedenied']; ?></li>
<li>有记录的在线下载数:<?php echo $this->stat['onlineapp']; ?></li>
</ul>
</div>

View File

@ -6,7 +6,9 @@
$this->headLink()->appendStylesheet('/css/jquery.jqplot.css');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/stat">统计</a>');
$this->breadcrumb('按月统计');
$this->breadcrumb()->setSeparator(' > ');
?>
<style>
@ -86,7 +88,7 @@ $(function () {
</div>
<div class="charts">
<div class="title" id="title_online1"><?php echo $this->y.'年按月在线下载条数(根据用户下载记录,会有数据重复,偏大)统计';?></div>
<div class="title" id="title_online1"><?php echo $this->y.'年按月在线下载条数(根据用户下载记录,9月之前无用途记录)统计';?></div>
<?php
if($this->online!='' && count($this->online)!= 0)