📄 post.jsp
字号:
<table cellpadding="4" cellspacing="0" border="0">
<tr>
<td align="right">
<font size="-1">Subject</font>
</td>
<td>
<input type="text" name="subject" value="<%= ((subject!=null)?subject:"") %>" size="40" maxlength="75">
</td>
</tr>
<% if (reply) { %>
<tr>
<td> </td>
<td>
<table cellpadding="0" cellspacing="0" border="0">
<td>
<font size="-1">
<a href="post.jsp?forum=<%=forumID%>&thread=<%=threadID%>&message=<%=messageID%>&reply=<%=reply%>"e=true"
>[quote original]</a>
</font>
</td>
</table>
</td>
</tr>
<% } %>
<script language="JavaScript" type="text/javascript">
<!--
function tag(el, theTag) {
if (theTag == 'b') {
el.value += "[b][/b]";
} else if (theTag == 'i') {
el.value += "[i][/i]";
} else if (theTag == 'u') {
el.value += "[u][/u]";
} else if (theTag == 'code') {
el.value += "\n[code]\n// your java code here\n[/code]";
} else if (theTag == 'image') {
var url = prompt("Please enter an image URL","http://");
if (url != null) {
el.value += "[img]" + url + "[/img]";
}
} else if (theTag == 'link') {
var url = prompt("Please enter a link URL","http://");
var text = prompt("Please enter the text of the link");
if (url != null) {
if (text != null) {
el.value += "[link=" + url + "]" + text + "[/link]";
} else {
el.value += "[link]" + url + "[/link]";
}
}
}
}
//-->
</script>
<tr>
<td> </td>
<td>
<table cellpadding="0" cellspacing="0" border="0">
<tr><td>
<%= printBox("<b>B</b>","javascript:tag(document.postForm.body,'b')",buttonBorderColor,buttonBgColor,buttonBorderColorHover,buttonBgColorHover,"") %>
</td>
<td><img src="images/blank.gif" width="5" height="1" border="0"></td>
<td>
<%= printBox("<i>i</i>","javascript:tag(document.postForm.body,'i')",buttonBorderColor,buttonBgColor,buttonBorderColorHover,buttonBgColorHover,"") %>
</td>
<td><img src="images/blank.gif" width="5" height="1" border="0"></td>
<td>
<%= printBox("<u>U</u>","javascript:tag(document.postForm.body,'u')",buttonBorderColor,buttonBgColor,buttonBorderColorHover,buttonBgColorHover,"") %>
</td>
<td><img src="images/blank.gif" width="5" height="1" border="0"></td>
<td>
<%= printBox("<u>code</u>","javascript:tag(document.postForm.body,'code')",buttonBorderColor,buttonBgColor,buttonBorderColorHover,buttonBgColorHover,"") %>
</td>
<%--
<td><img src="images/blank.gif" width="5" height="1" border="0"></td>
<td>
<%= printBox("image","javascript:tag(document.postForm.body,'image')",buttonBorderColor,buttonBgColor,buttonBorderColorHover,buttonBgColorHover,"") %>
</td>
<td><img src="images/blank.gif" width="5" height="1" border="0"></td>
<td>
<%= printBox("link","javascript:tag(document.postForm.body,'link')",buttonBorderColor,buttonBgColor,buttonBorderColorHover,buttonBgColorHover,"") %>
</td>
--%>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" align="right">
<font size="-1">
<% if (reply) { %>
Your Reply
<% } else { %>
Message:
<% } %>
</font>
</td>
<% if (quote) {
String pBody = parentMessage.getUnfilteredBody();
if( pBody != null ) {
body = SkinUtils.quoteOriginal(pBody,"> ",54);
body += "\n";
}
}
%>
<td>
<textarea name="body" wrap="virtual" cols="55" rows="10"><%= ((body!=null)?body:"") %></textarea>
</td>
</tr>
<tr>
<td> </td>
<td>
<% if (!preview) { %>
<input type="submit" value="Preview" name="postButton">
<% } else { %>
<input type="submit" value="Go Back/Edit" name="postButton">
<% } %>
<input type="submit" value="Post!" name="postButton">
</td>
</tr>
</table>
<script language="JavaScript" type="text/javascript">
<!--
<% if (subject == null) { %>
document.postForm.subject.focus();
<% } else { %>
document.postForm.body.focus();
<% } %>
//-->
</script>
<% } else if (preview && !errors) { // end if(!preview)
// Message Preview:
%>
<% if (!reply) { %>
<b><%= newMessage.getSubject() %></b>
<p>
<% } %>
<% User author = newMessage.getUser();
%>
<% if (!reply) { // new root message %>
<table bgcolor="<%= tableBorderColor %>" cellpadding="0" cellspacing="0" border="0" width="98%" align="center">
<tr><td>
<table bgcolor="<%= tableBorderColor %>" cellpadding="4" cellspacing="1" border="0" width="100%">
<tr bgcolor="<%= tableRowColor2 %>">
<td width="1%" rowspan="2" valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="140">
<tr><td>
<font size="-1">
<% if (author == null) { %>
<i>Guest</i>
<% } else { %>
<a href="profile.jsp?user=<%= author.getID() %>"
><b><%= author.getUsername() %></b></a>
<br><br>
Posts: <%= userManager.userMessageCount(author) %>
<br>
From:
<br>
Since: <%= shortDateFormatter.format(author.getCreationDate()) %>
<br>
<% } %>
</font>
</td>
</tr>
</table>
</td>
<td width="98%">
<font size="-1">
Date Posted: <%= SkinUtils.formatDate(request,response,pageUser,newMessage.getCreationDate()) %>
</font>
</td>
<td width="1%" nowrap align="center">
<font size="-1" color="#666666">
<b>» Reply</b>
</font>
</td>
</tr>
<tr bgcolor="<%= tableRowColor2 %>">
<td width="99%" colspan="3" valign="top">
<font size="-1">
<%= newMessage.getBody() %>
</font>
<p>
</td>
</tr>
</table>
</td></tr>
</table><br>
<% } else { // if reply %>
<table bgcolor="<%= tableBorderColor %>" cellpadding="0" cellspacing="0" border="0" width="98%" align="center">
<tr><td>
<table bgcolor="<%= tableBorderColor %>" cellpadding="4" cellspacing="1" border="0" width="100%">
<tr bgcolor="<%= tableRowColor1 %>">
<td width="1%" rowspan="2" valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="140">
<tr><td>
<font size="-1">
<% if (author == null) { %>
<i>Guest</i>
<% } else { %>
<a href="profile.jsp?user=<%= author.getID() %>"
><b><%= author.getUsername() %></b></a>
<br><br>
Posts: <%= userManager.userMessageCount(author) %>
<br>
From:
<br>
Since: <%= shortDateFormatter.format(author.getCreationDate()) %>
<br>
<% } %>
</font>
</td>
</tr>
</table>
</td>
<td width="98%">
<font size="-1">
<b><%= newMessage.getSubject() %></b>
<br>
Date Posted: <%= SkinUtils.formatDate(request,response,pageUser,newMessage.getCreationDate()) %>
</font>
</td>
<td width="1%" nowrap align="center">
<font size="-1" color="#666666">
<b>» Reply</b>
</font>
</td>
</tr>
<tr bgcolor="<%= tableRowColor1 %>">
<td width="99%" colspan="3" valign="top">
<font size="-1">
<%= newMessage.getBody() %>
</font>
<p>
</td>
</tr>
</table>
</td></tr>
</table><br>
<% } %>
<p>
<% if (!preview) { %>
<input type="submit" value="Preview" name="postButton">
<% } else { %>
<input type="submit" value="Go Back/Edit" name="postButton">
<% } %>
<input type="submit" value="Post!" name="postButton">
<% } // end else %>
</form>
<p>
<% if (reply && !preview) { %>
<font size="-1">
<b>Original Message</b>
</font>
<p>
<% User author = parentMessage.getUser();
long parentForumID = parentMessage.getForumThread().getForum().getID();
long parentThreadID = parentMessage.getForumThread().getID();
long parentID = parentMessage.getID();
boolean parentIsRoot = (parentMessage.getForumThread().getRootMessage().getID() == parentID);
%>
<% if (parentIsRoot) { %>
<table bgcolor="<%= tableBorderColor %>" cellpadding="0" cellspacing="0" border="0" width="98%" align="center">
<tr><td>
<table bgcolor="<%= tableBorderColor %>" cellpadding="4" cellspacing="1" border="0" width="100%">
<tr bgcolor="<%= tableRowColor2 %>">
<td width="1%" rowspan="2" valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="140">
<tr><td>
<font size="-1">
<% if (author == null) { %>
<i>Guest</i>
<% } else { %>
<a href="profile.jsp?user=<%= author.getID() %>"
><b><%= author.getUsername() %></b></a>
<br><br>
Posts: <%= userManager.userMessageCount(author) %>
<br>
From:
<br>
Since: <%= shortDateFormatter.format(author.getCreationDate()) %>
<br>
<% } %>
</font>
</td>
</tr>
</table>
</td>
<td width="98%">
<font size="-1">
Date Posted: <%= SkinUtils.formatDate(request,response,pageUser,parentMessage.getCreationDate()) %>
</font>
</td>
<td width="1%" nowrap align="center">
<font size="-1" color="#666666">
<b>» Reply</b>
</font>
</td>
</tr>
<tr bgcolor="<%= tableRowColor2 %>">
<td width="99%" colspan="3" valign="top">
<font size="-1">
<%= parentMessage.getBody() %>
</font>
<p>
</td>
</tr>
</table>
</td></tr>
</table><br>
<% } else { // parent isn't root %>
<table bgcolor="<%= tableBorderColor %>" cellpadding="0" cellspacing="0" border="0" width="98%" align="center">
<tr><td>
<table bgcolor="<%= tableBorderColor %>" cellpadding="4" cellspacing="1" border="0" width="100%">
<tr bgcolor="<%= tableRowColor1 %>">
<td width="1%" rowspan="2" valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="140">
<tr><td>
<font size="-1">
<% if (author == null) { %>
<i>Guest</i>
<% } else { %>
<a href="profile.jsp?user=<%= author.getID() %>"
><b><%= author.getUsername() %></b></a>
<br><br>
Posts: <%= userManager.userMessageCount(author) %>
<br>
From:
<br>
Since: <%= shortDateFormatter.format(author.getCreationDate()) %>
<br>
<% } %>
</font>
</td>
</tr>
</table>
</td>
<td width="98%">
<font size="-1">
Date Posted: <%= SkinUtils.formatDate(request,response,pageUser,parentMessage.getCreationDate()) %>
</font>
</td>
<td width="1%" nowrap align="center">
<font size="-1" color="#666666">
<b>» Reply</b>
</font>
</td>
</tr>
<tr bgcolor="<%= tableRowColor1 %>">
<td width="99%" colspan="3" valign="top">
<font size="-1">
<%= parentMessage.getBody() %>
</font>
<p>
</td>
</tr>
</table>
</td></tr>
</table><br>
<% } // end else parent message isn't root message %>
<% } // end if reply %>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td align="right">
<a href="http://www.jivesoftware.com/poweredby/" target="_blank"
><img src="images/powered_by_jive.gif" width="100" height="30" alt="Powered by Jive" border="0"></a>
</td>
</tr>
</table>
<%@ include file="include/branding/footer.jsp" %>
<%@ include file="include/footer.jsp" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -