📄 forum.res
字号:
${res.moex.twinbbs.template.web.head}
<div id="nav">
<xsl:apply-templates select="navs" />
<p>${lang.master}: <xsl:choose><xsl:when test="forums/forum[@seqid = //vars/@forum_crt_id]/@master != ''"><xsl:apply-templates select="forums/forum[@seqid = //vars/@forum_crt_id]/master" /></xsl:when><xsl:otherwise>${lang.no_master}</xsl:otherwise></xsl:choose></p>
<p><xsl:apply-templates select="bulletins/bulletin[@forumid = //vars/@forum_crt_id]" mode="title" /></p>
</div>
<xsl:if test="forums/forum/@follow = //vars/@forum_crt_id">
<div id="forums">
<div class="nav1">
<div class="nav2">${lang.forums}</div>
<div class="nav3">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th>${lang.forum}</th>
<td class="nums">${lang.topics}</td>
<td class="nums">${lang.replies}</td>
<td class="lastpost">${lang.last_post}</td>
</tr>
</thead>
<tbody>
<xsl:for-each select="forums/forum[@follow = //vars/@forum_crt_id]">
<tr>
<th><h3><moex:a href="forum.asp?id=${$.seqid}">${$.name}</moex:a><xsl:if test="./@lastposttime > //vars/@date and ./@todayposts > 0"><em>(${lang.today_posts}: ${$.todayposts})</em></xsl:if></h3><span>${$.intro}</span></th>
<td class="nums">${$.topics}</td>
<td class="nums">${$.replies}</td>
<td class="lastpost"><xsl:if test="./@lastpostid > 0"><moex:a href="topic.asp?fid=${$.seqid}&id=${$.lastpostid}"><xsl:choose><xsl:when test="./@lastposttitle != ''">${$.lastposttitle}</xsl:when><xsl:otherwise>${moex:format_time(./@lastposttime, 'Y-m-d H:i')}</xsl:otherwise></xsl:choose></moex:a><br/>by <moex:a href="user.asp?name=${$.lastpostusername}">${$.lastpostusername}</moex:a>${moex:format_time(./@lastposttime, 'Y-m-d H:i')}</xsl:if></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</div>
</div>
</xsl:if>
<div id="topicmenu">
<div id="left">
<moex:div id="imgbtn" class="newtopic" title="${lang.new_topic}" onclick="location.href='post.asp?handle=topic&fid=${vars.forum_crt_id}'"><![CDATA[ ]]></moex:div>
<!--moex:div id="imgbtn" class="newvote" title="${lang.new_vote}" onclick="location.href='post.asp?handle=vote&fid=${vars.forum_crt_id}'"><![CDATA[ ]]></moex:div-->
</div>
<div id="right">
<div id="txtbtn" class="leftbtn">xhtml</div>
<div id="txtbtn" class="leftbtn">RSS 2.0</div>
</div>
</div>
<div id="topics">
<div class="nav2"><xsl:value-of select="forums/forum[@seqid = //vars/@forum_crt_id]/@name" /></div>
<div class="nav3">
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<thead>
<tr>
<th>${lang.topic}</th>
<td>${lang.author}</td>
<td class="nums">${lang.replies}</td>
<td class="nums">${lang.hits}</td>
<td class="lastpost">${lang.last_post}</td>
</tr>
</thead>
<tbody>
<xsl:for-each select="topics/topic">
<tr>
<th><moex:a href="topic.asp?fid=${$.forumid}&id=${$.seqid}">${$.title}</moex:a></th>
<td class="author"><moex:a href="user.asp?name=${$.username}">${$.username}</moex:a></td>
<td class="nums">${$.replies}</td>
<td class="nums">${$.hits}</td>
<td class="lastpost"><xsl:if test="./@lastpostid > 0"><moex:a href="topic.asp?fid=${$.forumid}&id=${$.lastpostid}"><xsl:choose><xsl:when test="./@lastposttitle != ''">${$.lastposttitle}</xsl:when><xsl:otherwise>${moex:format_time(./@lastposttime, 'Y-m-d H:i')}</xsl:otherwise></xsl:choose></moex:a><br/>by <moex:a href="user.asp?name=${$.lastpostusername}">${$.lastpostusername}</moex:a> at ${moex:format_time(./@lastposttime, 'Y-m-d H:i')}</xsl:if></td>
</tr>
</xsl:for-each>
</tbody>
<tbody id="pages">
<tr>
<td colspan="5">
<xsl:apply-templates select="page" mode="page0" />
</td>
</tr>
</tbody>
</table>
</div>
</div>
<xsl:if test="user/@logined = 1">
<script language="javascript">
var fe = new ImageTable("topicface", 22, 22, 4, 4, 4);
var em = new ImageTable("emote", 19, 19, 4, 4, 5);
</script>
<script language="javascript" src="include/post.js"></script>
<moex:form id="postform" action="post.asp?handle=topic&fid=${vars.forum_crt_id}" method="post">
<input type="hidden" name="face" value="0" />
<div class="nav1" style="background-color:#F7FBFF">
<div class="nav2">${lang.quick_topic}</div>
<div class="nav3" style="overflow:hidden">
<div id="left" class="postface">
<div class="nav2">${lang.topicface}</div>
<div id="postface"></div>
</div>
<div id="left" class="postform">
<p><label>${lang.title}</label> <input type="text" name="title" size="50" /> <img id="_topicface" src="images/topicface/0.gif" /></p>
<p><label>${lang.content}</label> <textarea id="content" name="content"></textarea></p>
<xsl:if test="contains(env/@validate, 'post')">
<p><label>${lang.validate}</label> <input type="text" name="validate" size="5" /> <img src="validate.asp" border="0" align="absMiddle" onclick="this.src='validate.asp?' + Math.floor(Math.random() * 9999)" style="cursor:pointer" /> ${lang.hint_validate}</p>
</xsl:if>
<p><moex:input type="submit" value="${lang.confirm}" class="btn" /></p>
</div>
<div id="left" class="postemote">
<div class="nav2">${lang.emote}</div>
<div id="emote"></div>
</div>
</div>
</div>
</moex:form>
</xsl:if>
${res.moex.twinbbs.template.web.foot}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -