更新分类新闻列表的分平台控制
This commit is contained in:
parent
fb0bfea245
commit
47f6483e69
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue