From 44b178502df9489d13db5c3a43b47fc23a005a54 Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 17 May 2013 04:34:06 +0000 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=A2=9E=E5=8A=A0=E6=9C=80?= =?UTF-8?q?=E6=96=B0DOI=E6=95=B0=E6=8D=AE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/IndexController.php | 6 +++++- .../default/views/scripts/index/index.phtml | 17 ++++++++++++++--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index 218555bd..8603a1c2 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -84,7 +84,11 @@ class IndexController extends Zend_Controller_Action } $this->view->list_news = $rows; - + + $sql="select * from datadoi where ts_published is not null order by ts_published desc limit 4"; + $sth = $this->db->query($sql); + $this->view->dois = $sth->fetchAll(); + } } diff --git a/application/default/views/scripts/index/index.phtml b/application/default/views/scripts/index/index.phtml index 93d42b55..d45630fc 100755 --- a/application/default/views/scripts/index/index.phtml +++ b/application/default/views/scripts/index/index.phtml @@ -9,6 +9,9 @@ .carousel-inner .item .featured-image-link{text-align:center;} .featured-image{min-width:100%;text-align:center; margin:auto 0px;/*min-height:100%;*/} +
+ +

新闻

@@ -49,7 +52,7 @@

-
+

在线下载热门数据

    mdtop as $i=>$md) : ?> @@ -58,8 +61,6 @@
-
-

离线申请热门数据

    offlinemdtop as $i=>$md) : ?> @@ -69,6 +70,16 @@
+
+

最新DOI数据

+ +