class Theory extends Com{
public function _initialize(){
parent::_initialize();
$cid = Request::instance()->param("cid");
if(!$cid){
$cid = 116;
}
$this_chanel= Db::name("channel")->find($cid);
$this_chanel['top_name'] = Db::name("channel")->where('id',$this_chanel['topid'])->value("cname");
$this->assign("nei_nav",nav2($this_chanel['topid']));
$this->assign("channel",$this_chanel);
}
function law(){
$cid = Request::instance()->param("cid");
if($cid){
$news = Db::name("mk_news")->where("cid",$cid)->field("nid,title,pic,des,time")->order("nid desc")->paginate(10);
$this->assign("news",$news);
return $this->fetch("index/theory_law");