'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'])
{
?>
fetch_array($qresult))
{
$record_num++;
foreach ($row AS $k => $v)
{
$$k = $v;
}
if($cutlength)
{
$titlecut = cutchars($title,$cutlength);
}
else
{
$titlecut = $title;
}
if(($record_num<=$suffix_num&&$pubdate>=$suffixday))
{
$show_title_suffix=$title_suffix;
}
else
{
$show_title_suffix = "";
}
$pubdate = date($datetype,$pubdate);
if($record_num%$addblankrow==0 && $record_num<>($cols*$rows))
{
$blankrow = '- ';
}
else
{
$blankrow = "";
}
if($loadfile)
{
$show_imgalt=$imgalt;
}
else
{
$show_imgalt='';
}
$auto_titlelink = getfileurl($row);
?>
-
总共: 页