更新分类新闻列表的分平台控制

This commit is contained in:
wlx 2014-06-12 06:55:00 +00:00
parent fb0bfea245
commit 47f6483e69
1 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,8 @@ class ArchivesController extends Zend_Controller_Action
$sql = "SELECT n.*,c.id as typeid,c.code FROM ".$News->tbl_archives." n
left join ".$News->tbl_catalog." ct on ct.aid=n.id
left join ".$News->tbl_categorys." c ON ct.cid=c.id
WHERE c.id='{$row['id']}' AND n.ts_published<'".$time."' AND n.is_pub=true
WHERE c.id='{$row['id']}' AND n.ts_published<'".$time."' AND n.is_pub=true
and n.sub='$this->subnews'
ORDER BY n.ts_published DESC";
$rs = $this->db->query($sql);