[蚂蚁]SSSS1模板
ssss1/****************************************
模板名称:ssss1
安装方法:后台参照其他模板安装
功能:限制首页版块介绍字节长度 见说明
演示:安装以后自己演示
目的:此模板主要是配合横排显示版块的需要
拷贝全代码:http://qjiao.w3.elkj.net/2.js [img]http://www.zhumeng.org/attachments/fileType/rar.gif[/img]此主题相关文件 [url=http://www.zhumeng.org/attachments/2007/04/18/235244.rar]235244.rar[/url]
*****************************************//
function displayboard(boardid,boardassort,boardname,boardintro,lastwriter,lastwritetime,topicnum,announcenum,forumpass,lastannounceid,lasttopicname,masterlist,boardlimit,assortname,todayannounce,goodnum,boardimgurl,boardimgwidth,boardimgheight,onlineuser,lowerboard,assortmaster)
{
var temp = 0;
if(currentassosrt!=boardassort)
{
currentassosrt = boardassort
if(flag == 1)
{ document.write("</table>");
if(gbl_tablebottomstring != "")document.write("<table width=" + def_bbs_screenwidth + " border=0 cellspacing=0 cellpadding=0 align=center><tr><td>" + gbl_tablebottomstring + "</td></tr></table>");
document.write("<br>");
}
if(gbl_tableheadstring != "")document.write("<table width=" + def_bbs_screenwidth + " border=0 cellspacing=0 cellpadding=0 align=center><tr><td>" + gbl_tableheadstring + "</td></tr></table>");
document.write("<table width=" + def_bbs_screenwidth + " border=0 cellspacing=1 cellpadding=3 align=center bgcolor=#cccccc class=tbone><tr bgcolor=#666699><td colspan=5 class=tbhead>");
document.write("<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td><img src=images/null.gif width=2 height=3><br><a href=boards.asp?assort=" + boardassort + "><b><font color=white class=headfont>→" + assortname + "←</font></b></a></td><td align=right><img src=images/null.gif width=2 height=3><br><font color=white class=headfont>" + def_pointsname7 + ":");
displayboardmastlist(assortmaster,5,1);
document.write("</font></td></tr></table></td></tr>");
document.write("<tr bgcolor=#f7f7f7 align=center class=tbbg9><td width=25 class=tbbg1></td><td width=48% align=left>论坛</td><td width=8%>主题</td><td width=8%>帖数</td><td width=17%>最后发表</td><td width=15%>版主</td></tr>");
flag = 1;
}
document.write("<tr bgcolor=#f7f7f7 align=center class=tbbg9><td width=25 bgcolor=eeeeee class=tbbg1><img src=images/" + gbl_defineimage + "boardtopic/");
if(todayannounce > 0)document.write("_");
if(forumpass!="")
{
document.write("lock.gif title=保密论坛");
}
else
{
if(boardlimit&(1<<(7-1)))
{
document.write("lock3.gif title=" + def_pointsname8 + "专区");
}
else
{
if((boardlimit&(1<<(4-1))) && (boardlimit&(1<<(3-1))) && (boardlimit&(1<<(6-1))))
{
document.write("readonly.gif title=只读论坛");
}
else
{
if(boardlimit&(1<<(2-1)))
{
document.write("lock2.gif title=正式会员论坛");
}
else
{
if(boardlimit&(1<<(1-1)))
{
document.write("lock1.gif title=注册认证论坛");
}
else
{
if(boardlimit&(1<<(9-1)))
{
document.write("open.gif title=开放论坛");
}
else
{
document.write("1.gif title=常规论坛");
}
}
}
}
}
}
document.write("></td>");
document.write("<td align=left>");
document.write("<a href=b/b.asp?b=" + boardid + "><b>" + boardname + ".</b></a><font face='webdings'>y</font><br>");
if(strlength(boardintro)>60)boardintro = lefttrue(boardintro,60) + " ..."
/***********************************************************
上面语句限制版块内容介绍显示的长度,默认为60字节,请自行更改。若完全显示,则删除。点击显示完整介绍,请安装wensui的版规插件
***********************************************************/
document.write(boardintro);
document.write("</td>");
document.write("<td><img src=images/null.gif height=2 width=2><br>" + topicnum + "</td>");
document.write("<td><img src=images/null.gif height=2 width=2><br>" + announcenum + "</td>");
document.write("<td align=left valign=top><img src=images/null.gif height=2 width=2><br>");
if(lasttopicname == "" || lasttopicname==null)
{
document.write("主题:无");
}
else
{
if(strlength(lasttopicname)>22)lasttopicname = lefttrue(lasttopicname,22-3) + "."
lasttopicname = htmlencode(lasttopicname);
if(forumpass != "" || (boardlimit&(1<<(15-1))) || (boardlimit&(1<<(2-1))) || (boardlimit&(1<<(7-1))))
{
document.write("私密论坛");
temp = 1;
}
else
{
if(parseint(lastannounceid)==0){document.write("主题:" + htmlencode(lasttopicname));}
else{document.write("主题:<a href=a/a.asp?b=" + boardid + "&id=" + lastannounceid + "&aupflag=1&anum=1>" + htmlencode(lasttopicname) + "</a>");}
}
}
document.write("<br><img src=images/null.gif height=2 width=2><br>");
if(lastwriter == "")
{
document.write("作者:");
lastwriter="无";
document.write(lastwriter);
}
else
{
document.write("by:");
if(lastwriter!="游客")
{
if(temp == 1)
{
document.write("隐藏");
}
else
{
document.write("<a href=\"user/lookuserinfo.asp?name=" + htmlencode(lastwriter) + "\">" + htmlencode(lastwriter) + "</a>");
}
}
else
{
document.write(htmlencode(lastwriter))
}
document.write("</td>");
document.write("<td>");
document.write("<img src=images/null.gif height=2><br>");
displayboardmastlist(masterlist,5,0);
document.write("</td></tr>");
}
}
页:
[1]