From 4611e4c9a2ff296514cc56c9f9447daa7508a238 Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 17 May 2013 08:34:47 +0000 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=B7=BB=E5=8A=A0doi?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=EF=BC=9B=E6=95=B0=E6=8D=AE=E9=A1=B5=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=BA=8F=E5=88=97=E7=9A=84=E4=B8=AA=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/DataController.php | 2 +- application/default/views/scripts/index/index.phtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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数据