コード例 #1
0
 public static function getPubHead2014($array)
 {
     global $DB_Document_Read;
     //频道分类
     $classArr = array(74, 210, 145, 300, 182, 206, 353, 200, 194, 207, 231);
     $resultArr = array();
     //读取各分类下带图的4篇文章
     foreach ($classArr as $classId) {
         $paramArr = array('cid' => $classId, 'showimg' => 1, 'imgwidth' => 100, 'imgheight' => 75, 'orderby' => 1, 'len' => 40, 'limit' => 'limit 0, 4');
         $rows = PageHelper::getArticleList($paramArr);
         if ($rows) {
             $resultArr[] = $rows;
         } else {
             $resultArr[] = array();
         }
     }
     ob_start();
     include_once '/www/article/html/template/new/template_c/260.tpl.php';
     $con = ob_get_contents();
     ob_end_clean();
     # 如果是企业站频道,则使用企业站的定制模板 by suhy 20150921
     //     	if(in_array($array['classId'],array(364,))){
     //     		$con = '
     // 	    		<script>
     // 					var __publicNavWidth=1000;
     // 				</script>
     // 				<script src="http://icon.zol-img.com.cn/public/js/enterprise-global-sitenav.js"  type="text/javascript"></script>
     // 	    		';
     //     	}
     return $con;
 }