#537,修复首页统计不准确的问题
This commit is contained in:
parent
27082e4a26
commit
7f529491da
|
@ -18,7 +18,7 @@ class IndexController extends Zend_Controller_Action
|
|||
$name=basename($this->view->newsletter,'.pdf');
|
||||
list(,$this->view->newsletterno)=explode("_",$name);
|
||||
//统计数据
|
||||
$sql='select (select count(*) from users) as usernum,(select count(*) from metadata) as metanum,(select count(*) from offlineapp where ts_approved is not null ) as offlinenum';
|
||||
$sql='select (select count(*) from users) as usernum,(select count(*) from heihemetadata) as metanum,(select count(*) from offlineapp where ts_approved is not null ) as offlinenum';
|
||||
$row=$this->db->fetchRow($sql);
|
||||
$this->view->usernum=$row['usernum'];
|
||||
$this->view->metanum=$row['metanum'];
|
||||
|
@ -26,7 +26,7 @@ class IndexController extends Zend_Controller_Action
|
|||
/*$sql='select count(*) from metadata';
|
||||
$row=$this->db->fetchRow($sql);
|
||||
$this->view->metanum=$row['count'];*/
|
||||
$sql="select sum(filesize) as sum,datatype from metadata group by datatype";
|
||||
$sql="select sum(filesize) as sum,datatype from heihemetadata group by datatype";
|
||||
$rows=$this->db->fetchAll($sql);
|
||||
foreach($rows as $row)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue