diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index fa853602..378a12b4 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -86,6 +86,11 @@ class IndexController extends Zend_Controller_Action $sql="select * from $this->submd where uuid in (select uuid from datavisual) order by ts_created desc limit 5"; $sth=$this->db->query($sql); $this->view->visualdata = $sth->fetchAll(PDO::FETCH_BOTH); + + $sql="select * from $this->submd order by ts_created desc limit 5"; + $sth=$this->db->query($sql); + $this->view->newdata = $sth->fetchAll(PDO::FETCH_BOTH); + } } diff --git a/application/default/views/scripts/index/index.phtml b/application/default/views/scripts/index/index.phtml index a541d392..ee0850e4 100755 --- a/application/default/views/scripts/index/index.phtml +++ b/application/default/views/scripts/index/index.phtml @@ -53,11 +53,11 @@
最新可视化数据
+最新发布数据
可视化数据
-最新发布数据
-热门数据排行
-热门数据排行
-