<%@ page language="java" contentType="text/html; charset=GB2312"
	pageEncoding="GB2312"%>
<%@ page import="com.wxpn.tutorial.servlet.BBSMsg"%>	
<%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>
</head>

<body>
<div align=center>
<table border="1" width="75%" cellspacing="0" cellpadding="0"
	bordercolorlight="#000000" bordercolordark="#FFFFFF">
	<tr>
		<td width="75%" colspan=2 bgcolor="#0000FF" height="35" align=center><b><font
			color="#FFFFFF">阅读留言</font></b></td>
	</tr>
	<%if (request.getAttribute("msg") == null) {

			%>
	<tr>
		<td width="75%" colspan=2 bgcolor="#FCFCFC" align=center>还没有任何留言。</td>
	</tr>
	<%} else {
		BBSMsg msg=(BBSMsg)request.getAttribute("msg");
		%>
	<tr>
		<td bgcolor="#FCFCFC" width="20%" valign="top"></td>
		<td bgcolor="#FCFCFC" width="80%"></td>
	</tr>
	<tr>
		<td align=center bgcolor="#FCFCFC">作者：&nbsp;</td>
		<td align=center bgcolor="#FCFCFC"><%=msg.getAuthor()%>
		&nbsp;&nbsp;&nbsp;发表于<%=msg.getStrCompose_date()%></td>
	</tr>
	<tr>
		<td bgcolor="#FCFCFC" align=center>标题：&nbsp;</td>
		<td bgcolor="#FCFCFC" align=center><%=msg.getMb_title()%></td>
	</tr>
	<tr>
		<td align=center bgcolor="#FCFCFC">内容：&nbsp;</td>
		<td align=center bgcolor="#FCFCFC"><%=msg.getMb_content()%></td>
	</tr>
	<%} %>
	<tr>
		<td width="75%" colspan=2 align=center height=47 bgcolor="#EFEFEF"><a
			href="javaScript:history.back()">[返回]</a>&nbsp;&nbsp;&nbsp; <%//如果是一个特定的用户，这里是“Wangxn”,则拥有删除的权利：
			if (session.getAttribute("userName").equals("Wangxn")) {%> <a href="">[删除]</a>
		<%}%></td>
	</tr>
</table>
</div>
</body>
</html>
