diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index 308378d3..aa86cdb5 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -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) {