📄 editthread.jsp
字号:
<%@page contentType="text/html; charset=gb2312" %>
<%@page import="org.redsoft.forum.ForumConstants"%>
<%@page import="org.redsoft.forum.web.Thread"%>
<%@page import="org.redsoft.forum.util.StringUtils"%>
<%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %>
<%
// Get the thread
Thread thread = (Thread)request.getAttribute( ForumConstants.MY_THREAD_PARAM );
String subject = "";
String content = "";
boolean notify = false;
if( thread != null){
subject = thread.getTitle();
content = thread.getContent();
notify = thread.getNotify();
}
// Get the thread id
String threadID = request.getParameter( ForumConstants.THREAD_ID_PARAM );
%>
<html:errors/>
<form method="post" name="EditThreadForm" action="/forum/editThread.go">
<input type=hidden name="threadID" value="<%=threadID%>">
<TABLE cellSpacing="0" cellPadding="0" border="0" width="100%" align="center">
<TR style="height:40">
<TD bgColor="#ffffff" colSpan="11" style="width:100%">
<TABLE cellSpacing="0" cellPadding="4" width="100%" border="0" class="headstyle11" align="center" bgcolor="#f0f5ff">
<TBODY valign="bottom" align="center">
<TR style="height:30" bgcolor="#f0f5ff">
<TD align="left" style="width:88%">
<FONT color="#224499" size="3"><b> 修改帖子</b></FONT>
</TD>
<TD style="width:12%">
<A class="NavMenu" href="viewMyThreads.go"><u>我的帖子</u></A>
</TD>
</TR>
<TR style="height:10">
<TD style="width:100%" colspan=2>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR bgcolor="#ccccef">
<TD colSpan="11" style="width:100%">
<TABLE cellSpacing="4" cellPadding="4" width="100%" border="0" class="headstyle11" align="center">
<TBODY valign="bottom" align="center">
<TR style="height:30">
<TD align="left" style="width:7%">
<FONT color="#0000cc" size="2">标题:</FONT>
</TD>
<TD align="left" style="width:93%">
<input type="text" name="<%=ForumConstants.SUBJECT%>" size="70" value="<%=subject%>" maxlength="44">
</TD>
</TR>
<TR>
<TD align="left" style="width:100%" colspan="2">
<textarea name="content" rows="20" cols="90" wrap="HARD" tabindex="2"><%=content%></textarea>
</TD>
</TR>
<TR>
<TD align="left" style="width:100%" colspan="2">
<% if (thread.getNotify()) { %>
<input type=checkbox name="notify" value="Y" checked=1> 如果有回复,Email通知我
<% }else{ %>
<input type=checkbox name="notify" value="Y"> 如果有回复,Email通知我
<% } %>
</TD>
</TR>
<TR>
<TD align="left" style="width:100%" colspan="2" valign="bottom">
<input class="Button" type="submit" id="btnLogon" name="btnLogon" value="发表">
<input class="Button" type="reset" id="btnClear" name="btnClear" value="清除" style="HEIGHT: 23px; WIDTH: 50px; COLOR: #ffffff; FONT-FAMILY: 宋体; BACKGROUND-COLOR: #3366cc; TEXT-ALIGN: center">
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</form>
<script language="javascript">
document.EditThreadForm.subject.focus();
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -