'76080', "rows" => '35', "is_makestatic" => 'no', "recmdid" => '1', "datetype" => 'Y-m-d', "pagenumtag" => '%s', );?> '1', "columnid" => 'auto', "articleid" => 'auto', "rows" => '6', "cols" => '1', "ordertype" => 'pubdate', "sorttype" => 'DESC', "is_makestatic" => 'yes', "cutlength" => '30', "addblankrow" => '5', "target" => '_blank', "datetype" => 'Y-m-d H:i', "fontcolor" => '#000000', "curpagenumtag" => '%s', "pagenumtag" => '[%s]', "firstpage" => '首页', "lastpage" => '末页', "pre" => '上一页', "next" => '下一页', "pageno" => '5', ); if($cellsetparameter) $parameter = $cellsetparameter + $parameter; if(!$parameter['rows']) { $parameter['rows'] = 1; } foreach ($parameter AS $key => $val) { $$key = $val; } $border_pos = $border_pos ? $border_pos .$linetype . " " . $linepixel . " " . $linecolor . ";" : ""; $lineheight = $lineheight ? "line-height:" . $lineheight . ";" : ""; $fontsize = $fontsize ? "font-size:" . $fontsize . ";" : ""; $fontstyle = $fontstyle ? "font-weight:" . $fontstyle . ";" : ""; $fontcolor = $fontcolor ? "color:" . $fontcolor . ";" : ""; $fontfamily = $fontfamily ? "font-family:" . $fontfamily . ";" : ""; $cols_width = (intval(1/$cols*100)-0.5) . "%"; $cols_width = $cols_width != "100%" && $cols_width != "99.5%" ? "width:" . $cols_width . ";float:left;" : ""; $parameter['rows'] = $rows * $cols; if($columnid == "auto" || empty($columnid)) { $columnid = intval($_REQUEST['colid']); } if ($ordertype) { $spec_order_str = 'cm.' . $ordertype . ' ' . $sorttype . ','; } else { $spec_order_str=''; } $suffixday = mktime (0,0,0,date("m"),date("d")-$suffix_day,date("Y")); $limits = $parameter['rows']; $total = $DB->query_first("SELECT count(*) AS total from ".DB_PREFIX."contentmap cm left join ".DB_PREFIX."article a on cm.contentid = a.articleid left join ".DB_PREFIX."column col on cm.columnid = col.columnid where cm.siteid=".$siteinfo['siteid']." and cm.modeid=1 and cm.columnid in(".$columnid.") and cm.status=3"); $thisoffset = intval($_REQUEST['pp']); $qresult = $DB->query("select cm.*,a.*,col.maketype,col.contentfilename,col.colindex,col.coldir,col.suffix,col.childdomain,col.content_maketype,col.colparents from ".DB_PREFIX."contentmap cm left join ".DB_PREFIX."article a on cm.contentid = a.articleid left join ".DB_PREFIX."column col on cm.columnid = col.columnid where cm.siteid=".$siteinfo['siteid']." and cm.modeid=1 and cm.columnid in(".$columnid.") and cm.status=3 order by ".$spec_order_str." cm.istop desc LIMIT $thisoffset,$limits"); $data = array(); $data['totalpages'] = $total['total']; $data['perpage'] = $limits; $data['curpage'] = intval($_REQUEST['pp']); $data['pagelink'] = $livcms_pagelink.$extra_link; $showpages = build_pagelinks($data,$pageno,$firstpage,$lastpage,$pre,$next,$pagenumtag,$curpagenumtag); foreach ($showpages AS $k => $v) { $$k = $v; } if ($total['total']) { ?>
总共: 页     
精彩新闻
'76081', "columnid" => '1386,1387', "rows" => '4', "ordertype" => 'pubdate', "is_makestatic" => 'no', "prefix" => '', "imgalt" => '', "cutlength" => '24', "datetype" => '', );?> 'auto', "articleid" => 'auto', "rows" => '6', "cols" => '1', "record_start" => '', "ordertype" => '0', "sorttype" => 'DESC', "is_makestatic" => 'yes', "bgcolor1" => '', "bgcolor2" => '', "prefix" => '·', "imgalt" => '(图)', "title_suffix" => '', "cutlength" => '40', "target" => '_blank', "datetype" => 'Y-m-d', "fontfamily" => '', "fontsize" => '14px', "fontcolor" => '#0449BE', "lineheight" => '25px', "linepixel" => '1', "linetype" => '', "linecolor" => '#666666', ); if($cellsetparameter) $parameter = $cellsetparameter + $parameter; if(!$parameter['rows']) { $parameter['rows'] = 1; } foreach ($parameter AS $key => $val) { $$key = $val; } $border_pos = $border_pos ? $border_pos .$linetype . " " . $linepixel . " " . $linecolor . ";" : ""; $lineheight = $lineheight ? "line-height:" . $lineheight . ";" : ""; $fontsize = $fontsize ? "font-size:" . $fontsize . ";" : ""; $fontstyle = $fontstyle ? "font-weight:" . $fontstyle . ";" : ""; $fontcolor = $fontcolor ? "color:" . $fontcolor . ";" : ""; $fontfamily = $fontfamily ? "font-family:" . $fontfamily . ";" : ""; $cols_width = (intval(1/$cols*100)-0.5) . "%"; $cols_width = $cols_width != "100%" && $cols_width != "99.5%" ? "width:" . $cols_width . ";float:left;" : ""; $parameter['rows'] = $rows * $cols; $wherecond = ''; if($articleid && $articleid != 'auto') { $wherecond .= " and cm.id in(" . $articleid . ")"; } elseif($columnid == 'auto') { $wherecond .= " and cm.columnid = " . intval($_REQUEST['colid']); } elseif($columnid && $columnid != 'auto') { $wherecond .= " and cm.columnid in(" . $columnid . ")"; } else { $wherecond .= " and 1=0"; } if ($ordertype) { $spec_order_str = 'cm.' . $ordertype . ' ' . $sorttype . ','; } else { $spec_order_str=''; } $suffixday = mktime (0,0,0,date("m"),date("d")-$suffix_day,date("Y")); $limits = $parameter['rows']; $record_start = intval($parameter['record_start']); $qresult = $DB->query("select cm.*,a.*,col.maketype,col.contentfilename,col.colindex,col.coldir,col.suffix,col.childdomain,col.content_maketype,col.colparents from ".DB_PREFIX."contentmap cm left join ".DB_PREFIX."article a on cm.contentid = a.articleid left join ".DB_PREFIX."column col on cm.columnid = col.columnid where cm.siteid = ".$siteinfo['siteid']." and cm.modeid =1 and cm.status=3 $wherecond order by ".$spec_order_str." cm.istop desc,cm.pubdate desc LIMIT $record_start,$limits"); $total['total'] = $DB->num_rows($qresult); if ($total['total']) { ?>
    fetch_array($qresult)) { $record_num++; foreach ($row AS $k => $v) { $$k = $v; } if($cutlength) { $titlecut = cutchars($title,$cutlength,''); } else { $titlecut = $title; } $auto_titlelink = getfileurl($row); $morelink = getcolumnurl($row); if(($record_num<=$suffix_num&&$pubdate>=$suffixday)) { $show_title_suffix=$title_suffix; } else { $show_title_suffix = ""; } $pubdate = date($datetype,$pubdate); if($record_num%2==0) { $bgcolor=$bgcolor2; } else { $bgcolor=$bgcolor1; } if($loadfile) { $show_imgalt=$imgalt; } else { $show_imgalt=''; } if($linkurl) $auto_titlelink = $linkurl; ?>
更多网友拍新闻
本站简介 | 广告服务 | 联系方式 | 法律声明 | 网站导航

南京厚建软件 LivCMS 内容管理系统http://www.hogesoft.com 授权用户:http://www.xichu.net