后台-风格管理-page_index-template.html(0)
<?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 d***.net Lao Mi
Web:
http://www.a****.net/,
http://www.d***.net/ Email: eway@a****.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;width: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&thisvalue=0&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&thisvalue=1&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&thisvalue=0&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&thisvalue=1&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() > $positions and position() < ($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;width:<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() > $positions and position() < ($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;width:<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() > ($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}&ID={information/@lastpost_6}&replyID={information/@lastpost_1}&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}&ID={information/@lastpost_6}&replyID={information/@lastpost_1}&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}"><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 selec