主题 : 自己整理的CMS置标使用手册
级别: 秀才
UID: 26811
积分:87 加为好友
威望: 0 精华: 0
主题:8 回复:54
注册时间:2011-12-14
在线时长:0
1#   发表于:2012-02-17 10:16:47  IP:114.219.*.*





CMS模板置标使用手册
一    首页.html
1.1首页导航
首页导航循环从数据库中获取栏目,首页栏目页内容页导航代码是一样的。
效果图如下:
 
1.1.1一级导航
<ul>
<li>
[@cms_channel_list]
<a href="${base}/">首页</a>
[#list tag_list as c]
<A href="${c.url}">${c.name}</A>
[/#list]
[/@cms_channel_list]
</li>
</ul>

${base}/   回到首页标签
${c.url}   栏目链接
${c.name} 栏目名称

1.1.2多级导航
<ul>
[@cms_channel_list]
<li><a href="${base}/"><span>网站首页</span></a></li>
[#list tag_list as c] [@cms_channel_list parentId=c.id]
[#if tag_list?size>0]
<li class="havechild">
[#else]
<li>[/#if][/@cms_channel_list]<a href="${c.url}" target="_self"><span>${c.name}</span></a>
[@cms_channel_list parentId=c.id][#if tag_list?size>0]
<ul>
[@cms_channel_list parentId=c.id] [#list tag_list as c1] [@cms_channel_list parentId=c1.id][#if tag_list?size>0]
<li class="havesubchild">
[#else]
<li>[/#if][/@cms_channel_list] <a href="${c1.url}">${c1.name}</a> [@cms_channel_list parentId=c1.id][#if tag_list?size>0]

<ul>
[@cms_channel_list parentId=c1.id] [#list tag_list as c2]
<li><a href="${c2.url}">${c2.name}</a></li>
[/#list]
[/@cms_channel_list]
</ul>
[/#if][/@cms_channel_list] </li> [/#list] [/@cms_channel_list]
</ul>
[/#if][/@cms_channel_list] </li> [/#list] [/@cms_channel_list]
</ul>
1.2首页图片切换
 

<div class="im ju">
[@cms_content_list typeId='3' styleList='3-1' titLen='20' count='5' flashWidth='300' flashHeight='200' textHeight='20' channelOption='1'tpl='2'/]
</div>

typeId='3'       表示取类型为“焦点”的新闻的类型图来展示。
styleList='3-1'    图片切换flash的样式,默认有三种样式,还包括'3-2','3-3'
titLen='20'       新闻标题截取长度。
count='5'        切换图片个数
flashWidth='300'  flash高度
flashHeight='200'  flash宽度
textHeight='20'    标题高度,如果设置为0,则不显示标题。
1.3首页新闻列表   

 
此框标签的作用是获取新闻列表的栏目名称及more图标。
 
<h3 id="lie1"><span class="sl">
[@cms_channel id='60']
<a href="${tag_bean.url}">${tag_bean.name}</a>
[/@cms_channel]
</span>

<!—more图标-->
<span class="sr">
[@cms_channel id='60']
<a href="${tag_bean.url}"><img src="/${res}/images/more.jpg" /></a>
[/@cms_channel]
</span></h3>

[@cms_channel id='60']  取id为60的栏目相关信息
${tag_bean.url}     栏目的超链接
${tag_bean.name}    栏目的名称

此标签作用是循环获取channelId='60'新闻栏目下的新闻内容。
 
<ul>
[@cms_content_list channelId='60' orderBy='4' count='5' titLen='20' descLen='40' append='...' channelOption='1' dateFormat='yyyy-MM-dd']
[#list tag_list as a]
<li>
<a href="${a.url}" target=_blank>[@text_cut s=a.title len=titLen append=append/]</a>
</li>
[/#list]
[/@cms_content_list]
</ul>
循环获取新闻内容。   channelId即栏目id,
orderBy='4'   代表最新发布的文章放最上面。
titLen='20'    截取的新闻标题长度
count='5'   代表显示5条记录。
dateFormat='yyyy-MM-dd',  定义日期格式。
[@text_cut s=a.title len=titLen append=append/]
表示截取titLen 这个长度的新闻标题进行显示。
append='...'   表示超过截取标题长度后,以 … 结尾。



[@cms_content_list tpl='2' styleList='1-1' lineHeight='2' showTitleStyle ='1' bottomLine='1' headMark='3' dateFormat='MM-dd' datePosition='2' titLen='10' append='…' count='3' channelId='2589'     channelOption='1'/]
 
styleList='1-1' 可以选择不同的新闻列表的样式
showTitleStyle ='1' 可以选择是否显示标题的样式:变色,加粗等
bottomLine='1'是否有底线
headMark='3'选择新闻头部的箭头的样式
datePosition='2'选择时间的样式

1.4带有new图标,字体加粗,变色的首页新闻列表
[@cms_content_list   channelId='1043' siteId=1026 orderBy='4' count='5' titLen='25' descLen='40'   channelOption='1' dateFormat='yyyy-MM-dd']

[#list tag_list as a]
<LI>[#if a.titleColor?exists]
<a href="${a.url}" class='a4'  style='color:${a.titleColor}' target=_blank>
[#else]
<a href="${a.url}" class='a4' target="_blank">
[/#if]
[#if a.bold==true]
<strong>[@text_cut s=a.title len=titLen append=append/]</strong></a>
[#else]
[@text_cut s=a.title len=titlen append=append/]</a>
[/#if]
</A>[#if a.isNewContentFlag?exists]
[#if a.isNewContentFlag=="1"]
[#if a.contentFlagHoldTime??]
[#if a.contentFlagHoldTime?datetime gt a.currentDate?datetime]
[#if a.newContentImgFlag??]
<img name="newContentImgFlag" alt="预览" src="${a.newContentImgFlag}"/>
[/#if]
[/#if]
[/#if]
[/#if]
[/#if]
</LI>
[/#list]
[/@cms_content_list]
1.5图文新闻 
1.5.1类型图
 
[@cms_content_list typeId=2 count=1 titLen=10 channelOption="1" siteId=4]
[#list tag_list as a]
<dl> <dt>
<a href="${a.url}" title="${a.title}" target="_blank"><img src="${a.typeImg!site.defImg}" alt="${a.title}" /></a>
</dt> <dd>
<a href="${a.url}" title="${a.title}" target="_blank">[@text_cut s=a.txt len="145" append="......"/]</a> </dd></dl>
[/#list] [/@cms_content_list]

typeId=2   取新闻类型为图文的新闻的类型图。
<img src="${a.typeImg!site.defImg}" alt="${a.title}" />
取此条新闻的类型图,即上传的图片。
[@text_cut s=a.txt len="145" append="......"/]
取此条新闻的内容,截取长度为145,多出的用 …… 代替
1.5.2标题图
 
[@cms_channel id='2']<a href="${tag_bean.url}" target="_blank">${tag_bean.name}</a>[/@cms_channel]
[@cms_content_list channelId='2' orderBy='4' count='6' titLen='20' descLen='40' append='...' channelOption='1']
[#list tag_list as a]
[#if a_index = 0]
<dt><a href="${a.url}" title="${a.title}" target="_blank">${a.stit!}</a></dt>
<a href="${a.url}" target="_blank"><img src="${a.titleImg!site.defImg}" alt="${a.title}" /></a>
[@text_cut s=a.desc len=descLen append=append/]
[#else]
<a href="${a.ctgUrl}" target="_blank">[${a.ctgName}]</a> <a href="${a.url}" title="${a.title}" target="_blank">[@text_cut s=a.title len=titLen append=append/]</a>
[/#if]
[/#list]
[/@cms_content_list]
[#if a_index = 0] 如果是第一篇新闻
${a.stit}显示新闻的标题
${a.ctgUrl}新闻所在栏目的链接
[${a.ctgName}]新闻所在栏目的名字
[@text_cut s=a.desc len=descLen append=append/] 摘要
<img src="${a.titleImg!site.defImg}" alt="${a.title}" />标题图
1.6滚动
1.6.1图文列表向左滚动
 

以下js放在head标签里。
<script src="${resSys}/jquery.js" type="text/javascript">
</script>
<script src="${resSys}/front.js" type="text/javascript">
</script>

[@cms_content_list topicId='1' typeId='2' count='8' styleList='2-4' titLen='16' rollLineHeight='70' rollSpan='1' rollSpeed='1' tpl='2'/]

说明:
rollLineHeight: 滚动区行高;【按像素px计算】不能为空
rollSpeed: 滚动速度;【滚动速度,值越小越快,最小为1】不能为空
rollSpan: 滚动跨度;【一次滚动的像素,跨度越大,滚动就越快,但越不流畅】不能为空
topicId='1'滚动中的图片要属于一个专题
typeId='2'图片所在内容是图文类型

 
1.6.2图文向上滚动
[@cms_content_list topicId='2' typeId='2' styleList='2-2' titLen='16' rollLineHeight='115'  rollSpan='1' rollCols='4' rollSpeed='1' isSleep='1' rollSleepTime='500' rollDisplayHeight='115' tpl='2'/]
1.6.3文字列表向上滚动
 
[@cms_content_list styleList='2-1' titLen='10' count='9' rollCols='3' rollDisplayHeight='20' rollLineHeight='29' rollSpeed='20' rollSleepTime='100' rollRows='1' dateFormat='MM-dd' datePosition='3' dateClass='red' channelOption='1' channelId='95' tpl='2'/] 
rollCols: 滚动列数
rollRows: 滚动行数
channelId='95':表示文字列表只获取栏目编号为95的内容。
1.6.4首页滚动资讯:
<div id="header" class="box">
<div id="logo" class="page box">
<div class="logo fl" onclick="window.location.href='${base}/'"></div>
<div class="banner fr"><script type="text/javascript" src="${base}/adspace.jspx?id=1"></script></div>
</div>
<div class="box"></div>
<div id="menu" class="page box relative">
<dl id="topmenu">
[@cms_channel_list]
<dt class="menu_first"><a href="${base}/" target="_self" class="selected" id="nav1" onmouseover="jeeNav(this,${tag_list?size+1})"><span>首 页</span></a></dt>
[#list tag_list as c]
<dt><a href="${c.url}" target="_self" id="nav${c_index+2}" onmouseover="jeeNav(this,${tag_list?size+1})"><span>${c.name}</span></a></dt>
[/#list]
[/@cms_channel_list]
<dd>
<ul id="sub1">
<li><strong>滚动资讯:</strong> </li>
<li class="notice">[@cms_content_list styleList='2-1' titLen='16' count='9' rollCols='3' rollDisplayHeight='20' rollLineHeight='20' rollSpeed='20' rollSleepTime='100' rollRows='1' dateFormat='MM-dd' datePosition='3' dateClass='red' channelOption='1' tpl='2'/]</li>
</ul>
[@cms_channel_list]
[#list tag_list as c]
<ul class="hide" id="sub${c_index+2}">
[@cms_channel_list parentId=c.id]
[#list tag_list as sub]
<li><a href='${sub.url}'>${sub.name}</a></li>
[/#list]
[/@cms_channel_list]
</ul>
[/#list]
[/@cms_channel_list]
</dd>
</dl>
</div>

</div>
1.7文章显示所在栏目:[栏目名称]
 

[@cms_content_list channelId='2' orderBy='4' count='6' titLen='20' descLen='40' append='...' channelOption='1']

[#list tag_list as a]
<li><span><a href="${a.ctgUrl}" target="_blank">[${a.ctgName}]</a></span>
<a href="${a.url}" title="${a.title}" target="_blank">
[@text_cut s=a.title len=titLen append=append/]
</a>
</li>
[/#list]
[/@cms_content_list]
titLen='20'标题长度
${a.ctgUrl}新闻所在栏目的地址
${a.ctgName}新闻所在栏目的名字
1.8常用标签
1.8.1常用tags
即定义的一些关键字,可以通过点击这些关键字查询到相关新闻。
 
首先要在系统设置?Tag管理处添加tag常用标签,比如添加反邪教

之后再添加文章时,”Tag标签处”填写反邪教。
 
[@cms_tag_list count='8']
[#list tag_list as tag]
<a href="${base}/tag/${tag.id}.jspx" target="_blank">${tag.name}</a>
[#if tag_has_next]|
[/#if]
[/#list]
[/@cms_tag_list]
1.8.2标签详情页
 
<div class="w96" style="min-height:500px;">
 [@cms_content_page tagId=tag.id count='10' descLen='100' append='...']
    <div class="search_msg">
<span class="red">“${tag.name}”</span> Tag标签 共有 <span class="red">${tag_list?size} 条</span> 相关资讯:
</div>
[#list tag_pagination.list as s]
     <dl class="list3">
<dt><span>[<a href="${s.ctgUrl}" target="_blank">${s.ctgName}</a>]</span>  <a href="${s.url}" title="${s.title}" target="_blank">${s.title}</a></dt>
<dd class="zy">[@text_cut s=s.description len=descLen append=append/]</dd>
<dd>来源: <a href="${s.originUrl!}" target="_blank">${s.origin!'本站原创'}</a> &nbsp;&nbsp; 浏览次数:${s.views}次 &nbsp;&nbsp; 发布时间: ${s.releaseDate} </dd>
 </dl>
 [/#list]
 <div class="pagination">[@cms_pagination sysPage='1'/]</div>
 [/@cms_content_page]
</div>
1.9图片友情链接
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
[@cms_content_list typeId=2 count=5 titLen=10  channelId=45854   channelOption="1" siteId=1936]
[#list tag_list as a]
<td width="180"><a href="${a.url}"><img border="0" src="${a.typeImg!site.defImg}" width="180" height="45" alt="" /></a></td>
[#if (a_index+1)%5!=0&&a_index!=tag_list?size]
<td width="20">&nbsp;</td>
[/#if]
[/#list] [/@cms_content_list]
</tr>
</table>
1.10首页栏目页中新闻列表时间标签
${a.date?string(dateFormat)}
1.11首页序号变化
[#if (a_index+1)%2==0&&a_index!=tag_list?size]
1.12首页头条
 
[@cms_content_list count='2' typeId='4' descLen='60' append='...' channelOption='1']
[#list tag_list as a]
<li class="toptext[#if a_index gt 0] line[/#if]">
<a href="${a.url}" title="${a.title}" target="_blank"><h3>${a.stit}</h3></a>
<p>[@text_cut s=a.desc len=descLen append=append/]</p>
</li>
[/#list]
[/@cms_content_list]
typeId='4'为头条
descLen='60'控制内容管理中摘要的长度
${a.stit}头条的标题
1.13首页推荐
 
[@cms_content_list count='5' recommend='1' titLen='20' dateFormat='MM-dd' channelOption='1']
[#list tag_list as a]
<a href="${a.ctgUrl}" target="_blank">[${a.ctgName}]</a></span> <a href="${a.url}" title="${a.title}" target="_blank">[@text_cut s=a.title len=titLen append=append/]</a><em>${a.date?string(dateFormat)}</em>
[/#list]
[/@cms_content_list]
dateFormat='MM-dd'显示月日01-04
recommend='1'内容为推荐
1.14首页序号
[#list tag_list as a]
${a_index+1}
[/#list]
1.15站点计数
站点计数(显示浏览总数,今日浏览总数,昨日浏览总数,本月浏览总数,上月浏览总人数)
频道统计(栏目文章总数等相关信息)
    [@cms_channel_statistics channelId=channel.id]
    文章总数: ${contentAllCount!} 篇<br/>
    待审文章: ${contentCheckingCount!} 篇<br/>
    评论总数: ${commentCount!} 条<br/>
    文章阅读: ${viewCount!} 人次<br/>
[/@cms_channel_statistics]
1.16首页栏目页颜色标签
<li>
     [#if a.titleColor?exists]
          <a href="${a.url}" style='color:${a.titleColor}' target=_blank> 
     [#else]
          <a href="${a.url}" target="_blank">
     [/#if]
     [#if a.bold==true]
          <strong>[@text_cut s=a.title len=titlen append=append/]</strong></a>
     [#else]
          [@text_cut s=a.title len=titlen append=append/]</a>
     [/#if]
</li>
1.17 new图标
[#if a.isNewContentFlag?exists]
[#if a.isNewContentFlag=="1"]
[#if a.contentFlagHoldTime??]
[#if a.contentFlagHoldTime?datetime gt a.currentDate?datetime]
[#if a.newContentImgFlag??]  
<img name="newContentImgFlag" alt="预览" src="${a.newContentImgFlag}"/>
[/#if]
[/#if] 
[/#if]
[/#if]
[/#if]
1.18日期:2012年1月16日 星期一 农历:腊月廿三
<script type='text/javascript' src='/${res}/js/showDate.js'></script>
Js文件内容在文件夹中
 ShowDate.js文件内容如下
function RunGLNL(){
var today=new Date();
var d=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
var DDDD="<span class='zt12 bs fz'>"+(today.getYear()<100 ?
today.getYear()+1900:today.getYear())+"年"+(today.getMonth()+1)+"月"+today.getDate()+"日";
DDDD = DDDD + " " + d[today.getDay()];
DDDD = DDDD+ " " + (CnDateofDateStr(today));
//DDDD = DDDD+ " " + SolarTerm(today);
document.write(DDDD);
}
function DaysNumberofDate(DateGL){
return parseInt((Date.parse(DateGL)-Date.parse(DateGL.getYear()+"/1/1"))/86400000)+1;
}
function CnDateofDate(DateGL){
var CnData=new Array(
0x16,0x2a,0xda,0x00,0x83,0x49,0xb6,0x05,0x0e,0x64,0xbb,0x00,0x19,0xb2,0x5b,0x00,
0x87,0x6a,0x57,0x04,0x12,0x75,0x2b,0x00,0x1d,0xb6,0x95,0x00,0x8a,0xad,0x55,0x02,
0x15,0x55,0xaa,0x00,0x82,0x55,0x6c,0x07,0x0d,0xc9,0x76,0x00,0x17,0x64,0xb7,0x00,
0x86,0xe4,0xae,0x05,0x11,0xea,0x56,0x00,0x1b,0x6d,0x2a,0x00,0x88,0x5a,0xaa,0x04,
0x14,0xad,0x55,0x00,0x81,0xaa,0xd5,0x09,0x0b,0x52,0xea,0x00,0x16,0xa9,0x6d,0x00,
0x84,0xa9,0x5d,0x06,0x0f,0xd4,0xae,0x00,0x1a,0xea,0x4d,0x00,0x87,0xba,0x55,0x04
);
var CnMonth=new Array();
var CnMonthDays=new Array();
var CnBeginDay;
var LeapMonth;
var Bytes=new Array();
var I;
var CnMonthData;
var DaysCount;
var CnDaysCount;
var ResultMonth;
var ResultDay;
var yyyy=DateGL.getYear();
var mm=DateGL.getMonth()+1;
var dd=DateGL.getDate();
if(yyyy<100) yyyy+=1900;
if ((yyyy < 1997) || (yyyy > 2020)){
return 0;
}
Bytes[0] = CnData[(yyyy - 1997) * 4];
Bytes[1] = CnData[(yyyy - 1997) * 4 + 1];
Bytes[2] = CnData[(yyyy - 1997) * 4 + 2];
Bytes[3] = CnData[(yyyy - 1997) * 4 + 3];
if ((Bytes[0] & 0x80) != 0) {CnMonth[0] = 12;}
else {CnMonth[0] = 11;}
CnBeginDay = (Bytes[0] & 0x7f);
CnMonthData = Bytes[1];
CnMonthData = CnMonthData << 8;
CnMonthData = CnMonthData | Bytes[2];
LeapMonth = Bytes[3];
for (I=15;I>=0;I--){
CnMonthDays[15 - I] = 29;
if (((1 << I) & CnMonthData) != 0 ){
CnMonthDays[15 - I]++;}
if (CnMonth[15 - I] == LeapMonth ){
CnMonth[15 - I + 1] = - LeapMonth;}
else{
if (CnMonth[15 - I] < 0 ){CnMonth[15 - I + 1] = - CnMonth[15 - I] + 1;}
else {CnMonth[15 - I + 1] = CnMonth[15 - I] + 1;}
if (CnMonth[15 - I + 1] > 12 ){ CnMonth[15 - I + 1] = 1;}
}
}
DaysCount = DaysNumberofDate(DateGL) - 1;
if (DaysCount <= (CnMonthDays[0] - CnBeginDay)){
if ((yyyy > 1901) && (CnDateofDate(new Date((yyyy - 1)+"/12/31")) < 0)){
ResultMonth = - CnMonth[0];}
else {ResultMonth = CnMonth[0];}
ResultDay = CnBeginDay + DaysCount;
}
else{
CnDaysCount = CnMonthDays[0] - CnBeginDay;
I = 1;
while ((CnDaysCount < DaysCount) && (CnDaysCount + CnMonthDays[I] < DaysCount)){
CnDaysCount+= CnMonthDays[I];
I++;
}
ResultMonth = CnMonth[I];
ResultDay = DaysCount - CnDaysCount;
}
if (ResultMonth > 0){
return ResultMonth * 100 + ResultDay;}
else{return ResultMonth * 100 - ResultDay;}
}
function CnYearofDate(DateGL){
var YYYY=DateGL.getYear();
var MM=DateGL.getMonth()+1;
var CnMM=parseInt(Math.abs(CnDateofDate(DateGL))/100);
if(YYYY<100) YYYY+=1900;
if(CnMM>MM) YYYY--;
YYYY-=1864;
return CnEra(YYYY)+"年";
}
function CnMonthofDate(DateGL){
var CnMonthStr=new Array("零","正","二","三","四","五","六","七","八","九","十","十一","腊");
var Month;
Month = parseInt(CnDateofDate(DateGL)/100);
if (Month < 0){return "闰" + CnMonthStr[-Month] + "月";}
else{return CnMonthStr[Month] + "月";}
}
function CnDayofDate(DateGL){
var CnDayStr=new Array("零",
"初一", "初二", "初三", "初四", "初五",
"初六", "初七", "初八", "初九", "初十",
"十一", "十二", "十三", "十四", "十五",
"十六", "十七", "十八", "十九", "二十",
"廿一", "廿二", "廿三", "廿四", "廿五",
"廿六", "廿七", "廿八", "廿九", "三十");
var Day;
Day = (Math.abs(CnDateofDate(DateGL)))%100;
return CnDayStr[Day];
}
function DaysNumberofMonth(DateGL){
var MM1=DateGL.getYear();
MM1<100 ? MM1+=1900:MM1;
var MM2=MM1;
MM1+="/"+(DateGL.getMonth()+1);
MM2+="/"+(DateGL.getMonth()+2);
MM1+="/1";
MM2+="/1";
return parseInt((Date.parse(MM2)-Date.parse(MM1))/86400000);
}
function CnEra(YYYY){
var Tiangan=new Array("甲","乙","丙","丁","戊","己","庚","辛","壬","癸");
//var Dizhi=new Array("子(鼠)","丑(牛)","寅(虎)","卯(兔)","辰(龙)","巳(蛇)",
//"午(马)","未(羊)","申(猴)","酉(鸡)","戌(狗)","亥(猪)");
var Dizhi=new Array("子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥");
return Tiangan[YYYY%10]+Dizhi[YYYY%12];
}
function CnDateofDateStr(DateGL){
if(CnMonthofDate(DateGL)=="零月") 
//return " 请调整您的计算机日期!";
return "";
else return "农历:" + CnMonthofDate(DateGL) + CnDayofDate(DateGL);
}
function SolarTerm(DateGL){
var SolarTermStr=new Array(
"小寒","大寒","立春","雨水","惊蛰","春分",
"清明","谷雨","立夏","小满","芒种","夏至",
"小暑","大暑","立秋","处暑","白露","秋分",
"寒露","霜降","立冬","小雪","大雪","冬至");
var DifferenceInMonth=new Array(
1272060,1275495,1281180,1289445,1299225,1310355,
1321560,1333035,1342770,1350855,1356420,1359045,
1358580,1355055,1348695,1340040,1329630,1318455,
1306935,1297380,1286865,1277730,1274550,1271556);
var DifferenceInYear=31556926;
var BeginTime=new Date(1901/1/1);
BeginTime.setTime(947120460000);
for(;DateGL.getYear()<BeginTime.getYear();){
BeginTime.setTime(BeginTime.getTime()-DifferenceInYear*1000);
}
for(;DateGL.getYear()>BeginTime.getYear();){
BeginTime.setTime(BeginTime.getTime()+DifferenceInYear*1000);
}
for(var M=0;DateGL.getMonth()>BeginTime.getMonth();M++){
BeginTime.setTime(BeginTime.getTime()+DifferenceInMonth[M]*1000);
}
if(DateGL.getDate()>BeginTime.getDate()){
BeginTime.setTime(BeginTime.getTime()+DifferenceInMonth[M]*1000);
M++;
}
if(DateGL.getDate()>BeginTime.getDate()){
BeginTime.setTime(BeginTime.getTime()+DifferenceInMonth[M]*1000);
M==23?M=0:M++;
}
var JQ;
if(DateGL.getDate()==BeginTime.getDate()){
JQ="  今天是<font color='#FF9999'><b>"+SolarTermStr[M] + "</b></font>";
}
else if(DateGL.getDate()==BeginTime.getDate()-1){
JQ="  明天是<font color='#FF9999'><b>"+SolarTermStr[M] + "</b></font>";
}
else if(DateGL.getDate()==BeginTime.getDate()-2){
JQ="  后天是<font color='#FF9999'><b>"+SolarTermStr[M] + "</b></font>";
}
else{
JQ=" "
if(DateGL.getMonth()==BeginTime.getMonth()){
JQ+="  本月";
}
else{
JQ+="  下月";
}
JQ+=BeginTime.getDate()+"日"+"<font color='#FF9999'><b>"+SolarTermStr[M]+"</b></font>";
}
return JQ;
}
function CAL()
{}
RunGLNL();
1.19 登陆到后台的代码
<DIV class=rabt>
<DIV style="HEIGHT: 10px"></DIV>
<DIV><SPAN id=T2>用户登录</SPAN></DIV></DIV>
<DIV class=Use>
<TABLE height=111>
<FORM method=post name=form1 action="http://localhost:8083/bluecms/blueadmin/bluecms/login.do"  target="_blank">
<TBODY>
<TR>
<TD height=15 colSpan=2></TD></TR>
<TR>
<TD><SPAN id=T1>用户名:</SPAN></TD>
<TD><INPUT style="WIDTH: 120px; HEIGHT: 15px" id=username type=text
name=username></TD></TR>
<TR>
<TD><SPAN id=T1>密&nbsp;&nbsp;码:</SPAN></TD>
<TD><INPUT style="WIDTH: 120px; HEIGHT: 15px" id=password type=password
name=password></TD></TR>
<TR>
<TD height=3 colSpan=2></TD></TR>
<TR>
<TD colSpan=2 align=right >
<input type="image" src="/${res}/images/submit.gif" />
</TD>
</TR>
<TR>
<TD height=10 colSpan=2></TD></TR></FORM></TBODY></TABLE></DIV>
<DIV class=rab></DIV></DIV>
二  新闻栏目.html
2.1栏目页新闻列表
 
 
<h3>
您的位置:<a href='${base}/'>首页</a>  &gt; [#list channel.nodeList as n]<a href='${n.url}' target='_blank'>${n.name}</a>[#if n_has_next] &gt; [/#if][/#list]  &gt;
</h3>
循环获取栏目文章列表
<ul>
[@cms_content_page channelId=channel.id count='4' titLen='15' append='...' orderBy='2' dateFormat='yyyy-MM-dd' channelOption='1']
[#list tag_pagination.list as a]
<li>
<a href="${a.url}" target=_blank>[@text_cut s=a.title len=titLen append=append/]</a>
</li>
[/#list]
</ul>
[/@cms_content_page]</p>
翻页效果标签   <p class="p1">[@cms_pagination sysPage='1'/]
2.2左边二级菜单效果
 
显示1层
[@cms_channel_list parentId=channel.id]
[#list tag_list as c]
<li><a href="${c.url}">${c.name}</a></li>
[/#list]
[/@cms_channel_list]

显示2层代码

[@cms_channel_list parentId=channel.id]
[#list tag_list as c]
<li><a href="${c.url}">${c.name}</a></li>
[@cms_channel_list parentId=c.id]
[#list tag_list as c1]
<li class="list2"><a href="${c1.url}">${c1.name}</a></li>
[/#list]
[/@cms_channel_list]
[/#list]
[/@cms_channel_list]

显示3层代码

${channel.name}显示栏目名字
<span class="s1">栏目列表  ${channel.name}  </span>

<ul>
[#if channel.parent?exists]
[#if channel.parent.parent?exists]
[#if channel.parent.parent.parent?exists]

[#else]
[@cms_channel_list parentId=channel.parent.parent.id]
[#list tag_list as c]
<a href="${c.url}">${c.name}</a>
[@cms_channel_list parentId=c.id]
[#list tag_list as c1]
<a href="${c1.url}">${c1.name}</a></span></td>
[/#list]
[/@cms_channel_list]
[/#list]
[/@cms_channel_list]

[/#if]
[#else]

[@cms_channel_list parentId=channel.parent.id]
[#list tag_list as c]
<a href="${c.url}">${c.name}</a>
[@cms_channel_list parentId=c.id]
[#list tag_list as c1]
<a href="${c1.url}">${c1.name}</a>
[/#list]
[/@cms_channel_list]
[/#list]
[/@cms_channel_list]

[/#if]
[#else]

[@cms_channel_list parentId=channel.id]
[#list tag_list as c]
<a href="${c.url}">${c.name}</a>
[@cms_channel_list parentId=c.id]
[#list tag_list as c1]
<a href="${c1.url}">${c1.name}</a>
[/#list]
[/@cms_channel_list]
[/#list]
[/@cms_channel_list]
[/#if]
</ul>
2.3栏目页栏目本月排行
 
<DIV class=box>
<H5 class=title-2>栏目本月排行</H5>
<UL class="content rank">
[@cms_content_list channelId=channel.id  count='10' titLen='15' orderBy='2' channelOption='1']
[#list tag_list as a]
<LI><SPAN>${a.views!}</SPAN><A class=title title="{a.title}"
href="${a.url}" >[@text_cut s=a.title len=titLen append=append/]</A> </LI>
[/#list]
[/@cms_content_list]
</UL></DIV>
channelId=channel.id 切换到哪个栏目就显示哪个栏目下的新闻排行
三   新闻内容.html
3.1新闻内容
 
<h2 align="center" style="color:#FF0000">${content.title}</h2>
<p style="text-align:center;font-size:13px">发布时间${content.releaseDate}</p>
作者:${content.author!} 
来源: <a href="${content.originUrl!}" target="_blank">${content.origin!'本站原创'}</a>
[#if pagination.firstPage]
   <strong>摘要:</strong> [@text_cut s=content.description len='50' append='...'/]
[/#if]    
[#if content.citedTitle?exists]引题:${content.citedTitle}[/#if]
[#if content.editors?exists]编辑:${content.editors}[/#if]
[#if content.pictureEditors?exists]图片编辑:${content.pictureEditors}[/#if]
<p>
${txt!}
</p>
[#if pagination.firstPage]
[#if content.citedTitle?exists]引题:${content.citedTitle}[/#if] 
[#if content.editors?exists]编辑:${content.editors}[/#if] 
[#if content.pictureEditors?exists]图片编辑:${content.pictureEditors}[/#if]
${content.releaseDate} 内容页发布时间
${content.author!} 作者
<a href="${content.originUrl!}" target="_blank">${content.origin!'本站原创'}</a> 来源
[@text_cut s=content.description len='50' append='...'/]摘要
3.2内容页翻页
如果内容过长需要设置翻页效果,需添加以下代码。
[#assign p=pagination/]
[#if p.totalPage gt 1]
<div[#if cssClass??] class="${cssClass!}"[/#if][#if cssStyle??] style="${cssStyle!}"[/#if]>
[#if !p.firstPage]
<a href="${hrefFormer}[#if p.prePage gt 1]_${p.prePage}[/#if]${hrefLatter}">[上一页]</a>[#t/]
[/#if]
[#list 1..p.totalPage as i]
<a href="${hrefFormer}[#if i gt 1]_${i}[/#if]${hrefLatter}">[[#t/]
[#if p.pageNo == i]<span class="p2-crr">${i}</span>[#else]${i}[/#if]]</a>&nbsp;[#t/]
[/#list]
[#if !p.lastPage]
<a href="${hrefFormer+'_'+p.nextPage+hrefLatter}">[下一页]</a>[#lt/]
[/#if]
</div>
[/#if]
3.3浏览次数
<script src="${resSys}/front.js" type="text/javascript"></script>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
   var  url ="http://localhost:8083/bluecms/content_view.jspx?callback=?";
   var  data={contentId:${content.id}};
  $.getJSON(url,data,function(json){
     document.getElementById("djs").value=json[0];
                   });

})


</script>
在点击次数后的<input>里写入下面的代码

以上代码 放在 </head>  前

<h5>发布时间${content.releaseDate}  &nbsp;  浏览次数:<span id="views"><input type="text"  style="width:50px;border-style:none" readonly="readonly" id="djs"/>
</span> &nbsp;   </h5>

id="views"  是必须的  但 span 可以换成 p 等其他标签
3.4上一篇下一篇
 

<ul>
<li><strong>上一篇:</strong>
[@cms_content id=content.id next='1' channelId=channel.id][#if tag_bean??]
<a href="${tag_bean.url}">${tag_bean.title}</a>
[#else]没有了[/#if]
[/@cms_content]
</li>

<li><strong>下一篇:</strong>
[@cms_content id=content.id next='0' channelId=channel.id][#if tag_bean??]
<a href="${tag_bean.url}">${tag_bean.title}</a>[#else]没有了[/#if]
[/@cms_content]
</li>
</ul>
3.5文章内容页显示相关文章
要显示相关文章,前提还是在添加文章时”Tag标签处”填写tag关键字。
[#if content.tagStr??]
[@cms_content_list styleList='1-1' titLen='19' count='5' headMark='3' lineHeight='7' bottomLine='1' tagName=content.tagStr excludeId=content.id channelOption='1' emptyMsg='本文暂无相关文章' emptyStyle='color:red;margin:5px;' tpl='2'/]
[#else]
本文暂无相关文章!
[/#if]
3.6内容页颜色标签
[#if content.titleColor?exists]
<font style='color:${content.titleColor}'>
[#else]
<font>
[/#if]
[#if content.bold==true]
<strong>${content.title}</strong></font>
[#else]
${content.title}
[/#if]
3.7日顶踩(带修改没有测试通过)
 
[#if channel.allowUpdown]
            <div class="ding fl" onclick="Cms.up('${base}',${content.id},${content.ups});"><span id="ups"></span>
              <p>顶</p>
            </div>
            <div class="cai fl" onclick="Cms.down('${base}',${content.id},${content.downs});"><span id="downs"></span>
              <p>踩</p>
            </div>
[/#if]
四     单页.html
4.1单页效果
点击一个栏目,例如学院简介,直接出现学校的介绍,而不是文章列表,
在内容添加时,要添加“单页”类型。在模板根目录下建立一个目录叫做alone 里面的模板叫做单页,单页的内容和内容一样,只是多了下面的代码
<h1 class="line">${channel.title!channel.name}</h1>
<div class="content" style="min-height:800px;">
${channel.txt!}
</div>
五    投票模块
5.1投票页
需要在内容管理系统后台手动添加一个投票,并把这个投票设置为默认,然后添加代码,代码加上完之后的前台效果如下图:
 

首页放置投票的地方添加如下代码
也可以在模板里新建一个叫做include的文件夹,在include下建立投票栏.html模板
 
在需要加投票代码的地方加上如下语句:
[#include "../include/投票栏.html"/]
把下面的代码放到
投票栏.html中

[@cms_vote]
[#if !tag_bean??]
<div>没有默认投票主题</div>
[#else]
<form name="votes" action="${base}/vote.jspx" method="post" target="_blank">
<table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td height="30" colspan="2" align="left">${tag_bean.title?html}
<input type="hidden" name="voteId" value="${tag_bean.id}"/></td>
</tr>
[#if tag_bean.multiSelect gt 1]
[#list tag_bean.items as item]
<tr>
<td width="9%" height="20" align="center"><input type="checkbox" name="itemIds" value="${item.id}" onClick="check_votes(${tag_bean.multiSelect})" id="${item.id}"/></td>
<td width="91%" align="left">${item.title?html}</td>
</tr>
[/#list]
[#else]
[#list tag_bean.items as item]
<tr>
<td width="9%" height="20" align="center"><input type="radio" name="itemIds" value="${item.id}"/></td>
<td width="91%" align="left">${item.title?html}</td>
</tr>
[/#list]
[/#if]
<tr>
<td height="30" colspan="2" align="center"><input type="submit" value="投 票" onClick="return check_votes(${tag_bean.multiSelect})"/>
&nbsp; <a href="${base}/vote_result.jspx?voteId=${tag_bean.id}" target="_blank">查看投票结果</a> </td>
</tr>
</table>
</form>
[/#if]
[/@cms_vote]
5.2投票结果页
在模板中新建一个special文件夹,在special下面添加一个投票结果页.html
 
 

<div class="left_div box">
<div class="w96" style="min-height:500px;">
[#if status?? && status!=0]
<div class="prompt">
<dl>
<dt></dt>
<dd class="msg">
[#if status==1]
投票ID不能为空
[#elseif status==2]
投票项不能为空
[#elseif status==100]
投票主题不存在
[#elseif status==101]
投票项不合法
[#elseif status==501]
需要登录才能投票
[#elseif status==200]
投票主题已经关闭
[#elseif status==201]
投票的选项个数大于允许的个数
[#elseif status==202]
投票还没有开始
[#elseif status==203]
投票已经结束
[#elseif status==204]
您已经投过票了,请勿重复投票!<!--,同一会员不能重复投票-->
[#elseif status==205]
您已经投过票,请勿重复投票!了<!--,,同一IP不能重复投票-->
[#elseif status==206]
您已经投过票了,请勿重复投票!<!--,,同一COOKIE不能重复投票-->
[#else]
投票失败
[/#if]
</dd>
</dl>
</div>

[#else]
<div class="search_msg">
投票主题:<span class="red">${vote.title?html}</span>, 总票数:<span class="red">${vote.totalCount}</span>
</div>
<table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
[#list vote.items as item]
<tr>
<td width="30" height="30" align="center" bgcolor="#F9F9F9">${item_index+1}、</td>
<td width="620" bgcolor="#F9F9F9">${item.title?html} - (${item.voteCount}票)</td>
</tr>
<tr>
<td height="30">&nbsp;</td>
<td>
<img src="/${res}/images/vote/vote_bar.gif" width="${item.percent}%" height="10px" border="0"/> ${item.percent}%
</td>
</tr>
[/#list]
</table>
[/#if]
</div>
</div>

六    搜索
6.1搜索页
 

<form action="http://cms.hznu.edu.cn/bluecms/search.jspx" target="_blank">
<input name="q" value="${q!'请输入关键词'}" type="text" id="stxt" onfocus="if(this.value=='请输入关键词')this.value=''" onblur="if(this.value=='')this.value='请输入关键词'" maxlength="24" autocomplete="off" />
<span id="fid_box">
<select name="channelId" id="stxt2">
<option value="">所有信息</option>
[@cms_channel_list]
[#list tag_list as c]
<option value="${c.id}">${c.name}</option>
[/#list]
[/@cms_channel_list]
</select>
</span>
<input type="submit" id="btnSearch" value=""/>
<input type="submit" class="btnSearch" value=""/>
</form>
6.2 搜索结果页

 
<div class="cb">搜索结果</div>
[#if q??]

[@cms_lucene_page q=q channelId=channelId descLen='100' append='...' count='20']
<div class="search_msg">
您搜索的<span class="red">“${q!}”</span>, 共有 <span class="red">${tag_list?size} 条</span> 查询结果,
</div>
[#list tag_list as s]
<dl class="list3">
<dt><span>[<a href="${s.ctgUrl}" target="_blank">${s.ctgName}</a>]</span>  <a href="${s.url}" title="${s.title}" target="_blank">${s.title}</a></dt>
<dd class="zy">[@text_cut s=s.description len=descLen append=append/]</dd>
<dd>来源: <a href="${s.originUrl!}" target="_blank">${s.origin!'本站原创'}</a> &nbsp;&nbsp;
发布时间: ${s.releaseDate} </dd>
</dl>
[/#list]
[/@cms_lucene_page]
[/#if]
</div>
七  评论
7.1首页热门评论
 
<div class="w250 fr">
<div class="blue_right_top"><h2><a href="#" target="_blank">热门评论</a></h2></div>
<div class="blue_right_div">
[@cms_comment_list siteId='1' count='5' recommend='1' checked='1' textLen='50' append='...']
<dl class="rmpl">
[#list tag_list as c]
<dt><span>${(c.commentUser.username)!"匿名网友"}</span> 对 <a href="${c.content.url}" target="_blank">${c.content.title}</a> 评论道:</dt>
<dd>[@text_cut s=c.textHtml len=textLen append=append/]</dd>
<dd class="line"></dd>
[/#list]
</dl>
[/@cms_comment_list]
</div>
recommend='1'控制首页只显示被设置为推荐的评论
checked='1'控制首页只显示审核后的评论
${(c.commentUser.username)!"匿名网友"}评论的用户名字
<a href="${c.content.url}" target="_blank">${c.content.title}</a>被评论的新闻标题链接和标题

当栏目页勾选择登陆才能评论后的内容页评论效果图如下:登陆后再进行评论
 
当栏目页选择关闭评论的时候,内容页底下就看不到评论的功能模块;
当栏目页选择游客评论的时候,内容页底下的评论效果图如下:
 

8.2comment_input.html
在新闻内容页需要加评论的地方加入以下标签:
[#if channel.commentControl!=1]
[#include "comment_input.html"/]
[#include "comment_list.html"/]
[/#if]
或者
[#if channel.commentControl!=2]
[#include "comment_list.html"/]
[#include "comment_input.html"/]
[/#if]

[#if channel.commentControl!=2] 栏目页没有关闭评论的时候
[#if channel.commentControl!=1]栏目页没有选择登陆后才允许评论的时候

在content下建立comment_input.html

 


comment_input.html

<div class="comment">
<h2><span>网友评论</span> 已有 <em>${content.comments}</em> 条评论,<a href="${base}/comment.jspx?contentId=${content.id}" target="_blank">查看更多评论&raquo;</a></h2>
[#if content.channel.commentControl==0 || (content.channel.commentControl==1 && user??)]
<div class="w98" style="margin-top:5px;">
<form id="commentForm" action="${base}/comment.jspx" method="post">
<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#EAEAEA">
<tr>
<td width="19%" height="80" align="right" bgcolor="#FaFaFa"><strong>评论内容:</strong></td>
<td width="81%" bgcolor="#FFFFFF"><textarea name="text" class="cinput" cols="60" rows="5"></textarea></td>
</tr>
<tr>
<td width="19%" align="right" bgcolor="#FaFaFa"><strong>验证码:</strong></td>
<td width="81%" bgcolor="#FFFFFF">
<input name="captcha" type="text" id="captcha" vld="{required:true}" class="input"/>
<img src="${base}/captcha.svl" onclick="this.src='${base}/captcha.svl?d='+new Date()"/>
</td>
</tr>
<tr>
<td height="30" colspan="2" align="center" bgcolor="#FFFFFF"><input type="hidden" name="contentId" value="${content.id}"/>
<input type="submit" name="Submit" value=" 马上发表 " />
【网友评论仅供其表达个人看法,并不表明本站同意其观点或证实其描述。】 </td>
</tr>
</table>
</form>
<script type="text/javascript">
$(function() {
/*
$("#commentForm").validate( {
submitHandler : function(form) {
$(form).ajaxSubmit( {
"success" : function(data) {
if(data.success) {
alert("评论成功");
location.href=location.href;
} else {
alert("评论失败");
}
},
"dataType" : "json"
});
}
});
*/
Cms.comment(function(data) {
if(data.status==0) {
alert("评论成功");
location.href=location.href;
} else if(data.status==1) {
alert("验证码错误");
$("#commentCaptcha").click();
} else if(data.status==2) {
alert("内容不存在");
$("#commentCaptcha").click();
} else if(data.status==3) {
alert("评论关闭");
$("#commentCaptcha").click();
} else if(data.status==4) {
alert("需要登录评论");
$("#commentCaptcha").click();
} else if(data.status==100) {
alert("内容不存在");
$("#commentCaptcha").click();
} else if(data.status==101) {
alert("评论不能为空");
$("#commentCaptcha").click();
} else {
alert("评论失败");
$("#commentCaptcha").click();
}
});
});
</script>
</div>
[#elseif channel.commentControl==1 && !user??]
[#--登录评论,且未登录--]
<div style="width:96%;font-size:14px;color:red;margin:10px;">
您尚未登录,请登录后发布评论! 【<a href="${base}/login.jspx?returnUrl=/">马上登录</a>】
</div>
[#else]
[#--不允许评论--]
[/#if]
</div>



8.3comment_list.html

 

comment_list.html

<div id="commentListContainer"></div>
<script type="text/javascript">
$(function(){
Cms.commentList("${base}","commentListContainer",{contentId:${content.id},orderBy:0,count:5});
});
</script>
八 留言管理
 

新建一个留言栏目,在外部链接中写入以下地址:
 
http://cms.hznu.edu.cn/bluecms/guestbook.jspx?siteId=34860
注意修改成对应的cms的地址和站点id
留言板代码位于special文件夹中
 
8.1首页的留言
 
<div class="blue_right_low"></div>

<div class="blue_right_top mt5"><h2><a href="${base}/guestbook.jspx" target="_blank">网友留言</a></h2></div>
<div class="blue_right_div" style="height:280px;">
<div class="w96">
[@cms_guestbook_list count='10' recommend='1' checked='1']
[#list tag_list as m]
<dl class="gb">
<dt><span>[${m.ctg.name!}]</span>${m.titleHtml!}</dt>
<dd>${m.contentHtml!}</dd>
</dl>
[/#list]
[/@cms_guestbook_list]
</div>
</div>
<div class="blue_right_low"></div>
</div>
recommend='1' 控制在首页上显示在留言管理中勾选上推荐的留言
checked='1'控制在首页上显示在留言管理中勾选上审核的留言
8.2留言板首页
留言板首页必须加上这两个js
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>
<div class="main_r">
<div id="main">
<div class="page2 position"> 您现在正在浏览: <a href="${base}/">首页</a> &raquo; 用户留言</div>
<!--cjbd_begin-->
<div class="page2 box">
<div class="w700 fl">
<div class="rb_top"></div>
<div class="rb_mid box">
<div class="w96">
[@cms_guestbook_page siteId=site.id count='20']
[#list tag_pagination.list as m]
<dl class="gb">
<dt><span>[${m.ctg.name!}]</span>${(m.member.username)!'匿名网友'} 于${m.createTime} 问:<br/>
<strong>${m.titleHtml!}</strong></dt>
<dd>${m.contentHtml!}</dd>
[#if m.reply??]
<dd class="relpy"><img src="/${res}/images/guestbook/replay.gif" align="absmiddle"/> 管理员回复:${m.replyHtml!}</dd>
[/#if]
</dl>
[/#list]
<div class="pagination">[@cms_pagination sysPage='1'/]</div>
[/@cms_guestbook_page]
</div>

<!--网友评论_Begin-->
<div class="comment">
<h2><span>我要留言</span></h2>
<div class="w98">
<form id="guestbookForm" action="/bluecms/guestbook.jspx" method="post">
<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#EAEAEA">
<tr>
<td width="13%" height="30" align="right" bgcolor="#fafafa"><strong>类  别:</strong></td>
<td width="31%" bgcolor="#FFFFFF">
<select name="ctgId">
[@cms_guestbook_ctg_list siteId=site.id]
[#list tag_list as ctg]
<option value="${ctg.id}">${ctg.name}</option>
[/#list]
[/@cms_guestbook_ctg_list]
</select>           </td>
<td width="13%" align="right" bgcolor="#FAFAFA"><strong>电子邮箱:</strong></td>
<td width="43%" bgcolor="#FFFFFF"><input type="text" name="email" class="email" maxlength="100"/></td>
</tr>
<tr>
<td width="13%" height="30" align="right" bgcolor="#fafafa"><strong>电  话:</strong></td>
<td width="31%" bgcolor="#FFFFFF"><input type="text" name="phone" maxlength="50"/></td>
<td width="13%" align="right" bgcolor="#FAFAFA"><strong>QQ:</strong></td>
<td width="43%" bgcolor="#FFFFFF"><input type="text" name="qq"/></td>
</tr>
<tr>
<td width="13%" height="30" align="right" bgcolor="#fafafa"><strong>标题:</strong></td>
<td colspan="3" bgcolor="#FFFFFF"><input name="title" type="text" size="70" class="required" maxlength="255"/></td>
</tr>
<tr>
<td width="13%" height="80" align="right" bgcolor="#fafafa"><strong>评论内容:</strong></td>
<td colspan="3" bgcolor="#FFFFFF">
<textarea name="content" class="cinput required" maxlength="65535" cols="60" rows="5"></textarea></td>
</tr>
<tr>
<td width="13%" height="80" align="right" bgcolor="#fafafa"><strong>验证码:</strong></td>
<td colspan="3" bgcolor="#FFFFFF">
<input type="text" name="captcha" class="required" maxlength="20"/>
<img id="guestbookCaptcha" src="${base}/captcha.svl" onclick="this.src='${base}/captcha.svl?d='+new Date()"/>
</td>
</tr>
<tr>
<td height="30" colspan="4" align="center" bgcolor="#FFFFFF">
<input type="image" src="/${res}/images/guestbook/btn.gif" name="submit" />

</td>
</tr>
</table>
</form>

<script type="text/javascript">
$(function() {
$("#guestbookForm").validate( {
submitHandler : function(form) {
$(form).ajaxSubmit( {
"success" : function(data) {
if(data.status==0) {
alert("留言提交成功");
location.href=location.href;
} else if(data.status==1) {
alert("验证码错误");
$("#guestbookCaptcha").click();
} else {
alert("留言提交失败");
}
},
"dataType" : "json"
});
}
});
});
</script>
</div>
</div>
</div>
<div class="rb_low"></div>
</div>

</div>
</div>
</div>   </div>
</div>
8.3留言板类别页
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>留言板 - ${site.name} - Powered by BLUECMS</title>
<link href="${resSys}/front.css" rel="stylesheet" type="text/css"/>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>
</head>

<body>
[@process_time/]
<h1>全文检索输入</h1>
<form action="search.jspx">
<input type="text" name="q" value="${q!}"/>
<input type="submit" value="搜索"/>
</form>

[#if q??]
[@cms_lucene_page q=q tpl='2' styleList='1-1' lineHeight='2' bottomLine='1' headMark='3' dateFormat='MM-dd' datePosition='3' titLen='15' append='...' count='20'/]
[/#if]

[@process_time/]
</body>
</html>
8.4留言板详情页
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>留言板 - ${site.name} - Powered by BLUECMS</title>
<link href="${resSys}/front.css" rel="stylesheet" type="text/css"/>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>
</head>

<body>
[@process_time/]
<h1>全文检索输入</h1>
<form action="search.jspx">
<input type="text" name="q" value="${q!}"/>
<input type="submit" value="搜索"/>
</form>

[#if q??]
[@cms_lucene_page q=q tpl='2' styleList='1-1' lineHeight='2' bottomLine='1' headMark='3' dateFormat='MM-dd' datePosition='3' titLen='15' append='...' count='20'/]
[/#if]

[@process_time/]
</body>
</html>
九   专题
9.1首页精彩专题
专题的使用要在专题管理中添加专题,想要在首页显示的需要在专题上选择推荐,不标志为推荐的在专题详情页显示,在添加专题时,填写上标题,专题的描述并上传标题图
 
<div class="rb_right_low"></div>
<div class="rb_right_top mt5"><h2><a href="${base}/topic.jspx" target="_blank">精彩专题</a></h2></div>
<div class="rb_right_div">
[@cms_topic_list count='2' recommend='1' descLen='35' append='...']
[#list tag_list as t]
<dl class="list[#if t_index=0] line[#else] mt5[/#if] box">
<dt><a href="${base}/topic/${t.id}.jspx" target="_blank">${t.name}</a></dt>
<dd class="pic"><a href="${base}/topic/${t.id}.jspx"><img src="${t.titleImg!site.defImg}"/></a></dd>
<dd class="text">[@text_cut s=t.description len=descLen append=append/]</dd>
</dl>
[/#list]
[/@cms_topic_list]
</div>
<div class="rb_right_low"></div>
</div>

recommend='1'显示为推荐状态的专题
descLen='35'专题的描述长度
[@cms_topic_list……[#list tag_list as t]专题列表
<a href="${base}/topic/${t.id}.jspx" target="_blank">调用专题的jspx
${t.name}专题的名字
${t.titleImg!site.defImg}专题的标题图
t.description专题的描述
9.2专题导航页
要建立一个topic文件夹,
 
 
专题导航页.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>特别专题 - ${site.name} </title>
<link href="${resSys}/front.css" rel="stylesheet" type="text/css"/>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>
<link href="/${res}/css/layout.css" rel="stylesheet" type="text/css"/>
<script src="/${res}/js/common.js" type="text/javascript"></script>
</head>

<body>
<!--top_begin-->
[#include "../include/页头顶栏.html"/]
<!--top_end-->

<!--header_begin-->
[#include "../include/页头导航栏.html"/]
<!--header_end-->

<!--body_begin-->
<div id="main">

<div class="page4 position1"> 您现在正在浏览: <a href="${base}/">首页</a> &raquo; 特别专题 
</div>

<!--cjbd_begin-->
<div class="page4 box mt10">
  <div class="w720 fl">
  
    <div class="left_top1 box">
      <h2 class="w700 fl">专题列表</h2>
    </div>
    <div class="box"></div>
    <div class="left_div1 box">

   [@cms_topic_page count='10' descLen='50' append='...']
<div class="w98 box">
    [#list tag_pagination.list as t]
<dl class="list line zt">
<dt><a href="${base}/topic/${t.id}.jspx"  
target="_blank">${t.name}</a></dt>
<dd class="pic"><a href="${base}/topic/${t.id}.jspx"><img  
src="${t.titleImg!site.defImg}"/></a></dd>
<dd class="text">[@text_cut s=t.description len=descLen  
append=append/]</dd>
</dl>
[/#list]
</div>
        <div class="pagebar">[@cms_pagination sysPage='1'/]</div>
[/@cms_topic_page]

    </div>
    <div class="left_low"></div>
  </div>  
  
  <div class="w250 fr">
  <div class="rb_right_top"><h2><a href="#" target="_blank">热门资讯排行榜</a></h2></div>
<div class="rb_right_div">
<ul class="order">
  [@cms_content_list count='10' titLen='17' orderBy='9' channelOption='1']
  [#list tag_list as a]
  <li><a href="${a.url}" title="${a.title}" target="_blank">[@text_cut  
s=a.title len=titLen append=append/]</a></li>
  [/#list]
  [/@cms_content_list]
</ul>
</div>
<div class="rb_right_low"></div>
</div>

</div>
<!--cjbd_end-->
</div>
<!--body_end-->

<!--hotlink_begin-->
[#include "../include/页脚友情链接栏.html"/]
<!--hotlink_end-->

<!--footer_begin-->
[#include "../include/页脚信息栏.html"/]
<!--footer_end-->
</body>
</html>

[@cms_topic_page count='10' descLen='50' append='...']专题列表
[#list tag_pagination.list as t]专题列表
<a href="${base}/topic/${t.id}.jspx"> 调用专题的jspx
${t.name}专题的名字
<img src="${t.titleImg!site.defImg}"/>专题的标题图
t.description专题的描述
[/@cms_topic_page]
[@cms_pagination sysPage='1'/]翻页
9.3专题默认页.html
点击首页的专题标题图或者专题名字进入专题默认页,专题默认页会显示这个属于这个专题下的图片切换,图文滚动,专题资讯,以及把专题的内容图显示在最上面
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${topic.name} - ${site.name}专题 </title>
<meta http-equiv="keywords" content="${topic.keywords!}"/>
<meta http-equiv="description" content="${topic.description!}"/>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>
<script src="/${res}/js/common.js" type="text/javascript"></script>
<link href="/${res}/css/layout.css" rel="stylesheet" type="text/css" >
<style type="text/css">
body{margin:0;font:14px Verdana, Arial, Helvetica, sans-serif,"宋体"; color:#42515A; background:#dbf1fc; word-break:break-all;}
.b01{border: 1px #D0EAFF solid;}
h2{color:#0066CC; font-weight:700;}
ul.list li.toptext a h3{text-align:center; font-weight:bold; font-size:16px; color:#f54100;}
.rgt{font-size:12px;}
dl.zt{width:260px; margin:5px; padding-bottom:10px;}
dl.zt dt,dl.zt dd.text{width:160px;}
ul.zxk{width:650px; margin:5px auto; padding:0;}
ul.zxk li{width:320px; float:left; height:25px; line-height:25px;}
</style>
</head>

<body>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" class="mt5">
      <tr>
        <td colspan="2" align="center"><img src="${topic.contentImg!'/${res}/img/topic/no_banner.jpg'}" width="960"/></td>
      </tr>
    </table>
<table width="960" border="0" align="center" cellpadding="8" cellspacing="1" bgcolor="#D0EAFF" style="line-height:1.6em; font-size:14px; margin-top:5px;" >
      <tr>
        <td bgcolor="#F1F9FF"><strong>专题概要:</strong> ${topic.description!}</td>
        </tr>
    </table>

<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" class="mt5">
      <tr>
        <td width="650" valign="top">
<table width="650" border="0" cellpadding="0" cellspacing="0" class="b01">
          <tr>
            <td width="40" background="/${res}/img/topic/lmbj.gif"><img src="/${res}/img/topic/lm_2.gif"/></td>
            <td width="610" align="left" background="/${res}/img/topic/lmbj.gif"><h2>专题资讯头条</h2></td>
            </tr>
          <tr>
            <td colspan="2" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="310" height="210" align="center">
[@cms_content_list topicId=topic.id typeId='3' styleList='3-1' titLen='20' count='5' flashWidth='280' flashHeight='200' textHeight='20' channelOption='1' tpl='2'/]
</td>
                <td width="5">&nbsp;</td>
                <td valign="top">
[@cms_content_list topicId=topic.id count='6' orderBy='4' titLen='15' descLen='66' append='...' channelOption='1']
  <ul class="list">
[#list tag_list as a]
[#if a_index = 0]
  <li class="toptext">
  <a href="${a.url}" title="${a.title}" target="_blank"><h3>[@text_cut s=a.title len=titLen append=append/]</h3></a>
  <p>[@text_cut s=a.desc len=descLen append=append/]</p>
  </li>
[#else]  
  <li><img src="${base}/r/cms/head-mark2.gif" align="middle"  border="0"/> <a href="${a.url}" title="${a.title}" target="_blank">[@text_cut s=a.title len=titLen append=append/]</a></li>
[/#if]
[/#list]
</ul>
[/@cms_content_list]  
</td>
              </tr>
            </table>
</td>
            </tr>
        </table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="b01 mt5">
          <tr>
            <td width="40" background="/${res}/img/topic/lmbj.gif"><img src="/${res}/img/topic/lm_2.gif"/></td>
            <td width="610" background="/${res}/img/topic/lmbj.gif"><h2>专题精彩图文</h2></td>
          </tr>
          <tr>
            <td height="180" colspan="2" bgcolor="#FFFFFF">
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="170">
[@cms_content_list topicId=topic.id typeId='2' count='8' styleList='2-2' titLen='16' rollDisplayHeight='170' rollCols='4' rollRows='1' rollSpan='1' isSleep='1' channelOption='1' tpl='2'/]
</td>
                  </tr>
              </table>
              </td>
          </tr>
        </table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="b01 mt5">
          <tr>
            <td width="40" background="/${res}/img/topic/lmbj.gif"><img src="/${res}/img/topic/lm_2.gif"/></td>
            <td width="640" background="/${res}/img/topic/lmbj.gif"><h2>专题资讯库</h2></td>
          </tr>
          <tr>
            <td height="400" colspan="2" valign="top" bgcolor="#FFFFFF">
      [@cms_content_page topicId=topic.id count='40' titLen='15' append='...' orderBy='2' dateFormat='MM-dd' channelOption='1']
<ul class="zxk box">
        [#list tag_pagination.list as a]
<li> ? <a href="${a.url}" title="${a.title}" target="_blank">[@text_cut s=a.title len=titLen append=append/]</a> [${a.date?string(dateFormat)}]</li>
[/#list]
</ul>
      [/@cms_content_page]
</td>
          </tr>   
          <tr>
            <td height="30" colspan="2" align="center" bgcolor="#FFFFFF">

</td>
  </tr>
        </table></td>
        <td width="10">&nbsp;</td>
        <td width="300" valign="top" class="rgt">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="b01">
          <tr>
            <td width="40" background="/${res}/img/topic/lmbj.gif"><img src="/${res}/img/topic/lm_2.gif"/></td>
            <td width="260" background="/${res}/img/topic/lmbj.gif"><h2>专题资讯关注排行</h2></td>
          </tr>
          <tr>
            <td colspan="2" bgcolor="#FFFFFF">
<ul class="order">
[@cms_content_list topicId=topic.id count='10' titLen='17' orderBy='8' channelOption='1']
   [#list tag_list as a]
   <li><a href="${a.url}" title="${a.title}" target="_blank">[@text_cut s=a.title len=titLen append=append/]</a></li>
   [/#list]
   [/@cms_content_list]
</ul>
</td>
          </tr>
        </table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="b01 mt5">
          <tr>
            <td width="40" background="/${res}/img/topic/lmbj.gif"><img src="/${res}/img/topic/lm_2.gif"/></td>
            <td width="260" background="/${res}/img/topic/lmbj.gif"><h2>专题热评资讯</h2></td>
          </tr>
          <tr>
            <td colspan="2" bgcolor="#FFFFFF">
[@cms_comment_list count='2' recommend='1' textLen='50' append='...']
<dl class="rmpl">
[#list tag_list as c]
<dt><span>${(c.commentUser.username)!"匿名网友"}</span> 对 <a href="${c.content.url}" target="_blank">${c.content.title}</a> 评论道:</dt>
<dd>[@text_cut s=c.textHtml len=textLen append=append/]</dd>
<dd class="line"></dd>
[/#list]
</dl>
[/@cms_comment_list]
</td>
          </tr>
        </table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="b01 mt5">
          <tr>
            <td width="40" background="/${res}/img/topic/lmbj.gif"><img src="/${res}/img/topic/lm_2.gif"/></td>
            <td width="260" align="left" background="/${res}/img/topic/lmbj.gif"><h2>其它热门专题</h2></td>
          </tr>
          <tr>
            <td colspan="2" bgcolor="#FFFFFF">
   [@cms_topic_list count='4' descLen='36' append='...']
   [#list tag_list as t]
<dl class="list line zt box">
<dt><a href="${base}/topic/${t.id}.jspx" target="_blank">${t.name}</a></dt>
<dd class="pic"><a href="${base}/topic/${t.id}.jspx"><img src="${t.titleImg!site.defImg}"/></a></dd>
<dd class="text">[@text_cut s=t.description len=descLen append=append/]</dd>
</dl>
   [/#list]
       [/@cms_topic_list]
</td>
          </tr>
        </table>
</td>
      </tr>
    </table>
</body>
</html>
<img src="${topic.contentImg!'/${res}/img/topic/no_banner.jpg'}" width="960"/>专题内容图
${topic.description!} 专题概要

9.3.1专题新闻列表
<td valign="top">
[@cms_content_list topicId=topic.id count='6' orderBy='4' titLen='15' descLen='66' append='...' channelOption='1']
  <ul class="list">
[#list tag_list as a]
[#if a_index = 0]
  <li class="toptext">
  <a href="${a.url}" title="${a.title}" target="_blank"><h3>[@text_cut s=a.title len=titLen append=append/]</h3></a>
  <p>[@text_cut s=a.desc len=descLen append=append/]</p>
  </li>
[#else]  
  <li><img src="${base}/r/cms/head-mark2.gif" align="middle"  border="0"/> <a href="${a.url}" title="${a.title}" target="_blank">[@text_cut s=a.title len=titLen append=append/]</a></li>
[/#if]
[/#list]
</ul>
[/@cms_content_list]  
</td>
topicId=topic.id获取专题栏目的id
9.3.2专题图文切换
[@cms_content_list topicId=topic.id typeId='3' styleList='3-1' titLen='20' count='5' flashWidth='280' flashHeight='200' textHeight='20' channelOption='1' tpl='2'/]
topicId=topic.id获取专题的id 就是内容类型为焦点的并且同时属于某个专题,会在专题图文切换中显示出来
9.3.3专题排行
<ul class="order">
[@cms_content_list topicId=topic.id count='10' titLen='17' orderBy='8' channelOption='1']
   [#list tag_list as a]
   <li><a href="${a.url}" title="${a.title}" target="_blank">[@text_cut s=a.title len=titLen append=append/]</a></li>
   [/#list]
   [/@cms_content_list]
</ul>
9.3.4专题精彩图文
[@cms_content_list topicId=topic.id typeId='2' count='8' styleList='2-2' titLen='16' rollDisplayHeight='170' rollCols='4' rollRows='1' rollSpan='1' isSleep='1' channelOption='1' tpl='2'/]
显示属于所有专题的图文,这里显示的每一篇图文必须属于所有的专题
topicId=topic.id获取专题的id
styleList='2-2'图片向上滚动
rollCols: 滚动列数
rollRows: 滚动行数
9.3.5专题概要
<strong>专题概要:</strong> ${topic.description!}
9.3.6专题内容图
<img src="${topic.contentImg!'/${res}/img/topic/no_banner.jpg'}" width="960"/>


9.3.7专题热评资讯
显示为推荐的评论
[@cms_comment_list count='2' recommend='1' textLen='50' append='...']
<dl class="rmpl">
[#list tag_list as c]
<dt><span>${(c.commentUser.username)!"匿名网友"}</span> 对 <a href="${c.content.url}" target="_blank">${c.content.title}</a> 评论道:</dt>
<dd>[@text_cut s=c.textHtml len=textLen append=append/]</dd>
<dd class="line"></dd>
[/#list]
</dl>
[/@cms_comment_list]
${(c.commentUser.username)!"匿名网友"}谁发表的评论,默认为匿名网友
${c.content.url}被评论的新闻地址
${c.content.title}被评论的新闻标题
recommend='1'推荐的评论
9.3.8其他热门专题
[@cms_topic_list count='4' descLen='36' append='...']
   [#list tag_list as t]
<dl class="list line zt box">
<dt><a href="${base}/topic/${t.id}.jspx" target="_blank">${t.name}</a></dt>
<dd class="pic"><a href="${base}/topic/${t.id}.jspx"><img src="${t.titleImg!site.defImg}"/></a></dd>
<dd class="text">[@text_cut s=t.description len=descLen append=append/]</dd>
</dl>
   [/#list]
       [/@cms_topic_list]
显示所有专题
常用参数解释
1 留言栏目
新建一个留言栏目,在外部链接中写入以下地址:
http://cms.hznu.edu.cn/bluecms/guestbook.jspx?siteId=34860
注意修改成对应的cms的地址和站点id
2子站点
点击一个栏目进入子站点时,在这个栏目的外部链接出写上子站点的地址,就可以了。
3显示站点 栏目 新闻的名字
<title>${title} - ${site.name} - BLUECMS</title>
${site.name} 站点的名字;
${title}显示栏目或者内容的标题 
{channel.title!channel.name}显示栏目的标题
4 include
[#include "../include/页头顶栏.html"/] 用把页头页尾分开写的方式来做模板,便于更改和管理;
5类型图 
<img src="${a.typeImg!site.defImg}" alt="${a.title}" />  是类型图,当内容类型为图文和焦点的时候可以上传类型图。
<img src="${d.typeImg!site.defImg}" alt="${d.title}"/>栏目类型为作品的类型图(不是很明白)
6标题图
<img src="${a.titleImg!site.defImg}" alt="${a.title}" /> 是标题图,用标题图的时候必须勾选相关栏目设置中标题图的选项,然后编辑内容类型为普通的内容时,就可以上传标题图;下载的标题图同样适用。
<img src="${t.titleImg!site.defImg}" alt="" />专题的标题图
7内容图
<img src="${d.contentImg!site.defImg}" alt="${d.title}" /> 在栏目管理中,把栏目文档内容图勾选上之后,在内容管理中就可以上传内容图
<img src="${content.contentImg!site.defImg}" class="img_border"/>是栏目类型为下载的内容页的内容类型图
<img src="${topic.contentImg!'/${res}/img/topic/no_banner.jpg'}" />专题内容图
8获取新闻所在栏目的名字和地址
<a href="${a.ctgUrl}" target="_blank">[${a.ctgName}]</a>
9获取新闻的地址和标题以及新闻的摘要
<a href="${a.url}" title="${a.title}" target="_blank">[@text_cut s=a.title len=titLen append=append/]</a>
10取第一条新闻和换行
[#if a_index = 0]
如果是第一条新闻
[#if (a_index+1)%2==0&&a_index!=tag_list?size]
每两个一换行
11翻页效果标签
 [@cms_pagination sysPage='1'/]
12描述
${topic.description!}专题的描述
13已审 待审 终审
栏目权限为1的站点管理员A,添加完一篇内容,内容状态为审核中,点击按钮已审,会查询出这篇文章;当栏目权限为2的管理员B登陆后,点击已审择查询不出任何文章,需要点击待审,则会看到A发表的文章。

以下是文章列表标签
14文章 栏目ID
id:文章ID,允许多个文章的ID,用“,”分开
channelId:栏目ID,允许多个栏目ID,用“,”分开。和channelpath之间二选一,ID优先级更高。
15 tag ID
tagId:TAG ID 允许多个TAG ID,用“,”分开。和tagNames之间二选一,ID优先级更高。
16 siteId ID
siteId:站点ID,可选,允许多个站点ID,用“,”分开。
17 typeid新闻的四种类型
typeId='4'头条;  typeId='2'图文; typeId='3'焦点;  typeId='1'普通
typeId:类型ID,可选,允许多个类型ID,用“,”分开。
18 topicId
topicId='1'滚动中的图片要属于一个专题
topicId='2'滚动中的图片要属于所有专题
topicId=topic.id专题的id
19 tagName
tagName: TAG NAME 允许多个TAG NAME ,用“,”分开。
20 channelPath
channelPath:栏目路径,允许多个栏目路径,用“,”分开。
21 channelOption 
channelOption='1'显示子栏目;channelOption='0'显示本栏目;channelOption='2'显示站内转发;
22 Recommend
Recommend:是否推荐。 0 :所有都推荐 1 :推荐 2 :不推荐,默认所有
23 title
title:标题,可以为null
24 image
image: 标题图片, 0 :所有 1 :有 2 :没有 。默认所有
25 excluded
excludeId:不包含的文章ID,用于按tag查询相关文章 
26 orderby
输入参数,排序方式。
* 0:ID降序
* 1:ID升序
* 2:发布时间降序
* 3:发布时间升序
* 4:固顶级别降序,发布时间降序 :先按照固顶的级别排序,后按照发布时间排序
置顶级别排序:
从1到6级别一次升高,置顶级别1为最低,指定级别6为最高
* 5:固顶级别降序,发布时间升序
*
* 6:日访问降序(推荐)
* 7:周访问降序
* 8:月访问降序
* 9:总访问降序=0按照id降序
*
* 10:日评论降序(推荐)
* 11:周评论降序
* 12:月评论降序
* 13:总评论降序
*
* 14:日下载降序(推荐)
* 15:周下载降序
* 16:月下载降序
* 17:总下载降序
*
* 18:日顶降序(推荐)
* 19:周顶降序
* 20:月顶降序
* 21:总顶降序
以下是文字列表标签
27 lineHeight
lineHeight:行高;
28 headMarkImg
headMarkImg: 列表头图片,图片地址
29 headMark
headMark: 列表头编号;1:小黑点;2:小红点;3:单箭头;4:双箭头
30 bottomLine
bottomLine: 下划线;0:无;1:有  不能为空。
31 dateFormat
dateFormat: 日期格式;【java日期格式,如:yyyy-MM-dd】
dateFormat='MM-dd'显示月日
dateFormat='yyyy-MM-dd'
32 datePosition
datePosition: 日期位置;【1:后面左边;2:后面右边;3:前面】不能为空
33 ctgForm
ctgForm: 类别;【0:无;1:栏目;2:站点】不能为空
34 showTitleStyle
showTitleStyle:显示标题样式;【0:不显示;1:显示】不能为空
35 useShortTitle
useShortTitle: 是否使用简短标题;【0:不使用;1:使用】不能为空
36 titLen
titLen: 标题长度;【英文字母按半个计算】为空则不截断
37 target
target: 是否新窗口打开;【0:原窗口;1:新窗口】不能为空
38 styleList
styleList:文章列表显示样式
styleList='1-1'普通新闻列表
styleList='2-4'图片向左滚动
styleList='2-2'图片向上滚动
styleList='2-1'内容列表向上滚动
styleList='3-1'    图片切换flash的样式,默认有三种样式,还包括'3-2','3-3'

今天不好好工作,明天努力找工作
级别: 童生
UID: 29394
积分:43 加为好友
威望: 0 精华: 0
主题:1 回复:29
注册时间:2012-02-13
在线时长:0
2#   发表于:2012-02-17 14:56:43  IP:222.70.*.*
098f6bcd4621d373cade4e832627b4f6
级别: 秀才
UID: 26811
积分:87 加为好友
威望: 0 精华: 0
主题:8 回复:54
注册时间:2011-12-14
在线时长:0
3#   发表于:2012-02-17 15:17:21  IP:222.171.*.*
能下载吗
今天不好好工作,明天努力找工作
级别: 白丁
UID: 119948
积分:4 加为好友
威望: 0 精华: 0
主题:0 回复:6
注册时间:2018-01-16
在线时长:0
4#   发表于:2018-01-17 20:55:09  IP:61.91.*.*
1 共1页