From 7780d3e67aa8225ec9e1005283e22e436121a7bc Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 17 Apr 2013 02:21:20 +0000 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=AE=9A=E9=A6=96=E9=A1=B5=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=96=B0=E9=97=BB=E4=B8=BA=E7=89=B9=E8=89=B2=E6=96=B0?= =?UTF-8?q?=E9=97=BB=E7=B1=BB=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/IndexController.php | 2 +- application/default/views/scripts/data/tools.phtml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index c5484b6e..ceb58cd3 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -58,7 +58,7 @@ class IndexController extends Zend_Controller_Action $News = new Archive($this->db); $time = date("Y-m-d H:i:s",time()); - $sql = "SELECT * FROM archive WHERE is_pub=true AND ts_published<'$time' AND image!='' order by ts_published desc LIMIT 5"; + $sql = "SELECT * FROM archive WHERE is_pub=true AND ts_published<'$time' AND image!='' and id in (select ar_catalog.aid from ar_category left join ar_catalog on ar_category.id=ar_catalog.cid where ar_category.code='featured') order by ts_published desc LIMIT 5"; $sth = $this->db->query($sql); $rows = $sth->fetchAll(PDO::FETCH_BOTH); diff --git a/application/default/views/scripts/data/tools.phtml b/application/default/views/scripts/data/tools.phtml index f8ef557d..051e612e 100755 --- a/application/default/views/scripts/data/tools.phtml +++ b/application/default/views/scripts/data/tools.phtml @@ -3,10 +3,10 @@
  • 序列浏览
  • 分类浏览
  • 时间轴浏览
  • -
  • 空间浏览
  • +
  • 时空浏览
  • 全部浏览
  • -
  • 高级搜索
  • +