page_index template.html(0)
1. 找到
<xsl:template match="/">
上面添加:
<xsl:variable name="m_script">
<![CDATA[<script language="JavaScript" type="text/JavaScript">
function jumpmaster(targ,selObj,restore){
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
</script>
]]>
</xsl:variable>
2.找到
<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:otherwise>
<xsl:value-of select="$m_script" disable-output-escaping="yes"/>
<div style="margin-top:8px;">
<select name="m" size="1" style="width:80px;" onChange="jumpmaster('self',this,1)">
<option>版主列表</option>
<xsl:for-each select="/BoardList/boardmaster[@boardid=$boardid]/master">
<option value="/Dispuser.asp?name={.}">
<xsl:value-of select="."/>
</option>
</xsl:for-each>
</select>
</div>
</xsl:otherwise>
评论