/data/www/htdocs49/newcme/protected/modules/kqcme/controllers/NewsController.php(17)
05 // public $layout='//layouts/cme2015_column';
06 public $layout='//layouts/cndent_2023_column';
07
08 //新闻展示页
09 public function actionIndex()
10 {
11
12 // print_r($_REQUEST);die;
13
14
15 $news_type=isset($_REQUEST['type'])?$_REQUEST['type']:'A'; //新闻页面的类型
16
17 $news_id=$_REQUEST['id'];//获得ID
18
19 if($news_id==162){
20 return $this->redirect("http://cme.cndent.com");
21 }
22
23 ////////////////////////// 查询 政策资讯
24 $criteria = new CDbCriteria;
25
26 $criteria->with='YiiCndentnewstype_Rela2';
27
28
29 if($news_type=='A'){//判断类型
|