û½̨󣬵̳ģѡһģ壬̳޷ʾ


ģ:Ĭģ

ģã
ѡʾ  ȫѡ

ҳб:
ʹJS﷨
function displayboard(BoardID,BoardAssort,BoardName,AssortName)
{
     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>");
                 document.write("<br>");
           }
           else
           {
                 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=5 align=center bgcolor=#cccccc class=TBone><tr bgcolor=#666699><td colspan=5 class=TBHead><img src=images/blank.gif width=2 height=3><br><a href=Boards.asp?Assort=" + BoardAssort + "><b><font color=white class=HeadFont>" + AssortName + "</font></b></a></td></tr>");
           Flag = 1;
           num=0;
     }
     if((num%5)==0)document.write("<tr bgcolor=#f7f7f7 class=TBBG9>");
     document.write("<td width=20%><a href=Board/Board.asp?BoardID=" + BoardID + ">" + BoardName + "</a></td>");
     num+=1;
     if(num>4)num=0;
}


ҳбϢȫʾ:
ʹJS﷨
function displayboard(BoardID,BoardAssort,BoardName,BoardIntro,LastWriter,LastWriteTime,TopicNum,AnnounceNum,ForumPass,LastAnnounceID,LastTopicName,MasterList,BoardLimit,AssortName,TodayAnnounce,GoodNum,BoardImgUrl,BoardImgWidth,BoardImgHeight,onlineUser,LowerBoard)
{
     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=5 align=center bgcolor=#cccccc class=TBone><tr bgcolor=#666699><td colspan=4 class=TBHead><img src=images/blank.gif width=2 height=2><br><a href=Boards.asp?Assort=" + BoardAssort + "><b><font color=white class=HeadFont>" + AssortName + "</font></b></a></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=ר");
           }
           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><table width=100% border=0 cellspacing=0 cellpadding=0>");
     if(BoardImgUrl != "" && BoardImgUrl != null)document.write("<tr><td rowspan=4 width=" + BoardImgWidth + " valign=top><img src=images/null.gif width=2 height=3><br><a href=Board/Board.asp?BoardID=" + BoardID + "><img src=\"" + BoardImgUrl + "\" width=" + BoardImgWidth + " height=" + BoardImgHeight + " border=0></a></td><td width=4 rowspan=4><img src=images/null.gif width=2 height=2></td></tr>");
     document.write("<tr height=20><td><a href=Board/Board.asp?BoardID=" + BoardID + ">" + BoardName + "</a>");
     document.write("</td><td align=right rowspan=2 valign=top><img src=images/null.gif width=2 height=2><br><a href=announce/announce2.asp?BoardID=" + BoardID + "><img src=images/" + GBL_DefineImage + "BoardTopic/post.gif height=13 width=12 border=0 title=ڴ̳></a><br><img src=images/null.gif width=2 height=5><br><a href=Board/EBoard.asp?BoardID=" + BoardID + "><img src=images/" + GBL_DefineImage + "BoardTopic/elist.gif height=13 width=12 border=0 title=鿴(" + GoodNum + ")></a></td></tr>");
     document.write("<tr height=15><td>");
     document.write(BoardIntro);
     document.write("</td>");
     
     document.write("<tr height=15><td colspan=2>");
     document.write("<img src=images/null.gif height=2 width=192><br><img src=images/BoardTopic/master.gif width=15 height=15 title= align=absmiddle>");
     DisplayBoardMastList(MasterList,5);
     document.write("</tr></table></td>");
     document.write("<td align=Left width=224 valign=top><img src=images/null.gif height=2 width=2><br>");
     if(LastTopicName == "" || LastTopicName==null)
     {
           document.write("⣺");
     }
     else
     {
           if(strlength(LastTopicName)>31)LastTopicName = LeftTrue(LastTopicName,31-3) + "..."
           LastTopicName = htmlencode(LastTopicName);
           if(ForumPass != "" || (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=announce/announce.asp?BoardID=" + BoardID + "&ID=" + LastAnnounceID + "&Aupflag=1&Anum=1>" + htmlencode(LastTopicName) + "</a>");}
           }
     }
     document.write("<br><img src=images/null.gif height=4 width=2><br>");
     if(LastWriter == "")
     {
           document.write("ظ");
           LastWriter="";
     }
     else
     {
           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)
           document.write("ظ" );
           if(LastWriter!="ο")
           {
                 if(Temp != 1)document.write("<a href=\"User/LookUserInfo.asp?Name=" + htmlencode(LastWriter) + "\">" + htmlencode(LastWriter) + "</a> ");
           }
           else
           {
                 document.write(htmlencode(LastWriter) + " ")
           }
           document.write(LastWriteTime);
           document.write("<br><img src=images/null.gif height=2 width=9> <img src=images/Forum_today.gif alt=շ" + TodayAnnounce + "ƪ align=absmiddle> <font color=red>" + TodayAnnounce + "</font><img src=images/null.gif height=4 width=2> <img src=images/forum_topic.gif alt=" + TopicNum + "ƪ align=absmiddle> " + TopicNum + "<img src=images/null.gif height=4 width=2> <img src=images/Forum_post.gif alt=ӹ" + AnnounceNum + "ƪ align=absmiddle>" + AnnounceNum + "<br></td></tr>");
     }
}



