From c309c9561dbc4c8a584ad65c94f5f5085f909b3c Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 30 Jan 2015 16:11:17 +0000 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/IndexController.php | 5 ++ .../default/views/scripts/index/index.phtml | 57 ++----------------- 2 files changed, 9 insertions(+), 53 deletions(-) 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 @@
-

最新可视化数据

+

最新发布数据

    - visualdata as $k=>$v){ ?> + newdata as $k=>$v){ ?>
  • -    +   
  • 更多>> @@ -69,7 +69,7 @@

    可视化数据

    -
    208
    +
    visualnum ?>
    @@ -83,55 +83,6 @@
    - -
    -
    -
    -
    -

    最新发布数据

    -
      - offlinemdtop as $k=>$v){ ?> -
    • - -
    • - - 更多>> -
    -
    -
    - -
    -
    -

    热门数据排行

    -
      - offlinemdtop as $k=>$v){ ?> -
    • - -
    • - - 更多>> -
    -
    -
    - - -
    -
    -

    热门数据排行

    -
      - offlinemdtop as $k=>$v){ ?> -
    • - -
    • - - 更多>> -
    -
    -
    - - -
    -