zoukankan      html  css  js  c++  java
  • 论坛首页调用 来自 http://bbs.apabi.com

    From http://bbs.apabi.com/dispbbs.asp?boardID=24&ID=17411&page=1

    <?xml version="1.0" encoding="gb2312"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
    <xsl:output method="xml" omit-xml-declaration = "yes" indent="yes" version="4.0"/>
     <!--
     Copyright (C) 2004,2005 AspSky.Net. All rights reserved.
     Written by dvbbs.net Lao Mi
     Web: http://www.aspsky.net/,http://www.dvbbs.net/
     Email: eway@aspsky.net
     -->
    <xsl:template  match="/">
    <xsl:if test="BoardList/@boardid=0"><xsl:call-template name="welcome" /></xsl:if>
    <xsl:call-template name="main" />
    <xsl:if test="BoardList/@boardid=0"><xsl:call-template name="link" /><xsl:call-template name="index_bottom" /></xsl:if>
    </xsl:template>
    <xsl:template  name="main">
    <iframe style="border:0px;0px;height:0px;" src="" name="hiddenframe1"></iframe>
    <xsl:variable name="boardid" select="BoardList/@boardid"/>
    <xsl:choose>
    <xsl:when test="$boardid=0">
    <xsl:for-each select="BoardList/board[@parentid =$boardid]">
    <div class="th" style="margin-top:10px;">
    <span id="titlepic_{@boardid}"><a target="hiddenframe1">
    <xsl:choose>
     <xsl:when test="@mode!='0'"><xsl:attribute name="href">cookies.asp?action=setlistmod&amp;thisvalue=0&amp;id=<xsl:value-of select="@boardid"/></xsl:attribute>
     <img alt="切换到列表模式" src="{/BoardList/@picurl}plus.gif"/>
     </xsl:when>
     <xsl:otherwise>
     <xsl:attribute name="href">cookies.asp?action=setlistmod&amp;thisvalue=1&amp;id=<xsl:value-of select="@boardid"/>
     </xsl:attribute>
     <img alt="切换到简洁模式" src="{/BoardList/@picurl}nofollow.gif" border="0"/>
     </xsl:otherwise>
     </xsl:choose></a></span>
    <a href="index.asp?boardid={@boardid}" title="进入本分类论坛"><xsl:value-of select="@boardtype" disable-output-escaping="yes" /></a>
    </div>
    <xsl:choose>
      <xsl:when test="@mode!='0'">
      <xsl:variable name="tdcount">
      <xsl:choose>
        <xsl:when test="@simplenesscount=0">4</xsl:when>
        <xsl:otherwise><xsl:value-of select="@simplenesscount" /></xsl:otherwise>
      </xsl:choose>
      </xsl:variable>
      <xsl:variable name="tdwidth"><xsl:value-of select="floor((99.9 div $tdcount))"/>%</xsl:variable>
      <xsl:call-template name="showboard2">
      <xsl:with-param name="parentid" select="@boardid"/>
      <xsl:with-param name="tdcount" select="$tdcount"/>
      <xsl:with-param name="tdwidth" select="$tdwidth"/>
      <xsl:with-param name="positions" select="0"/>
      </xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
      <xsl:call-template name="showboard1">
      <xsl:with-param name="parentid" select="@boardid"/>
      </xsl:call-template>
      </xsl:otherwise>
    </xsl:choose>
    </xsl:for-each>
    </xsl:when>
    <xsl:otherwise>
    <xsl:for-each select="BoardList/board[@boardid =$boardid and @child !=0]">
    <div class="th">
    <span id="titlepic_{@boardid}"><a target="hiddenframe1">
    <xsl:choose>
     <xsl:when test="@mode!='0'"><xsl:attribute name="href">cookies.asp?action=setlistmod&amp;thisvalue=0&amp;id=<xsl:value-of select="@boardid"/></xsl:attribute>
     <img alt="切换到列表模式" src="{/BoardList/@picurl}plus.gif"/>
     </xsl:when>
     <xsl:otherwise>
     <xsl:attribute name="href">cookies.asp?action=setlistmod&amp;thisvalue=1&amp;id=<xsl:value-of select="@boardid"/>
     </xsl:attribute>
     <img alt="切换到简洁模式" src="{/BoardList/@picurl}nofollow.gif" border="0"/>
     </xsl:otherwise>
     </xsl:choose></a></span>
    <xsl:value-of select="@boardtype" disable-output-escaping="yes" />-论坛列表
    </div>
    <xsl:choose>
      <xsl:when test="@mode!='0'">
      <xsl:variable name="tdcount">
      <xsl:choose>
        <xsl:when test="@simplenesscount=0">4</xsl:when>
        <xsl:otherwise><xsl:value-of select="@simplenesscount" /></xsl:otherwise>
      </xsl:choose>
      </xsl:variable>
      <xsl:variable name="tdwidth"><xsl:value-of select="floor((99.9 div $tdcount))"/>%</xsl:variable>
      <xsl:call-template name="showboard2">
      <xsl:with-param name="parentid" select="@boardid"/>
      <xsl:with-param name="tdcount" select="$tdcount"/>
      <xsl:with-param name="tdwidth" select="$tdwidth"/>
      <xsl:with-param name="positions" select="0"/>
      </xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
      <xsl:call-template name="showboard1">
      <xsl:with-param name="parentid" select="@boardid"/>
      </xsl:call-template>
      </xsl:otherwise>
    </xsl:choose>
    </xsl:for-each>
    <br />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="showboard2">
    <xsl:param name="parentid"/>
    <xsl:param name="tdwidth"/>
    <xsl:param name="positions"/>
    <xsl:param name="tdcount"/>
    <div class="mainbar" style="height:60px;overflow :hidden;line-height:18px;">
    <xsl:for-each select="/BoardList/board[@parentid = $parentid][position() &gt; $positions and position() &lt; ($tdcount+$positions+1)]">
    <xsl:variable name="boardid" select="@boardid"/>
    <div title="{@readme}">
    <xsl:if test="last()!=position()"><xsl:attribute name="class">index_left_states</xsl:attribute></xsl:if>
    <xsl:attribute name="style">height:60px;<xsl:value-of select="$tdwidth"/>;text-align :left;text-indent:5px;<xsl:if test="last()=position()">float:left;</xsl:if></xsl:attribute>
    <div><a href="index.asp?boardid={$boardid}"> <xsl:if test="count(../board[@parentid=$boardid]) != 0"><xsl:attribute name="title">有<xsl:value-of select="count(../board[@parentid=$boardid])"/>个下属论坛</xsl:attribute></xsl:if><xsl:value-of select="@boardtype" disable-output-escaping="yes"/></a><xsl:if test="count(../board[@parentid=$boardid]) !=0"><a><xsl:attribute name="onmouseover">showmenu(event,BoardJumpList(<xsl:value-of select="@boardid"/>,1),0);</xsl:attribute>(<xsl:value-of select="count(../board[@parentid=$boardid])"/>)</a></xsl:if></div>
    <div>今日贴:<font color="red"><xsl:value-of select="concat(' ',information/@todaynum,' ')"/></font>主题贴:<xsl:value-of select="concat(' ',information/@topicnum,' ')"/></div>
    <div>发贴总数:<xsl:value-of select="concat(' ',information/@postnum)"/></div>
    </div>
    </xsl:for-each>
    </div>
    <div class="mainbar2" style="height:25px;overflow :hidden;">
    <xsl:for-each select="/BoardList/board[@parentid = $parentid][position() &gt; $positions and position() &lt; ($tdcount+$positions+1)]">
    <xsl:variable name="boardid" select="@boardid"/>
    <div>
    <xsl:if test="last()!=position()"><xsl:attribute name="class">list1</xsl:attribute></xsl:if>
    <xsl:attribute name="style">height:25px;<xsl:value-of select="$tdwidth"/>;text-align :left;text-indent:5px;<xsl:if test="last()=position()">float:left;</xsl:if></xsl:attribute>
    <xsl:choose>
      <xsl:when test="/BoardList/boardmaster[@boardid=$boardid]/master">版主:<xsl:for-each select="/BoardList/boardmaster[@boardid=$boardid]/master"> <a  href="dispuser.asp?name={.}" title="查看版主{.}的资料" target="_blank"><xsl:value-of select="."/></a> </xsl:for-each></xsl:when>
      <xsl:otherwise> 此版暂无版主 </xsl:otherwise>
    </xsl:choose>
    </div>
    </xsl:for-each>
    </div>
    <xsl:if test="/BoardList/board[@parentid = $parentid][position() &gt; ($tdcount+$positions)]">
    <xsl:call-template name="showboard2">
    <xsl:with-param name="parentid" select="$parentid"/>
    <xsl:with-param name="tdwidth" select="$tdwidth"/>
    <xsl:with-param name="positions" select="($positions+$tdcount)"/>
    <xsl:with-param name="tdcount" select="$tdcount"/>
    </xsl:call-template>
    </xsl:if>
    </xsl:template>
    <xsl:template name="showboard1">
    <xsl:param name="parentid"/>
    <xsl:for-each select="/BoardList/board[@parentid = $parentid ]">
    <xsl:variable name="boardid" select="@boardid"/>
    <div class="mainbar" style="height:60px;">
    <div class="index_right" style="height:44px;line-height:normal;margin-top:8px;">
      <xsl:choose>
       <xsl:when test="@checkout='1'">
       <div style="margin-top:18px;">认证论坛,请认证用户进入浏览</div>
       </xsl:when>
       <xsl:otherwise>
        <div>主题:<a href="dispbbs.asp?boardid={information/@lastpost_7}&amp;ID={information/@lastpost_6}&amp;replyID={information/@lastpost_1}&amp;skin=1"><xsl:value-of select="information/@lastpost_3" disable-output-escaping="yes" /></a></div>
        <div>发贴:<a href="dispuser.asp?id={information/@lastpost_5}"><xsl:value-of select=" information/@lastpost_0"/></a></div>
        <div>日期:<xsl:value-of select="information/@lastpost_2"/><a href="Dispbbs.asp?boardid={information/@lastpost_7}&amp;ID={information/@lastpost_6}&amp;replyID={information/@lastpost_1}&amp;skin=1" title="主题:{information/@lastpost_3}"><img border="0" src="Skins/Default/lastpost.gif" alt=""/></a></div>
       </xsl:otherwise>
        </xsl:choose>
    </div>
    <div class="index_left_states"><img>
         <xsl:choose>
            <xsl:when test="@checkout=1">
             <xsl:attribute name="title">认证论坛,<xsl:choose>
             <xsl:when test="@newpost=1">有新贴子</xsl:when>
             <xsl:otherwise>无新贴子</xsl:otherwise>
             </xsl:choose>
             </xsl:attribute>
             <xsl:attribute name="src"><xsl:value-of select="/BoardList/forum_setting/@pic_2"/></xsl:attribute>
            </xsl:when>
         <xsl:when test="@checklock=1">
             <xsl:attribute name="title">锁定论坛,<xsl:choose>
             <xsl:when test="@newpost=1">有新贴子</xsl:when>
             <xsl:otherwise>无新贴子</xsl:otherwise>
             </xsl:choose>
             </xsl:attribute>
             <xsl:attribute name="src"><xsl:value-of select="/BoardList/forum_setting/@pic_2"/></xsl:attribute>
            </xsl:when>
            <xsl:otherwise>
             <xsl:choose>
             <xsl:when test="@newpost=1"><xsl:attribute name="alt">开放的论坛,有新贴子</xsl:attribute>
             <xsl:attribute name="src"><xsl:value-of select="/BoardList/forum_setting/@pic_1"/></xsl:attribute>
             </xsl:when>
             <xsl:otherwise><xsl:attribute name="alt">开放的论坛,无新贴子</xsl:attribute>
             <xsl:attribute name="src"><xsl:value-of select="/BoardList/forum_setting/@pic_0"/></xsl:attribute>
             </xsl:otherwise>
             </xsl:choose>
            </xsl:otherwise>
            </xsl:choose></img></div>
    <div style="text-align :left;">
      <xsl:if test="@indeximg!=''"><a href="index.asp?boardid={$boardid}" href_cetemp="index.asp?boardid={$boardid}"><img src="{@indeximg}" alt="" class="boardlogo"/></a></xsl:if>
      <div><a href="index.asp?boardid={$boardid}"> <xsl:if test="count(../board[@parentid=$boardid]) != 0"><xsl:attribute name="title">有<xsl:value-of select="count(../board[@parentid=$boardid])"/>个下属论坛</xsl:attribute></xsl:if><xsl:value-of select="@boardtype" disable-output-escaping="yes"/></a><xsl:if test="count(../board[@parentid=$boardid]) !=0"><a><xsl:attribute name="onmouseover">showmenu(event,BoardJumpList(<xsl:value-of select="@boardid"/>,1),0);</xsl:attribute>(<xsl:value-of select="count(../board[@parentid=$boardid])"/>)</a></xsl:if></div>
      <div style="overflow :hidden;height:38px;"><font face="Arial"><img alt="" src="Skins/Default/Forum_readme.gif" align="middle"/><xsl:value-of select="@readme" disable-output-escaping="yes"/></font></div>
    </div>
    </div>
    <div class="mainbar2" style="height:25px;overflow :hidden;">
    <div class="index_right" style="height:25px;">
    <img src="Skins/Default/Forum_today.gif"  alt="今日发贴数" style="margin-top:8px;"/><font color="red"><xsl:value-of select="concat(' ',information/@todaynum,' ')"/></font>
    <img src="Skins/Default/forum_topic.gif" alt="主题贴数" /><xsl:value-of select="concat(' ',information/@topicnum,' ')"/>
    <img src="Skins/Default/Forum_post.gif" alt="发贴总数" /><xsl:value-of select="concat(' ',information/@postnum)"/>
    </div>
    <div class="index_left_states" style="height:25px;"></div>
    <div style="text-align : left; text-indent:5px;">
    <xsl:choose>
    <xsl:when test="/BoardList/forum_setting/@issearch=1">
    <a href="index.asp?BoardID={$boardid}&amp;Page=2" href_cetemp="index.asp?BoardID={$boardid}&amp;Page=2" title="{@boardtype}第二页">[2]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=3" title="{@boardtype}第三页">[3]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=4" title="{@boardtype}第四页">[4]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=5" title="{@boardtype}第五页">[5]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=6" title="{@boardtype}第六页">[6]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=7" title="{@boardtype}第七页">[7]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=8" title="{@boardtype}第八页">[8]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=9" title="{@boardtype}第九页">[9]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=10" title="{@boardtype}第十页">[10]</a>
    </xsl:when>
    <xsl:otherwise>
     <xsl:choose>
      <xsl:when test="/BoardList/boardmaster[@boardid=$boardid]/master">版主:<xsl:for-each select="/BoardList/boardmaster[@boardid=$boardid]/master"> <a  href="dispuser.asp?name={.}" title="查看版主{.}的资料" target="_blank"><xsl:value-of select="."/></a> </xsl:for-each></xsl:when>
      <xsl:otherwise> 此版暂无版主 </xsl:otherwise>
     </xsl:choose>
    </xsl:otherwise>
    </xsl:choose>
    <xsl:if test="/BoardList/forum_setting/@issearch=1 and /BoardList/forum_setting/@issearch_a=1">
    <a href="index.asp?BoardID={$boardid}&amp;Page=11" href_cetemp="index.asp?BoardID={$boardid}&amp;Page=11" title="{@boardtype}第十一页">[11]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=12" title="{@boardtype}第十二页">[12]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=13" title="{@boardtype}第十三页">[13]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=14" title="{@boardtype}第十四页">[14]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=15" title="{@boardtype}第十五页">[15]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=16" title="{@boardtype}第十六页">[16]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=17" title="{@boardtype}第十七页">[17]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=18" title="{@boardtype}第十八页">[18]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=19" title="{@boardtype}第十九页">[19]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=20" title="{@boardtype}第二十页">[20]</a>
    </xsl:if>
    </div>
    </div>
    </xsl:for-each>
    </xsl:template>
    <xsl:template name="welcome">
    <div class="th"></div>
    <div class="mainbar" style="height:120px;text-align :left;">
    <div id="tdleft" style="height:120px; ">
    <div style="padding:10px;">
    <xsl:choose>
      <xsl:when test="BoardList/userinfo/@userid=0"><xsl:call-template name="guest" /></xsl:when>
      <xsl:otherwise><xsl:call-template name="userinfo" /></xsl:otherwise>
    </xsl:choose>
    </div>
    </div>
    <div style="height:120px;float:left;320px;" >
    <div style="padding:10px;">
    <div style="float:left;140px;height:20px;line-height:20px;">会员总数:<b><xsl:value-of select="BoardList/forum_info/@forum_usernum"/></b> 人</div><div style="float:left;height:20px;line-height:20px;">最新会员:[ <a href="dispuser.asp?name={BoardList/forum_info/@forum_lastuser}" target="_blank"><b><xsl:value-of select="BoardList/forum_info/@forum_lastuser"/></b></a> ]</div>
    <br /><hr/>
    <div style="float:left;140px;height:20px;line-height:20px;">今日发帖:<font class="redfont"><b><xsl:value-of select="BoardList/forum_info/@forum_todaynum"/></b></font> 篇</div>
    <div style="float:left;height:20px;line-height:20px;"> 主题总数:<b><xsl:value-of select="BoardList/forum_info/@forum_topicnum"/></b> 篇</div>
    <div style="float:left;140px;height:20px;line-height:20px;">昨日发帖:<b><xsl:value-of select="BoardList/forum_info/@forum_yesterdaynum"/></b> 篇</div>
    <div style="float:left;height:20px;line-height:20px;"> 帖子总数:<b><xsl:value-of select="BoardList/forum_info/@forum_postnum"/></b> 篇</div>
    <div style="float:left;330px;">最高日发帖:<b><xsl:value-of select="BoardList/forum_info/@forum_maxpostnum"/></b> 篇,发生时间:<xsl:value-of select=" BoardList/forum_info/@forum_maxpostdate"/></div>
    </div>
    </div>
    </div>
    <div class="mainbar1" style="text-align :left;height:36px;line-height:28px;">
    <xsl:if test="BoardList/forum_setting/@rss=0 or BoardList/forum_setting/@wap=1">
     <div class="tableborder5" style="text-align :center;line-height:18px;height:20px;float:right;margin-right:2px;margin-top:6px;font-size:9px;font-family:tahoma,arial;">
     <div class="tabletitle1" style="float:left;25px;margin : 1px; 1px; 1px; 1px;">XML</div>
     <xsl:if test="BoardList/forum_setting/@rss=0"><div style="float:left;45px;margin: 1px 1px 1px 1px ;background-color : #fff;border:1px inset;line-height:16px;"><a href="http://rss.iboker.com/sub/?{BoardList/forum_setting/@ForumUrl}rssfeed.asp" target="_blank" title="订阅本站面最新帖子">RSS 2.0</a></div></xsl:if>
     <xsl:if test="BoardList/forum_setting/@wap=1"><div class="tabletitle1" style="float:left;25px;margin :1px;"><a href="wap.asp?Action=readme" target="_blank" title="通过手机访问论坛,把论坛动起来" style="color:#fff;">WAP</a></div></xsl:if>
     </div>
    </xsl:if>
     <div style="text-align:center;padding:3px 0px;height:28px;text-indent:20px;" >
    <a href="query.asp?stype=3&amp;pSearch=0&amp;nSearch=0">查看新贴</a>
    <font face="Wingdings" color="666666">v</font> 
    <a href="query.asp?stype=4&amp;pSearch=0&amp;nSearch=0">热门话题</a>
    <font face="Wingdings" color="666666">v</font>
    <a href="infolist.asp?t=toplist&amp;orders=1">发贴排行</a>
    <font face="Wingdings" color="666666">v</font>
    <a href="infolist.asp?t=toplist&amp;orders=7">用户列表</a>
    </div>
    </div>
    </xsl:template>
    <xsl:template name="userinfo">
    <div style="float:left;80px;height:100px;overflow :hidden;"><a href="dispuser.asp?id={BoardList/userinfo/@userid}" title="查看我的信息"><img src="{BoardList/userinfo/@userface}" alt="查看我的信息" height="60" style="margin-top:12px;margin-left:2px;border:0px"/></a></div>
    <div style="float:left;">
    <div>您的帐号 <b><xsl:value-of select="BoardList/userinfo/@username" /></b>  <a href="usersms.asp?action=inbox">收件箱</a>
    <xsl:choose>
      <xsl:when test="BoardList/userinfo/@usermsg !=''">
      <xsl:variable name="sendmsgnum" select="substring-before(BoardList/userinfo/@usermsg ,'||')"></xsl:variable>
      <xsl:variable name="sendmsgid" select="substring-before(substring-after(BoardList/userinfo/@usermsg ,'||') ,'||')"></xsl:variable>
      <xsl:variable name="sendmsguser" select="substring-after(substring-after(BoardList/userinfo/@usermsg ,'||') ,'||')"></xsl:variable>
      <xsl:choose>
      <xsl:when test="$sendmsgnum != 0 "><bgsound src="skins/default/mail.wav" />(<a href="javascript:openScript('messanger.asp?action=read&amp;id={$sendmsgid}&amp;sender={$sendmsguser}',500,400)"><font class="redfont"><xsl:value-of select="$sendmsgnum" /></font></a>)</xsl:when>
      <xsl:otherwise>(<font color="gray">0</font>) </xsl:otherwise>
      </xsl:choose>
      </xsl:when>
      <xsl:otherwise>
     (<font color="gray">0</font>)    
      </xsl:otherwise>
    </xsl:choose>
    <xsl:value-of select="' '" />
    <xsl:if test="BoardList/myusergroup">
    <div class="menu_popup" id="regroup">
    <div class="menuitems">
      <xsl:for-each select="BoardList/myusergroup">
      <xsl:variable name="groupid" select="."/>
      <a href="cookies.asp?action=ReGroup&amp;GroupID={.}"><xsl:value-of select="/BoardList/grouppic/usergroup[@usergroupid = $groupid]/@usertitle" /></a><br />
      </xsl:for-each>
    </div>
    </div>
    <a onmouseover="showmenu(event,'','regroup')" style="cursor:hand">切换用户身份</a></xsl:if></div>
    <hr/>
    <div>注册:<b><xsl:value-of select="substring-before(BoardList/userinfo/@joindate,' ')" /></b> 登录 <b><xsl:value-of select="BoardList/userinfo/@userlogins" /></b> 次 等级:<b><xsl:value-of select="BoardList/userinfo/@userclass" /></b></div>
    <div>金钱:<b><xsl:value-of select="BoardList/userinfo/@userwealth" /></b> 积分:<b><xsl:value-of select="BoardList/userinfo/@userep" /></b> 魅力:<b><xsl:value-of select="BoardList/userinfo/@usercp" /></b></div>
    <div>主题:<b><xsl:value-of select="BoardList/userinfo/@usertopic" /></b> 文章:<b><xsl:value-of select="BoardList/userinfo/@userpost" /></b> 精华:<font class="redfont"><b><xsl:value-of select="BoardList/userinfo/@userisbest" /></b></font> 被删:<b><xsl:value-of select="translate(BoardList/userinfo/@userdel,'-','')" /></b></div>
    </div>
    </xsl:template>
    <xsl:template name="guest">
    <div style="float:right;margin-right:20px;">
    <div>欢迎访问 <b><xsl:value-of select="BoardList/forum_info/@forum_type"/></b> 您还没有[<a href="reg.asp" class="cblue">注册</a>]或[<a href="login.asp" class="cblue">登录</a>]</div>
    <form action="login.asp?action=chk" method="post">
    <div>用户帐号:<input tyep="text" name="username" size="12" /><xsl:if test="BoardList/forum_setting/@logincheckcode=1"> 验证码:<input type="text" name="codestr" size="4" /><img src="DV_getcode.asp" height="18" alt="验证码,看不清楚?请点击刷新验证码" style="cursor : pointer;" onclick="this.src='DV_getcode.asp'"/></xsl:if></div>
    <div>用户密码:<input type="password" name="password" size="12" /> Cookie <select name="CookieDate"><option value="0" selected="selected">不保存</option><option value="1">保存一天</option><option value="2">保存一月</option><option value="3">保存一年</option></select>  <input type="submit" name="submit" value="登录" /></div>
    </form>
    </div>
    </xsl:template>
    <xsl:template name="link">
    <div class="th" style="margin-top:12px;"><xsl:text disable-output-escaping="yes" >&amp;nbsp;&amp;nbsp;</xsl:text>-=> 友情论坛</div>
    <div class="mainbar3">
    <div style="padding:10px;line-height:20px;">
    <xsl:for-each select="BoardList/bbslink/link[@islogo=0]">
    <div style="float:left;16%;text-align : left;height:20px;"><a href="{@url}" title="{@readme}" target="_blank" ><xsl:value-of select="@boardname"/></a></div><xsl:if test="(position() mod 6)=0 "><br /></xsl:if>
    </xsl:for-each>
    </div>
    <xsl:if test="count(BoardList/bbslink/link[@islogo=0]) mod 6 !=0"><br /></xsl:if>
    <hr style="98%;"/>
    <div style="padding:10px;line-height:40px;">
    <xsl:for-each select="BoardList/bbslink/link[@islogo=1]">
    <div style="float:left;16%;text-align : left;height:40px;" title="{@boardname}
    {@readme}"> <a href="{@url}"  target="_blank" ><img border="0" src="{@logo}"  height="31" width="88" alt="{@boardname}
    {@readme}" /></a></div><xsl:if test="(position() mod 6)=0 "><br /></xsl:if>
    </xsl:for-each>
    <xsl:if test="BoardList/bbslink/link[@islogo=1]"><br /></xsl:if>
    </div>
    </div>
    <xsl:if test="BoardList/biruser">
    <br />
    <div class="th"><xsl:text disable-output-escaping="yes" >&amp;nbsp;&amp;nbsp;</xsl:text>≡ 今天过生日的用户(共 <xsl:value-of select="count(BoardList/biruser/user)"/> 人)≡</div>
    <div class="mainbar3">
    <div style="padding:10px;line-height:20px;">
    <xsl:for-each select="BoardList/biruser/user"><div style="float:left;25%;text-align : left;height:20px;">
    <img src="{/BoardList/forum_setting/@pic_3}" alt="" />〖祝 <a href="dispuser.asp?name={@username}" title="祝{@age}岁生日快乐!" target="_blank"><xsl:value-of select="@username" /></a> 生日快乐〗
    </div>
    <xsl:if test="(position() mod 4)=0 or position()=last()"><br /></xsl:if>
    </xsl:for-each>
    </div>
    </div>
    </xsl:if>
    </xsl:template>
    <xsl:template name="index_bottom">
    <br />
    <div class="th"><xsl:text disable-output-escaping="yes" >&amp;nbsp;&amp;nbsp;</xsl:text>-=> 论坛在线情况 [<span id="showstr"><a href="online.asp?action=1&amp;boardid=0" target="hiddenframe"><font id="ifOnlineStr">显示详细列表</font></a></span>] [<a href="boardstat.asp?reaction=online">查看在线用户位置</a>]</div>
    <div class="mainbar3" style="height:65px;border-bottom:0px; ">
    <div style="padding:5px 10px 0px 10px;line-height:20px;height:60px;">
    <div style="float:left;30%;text-align : left;">
    <font class="bluefont">■</font> 当前在线:<b><xsl:value-of select="BoardList/forum_info/@forum_online"/></b> 人<br />
    <font class="bluefont">■</font> 在线会员:<b><xsl:value-of select="BoardList/forum_info/@forum_useronline"/></b> 人<br />
    <font class="bluefont">■</font> 在线访客:<b><xsl:value-of select="BoardList/forum_info/@forum_guestonline"/></b> 人
    </div>
    <div style="float:left;30%;text-align : left;">
    <font class="bluefont">■</font> 建站时间:<b><xsl:value-of select=" BoardList/forum_info/@forum_createtime"/></b><br />
    <font class="bluefont">■</font> 最高在线:<b><xsl:value-of select="BoardList/forum_info/@forum_maxonline"/></b> 人<br />
    <font class="bluefont">■</font> 发生时间:<b><xsl:value-of select="BoardList/forum_info/@forum_maxonlinedate"/></b>
    </div>
    <div style="float:left;39%;text-align : left;">
    <font class="bluefont">■</font> 您的IP是:<b><xsl:value-of select=" BoardList/agent/@ip"/></b><br />
    <font class="bluefont">■</font> 操作系统:<b><xsl:value-of select=" BoardList/agent/@platform"/></b><br />
    <font class="bluefont">■</font> 浏 览 器:<b><xsl:value-of select="concat(BoardList/agent/@browser,' ',BoardList/agent/@version)"/></b>
    </div>
    </div>
    </div>
    <div class="mainbar3">
    <div style="padding:0px 10px 0px 10px;line-height:18px;height:18px;text-align : left;">
    <font class="redfont">■ 在线图例</font>:<xsl:for-each select="BoardList/grouppic/usergroup[@orders!=0]"><img src="{/BoardList/@picurl}{@titlepic}" alt=""/><xsl:value-of select="concat(' ',@usertitle)" /><xsl:if test="position()!=last() ">  ‖ </xsl:if></xsl:for-each>
    </div>
    <hr style="98%;"/>
    <div class="mainbar0" style="padding:5px 10px 5px 10px;line-height:18px;text-align : left;display:none;" id="onlinetr"></div>
    </div>
    <br />
    <div class="itableborder">
    <img src="{/BoardList/forum_setting/@pic_0}" align="absmiddle" alt="没有新的帖子" /> 没有新的帖子  <img src="{/BoardList/forum_setting/@pic_1}" align="absmiddle" alt="有新的帖子" /> 有新的帖子  <img src="{/BoardList/forum_setting/@pic_2}"  align="absmiddle" alt="被锁定的论坛" /> 被锁定的论坛
    </div>
    </xsl:template>
    </xsl:stylesheet>

    <?xml version="1.0" encoding="gb2312"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
    <xsl:output method="xml" omit-xml-declaration = "yes" indent="yes" version="4.0"/>
     <!--
     Copyright (C) 2004,2005 AspSky.Net. All rights reserved.
     Written by dvbbs.net Lao Mi
     Web: http://www.aspsky.net/,http://www.dvbbs.net/
     Email: eway@aspsky.net
     -->
    <xsl:template  match="/">
    <xsl:if test="BoardList/@boardid=0"><xsl:call-template name="welcome" /></xsl:if>
    <xsl:call-template name="main" />
    <xsl:if test="BoardList/@boardid=0"><xsl:call-template name="link" /><xsl:call-template name="index_bottom" /></xsl:if>
    </xsl:template>
    <xsl:template  name="main">
    <iframe style="border:0px;0px;height:0px;" src="" name="hiddenframe1"></iframe>
    <xsl:variable name="boardid" select="BoardList/@boardid"/>
    <xsl:choose>
    <xsl:when test="$boardid=0">
    <xsl:for-each select="BoardList/board[@parentid =$boardid]">
    <div class="th" style="margin-top:10px;">
    <span id="titlepic_{@boardid}"><a target="hiddenframe1">
    <xsl:choose>
     <xsl:when test="@mode!='0'"><xsl:attribute name="href">cookies.asp?action=setlistmod&amp;thisvalue=0&amp;id=<xsl:value-of select="@boardid"/></xsl:attribute>
     <img alt="切换到列表模式" src="{/BoardList/@picurl}plus.gif"/>
     </xsl:when>
     <xsl:otherwise>
     <xsl:attribute name="href">cookies.asp?action=setlistmod&amp;thisvalue=1&amp;id=<xsl:value-of select="@boardid"/>
     </xsl:attribute>
     <img alt="切换到简洁模式" src="{/BoardList/@picurl}nofollow.gif" border="0"/>
     </xsl:otherwise>
     </xsl:choose></a></span>
    <a href="index.asp?boardid={@boardid}" title="进入本分类论坛"><xsl:value-of select="@boardtype" disable-output-escaping="yes" /></a>
    </div>
    <xsl:choose>
      <xsl:when test="@mode!='0'">
      <xsl:variable name="tdcount">
      <xsl:choose>
        <xsl:when test="@simplenesscount=0">4</xsl:when>
        <xsl:otherwise><xsl:value-of select="@simplenesscount" /></xsl:otherwise>
      </xsl:choose>
      </xsl:variable>
      <xsl:variable name="tdwidth"><xsl:value-of select="floor((99.9 div $tdcount))"/>%</xsl:variable>
      <xsl:call-template name="showboard2">
      <xsl:with-param name="parentid" select="@boardid"/>
      <xsl:with-param name="tdcount" select="$tdcount"/>
      <xsl:with-param name="tdwidth" select="$tdwidth"/>
      <xsl:with-param name="positions" select="0"/>
      </xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
      <xsl:call-template name="showboard1">
      <xsl:with-param name="parentid" select="@boardid"/>
      </xsl:call-template>
      </xsl:otherwise>
    </xsl:choose>
    </xsl:for-each>
    </xsl:when>
    <xsl:otherwise>
    <xsl:for-each select="BoardList/board[@boardid =$boardid and @child !=0]">
    <div class="th">
    <span id="titlepic_{@boardid}"><a target="hiddenframe1">
    <xsl:choose>
     <xsl:when test="@mode!='0'"><xsl:attribute name="href">cookies.asp?action=setlistmod&amp;thisvalue=0&amp;id=<xsl:value-of select="@boardid"/></xsl:attribute>
     <img alt="切换到列表模式" src="{/BoardList/@picurl}plus.gif"/>
     </xsl:when>
     <xsl:otherwise>
     <xsl:attribute name="href">cookies.asp?action=setlistmod&amp;thisvalue=1&amp;id=<xsl:value-of select="@boardid"/>
     </xsl:attribute>
     <img alt="切换到简洁模式" src="{/BoardList/@picurl}nofollow.gif" border="0"/>
     </xsl:otherwise>
     </xsl:choose></a></span>
    <xsl:value-of select="@boardtype" disable-output-escaping="yes" />-论坛列表
    </div>
    <xsl:choose>
      <xsl:when test="@mode!='0'">
      <xsl:variable name="tdcount">
      <xsl:choose>
        <xsl:when test="@simplenesscount=0">4</xsl:when>
        <xsl:otherwise><xsl:value-of select="@simplenesscount" /></xsl:otherwise>
      </xsl:choose>
      </xsl:variable>
      <xsl:variable name="tdwidth"><xsl:value-of select="floor((99.9 div $tdcount))"/>%</xsl:variable>
      <xsl:call-template name="showboard2">
      <xsl:with-param name="parentid" select="@boardid"/>
      <xsl:with-param name="tdcount" select="$tdcount"/>
      <xsl:with-param name="tdwidth" select="$tdwidth"/>
      <xsl:with-param name="positions" select="0"/>
      </xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
      <xsl:call-template name="showboard1">
      <xsl:with-param name="parentid" select="@boardid"/>
      </xsl:call-template>
      </xsl:otherwise>
    </xsl:choose>
    </xsl:for-each>
    <br />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="showboard2">
    <xsl:param name="parentid"/>
    <xsl:param name="tdwidth"/>
    <xsl:param name="positions"/>
    <xsl:param name="tdcount"/>
    <div class="mainbar" style="height:60px;overflow :hidden;line-height:18px;">
    <xsl:for-each select="/BoardList/board[@parentid = $parentid][position() &gt; $positions and position() &lt; ($tdcount+$positions+1)]">
    <xsl:variable name="boardid" select="@boardid"/>
    <div title="{@readme}">
    <xsl:if test="last()!=position()"><xsl:attribute name="class">index_left_states</xsl:attribute></xsl:if>
    <xsl:attribute name="style">height:60px;<xsl:value-of select="$tdwidth"/>;text-align :left;text-indent:5px;<xsl:if test="last()=position()">float:left;</xsl:if></xsl:attribute>
    <div><a href="index.asp?boardid={$boardid}"> <xsl:if test="count(../board[@parentid=$boardid]) != 0"><xsl:attribute name="title">有<xsl:value-of select="count(../board[@parentid=$boardid])"/>个下属论坛</xsl:attribute></xsl:if><xsl:value-of select="@boardtype" disable-output-escaping="yes"/></a><xsl:if test="count(../board[@parentid=$boardid]) !=0"><a><xsl:attribute name="onmouseover">showmenu(event,BoardJumpList(<xsl:value-of select="@boardid"/>,1),0);</xsl:attribute>(<xsl:value-of select="count(../board[@parentid=$boardid])"/>)</a></xsl:if></div>
    <div>今日贴:<font color="red"><xsl:value-of select="concat(' ',information/@todaynum,' ')"/></font>主题贴:<xsl:value-of select="concat(' ',information/@topicnum,' ')"/></div>
    <div>发贴总数:<xsl:value-of select="concat(' ',information/@postnum)"/></div>
    </div>
    </xsl:for-each>
    </div>
    <div class="mainbar2" style="height:25px;overflow :hidden;">
    <xsl:for-each select="/BoardList/board[@parentid = $parentid][position() &gt; $positions and position() &lt; ($tdcount+$positions+1)]">
    <xsl:variable name="boardid" select="@boardid"/>
    <div>
    <xsl:if test="last()!=position()"><xsl:attribute name="class">list1</xsl:attribute></xsl:if>
    <xsl:attribute name="style">height:25px;<xsl:value-of select="$tdwidth"/>;text-align :left;text-indent:5px;<xsl:if test="last()=position()">float:left;</xsl:if></xsl:attribute>
    <xsl:choose>
      <xsl:when test="/BoardList/boardmaster[@boardid=$boardid]/master">版主:<xsl:for-each select="/BoardList/boardmaster[@boardid=$boardid]/master"> <a  href="dispuser.asp?name={.}" title="查看版主{.}的资料" target="_blank"><xsl:value-of select="."/></a> </xsl:for-each></xsl:when>
      <xsl:otherwise> 此版暂无版主 </xsl:otherwise>
    </xsl:choose>
    </div>
    </xsl:for-each>
    </div>
    <xsl:if test="/BoardList/board[@parentid = $parentid][position() &gt; ($tdcount+$positions)]">
    <xsl:call-template name="showboard2">
    <xsl:with-param name="parentid" select="$parentid"/>
    <xsl:with-param name="tdwidth" select="$tdwidth"/>
    <xsl:with-param name="positions" select="($positions+$tdcount)"/>
    <xsl:with-param name="tdcount" select="$tdcount"/>
    </xsl:call-template>
    </xsl:if>
    </xsl:template>
    <xsl:template name="showboard1">
    <xsl:param name="parentid"/>
    <xsl:for-each select="/BoardList/board[@parentid = $parentid ]">
    <xsl:variable name="boardid" select="@boardid"/>
    <div class="mainbar" style="height:60px;">
    <div class="index_right" style="height:44px;line-height:normal;margin-top:8px;">
      <xsl:choose>
       <xsl:when test="@checkout='1'">
       <div style="margin-top:18px;">认证论坛,请认证用户进入浏览</div>
       </xsl:when>
       <xsl:otherwise>
        <div>主题:<a href="dispbbs.asp?boardid={information/@lastpost_7}&amp;ID={information/@lastpost_6}&amp;replyID={information/@lastpost_1}&amp;skin=1"><xsl:value-of select="information/@lastpost_3" disable-output-escaping="yes" /></a></div>
        <div>发贴:<a href="dispuser.asp?id={information/@lastpost_5}"><xsl:value-of select=" information/@lastpost_0"/></a></div>
        <div>日期:<xsl:value-of select="information/@lastpost_2"/><a href="Dispbbs.asp?boardid={information/@lastpost_7}&amp;ID={information/@lastpost_6}&amp;replyID={information/@lastpost_1}&amp;skin=1" title="主题:{information/@lastpost_3}"><img border="0" src="Skins/Default/lastpost.gif" alt=""/></a></div>
       </xsl:otherwise>
        </xsl:choose>
    </div>
    <div class="index_left_states"><img>
         <xsl:choose>
            <xsl:when test="@checkout=1">
             <xsl:attribute name="title">认证论坛,<xsl:choose>
             <xsl:when test="@newpost=1">有新贴子</xsl:when>
             <xsl:otherwise>无新贴子</xsl:otherwise>
             </xsl:choose>
             </xsl:attribute>
             <xsl:attribute name="src"><xsl:value-of select="/BoardList/forum_setting/@pic_2"/></xsl:attribute>
            </xsl:when>
         <xsl:when test="@checklock=1">
             <xsl:attribute name="title">锁定论坛,<xsl:choose>
             <xsl:when test="@newpost=1">有新贴子</xsl:when>
             <xsl:otherwise>无新贴子</xsl:otherwise>
             </xsl:choose>
             </xsl:attribute>
             <xsl:attribute name="src"><xsl:value-of select="/BoardList/forum_setting/@pic_2"/></xsl:attribute>
            </xsl:when>
            <xsl:otherwise>
             <xsl:choose>
             <xsl:when test="@newpost=1"><xsl:attribute name="alt">开放的论坛,有新贴子</xsl:attribute>
             <xsl:attribute name="src"><xsl:value-of select="/BoardList/forum_setting/@pic_1"/></xsl:attribute>
             </xsl:when>
             <xsl:otherwise><xsl:attribute name="alt">开放的论坛,无新贴子</xsl:attribute>
             <xsl:attribute name="src"><xsl:value-of select="/BoardList/forum_setting/@pic_0"/></xsl:attribute>
             </xsl:otherwise>
             </xsl:choose>
            </xsl:otherwise>
            </xsl:choose></img></div>
    <div style="text-align :left;">
      <xsl:if test="@indeximg!=''"><a href="index.asp?boardid={$boardid}" href_cetemp="index.asp?boardid={$boardid}"><img src="{@indeximg}" alt="" class="boardlogo"/></a></xsl:if>
      <div><a href="index.asp?boardid={$boardid}"> <xsl:if test="count(../board[@parentid=$boardid]) != 0"><xsl:attribute name="title">有<xsl:value-of select="count(../board[@parentid=$boardid])"/>个下属论坛</xsl:attribute></xsl:if><xsl:value-of select="@boardtype" disable-output-escaping="yes"/></a><xsl:if test="count(../board[@parentid=$boardid]) !=0"><a><xsl:attribute name="onmouseover">showmenu(event,BoardJumpList(<xsl:value-of select="@boardid"/>,1),0);</xsl:attribute>(<xsl:value-of select="count(../board[@parentid=$boardid])"/>)</a></xsl:if></div>
      <div style="overflow :hidden;height:38px;"><font face="Arial"><img alt="" src="Skins/Default/Forum_readme.gif" align="middle"/><xsl:value-of select="@readme" disable-output-escaping="yes"/></font></div>
    </div>
    </div>
    <div class="mainbar2" style="height:25px;overflow :hidden;">
    <div class="index_right" style="height:25px;">
    <img src="Skins/Default/Forum_today.gif"  alt="今日发贴数" style="margin-top:8px;"/><font color="red"><xsl:value-of select="concat(' ',information/@todaynum,' ')"/></font>
    <img src="Skins/Default/forum_topic.gif" alt="主题贴数" /><xsl:value-of select="concat(' ',information/@topicnum,' ')"/>
    <img src="Skins/Default/Forum_post.gif" alt="发贴总数" /><xsl:value-of select="concat(' ',information/@postnum)"/>
    </div>
    <div class="index_left_states" style="height:25px;"></div>
    <div style="text-align : left; text-indent:5px;">
    <xsl:choose>
    <xsl:when test="/BoardList/forum_setting/@issearch=1">
    <a href="index.asp?BoardID={$boardid}&amp;Page=2" href_cetemp="index.asp?BoardID={$boardid}&amp;Page=2" title="{@boardtype}第二页">[2]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=3" title="{@boardtype}第三页">[3]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=4" title="{@boardtype}第四页">[4]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=5" title="{@boardtype}第五页">[5]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=6" title="{@boardtype}第六页">[6]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=7" title="{@boardtype}第七页">[7]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=8" title="{@boardtype}第八页">[8]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=9" title="{@boardtype}第九页">[9]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=10" title="{@boardtype}第十页">[10]</a>
    </xsl:when>
    <xsl:otherwise>
     <xsl:choose>
      <xsl:when test="/BoardList/boardmaster[@boardid=$boardid]/master">版主:<xsl:for-each select="/BoardList/boardmaster[@boardid=$boardid]/master"> <a  href="dispuser.asp?name={.}" title="查看版主{.}的资料" target="_blank"><xsl:value-of select="."/></a> </xsl:for-each></xsl:when>
      <xsl:otherwise> 此版暂无版主 </xsl:otherwise>
     </xsl:choose>
    </xsl:otherwise>
    </xsl:choose>
    <xsl:if test="/BoardList/forum_setting/@issearch=1 and /BoardList/forum_setting/@issearch_a=1">
    <a href="index.asp?BoardID={$boardid}&amp;Page=11" href_cetemp="index.asp?BoardID={$boardid}&amp;Page=11" title="{@boardtype}第十一页">[11]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=12" title="{@boardtype}第十二页">[12]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=13" title="{@boardtype}第十三页">[13]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=14" title="{@boardtype}第十四页">[14]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=15" title="{@boardtype}第十五页">[15]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=16" title="{@boardtype}第十六页">[16]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=17" title="{@boardtype}第十七页">[17]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=18" title="{@boardtype}第十八页">[18]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=19" title="{@boardtype}第十九页">[19]</a>
    <a href="index.asp?BoardID={$boardid}&amp;Page=20" title="{@boardtype}第二十页">[20]</a>
    </xsl:if>
    </div>
    </div>
    </xsl:for-each>
    </xsl:template>
    <xsl:template name="welcome">
    <div class="th"></div>
    <div class="mainbar" style="height:120px;text-align :left;">
    <div id="tdleft" style="height:120px; ">
    <div style="padding:10px;">
    <xsl:choose>
      <xsl:when test="BoardList/userinfo/@userid=0"><xsl:call-template name="guest" /></xsl:when>
      <xsl:otherwise><xsl:call-template name="userinfo" /></xsl:otherwise>
    </xsl:choose>
    </div>
    </div>
    <div style="height:120px;float:left;320px;" >
    <div style="padding:10px;">
    <div style="float:left;140px;height:20px;line-height:20px;">会员总数:<b><xsl:value-of select="BoardList/forum_info/@forum_usernum"/></b> 人</div><div style="float:left;height:20px;line-height:20px;">最新会员:[ <a href="dispuser.asp?name={BoardList/forum_info/@forum_lastuser}" target="_blank"><b><xsl:value-of select="BoardList/forum_info/@forum_lastuser"/></b></a> ]</div>
    <br /><hr/>
    <div style="float:left;140px;height:20px;line-height:20px;">今日发帖:<font class="redfont"><b><xsl:value-of select="BoardList/forum_info/@forum_todaynum"/></b></font> 篇</div>
    <div style="float:left;height:20px;line-height:20px;"> 主题总数:<b><xsl:value-of select="BoardList/forum_info/@forum_topicnum"/></b> 篇</div>
    <div style="float:left;140px;height:20px;line-height:20px;">昨日发帖:<b><xsl:value-of select="BoardList/forum_info/@forum_yesterdaynum"/></b> 篇</div>
    <div style="float:left;height:20px;line-height:20px;"> 帖子总数:<b><xsl:value-of select="BoardList/forum_info/@forum_postnum"/></b> 篇</div>
    <div style="float:left;330px;">最高日发帖:<b><xsl:value-of select="BoardList/forum_info/@forum_maxpostnum"/></b> 篇,发生时间:<xsl:value-of select=" BoardList/forum_info/@forum_maxpostdate"/></div>
    </div>
    </div>
    </div>
    <div class="mainbar1" style="text-align :left;height:36px;line-height:28px;">
    <xsl:if test="BoardList/forum_setting/@rss=0 or BoardList/forum_setting/@wap=1">
     <div class="tableborder5" style="text-align :center;line-height:18px;height:20px;float:right;margin-right:2px;margin-top:6px;font-size:9px;font-family:tahoma,arial;">
     <div class="tabletitle1" style="float:left;25px;margin : 1px; 1px; 1px; 1px;">XML</div>
     <xsl:if test="BoardList/forum_setting/@rss=0"><div style="float:left;45px;margin: 1px 1px 1px 1px ;background-color : #fff;border:1px inset;line-height:16px;"><a href="http://rss.iboker.com/sub/?{BoardList/forum_setting/@ForumUrl}rssfeed.asp" target="_blank" title="订阅本站面最新帖子">RSS 2.0</a></div></xsl:if>
     <xsl:if test="BoardList/forum_setting/@wap=1"><div class="tabletitle1" style="float:left;25px;margin :1px;"><a href="wap.asp?Action=readme" target="_blank" title="通过手机访问论坛,把论坛动起来" style="color:#fff;">WAP</a></div></xsl:if>
     </div>
    </xsl:if>
     <div style="text-align:center;padding:3px 0px;height:28px;text-indent:20px;" >
    <a href="query.asp?stype=3&amp;pSearch=0&amp;nSearch=0">查看新贴</a>
    <font face="Wingdings" color="666666">v</font> 
    <a href="query.asp?stype=4&amp;pSearch=0&amp;nSearch=0">热门话题</a>
    <font face="Wingdings" color="666666">v</font>
    <a href="infolist.asp?t=toplist&amp;orders=1">发贴排行</a>
    <font face="Wingdings" color="666666">v</font>
    <a href="infolist.asp?t=toplist&amp;orders=7">用户列表</a>
    </div>
    </div>
    <script src="Dv_News.asp?GetName=wen1"></script>
    <script src="Dv_News.asp?GetName=wen2"></script>
    <script src="Dv_News.asp?GetName=wen3"></script>
    </xsl:template>
    <xsl:template name="userinfo">
    <div style="float:left;80px;height:100px;overflow :hidden;"><a href="dispuser.asp?id={BoardList/userinfo/@userid}" title="查看我的信息"><img src="{BoardList/userinfo/@userface}" alt="查看我的信息" height="60" style="margin-top:12px;margin-left:2px;border:0px"/></a></div>
    <div style="float:left;">
    <div>您的帐号 <b><xsl:value-of select="BoardList/userinfo/@username" /></b>  <a href="usersms.asp?action=inbox">收件箱</a>
    <xsl:choose>
      <xsl:when test="BoardList/userinfo/@usermsg !=''">
      <xsl:variable name="sendmsgnum" select="substring-before(BoardList/userinfo/@usermsg ,'||')"></xsl:variable>
      <xsl:variable name="sendmsgid" select="substring-before(substring-after(BoardList/userinfo/@usermsg ,'||') ,'||')"></xsl:variable>
      <xsl:variable name="sendmsguser" select="substring-after(substring-after(BoardList/userinfo/@usermsg ,'||') ,'||')"></xsl:variable>
      <xsl:choose>
      <xsl:when test="$sendmsgnum != 0 "><bgsound src="skins/default/mail.wav" />(<a href="javascript:openScript('messanger.asp?action=read&amp;id={$sendmsgid}&amp;sender={$sendmsguser}',500,400)"><font class="redfont"><xsl:value-of select="$sendmsgnum" /></font></a>)</xsl:when>
      <xsl:otherwise>(<font color="gray">0</font>) </xsl:otherwise>
      </xsl:choose>
      </xsl:when>
      <xsl:otherwise>
     (<font color="gray">0</font>)    
      </xsl:otherwise>
    </xsl:choose>
    <xsl:value-of select="' '" />
    <xsl:if test="BoardList/myusergroup">
    <div class="menu_popup" id="regroup">
    <div class="menuitems">
      <xsl:for-each select="BoardList/myusergroup">
      <xsl:variable name="groupid" select="."/>
      <a href="cookies.asp?action=ReGroup&amp;GroupID={.}"><xsl:value-of select="/BoardList/grouppic/usergroup[@usergroupid = $groupid]/@usertitle" /></a><br />
      </xsl:for-each>
    </div>
    </div>
    <a onmouseover="showmenu(event,'','regroup')" style="cursor:hand">切换用户身份</a></xsl:if></div>
    <hr/>
    <div>注册:<b><xsl:value-of select="substring-before(BoardList/userinfo/@joindate,' ')" /></b> 登录 <b><xsl:value-of select="BoardList/userinfo/@userlogins" /></b> 次 等级:<b><xsl:value-of select="BoardList/userinfo/@userclass" /></b></div>
    <div>金钱:<b><xsl:value-of select="BoardList/userinfo/@userwealth" /></b> 积分:<b><xsl:value-of select="BoardList/userinfo/@userep" /></b> 魅力:<b><xsl:value-of select="BoardList/userinfo/@usercp" /></b></div>
    <div>主题:<b><xsl:value-of select="BoardList/userinfo/@usertopic" /></b> 文章:<b><xsl:value-of select="BoardList/userinfo/@userpost" /></b> 精华:<font class="redfont"><b><xsl:value-of select="BoardList/userinfo/@userisbest" /></b></font> 被删:<b><xsl:value-of select="translate(BoardList/userinfo/@userdel,'-','')" /></b></div>
    </div>
    </xsl:template>
    <xsl:template name="guest">
    <div style="float:right;margin-right:20px;">
    <div>欢迎访问 <b><xsl:value-of select="BoardList/forum_info/@forum_type"/></b> 您还没有[<a href="reg.asp" class="cblue">注册</a>]或[<a href="login.asp" class="cblue">登录</a>]</div>
    <form action="login.asp?action=chk" method="post">
    <div>用户帐号:<input tyep="text" name="username" size="12" /><xsl:if test="BoardList/forum_setting/@logincheckcode=1"> 验证码:<input type="text" name="codestr" size="4" /><img src="DV_getcode.asp" height="18" alt="验证码,看不清楚?请点击刷新验证码" style="cursor : pointer;" onclick="this.src='DV_getcode.asp'"/></xsl:if></div>
    <div>用户密码:<input type="password" name="password" size="12" /> Cookie <select name="CookieDate"><option value="0" selected="selected">不保存</option><option value="1">保存一天</option><option value="2">保存一月</option><option value="3">保存一年</option></select>  <input type="submit" name="submit" value="登录" /></div>
    </form>
    </div>
    </xsl:template>
    <xsl:template name="link">
    <div class="th" style="margin-top:12px;"><xsl:text disable-output-escaping="yes" >&amp;nbsp;&amp;nbsp;</xsl:text>-=> 友情论坛</div>
    <div class="mainbar3">
    <div style="padding:10px;line-height:20px;">
    <xsl:for-each select="BoardList/bbslink/link[@islogo=0]">
    <div style="float:left;16%;text-align : left;height:20px;"><a href="{@url}" title="{@readme}" target="_blank" ><xsl:value-of select="@boardname"/></a></div><xsl:if test="(position() mod 6)=0 "><br /></xsl:if>
    </xsl:for-each>
    </div>
    <xsl:if test="count(BoardList/bbslink/link[@islogo=0]) mod 6 !=0"><br /></xsl:if>
    <hr style="98%;"/>
    <div style="padding:10px;line-height:40px;">
    <xsl:for-each select="BoardList/bbslink/link[@islogo=1]">
    <div style="float:left;16%;text-align : left;height:40px;" title="{@boardname}
    {@readme}"> <a href="{@url}"  target="_blank" ><img border="0" src="{@logo}"  height="31" width="88" alt="{@boardname}
    {@readme}" /></a></div><xsl:if test="(position() mod 6)=0 "><br /></xsl:if>
    </xsl:for-each>
    <xsl:if test="BoardList/bbslink/link[@islogo=1]"><br /></xsl:if>
    </div>
    </div>
    <xsl:if test="BoardList/biruser">
    <br />
    <div class="th"><xsl:text disable-output-escaping="yes" >&amp;nbsp;&amp;nbsp;</xsl:text>≡ 今天过生日的用户(共 <xsl:value-of select="count(BoardList/biruser/user)"/> 人)≡</div>
    <div class="mainbar3">
    <div style="padding:10px;line-height:20px;">
    <xsl:for-each select="BoardList/biruser/user"><div style="float:left;25%;text-align : left;height:20px;">
    <img src="{/BoardList/forum_setting/@pic_3}" alt="" />〖祝 <a href="dispuser.asp?name={@username}" title="祝{@age}岁生日快乐!" target="_blank"><xsl:value-of select="@username" /></a> 生日快乐〗
    </div>
    <xsl:if test="(position() mod 4)=0 or position()=last()"><br /></xsl:if>
    </xsl:for-each>
    </div>
    </div>
    </xsl:if>
    </xsl:template>
    <xsl:template name="index_bottom">
    <br />
    <div class="th"><xsl:text disable-output-escaping="yes" >&amp;nbsp;&amp;nbsp;</xsl:text>-=> 论坛在线情况 [<span id="showstr"><a href="online.asp?action=1&amp;boardid=0" target="hiddenframe"><font id="ifOnlineStr">显示详细列表</font></a></span>] [<a href="boardstat.asp?reaction=online">查看在线用户位置</a>]</div>
    <div class="mainbar3" style="height:65px;border-bottom:0px; ">
    <div style="padding:5px 10px 0px 10px;line-height:20px;height:60px;">
    <div style="float:left;30%;text-align : left;">
    <font class="bluefont">■</font> 当前在线:<b><xsl:value-of select="BoardList/forum_info/@forum_online"/></b> 人<br />
    <font class="bluefont">■</font> 在线会员:<b><xsl:value-of select="BoardList/forum_info/@forum_useronline"/></b> 人<br />
    <font class="bluefont">■</font> 在线访客:<b><xsl:value-of select="BoardList/forum_info/@forum_guestonline"/></b> 人
    </div>
    <div style="float:left;30%;text-align : left;">
    <font class="bluefont">■</font> 建站时间:<b><xsl:value-of select=" BoardList/forum_info/@forum_createtime"/></b><br />
    <font class="bluefont">■</font> 最高在线:<b><xsl:value-of select="BoardList/forum_info/@forum_maxonline"/></b> 人<br />
    <font class="bluefont">■</font> 发生时间:<b><xsl:value-of select="BoardList/forum_info/@forum_maxonlinedate"/></b>
    </div>
    <div style="float:left;39%;text-align : left;">
    <font class="bluefont">■</font> 您的IP是:<b><xsl:value-of select=" BoardList/agent/@ip"/></b><br />
    <font class="bluefont">■</font> 操作系统:<b><xsl:value-of select=" BoardList/agent/@platform"/></b><br />
    <font class="bluefont">■</font> 浏 览 器:<b><xsl:value-of select="concat(BoardList/agent/@browser,' ',BoardList/agent/@version)"/></b>
    </div>
    </div>
    </div>
    <div class="mainbar3">
    <div style="padding:0px 10px 0px 10px;line-height:18px;height:18px;text-align : left;">
    <font class="redfont">■ 在线图例</font>:<xsl:for-each select="BoardList/grouppic/usergroup[@orders!=0]"><img src="{/BoardList/@picurl}{@titlepic}" alt=""/><xsl:value-of select="concat(' ',@usertitle)" /><xsl:if test="position()!=last() ">  ‖ </xsl:if></xsl:for-each>
    </div>
    <hr style="98%;"/>
    <div class="mainbar0" style="padding:5px 10px 5px 10px;line-height:18px;text-align : left;display:none;" id="onlinetr"></div>
    </div>
    <br />
    <div class="itableborder">
    <img src="{/BoardList/forum_setting/@pic_0}" align="absmiddle" alt="没有新的帖子" /> 没有新的帖子  <img src="{/BoardList/forum_setting/@pic_1}" align="absmiddle" alt="有新的帖子" /> 有新的帖子  <img src="{/BoardList/forum_setting/@pic_2}"  align="absmiddle" alt="被锁定的论坛" /> 被锁定的论坛
    </div>
    </xsl:template>
    </xsl:stylesheet>


    1

    <TABLE border="0" align=center cellPadding=3 cellSpacing=1 class=tableborder1>
      <TR>
          <TH align=left height=25> <DIV align=center>
              <p align="middle">最新主题列表</DIV></TH>
          <TH align=left height=25> <DIV align=center>
              <p align="middle">精华帖子列表</DIV></TH>
         <TH align=left height=25> <DIV align=center>
              <p align="middle">新进会员</DIV></TH>
         </TR>

    2

    <td width="33%"><table width="100%" border="0" cellPadding=3 cellSpacing=1 class=tableborder1>

    <tr>




    3

    <td width="12%"><table width="100%" border="0" cellPadding=3 cellSpacing=1 class=tableborder1>

    <tr>
    <td class="tablebody2" width="400" align="left">
    <img src="images/plus.gif"> <a href="dispuser.asp?id={$UserID}" target="_blank">{$UserName}</a>

    4

    第二步:动网默认风格分页面模板(page_index)界面风格管理template.html(0)找到如下代码:


    首 页 调 用 详 解

    作者:痴心无语   文章来自:空谷寻梦社区


         很多人都在问社区首页调用怎么设置,其实这是很简单的。在动网论坛虽然也有介绍这方面的文章,但都不是很系统,可能因为太简单而无人来写吧,正好无语今天有空,花了两个多小时写了这篇首页调用的文章,希望对初学者有所帮助,自认为大侠的老鸟们就别来凑热闹了,呵呵!!

         其实,关于首页调用无语已经在修改手记中说得很详细的了(自己认为),也可能修改手记中说的是本页调用,而空谷的首页调用却是跨页调用。

         下面无语就首页调用的诸多问题给大家详细而系统的讲一下,希望通过这篇文章,大家都可以很好地把调用项做起来,当然,也希望更多的人能自己给自己做一个漂亮的首页调用页,到时拿来给大家欣赏一下。

         好了,下面开讲,我们以空谷的首页为例,(其实空谷的首页调用已经基本包括所有项目的调用了)大家可以跟着无语一步一步做。

         如有不清楚的地方,或有什么疑问,请跟帖提问,无语有空会回来看看的。图片点击可在新窗口打开查看

         演示地址:http://www.koomv.com
     

         首先请进入论坛后台,点击“常规管理”中的“首页调用”,进入首页调用管理设置页面。

         第一项:论坛帖子调用

         我们以社区今日新帖为例。点击“添加首页调用”,增加一个空白的调用,如koomv_s01,此时出现首页调用的设置页面。

    ①调用标识名称:koomv_s01

         说明:这个标识自己爱怎么填就怎么填,填什么都无所谓,只要是英文和数字就好了,用中文可不行,无语在这里填的是koomv_s01。

    ②调用代码: <script src="Dv_News.asp?GetName=koomv_s01"></script>

         说明:聪明的你一定会看到,这句代码是自动生成的。。无语在这里特别需要说明的是,如果你只在论坛的首页调用今日最新贴,那就不必改了;如果你在另外的页面调用,比如空谷的首页调用(论坛是在BBS目录下),那么这句代码你就要手动改为:<script src="bbs/Dv_News.asp?GetName=koomv_s01"></script>;再往外扩充,如果你在其它域名下调用,那你就得全部域名都填上,改为:<script src="http://www.koomv.com/bbs/Dv_News.asp?GetName=koomv_s01"></script>

    ③调用说明:首页调用之最新贴调用

         说明:这个只是作一个说明作用,无关紧要,方便在管理时区分。

    ④调用类型:帖子调用

         说明:帖子调用类型包括帖子、信息、版块、会员、公告、展区六个部分,我们这里选择“帖子调用”。在设置调用项时一定首先要弄清楚你要调用什么,选择好调用类型,这一步很关键,因为选择了相应的调用类型下面的设置才能转为对应设置项。

    ⑤数据更新间隔:120 (单位:秒)

         说明:这是调用的更新时间,无语把它理解为每隔多少时间更新一次首页调用项的对应数据。提示一下,这个时间设置越短,调用项就会反复读库,这样就会消耗更多论坛资源,所以这个时间不宜太小。一般设为60~180为宜。

    ⑥时间显示格式:YYYY年M月D

         说明:这个是时间的设置,如果你想在调用内容后面显示发帖时间,那么可以从这里选择一种显示格式,这就不多说了。

    ⑦调用设置:

         显示记录数:[说明:此为调用记录数,就是你的这个首页调用要调用几条记录]

         标题长度:15   [说明:这个应该很好理解,就是你调用的文章标题显示多少字符,有些朋友这个设置过短,那自然标题就只显示几个字了,把这个数字改多一点就OK了。]

         帖子排序:按照时间(按最新主题时间)  [说明:这是排序方式,我们这里选为:按照时间(按最新主题时间),当然你也可以选择: 按照时间(按最新回复时间)<空谷首页的社区最新贴即是按最新回复时间显示的>]
     
         天数的限制:1 [说明:因为是今日新贴,所以查询的是一天的数据,呵呵,不过无语这里是留空的,为什么,如果当日无新贴的话,那么就会显示此项无调用数据了,所以为了使用首页调用有数据,无语建议这里留空,此时调用的就不是今日最新帖,而是最后发表的帖子] 

         显示的类型: 显示主题  [说明:我们这里选为“显示主题”,下面还有个“显示精华主题”,你一定在想,原来社区精华帖是这样调用来的,我也会,哈哈^_^]

         调用的版面:选取所有版面 [说明:这是你要具体调用哪一个版面的数据,你的论坛建了多少版块,在这里都会显示出来,你要做的就是点鼠标选择就行了,我们这里“选取所有版面”,因为要调用的是社区最新的帖子而非具体某一版块数据。]

         版面设置: 只显示该版面的数据 [说明:既然我们上面选择了所有版面,这里自然就选这个了,因为你的坛子建有N个版块,版块下面又有N个子版块,此时你可根据你的需要选择“显示该版面的下级所有版面的数据”或“显示该版面和下级所有版面的数据”。]
     
         版面的限制: 显示所有数据 [说明:一般我们设为“显示所有数据”,如果你的论坛有隐藏版块和认证版块,并且不希望普通会员看到你该版面的标题内容,那就选择“不显示特殊版面数据”,这样将不会调用这些版块的帖子] 
     
         单独用户ID:  [说明:说实话,这个无语也没用过,应该是具体调用某一会员或一些会员的帖子,有兴趣的可以试试]


    ⑧调用模板设置(请用HTML语法填写):这是很重要的一部分,一般会包插三个部分的内容。

         模板_开始标记部分:  [说明:此处为空。如果你想使用调用更漂亮,比如加入表格线之类的,可填入HTML代码,这个大家去好好发挥了。]

         模板_主体循环标记部分:

    <font face="Wingdings" color="#FFAA39">J</font> <a href="bbs/dispbbs.asp?boardid={$Boardid}&ID={$ID}&replyID={$ReplyID}" target="_blank" title="{$Topic}">{$Topic}</a>  [<a href="bbs/dispuser.asp?name={$UserName}" target="_blank"><font color="green">{$UserName}</font></a>]<br>

         说明:这是最重要的一部分,调不调用得上就看你这里设置得对不对,我们来解释一下这里的代码:

         第一句: <font face="Wingdings" color="#FFAA39">J</font>   [这一句就是那个笑脸的字符,用的Wingdings字体,你可以看看Wingdings字体里每个英文字母对应的符号,还是蛮有意思的。当然,如果你觉得不够漂亮,也可以使用图片,如:<img src="tumiab/e1open.gif"> ]

         第二句: <a href="bbs/dispbbs.asp?boardid={$Boardid}&ID={$ID}&replyID={$ReplyID}" target="_blank" title="{$Topic}">{$Topic}</a>  [这一句很重要,就是转到对应帖子的链接,注意到那个BBS/没有,很多人在做首页调用时都把这个给漏掉了,然后满天的乱嚷嚷帖子怎么转不到对应页面,看到这里如果你还乱嚷的话,小心无语用大棒子打你PP^_^,至于{}符号里的东西,左边的模板变量说明看看就知道是什么东东了。]

         第三句: [<a href="bbs/dispuser.asp?name={$UserName}" target="_blank"><font color="green">{$UserName}</font></a>]<br> [这一句跟第二句有些类似,上面是调用帖子的标题,这是调用该帖的作者,即username,是不是看到也要用那个bbs/,呵呵,为什么??去翻十万个为什么看看!!]

         模板_结束标记部分:  [说明:此处为空。]

         OK,一个首页调用做好了。最后点:提交!啊,忘了刚才的调用代码是什么了???别急,点“首页调用列表”,看到一个名称为koomv_s01的调用项没有??点后面的“编辑”按钮,进去看看不就知道了,如果你觉得不满意,可以反复编辑,直到满意为止。

    ⑨在首页中插入代码:

         调用项做好了,当然要用起来,把这句<script src="bbs/Dv_News.asp?GetName=koomv_s01"></script>代码插入到首页调用文件的对应位置就好了。

         天啦,千万不要问我对应位置在哪里,如果这个都不知道,无语建议你先去学三年HTML再来调了。。

    ⑩下面给大家一个带表格的调用模板设置,有兴趣的试试:

         模板_开始标记部分:

    <table align="center" cellpadding="3" cellspacing="1"  class="singleborder">

         模板_主体循环标记部分:

    <tr><td class="tablebody2" align="left"><img src="bbs/skins/default/topicface/{$Face}" alt="帖子心情" border="0"></td><td class="tablebody1" align="left"><a href="bbs/dispbbs.asp?boardid={$Boardid}&ID={$ID}&replyID={$ReplyID}" target="_blank" title="{$Topic}">{$Topic}</a></td><td class="tablebody2" align="center">{$UserName}</td></tr>

         模板_结束标记部分:

    </table>


         引申:

         从上面调用论坛最新贴的解说中我们可引申出调用论坛精华帖、热门帖(每周或每月热门)、具体版块帖子。

         下面将调用这几种帖子的不同给大家说说:

         ●精华帖调用设置●

         帖子排序:默认最新排序(推荐使用)
         显示的类型:显示精华主题
         调用的版面:选取所有版面

         ●热门帖调用设置●

         帖子排序:按照点击(最热帖)
         显示的类型:显示主题
         调用的版面:选取所有版面

         如果调用为每周或每月热门:

         天数的限制:7(或30)


         ●具体版块调用设置●

         帖子排序:默认最新排序(推荐使用)
         显示的类型:显示主题
         调用的版面:这里选择要具体调用的版块, [如果含子版块,可选择“显示该版面的下级所有版面的数据”或者“显示该版面和下级所有版面的数据”]

         第二项:论坛信息调用

         这个比较简单,无语就留着点口水了,在后台看看动网自带的演示就知道了,名称为:info

         在首页调用时只需把:

    <script src="Dv_News.asp?GetName=info"></script>

         改为:

    <script src="bbs/Dv_News.asp?GetName=info"></script>

         即可调用,当然你也可以改:模板_主体循环标记部分的这些信息:

    □- 主题总数 :{$TopicNum} <br>
    □- 论坛贴数 :{$PostNum} <br>
    □- 注册人数 :{$JoinMembers} <br>
    □- 论坛在线 :<font color="red">{$AllOnline}</font> <br>
    □- 新进会员 :<font color="red">{$LastUser} </font><br>
    □- 今日帖数 :<font color="red">{$TodayPostNum} </font><br>
    □- 昨日贴数 :{$YesterdayPostNum} <br>
    □- 高峰贴数 :<font color="red">{$TopPostNum} </font><br>
    □- 最高在线 :<font color="red">{$TopOnline} </font><br>
    □- 建站时间 :{$BuildDay} <br>
    [此贴子已经被作者于2006-7-29 9:52:29编辑过]
    图片点击可在新窗口打开查看
    我们不用相识——
    我们不会相识——
    我们只是网络中的一条寻觅的虫!
    www.koomv.com
    <script language="javascript" type="text/javascript"></script>
    图片点击可在新窗口打开查看
    图片点击可在新窗口打开查看
    2006-7-15 13:44:32
    痴心无语
    图片点击可在新窗口打开查看
    <script language="javascript" type="text/javascript"></script>
    图片点击可在新窗口打开查看
    图片点击可在新窗口打开查看
    头衔:郁闷中……灌水
    等级:蜘蛛侠
    文章:1055
    积分:7400
    门派:无门无派
    注册:2004年5月22日
    2
     图片点击可在新窗口打开查看 图片点击可在新窗口打开查看 QQ 图片点击可在新窗口打开查看 图片点击可在新窗口打开查看

    图片点击可在新窗口打开查看

         第三项:论坛版面调用

         这个也是比较简单的,一般我们使用动网自带的演示就好了,论坛信息调用有两种模式,一种为树型结构,一种为地图结构,调用标识分别为boardlist1boardlist2,我们只要应用就好了,但别忘了加上bbs/,如下:

    <script src="Dv_News.asp?GetName=boardlist1"></script>

         还有模板_主体循环标记部分应改为:

    <a href="bbs/index.asp?boardid={$BoardID}" target="_blank" title="欢迎参观!">{$BoardName}</a>

         否则链接不到对应版块。


         第四项:论坛会员调用

         以最新加入会员为例,新增一个调用项,标识为:koomv_hy01,以下是具体设置:

         调用标识名称:koomv_hy01 
         调用代码: <script src="Dv_News.asp?GetName=koomv_hy01"></script> [自动生成,请手动在Dv_news.asp前加bbs/]   
         调用说明:会员调用(新加入会员)   
         调用类型:会员调用  
         数据更新间隔:120 (单位:秒) 
         时间显示格式:YYYY年M月D  

         调用设置 
         显示记录数:13  
         会员排序:按注册时间  [说明:因为我们调用的是最新会员,所以选择按注册时间排序]

         模板_开始标记部分:
         模板_主体循环标记部分:

    <font face="Wingdings" color="#FFAA39">J</font><font color="gray"> 欢迎</font> <a href="bbs/dispuser.asp?id={$UserID}" target="_blank">{$UserName}</a> <font color="gray"> {$UserSex}加入</font><br>

         模板_结束标记部分:


         引申:

         会员调用也可以灵活运用。比如,调用发帖排行、富翁排行等都可调用出来。下面看看:

         ●发帖排行调用设置●

         会员排序:按用户文章(也可选择“按用户主题”)
         模板_主体循环标记部分:

    <font face="Wingdings" color="#FFAA39">V</font>  <a href="bbs/dispuser.asp?id={$UserID}" target="_blank">{$UserName}</a>   [<font color="#red">{$UserPost}<font color="red">|</font>{$UserBest}</font>]<br>

         这段代码在会员的后面依次显示了该用户的发帖数和精华文章数

         ●富翁排行调用设置●

         会员排序:按用户金钱
         模板_主体循环标记部分:

    <font face="Wingdings" color="#FFAA39">V</font>  <a href="bbs/dispuser.asp?id={$UserID}" target="_blank">{$UserName}</a>   [<font color="red">{$UserWealth}</font>]<br>

         这段代码在会员的后面显示了该用户的金钱数据

         其它的大家可以自由发挥,因为还有很多,你可以按经验、魅力、登陆次数排序等等,只要你想调用都可以的,呵呵…… 

         第五项:论坛公告调用

         以空谷首页的公告调用为例。新增一个公告调用项为:koomv_sgg


         调用标识名称: koomv_sgg   
         调用代码: <script src="bbs/Dv_News.asp?GetName=koomv_sgg"></script>    
         调用说明:首页调用之公告调用  
         调用类型:公告调用 
         数据更新间隔:120  (单位:秒) 
         时间显示格式:YYYY年M月D

         调用设置

         显示记录数:5  
         标题长度:100  
         调用的版面:选取所有版面 [当然你还可以具体调用某一版面或某一版区的公告。]

         模板_开始标记部分:

    <marquee id="shownews" direction="left" scrollamount="2" scrolldelay="1" hspace="0" vspace="0">

         模板_主体循环标记部分:

    <img src="bbs/tumiab/dog.gif"> <a href="bbs/announcements.asp?action=showone&boardid={$Boardid}&id={$ID}" target="_blank" title="发表人:{$UserName}  时间:{$PostTime}" onmouseover="document.getElementById('shownews').stop();" onmouseout="document.getElementById('shownews').start();">{$Topic}</a>       

         模板_结束标记部分:

    </marquee> 

         此为滚动公告,前面一张小狗的图片,自己另存为即可,如果使用空谷美化版的,会自带有这张图片的;你也可以改成其它的漂亮图图啦。改这句代码就好: <img src="bbs/tumiab/dog.gif">
     


         第六项:论坛展区调用

         论坛展区可以调用图片、文件、FLASH、电影、音乐等,我们使用最多的就是图片的调用,那当然以图片为例来讲了。

         新增一个调用标识为koomv_s02的调用项,以下是设置和说明:

         调用标识名称:koomv_s02   
         调用代码:<script src="bbs/Dv_News.asp?GetName=koomv_s02"></script>    
         调用说明:首页调用之社区图片  
         调用类型:展区调用  
         数据更新间隔:120  (单位:秒) 
         时间显示格式:YYYY年M月D  

         调用设置
     

         显示记录数:12  [说明:调用12张图片,图片必须是通过本地上传的,否则不能调用,到时不要说我帖了那么多图片怎么一张也调不出来。]
         每行显示个数:4 [说明:12张图片就分为三行显示了,每行4张。]
         标题长度: [说明:这里留空,如果你要在图片下面显示标题,在这里填入数字,无语不推荐使用] 
         调用的版面: ★贴图区★  [因为一个社区的图片可能会很多,所以无语这里只设置调用“贴图区”的图片,如果你要调用所用版面的图片,可选择:“选取所有版面”]
         版面限制设置:该版面的下级版面 [因为贴图区为区版名,所以这里选择这个,如果你的区版允许贴图的话,也可选择:“该版及下级所有版面”]  
         版面的限制: 显示所有数据 
         调用文件类型:图片集 [这个不用说了吧,呵呵,要调用什么就选择什么了啦。] 
         显示排序: 默认

         模板_开始标记部分:

    <marquee onMouseOver=this.stop() onMouseOut=this.start() border=0 align=middle scrollamount=1 direction=up scrolldelay=60 behavior=scroll width="100%" height="100%">
    <table border="0" cellspacing="1" cellpadding="3" align=center width="100%"><tr>

         模板_主体循环标记部分:

         展区特殊设置

         图片宽度:120 象素 
         图片高度:120 象素 
         交替颜色1:空  
         交替颜色2:
         换行标记: </tr><tr> [注:一定不要漏掉了哦]

         代码如下:

    <td align="center" style="background-color:{$TColor}">
    <a href="bbs/fileshow.asp?boardid={$Boardid}&id={$ID}" title="主    题:{$Readme} 提供者:{$UserName} 被浏览:{$ViewNum} 次时    间:{$AddTime}" target="_blank">{$Filename}</a>
    </td>

         模板_结束标记部分:

    </tr></table></marquee>

         这是水平向上滚动的图片调用,如果你要改变滚动方向,只需改“模板_开始标记部分”中的这句代码即可:direction=up 向上,direction=left 向左,direction=right 向右。

         引申

         调用文件集、FLASH集、音乐集、电影集只需调用文件类型选择下就好了,当然你还可以调用比如社区热图之类的。如下:

         ●社区热图调用设置●

         调用文件类型:图片集
         显示排序:按浏览次数


    Apabi论坛欢迎你  http://bbs.apabi.com
  • 相关阅读:
    CF293E Close Vertice
    [SCOI2016]幸运数字
    [NOI2003]逃学的小孩
    0302读后感
    1231递归下降语法分析
    1210-有穷自动机
    11.12 评论汇总
    1029语言文法
    0921 词法分析
    0909开启编译原理之路
  • 原文地址:https://www.cnblogs.com/cy163/p/637217.html
Copyright © 2011-2022 走看看