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

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

@ -132,6 +132,7 @@ class ArchivesController extends Zend_Controller_Action
left join ".$News->tbl_catalog." ct on ct.aid=n.id left join ".$News->tbl_catalog." ct on ct.aid=n.id
left join ".$News->tbl_categorys." c ON ct.cid=c.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"; ORDER BY n.ts_published DESC";
$rs = $this->db->query($sql); $rs = $this->db->query($sql);