$info = I('get.info'); $CatsLogic = new Common\Logic\CatsLogic(); $cat = $CatsLogic->detail($info); $children = $CatsLogic->getChildren($cat['cat_id']); if (empty($children['cat_children'])) { $children = ($CatsLogic->getChildren($children['cat_father'])); } $CatsLogic = new Common\Logic\CatsLogic(); $Posts = new Common\Logic\PostsLogic(); $cat = $CatsLogic->detail($info); $title=$cat['cat_name']; {$title}|{:get_opinion('title')} {:W('Common/mainMenu',array('ul_attr'=>'class="menu"'))}

{$title}

$posts_id = $CatsLogic->getPostsId($cat_children['cat_children']['cat_id']); $count = sizeof($posts_id); ($count == 0) ? $res404 = 0 : $res404 = 1; if (!empty($posts_id)) { $Page = new Common\Util\GreenPage($count, get_opinion('PAGER')); $pager_bar = $Page->show(); $limit = $Page->firstRow . ',' . $Page->listRows; $posts_list = $Posts->getList($limit, 'single', 'post_date desc', true, array(), $posts_id); }else{ $posts_list=array(); }
$posts_id=""; $count=0;