修复离线数据总数的错误。
This commit is contained in:
parent
df344a6cc5
commit
754df3512a
|
@ -10,7 +10,7 @@ class IndexController extends Zend_Controller_Action
|
||||||
$name=basename($this->view->newsletter,'.pdf');
|
$name=basename($this->view->newsletter,'.pdf');
|
||||||
list(,$this->view->newsletterno)=explode("_",$name);
|
list(,$this->view->newsletterno)=explode("_",$name);
|
||||||
//统计数据
|
//统计数据
|
||||||
$sql='select (select count(*) from users) as usernum,(select count(*) from metadata) as metanum,(select count(*) from offlineapp) as offlinenum';
|
$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';
|
||||||
$row=$this->db->fetchRow($sql);
|
$row=$this->db->fetchRow($sql);
|
||||||
$this->view->usernum=$row['usernum'];
|
$this->view->usernum=$row['usernum'];
|
||||||
$this->view->metanum=$row['metanum'];
|
$this->view->metanum=$row['metanum'];
|
||||||
|
|
Loading…
Reference in New Issue