<%@ page language="java" contentType="text/html; charset=GB2312"
	pageEncoding="GB2312"%>
<%if (session.getAttribute("userName") == null) {
				response.sendRedirect("login.jsp");
			}%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<meta http-equiv="Content-Language" content="zh-cn">
<title>BBS-撰写</title>
<script language="JavaScript"><!--
function validateCompose(){ 
	var MB_TITLE = document.frmCompose.MB_TITLE.value;
	var MB_CONTENT = document.frmCompose.MB_CONTENT.value;
	if (MB_TITLE ==""){
		alert("必须填写标题！");
		return false;
	}
	if (MB_CONTENT ==""){
		alert("必须填写内容！");
	return false;
	}
}
-->
</script>
</head>
<body>
<div align=center>
<form name="frmCompose" method="POST" action="ComposeServlet"
	onSubmit="javaScript:return validateCompose();"><br>
<br>
<br>
<table border="0" width=400 bgcolor="#efefef" cellspacing="0"
	cellpadding="0">
	<tr>
		<td width="100%" align=center colspan="2" height="30"
			bgcolor="#0000FF"><font color="#FFFFFF"><b>撰写留言</b></font></td>
	</tr>
	<tr>
		<td width="20%" bgcolor="#FCFCFC" align=right>标题：&nbsp;</td>
		<td width="80%" bgcolor="#FCFCFC"><input type="text" name="MB_TITLE"
			size="35" maxlength="30"></td>
	</tr>
	<tr>
		<td width="20%" bgcolor="#FCFCFC" align=right>内容：&nbsp;</td>
		<td width="80%" bgcolor="#FCFCFC"><textarea rows="8" name="MB_CONTENT"
			cols="34">
</textarea></td>
	</tr>
	<tr>
		<td width="20%" bgcolor="#FCFCFC" align=right>撰写人：&nbsp;</td>
		<td width="80%" bgcolor="#FCFCFC"><font color=#FF0000><%=session.getAttribute("userName")%></font>
		</td>
	</tr>
	<tr>
		<td width="100%" align=center colspan="2" height="50"><input
			type="hidden" value="Compose" name="action"> <input type="submit"
			value="提交" name="submit">&nbsp;&nbsp; <input type="reset" value="重置"
			name="reset"></td>
	</tr>
</table>
</form>
</div>
</body>
</html>
