⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 replytopiccontents.jsp

📁 struts+hibernate BBS mysql数据库 功能基本齐全
💻 JSP
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ page import="com.elan.forum.model.ForumUser"%>
<%@ include file="/forum/view/inc/Taglib.jsp"%>
<%
	int topicId = -1;
	int pieceId = -1;
	if (request.getParameter("topicId") != null) {
		topicId = Integer.parseInt(request.getParameter("topicId"));
	} else {
		topicId = Integer.parseInt((String) session
				.getAttribute("topicId"));
		session.removeAttribute("topicId");
	}
	if(request.getParameter("pieceId") != null) {
		pieceId = Integer.parseInt(request.getParameter("pieceId"));
	} else {
		pieceId = Integer.parseInt((String) session
				.getAttribute("pieceId"));
		session.removeAttribute("pieceId");
	}
%>
<div class="bodywidth">
	<center>
		<html:errors />
	</center>
	<form name="myform"
		action="<%=request.getContextPath()%>/forum/topic.do?action=replyTopic"
		method="post" onsubmit="return Check(this)">
		<input type="hidden" name="pieceId" value="<%=pieceId%>" />
		<input type="hidden" name="topicId" value="<%=topicId%>" />
		<input type="hidden" name="authorId" readonly value="<%=((ForumUser)session.getAttribute("user")).getId() %>" />
		<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 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 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">
					&nbsp;
				</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 + -