?? addpost.jsp
字號:
</form>
</td></tr>
</table>
<%if (action.equals("addnew")) {%>
<form action="addpostprocess" method="post" name="vbform">
<input type="hidden" name="ForumID" value="<%=ParamUtil.getParameter(request, "forum")%>">
<input type="hidden" name="ParentPostID" value="<%=parentPostID%>">
<%} else {//update%>
<form action="updatepost" method="post" name="vbform">
<input type="hidden" name="PostID" value="<%=postToEdit.getPostID()%>">
<input type="hidden" name="parent" value="<%=parentPostID%>">
<input type="hidden" name="offset" value="<%=ParamUtil.getParameter(request, "offset")%>">
<%}%>
<table width="95%" border="0" cellspacing="1" cellpadding="3" align="center" bgcolor="#999999">
<tr bgcolor="#666699" class="header">
<td colspan="2" align="left"><%=fullmode%></td>
</tr>
<tr bgcolor=#f5f5f5>
<td width="150" nowrap><span class="messageTextBold">Topic:</span>
<span class="messageText">
<%if (parentPostID == 0) {%>
<font color="Red">(Required)</font>
<%} else {%>
<font color="Blue">(Optional)</font>
<%}%>
</span>
</td>
<TD><input type="text" name="PostTopic" value="<%=postTopic%>" size="60" class="bginput" tabindex="1"></TD></TR>
<tr bgcolor="White">
<td width="150" valign="top" nowrap class="messageText">
<span class="messageTextBold">Format:</span><br>
<INPUT onmouseover="stat('norm')" title="Normal Mode: (alt+n)" accessKey=n onclick=setmode(this.value) type=radio CHECKED value=0 name=mode> Normal Mode <BR>
<INPUT onmouseover="stat('enha')" title="Enhanced Mode: (alt+e)" accessKey=e onclick=setmode(this.value) type=radio value=1 name=mode> Enhanced Mode
</td>
<TD>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TR>
<TD noWrap>
<INPUT class=bginput onmouseover="stat('b')" title="BOLD (alt+b)" accessKey=b onclick="vbcode(this.form,'B','')" type=button value=" B ">
<INPUT class=bginput onmouseover="stat('i')" title="ITALIC (alt+i)" accessKey=i onclick="vbcode(this.form,'I','')" type=button value=" I ">
<INPUT class=bginput onmouseover="stat('u')" title="UNDERLINE (alt+u)" accessKey=u onclick="vbcode(this.form,'U','')" type=button value=" U ">
<SELECT id=sizeselect onmouseover="stat('size')" onchange="fontformat(this.form,this.options[this.selectedIndex].value,'SIZE')">
<OPTION value=0 selected>SIZE</OPTION>
<OPTION value=1>small</OPTION>
<OPTION value=3>large</OPTION>
<OPTION value=4>huge</OPTION>
</SELECT>
<select id="fontselect" onChange="fontformat(this.form,this.options[this.selectedIndex].value,'FONT')" onMouseOver="stat('font')">
<option value="0" selected>FONT</option>
<option value="arial">Arial</option>
<option value="times new roman">Times</option>
<option value="courier new">Courier</option>
<option value="century gothic">Century</option>
</SELECT>
<SELECT id=colorselect onmouseover="stat('color')" onchange="fontformat(this.form,this.options[this.selectedIndex].value,'COLOR')">
<OPTION value=0 selected>COLOR</OPTION>
<OPTION style="COLOR: skyblue" value=skyblue>sky blue</OPTION>
<OPTION style="COLOR: royalblue" value=royalblue>royal blue</OPTION>
<OPTION style="COLOR: blue" value=blue>blue</OPTION>
<OPTION style="COLOR: darkblue" value=darkblue>dark-blue</OPTION>
<OPTION style="COLOR: orange" value=orange>orange</OPTION>
<OPTION style="COLOR: orangered" value=orangered>orange-red</OPTION>
<OPTION style="COLOR: crimson" value=crimson>crimson</OPTION>
<OPTION style="COLOR: red" value=red>red</OPTION>
<OPTION style="COLOR: firebrick" value=firebrick>firebrick</OPTION>
<OPTION style="COLOR: darkred" value=darkred>dark red</OPTION>
<OPTION style="COLOR: green" value=green>green</OPTION>
<OPTION style="COLOR: limegreen" value=limegreen>limegreen</OPTION>
<OPTION style="COLOR: seagreen" value=seagreen>sea-green</OPTION>
<OPTION style="COLOR: deeppink" value=deeppink>deeppink</OPTION>
<OPTION style="COLOR: tomato" value=tomato>tomato</OPTION>
<OPTION style="COLOR: coral" value=coral>coral</OPTION>
<OPTION style="COLOR: purple" value=purple>purple</OPTION>
<OPTION style="COLOR: indigo" value=indigo>indigo</OPTION>
<OPTION style="COLOR: burlywood" value=burlywood>burlywood</OPTION>
<OPTION style="COLOR: sandybrown" value=sandybrown>sandy brown</OPTION>
<OPTION style="COLOR: sienna" value=sienna>sienna</OPTION>
<OPTION style="COLOR: chocolate" value=chocolate>chocolate</OPTION>
<OPTION style="COLOR: teal" value=teal>teal</OPTION>
<OPTION style="COLOR: silver" value=silver>silver</OPTION>
</SELECT> <BR>
<INPUT class=bginput onmouseover="stat('url')" title="Insert Hyperlink" onclick="namedlink(this.form,'URL')" type=button value=http://>
<INPUT class=bginput onmouseover="stat('email')" title="Insert Email Address" onclick="namedlink(this.form,'EMAIL')" type=button value=" @ ">
<INPUT class=bginput onmouseover="stat('img')" title="Insert Image" onclick="vbcode(this.form,'IMG','http://')" type=button value=IMG>
<INPUT class=bginput onmouseover="stat('code')" title=CODE onclick="vbcode(this.form,'CODE','')" type=button value=" # ">
<INPUT class=bginput onmouseover="stat('php')" title="PHP CODE" onclick="vbcode(this.form,'PHP','')" type=button value=PHP>
<INPUT class=bginput onmouseover="stat('list')" title="Ordered List" accessKey=l onclick=dolist(this.form) type=button value=List>
<INPUT class=bginput onmouseover="stat('quote')" title="Insert Quote" onclick="vbcode(this.form,'QUOTE','')" type=button value=Quote>
<BR>
<input type="text" name="status" value="Use these controls to insert vBcode" size="50" class="bginput" style="FONT-SIZE: 7pt">
</TD>
<TD> </TD>
<TD>
<FONT face=verdana,arial,helvetica size=1>
<INPUT class=bginput onmouseover="stat('closecurrent')" title="Close Current Tag (alt+c)" style="FONT-WEIGHT: bold; COLOR: red" accessKey=c onclick=closetag(this.form) type=button value=" x ">
Close Current Tag<BR>
<INPUT class=bginput onmouseover="stat('closeall')" title="Close All Open Tags (alt+x)" style="FONT-WEIGHT: bold; COLOR: red" accessKey=x onclick=closeall(this.form) type=button value=" x ">
Close All Tags
</FONT></TD></TR>
</TABLE>
</TD>
</TR>
<TR bgcolor=#f5f5f5>
<td align="left" valign="top" nowrap class="messageTextBold">Message Body:</td>
<TD><textarea cols="60" rows="15" name="message" tabindex="2"><%=postBody%></textarea></TD></TR>
<tr bgcolor="Silver">
<td colspan="2" align="center"><input type="submit" name="Submit" value="<%=mode%>">
<input type="reset" value="Reset"></td>
</tr>
</table>
</form>
<p>
<%
if (action.equals("addnew") && (parentPostID != 0) ) {
%>
<table width="95%" border="0" cellspacing="1" cellpadding="3" align="center" bgcolor="#999999">
<tr bgcolor="#666699" class="header">
<td colspan="2" align="left">Reply to post:</td>
</tr>
<tr bgColor=#f5f5f5>
<td width="20%" class="messageText">
<a href="viewmember?memberid=<%=parentPostBean.getMemberID()%>" class="messageTextBoldBlue"><%=parentPostBean.getMemberName()%></a><br>
Post on: <%=onlineUser.getGMTTimestampFormat(parentPostBean.getPostCreationDate())%>
</td>
<td>
<font class="messageTextBold"><%=parentPostBean.getPostTopic()%></font><br>
<font class="messageText"><%=parentPostBean.getPostBody_withFilter()%>
</td>
</tr>
</table>
<p>
<table width="95%" border="0" cellspacing="1" cellpadding="3" align="center" bgcolor="#999999">
<tr bgcolor="#666699" class="header">
<td colspan="2" align="center">Last posts in this thread (newest post is on top):</td>
</tr>
<%
java.util.Collection postBeans = (java.util.Collection)request.getAttribute("PostBeans");
int odd = 0;
java.util.Iterator iterator = postBeans.iterator();
while (iterator.hasNext()) {
odd = (odd+1)%2;
PostBean postBean = (PostBean)iterator.next();
%>
<%if (odd == 0) {%>
<tr bgColor=#f5f5f5>
<%} else {%>
<tr bgcolor="White">
<%}%>
<td width="20%" class="messageText">
<a href="viewmember?memberid=<%=parentPostBean.getMemberID()%>" class="messageTextBoldBlue"><%=parentPostBean.getMemberName()%></a><br>
Post on: <%=onlineUser.getGMTTimestampFormat(parentPostBean.getPostCreationDate())%>
</td>
<td>
<font class="messageTextBold"><%=postBean.getPostTopic()%></font><br>
<font class="messageText"><%=postBean.getPostBody_withFilter()%>
</td>
</tr>
<%
}//while
%>
</table>
<%
}// if reply to a topic, not new thread
%>
<p>
<%@ include file="/mvnplugin/mvnforum/user/footer.jsp"%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -