diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 276b4cb5..3fd5fb08 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -20,7 +20,7 @@ class DataController extends Zend_Controller_Action function indexAction() { //序列 - $state=$this->db->query('select s.id,name,count(*) from series s,dataseries d where d.sid=s.id group by s.id,s.name'); + $state=$this->db->query('select s.id,s.name,count(*) as count from series s,dataseries d where d.sid=s.id and length(s.name)>2 group by s.id,s.name order by count desc limit 15'); $this->view->serie=$state->fetchAll(); //分类 $state=$this->db->query('select c.code,name,name_zh,count(*) from category c,categorycode cc where c.code=cc.code group by c.code,cc.name,cc.name_zh'); diff --git a/application/default/views/scripts/index/index.phtml b/application/default/views/scripts/index/index.phtml index d45630fc..2b524848 100755 --- a/application/default/views/scripts/index/index.phtml +++ b/application/default/views/scripts/index/index.phtml @@ -71,7 +71,7 @@
-

最新DOI数据

+

最新DOI数据