?? newtopiccontents.jsp
字號:
<%@ page language="java" pageEncoding="gbk"%>
<%@ page import = "com.elan.forum.model.ForumUser" %>
<%@ include file = "/forum/view/inc/Taglib.jsp" %>
<%
ForumUser fu = (ForumUser)session.getAttribute("user");
int pieceId = -1 ;
if(request.getParameter("pieceId") != null) {
pieceId = Integer.parseInt(request.getParameter("pieceId"));
}
String pieceIdStr = (String)session.getAttribute("pieceId");
if(pieceIdStr != null) {
pieceId = Integer.parseInt(pieceIdStr);
session.removeAttribute("pieceId");
}
%>
<div class="bodywidth">
<center><html:errors /></center>
<form name="myform"
action="<%=request.getContextPath()%>/forum/topic.do?action=newTopic"
method="post" onsubmit="return Check(this)">
測試測試
<input type="hidden" name="authorId" value="<%=fu.getId()%>">
<input type="hidden" name="pieceId" value="<%=pieceId %>" />
<table width="100%" border="0" cellpadding="0" cellspacing="1"
class="forum_border">
<tr>
<td height="30" colspan="2" class="forum_title">
發表帖子
</td>
</tr>
<tr>
<td class="forum_td_item">
<strong>用戶名:</strong>
</td>
<td class="forum_td_input">
<input type='text' name="author" readonly value="<%=((ForumUser)session.getAttribute("user")).getUsername()%>" />
</td>
</tr>
<tr>
<td width="17%" class="forum_td_item">
<strong>主題標題:</strong>
</td>
<td width="83%" class="forum_td_input">
<select name="topicType">
<option value="">
請選擇
</option>
<option value="[灌水]">
[灌水]
</option>
<option value="[轉帖]">
[轉帖]
</option>
<option value="[推薦]">
[推薦]
</option>
<option value="[公告]">
[公告]
</option>
<option value="[貼圖]">
[貼圖]
</option>
<option value="[分享]">
[分享]
</option>
<option value="[注意]">
[注意]
</option>
<option value="[下載]">
[下載]
</option>
</select>
<script language='javascript'>function setClass(){var o = getObject('Title'); o.value = getObject('Class').value + o.value; }</script>
<input type='text' name='title' id='title' value='' size='60' />
<select id='Color' name='Color'>
<option value='' selected>
標題顏色
</option>
<option value='#FF0000'>
紅色
</option>
<option value='#0000FF'>
藍色
</option>
<option value='#008000'>
綠色
</option>
<option value='#FF6600'>
橙色
</option>
</select>
</td>
</tr>
<tr>
<td class="forum_td_item">
<strong>心情圖標:</strong>
</td>
<td class="forum_td_input">
<%@ include file="/forum/view/inc/Face.jsp"%></td>
</tr>
<tr>
<td class="forum_td_item">
<strong>主題內容:</strong>
</td>
<td class="forum_td_input">
<script language='javascript'>function AddItem(strFileName){ var arrName = strFileName.split('.'); var FileExt = arrName[1];if(getObject('Uploadfiles').value.trim() == ''){ getObject('Uploadfiles').value = strFileName; }else{ getObject('Uploadfiles').value += '|'+ strFileName; } }</script>
<textarea name='text' style='display: none;' id='text'></textarea>
<iframe ID='Editor'
src="/ElanNet/ditor/ewebeditor.htm?id=text&style=coolblue"
frameborder='1' scrolling='no' width='700' height='400'></iframe>
</td>
</tr>
<tr>
<td class="forum_td_item">
<strong>驗證碼:</strong>
</td>
<td class="forum_td_input">
<input type='text' name='CheckCode' id='CheckCode' size='10' />
<img style='border: 1px solid #ffffff; cursor: hand;' src="<%=request.getContextPath()%>/forum/view/inc/CheckCode.jsp"
onClick="this.src='<%=request.getContextPath()%>/forum/view/inc/CheckCode.jsp'" />
</td>
</tr>
<tr>
<td class="forum_td_item">
</td>
<td class="forum_td_input">
<input type="submit" name="Submit" value="發表主題" />
<input type="button" name="Submit2" value=" 取 消 "
onclick="history.back()" />
<input type='hidden' id='Action' name='Action' value='SaveNew' />
<input type='hidden' id='BoardID' name='BoardID' value='3' />
<input type='hidden' id='TopicType' name='TopicType' value='0' />
<input type='hidden' id='Uploadfiles' name='Uploadfiles' value='' />
</td>
</tr>
</table>
</form>
</div>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -