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数据

+ +