返回列表 发帖
/****************************************************
模板名称:ssss2
安装方法:参照其他模板后台安装
功能:多版横排版块
解决问题:主要解决以前的横排版块为奇偶数问题,现在是
          自动适应奇偶数版
修改:ant
*****************************************************/
图片演示:http://qjiao.w3.elkj.net/ssss2.gif
此主题相关图片

论坛演示:http://748202.com/bbs

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 n;
     if(currentassosrt!=boardassort)
     {
           currentassosrt = boardassort
           if(flag == 1)
           {
                 if(num>0){for(n=num;n<5;n++)document.write("<td width=20%></td>");}
                 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=0 cellpadding=5 align=center bgcolor=#cccccc class=tbone><tr bgcolor=#666699><td class=tbhead><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 class=tbhead><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>");
           document.write("<table width=" + def_bbs_screenwidth + " border=0 cellspacing=1 cellpadding=5 align=center bgcolor=#cccccc class=tbone>");
           flag = 1;
           num=0;
     }
     if((num%5)==0)document.write("<tr bgcolor=#f7f7f7 class=tbbg9>");
     document.write("<td width=20% colspan=5><font face='wingdings'>f</font> <a href=b/b.asp?b=" + boardid + ">" + boardname + "</a><br><img src=images/null.gif height=1 width=2><br>主题:" + topicnum + " 帖数:" + announcenum + "");
           document.write("<br><img src=images/null.gif height=2 width=2><br>");
     if(lasttopicname == "" || lasttopicname==null)
     {
           document.write("回复主题:无");
     }
     else
     {
           if(strlength(lasttopicname)>20)lasttopicname = lefttrue(lasttopicname,20-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>");}
           }
     }
           if(lastwritetime.length==14)
           {
                 lastwritetime = lastwritetime.substr(0,4) + "-" + lastwritetime.substr(4,2) + "-" + lastwritetime.substr(6,2) + " " + lastwritetime.substr(8,2) + ":" + lastwritetime.substr(10,2) + ":" + lastwritetime.substr(12,2)
           }
           else
           {
                 lastwritetime = "无"
           }
           document.write("<br><img src=images/null.gif height=2 width=2><br>发表时间:" + lastwritetime);
           document.write("</td>");
     num+=1;
     if(num>4)num=0;

}
欢迎光临:逐梦论坛

返回列表

Powered by Discuz! 7.2   论坛QQ群:逐梦论坛群

© 2001-2021 Comsenz Inc. 鲁公网安备 37120302000001号