Ӱб:
ʹJS﷨
function displayboard(BoardID,BoardAssort,BoardName,AssortName)
{
     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=1 cellpadding=5 align=center bgcolor=#cccccc class=TBone><tr bgcolor=#666699><td colspan=5 class=TBHead><img src=images/blank.gif width=2 height=3><br><a href=Board.asp?Assort=" + BoardAssort + "><b><font color=white class=HeadFont>" + AssortName + "</font></b></a></td></tr>");
           Flag = 1;
           num=0;
     }
     if((num%5)==0)document.write("<tr bgcolor=#f7f7f7 class=TBBG9>");
     document.write("<td width=20%><a href=Board.asp?BoardID=" + BoardID + ">" + BoardName + "</a></td>");
     num+=1;
     if(num>4)num=0;
}
function strlength(str)
{
     var mx=String.fromCharCode(255);
     if(str.length==0)
     {
           return(0);
     }
     else
     {
           var TStr="";
           var l,t,c;
           var i;
           l=str.length;
           t=l;
           for(i=0;i<l;i++)
           {
                 if(str.charAt(i)>mx)
                 {
                       t+=1;
                 }
           }
           return(t);
     }
}



ӰϸϢʾ:
ʹJS﷨
function displayboard(BoardID,BoardAssort,BoardName,BoardIntro,LastWriter,LastWriteTime,TopicNum,AnnounceNum,ForumPass,LastAnnounceID,LastTopicName,MasterList,BoardLimit,AssortName,TodayAnnounce,GoodNum,BoardImgUrl,BoardImgWidth,BoardImgHeight,onlineUser,LowerBoard)
{
     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=5 align=center bgcolor=#cccccc class=TBone><tr bgcolor=#666699><td colspan=4 class=TBHead><img src=../images/blank.gif width=2 height=3><br><a href=Board.asp?BoardID=" + GBL_Board_ID + "><font color=white class=HeadFont>" + AssortName + "</font></a></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=ר");
           }
           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><table width=100% border=0 cellspacing=0 cellpadding=0>");
     if(BoardImgUrl != "" && BoardImgUrl != null)document.write("<tr><td rowspan=4 width=" + BoardImgWidth + "><a href=Board.asp?BoardID=" + BoardID + "><img src=\"" + BoardImgUrl + "\" width=" + BoardImgWidth + " height=" + BoardImgHeight + " border=0></a></td><td width=4 rowspan=4><img src=../images/null.gif width=2 height=2></td></tr>");
     document.write("<tr height=20><td><a href=Board.asp?BoardID=" + BoardID + ">" + BoardName + "</a>");
     document.write("</td><td align=right rowspan=2 valign=top><img src=../images/null.gif width=2 height=2><br><a href=../announce/announce2.asp?BoardID=" + BoardID + "><img src=../images/" + GBL_DefineImage + "BoardTopic/post.gif height=13 width=12 border=0 title=ڴ̳></a><br><img src=../images/null.gif width=2 height=5><br><a href=../Board/EBoard.asp?BoardID=" + BoardID + "><img src=../images/" + GBL_DefineImage + "BoardTopic/elist.gif height=13 width=12 border=0 title=鿴(" + GoodNum + ")></a></td></tr>");
     document.write("<tr height=15><td>");
     document.write(BoardIntro);
     document.write("</td>");
     document.write("<tr height=15><td colspan=2>");
     document.write("<img src=images/null.gif height=2 width=192><br>");
     DisplayBoardMastList(MasterList,5);
     document.write("</tr></table></td>");
     document.write("<td align=Left width=224 valign=top><img src=images/null.gif height=2 width=2><br>");
     if(LastTopicName == "" || LastTopicName==null)
     {
           document.write("⣺");
     }
     else
     {
           if(strlength(LastTopicName)>31)LastTopicName = LeftTrue(LastTopicName,31-3) + "..."
           LastTopicName = htmlencode(LastTopicName);
           if(ForumPass != "" || (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=../announce/announce.asp?BoardID=" + BoardID + "&ID=" + LastAnnounceID + "&Aupflag=1&Anum=1>" + htmlencode(LastTopicName) + "</a>");}
           }
     }
     document.write("<br><img src=images/null.gif height=4 width=2><br>");
     if(LastWriter == "")
     {
           document.write("ظ");
           LastWriter="";
     }
     else
     {
           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)
           document.write("ظ" );
           if(LastWriter!="ο")
           {
                 if(Temp != 1)document.write("<a href=\"../User/LookUserInfo.asp?Name=" + htmlencode(LastWriter) + "\">" + htmlencode(LastWriter) + "</a> ");
           }
           else
           {
                 document.write(htmlencode(LastWriter) + " ")
           }
           document.write(LastWriteTime);
           document.write("<br><img src=images/null.gif height=2 width=9> <img src=images/Forum_today.gif alt=շ" + TodayAnnounce + "ƪ align=absmiddle> <font color=red>" + TodayAnnounce + "</font><img src=images/null.gif height=4 width=2> <img src=images/forum_topic.gif alt=" + TopicNum + "ƪ align=absmiddle> " + TopicNum + "<img src=images/null.gif height=4 width=2> <img src=images/Forum_post.gif alt=ӹ" + AnnounceNum + "ƪ align=absmiddle>" + AnnounceNum + "<br></td></tr>");
     }
}
function strlength(str)
{
     var mx=String.fromCharCode(255);
     if(str.length==0)
     {
           return(0);
     }
     else
     {
           var TStr="";
           var l,t,c;
           var i;
           l=str.length;
           t=l;
           for(i=0;i<l;i++)
           {
                 if(str.charAt(i)>mx)
                 {
                       t+=1;
                 }
           }
           return(t);
     }
}

