📄 post.res
字号:
${res.moex.twinbbs.template.web.head}
<div id="nav">
<xsl:apply-templates select="navs" />
</div>
<script language="javascript">
var fe = new ImageTable("topicface", 22, 22, 4, 4, 4);
var em = new ImageTable("emote", 19, 19, 1, 10, 5);
TBBS.lang['upload_exists'] = '${lang.upload_exists}';
TBBS.lang['cent_for_read'] = '${lang.cent_for_read}';
TBBS.lang['coin_for_read'] = '${lang.coin_for_read}';
TBBS.lang['intro'] = '${lang.intro}';
TBBS.lang['delete'] = '${lang.delete}';
TBBS.lang['insert'] = '${lang.insert}';
TBBS.lang['cancel'] = '${lang.cancel}';
</script>
<script language="javascript" src="include/post.js"></script>
<moex:form id="postform" action="${vars.action_addr}" method="post" enctype="multipart/form-data">
<input type="hidden" name="face" value="0" />
<div class="nav1">
<div class="nav2">${vars.handle_name}</div>
<div class="nav3">
<xsl:choose>
<xsl:when test="vars/@state = 2">
<xsl:apply-templates select="hint" />
<center><moex:input type="button" onclick="location.href='index.asp'" value="${lang.back}" class="btn" /></center>
</xsl:when>
<xsl:otherwise>
<table width="100%" border="1" cellpadding="2" cellspacing="0">
<xsl:if test="vars/@state = 1">
<tr>
<td colspan="2" id="hint">
<h3><font color="#FF0000">${vars.failed}</font></h3>
<xsl:apply-templates select="hint" />
</td>
</tr>
</xsl:if>
<tr>
<td width="200">${lang.title}</td>
<td><moex:input type="text" name="title" value="${vars.title}" size="40" class="txt" /> <img id="_topicface" src="images/topicface/0.gif" /> <label>${lang.hint_topic_title}</label></td>
</tr>
<tr>
<td valign="top">
<div>
${lang.content}<br/>
${lang.tag_ubb}: <xsl:choose><xsl:when test="contains(env/@ubb, 'topic')">${lang.enable}</xsl:when><xsl:otherwise><font color="#FF0000">${lang.unable}</font></xsl:otherwise></xsl:choose><br/>
${lang.tag_html}: <xsl:choose><xsl:when test="contains(env/@html, 'topic')">${lang.enable}</xsl:when><xsl:otherwise><font color="#FF0000">${lang.unable}</font></xsl:otherwise></xsl:choose><br/>
${lang.max_posts}: <xsl:choose><xsl:when test="env/@max_posts > 0">${env.max_posts}</xsl:when><xsl:otherwise>${lang.unlimit}</xsl:otherwise></xsl:choose><br/>
${lang.today_posts}: <xsl:choose><xsl:when test="user/@lastposttime > vars/@date">${user.todayposts}</xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose><br/>
${lang.upload_once}: <xsl:value-of select="user/permit/@upload_once" /><br/>
${lang.upload_max}: <xsl:value-of select="user/permit/@upload_max - //user/@uploads" /><br/>
</div>
<div>
<div class="nav2">${lang.topicface}</div>
<div id="postface"></div>
</div>
</td>
<td valign="top">
<div>
<moex:input type="hidden" id="content" name="content" value="${vars.content}" />
<moex:input type="hidden" id="contentConfig" value="${vars.contentConfig}" />
<iframe id="contentFrame" name="contentFrame" src="weditor/editor/weditor.html?Name=content" width="100%" height="300" frameborder="0" scrolling="no"></iframe>
</div>
<div><label>${lang.hint_topic_content}</label></div>
<div>
<div class="nav2">${lang.emote}</div>
<div id="emote"></div>
</div>
<div id="upload">
<div id="control">${lang.upload_allow}: <xsl:choose><xsl:when test="forums/forum[@seqid = //vars/@forum_crt_id]/@allow"><xsl:value-of select="forums/forum[@seqid = //vars/@forum_crt_id]/@allow" /></xsl:when><xsl:otherwise>${env.allow}</xsl:otherwise></xsl:choose><br/>一次最多上传${permit.upload_once}个文件,每个文件不超过${permit.upload_size} KB<br/>${lang.upload_file}: <input type="file" id="file1" name="file1" onchange="upload.select()" unselectable="on" /></div>
<div id="local1"></div>
</div>
</td>
</tr>
<xsl:if test="contains(env/@validate, 'post')">
<tr>
<td><h3>${lang.validate}</h3></td>
<td><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}</td>
</tr>
</xsl:if>
<tr>
<td colspan="2" style="text-align: center"><moex:input type="submit" value="${lang.confirm}" class="btn" /></td>
</tr>
</table>
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<xsl:if test="vars/@handle = 'edit' and topic/upload">
<div class="nav1">
<div class="nav2">${lang.attach}</div>
<table width="100%" border="1" cellpadding="5" cellspacing="0" bordercolor="#E1F0FF">
<xsl:if test="vars/@state = 1 or vars/@state = 2">
<tr>
<td colspan="4" id="hint">
<xsl:if test="vars/@state = 1">
<h3><font color="#FF0000">${lang.del_file_failed}</font></h3>
</xsl:if>
<xsl:apply-templates select="hint" />
</td>
</tr>
</xsl:if>
<tr>
<td colspan="4">
<table width="100%" border="1" cellpadding="5" cellspacing="0" bordercolor="#E1F0FF">
<tr bgcolor="#AAD5FF">
<th width="30">${lang.delete}</th>
<th>${lang.file_name}</th>
<th width="80">${lang.file_size}</th>
<th width="120">${lang.uptime}</th>
<th width="80">${lang.cent_for_read}</th>
<th width="80">${lang.coin_for_read}</th>
<th width="150">${lang.intro}</th>
</tr>
<xsl:for-each select="topic/upload">
<tr>
<td width="30" align="center">
<moex:input type="checkbox" name="id" value="${$.seqid}" />
<moex:input type="hidden" name="seqid" value="${$.seqid}" />
</td>
<td>
<moex:input type="button" value="${lang.insert}" onclick="upload.insert('upload', ${$.seqid})" class="btn" />
<moex:input type="button" value="${lang.update}" onclick="upload.update(this, ${$.seqid})" class="btn" />
<moex:img src="images/filetype/${$.upext}.gif" />
<moex:a href="download.asp?id=${$.seqid}" target="_blank">${$.upname}</moex:a>
(${lang.downloads}: ${$.downloads})
</td>
<td width="80" align="right"><xsl:value-of select="format-number(./@upsize div 1024, '#.##')" /> KB</td>
<td width="120" align="right">${moex:format_time(./@uptime, 'Y-m-d H:i:s')}</td>
<td width="80" align="center">
<moex:input type="text" name="cent" value="${$.cent}" style="width: 90%" />
</td>
<td width="80" align="center">
<moex:input type="text" name="coin" value="${$.coin}" style="width: 90%" />
</td>
<td width="150" align="center">
<moex:input type="text" name="intro" value="${$.intro}" style="width: 90%" />
</td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</table>
</div>
</xsl:if>
</moex:element>
${res.moex.twinbbs.template.web.foot}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -