📄 readmessage.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.io.IOException" errorPage="errorpage.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>收件箱</title>
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
-->
</style>
</head>
<link href="mycss.css" rel="stylesheet" type="text/css" />
<jsp:useBean id="db" class="data.DBConnectionBean"/>
<%
request.setCharacterEncoding("gb2312");
int read=0;
if (request.getParameter("read")!=null)
read=Integer.parseInt(request.getParameter("read"));
%>
<body>
<%
String id=(String)session.getAttribute("id");
if(id!=null){%>
<%ResultSet rs=db.readmessage(read);
while (rs.next()){
String fromid=rs.getString("fromid");%>
<table width="626" height="320" border="1" align="left" bgcolor="#FFFFFF">
<!--DWLayoutTable-->
<tr>
<td height="23" colspan="2" bgcolor="#996666"><div align="center" class="STYLE4 STYLE1">快捷操作</div></td>
<td width="489" valign="top" bgcolor="#996666"><%=rs.getString("title")%></td>
</tr>
<tr>
<td width="18" height="23"><div align="center"><img src="../pic/file.gif" width="16" height="14" /></div></td>
<td width="97"><div align="center"><a href="sendmessage.jsp" target="_self">发送消息</a></div></td>
<td valign="top">来自:<%=fromid%></td>
</tr>
<tr>
<td height="23"><div align="center">
<div align="center"><img src="../pic/file.gif" width="16" height="14" /></div>
</div></td>
<td><div align="center"><a href="serchmessage.jsp">搜索消息</a></div></td>
<td valign="top">日期:<%=rs.getString("zjtime")%></td>
</tr>
<tr>
<td height="23"><div align="center">
<div align="center"><img src="../pic/file.gif" width="16" height="14" /></div>
</div></td>
<td><div align="center"><a href="zhuyi.jsp">注意事项</a></div></td>
<td rowspan="7" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="486" height="20" valign="top" bgcolor="#996666">内容:</td>
<td width="5"></td>
</tr>
<tr>
<td height="183"><p>
<textarea name="textfield" cols="35" rows="5" readonly="readonly"><%=rs.getString("message")%></textarea>
</p>
<p><a href="sendmessage.jsp?fromid=<%=fromid%>"><img src="../pic/reto.png" width="164" height="83" border="0" /></a></p></td>
<td></td>
</tr>
<tr>
<td height="26" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="631" height="26"><!--DWLayoutEmptyCell--> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="49" colspan="2"> </td>
</tr>
<tr>
<td height="23" colspan="2" bgcolor="#996666"><div align="center" class="STYLE4 STYLE1">消息箱</div></td>
</tr>
<tr>
<td height="23"><div align="center"><img src="../pic/file.gif" width="16" height="14" /></div></td>
<td><div align="center"><a href="sendbox.jsp">发件箱</a></div></td>
</tr>
<tr>
<td height="23"><div align="center"><img src="../pic/fileopen.png" width="16" height="14" /></div></td>
<td bgcolor="#ECE9D8"><div align="center"><a href="message.jsp" target="_self">收件箱</a></div></td>
</tr>
<tr>
<td height="23"><div align="center"><img src="../pic/file.gif" width="16" height="14" /></div></td>
<td><div align="center"><a href="friend.jsp">联系人</a></div></td>
</tr>
<tr>
<td height="37" colspan="2"> </td>
</tr>
</table>
<%} %>
<%
}
else
{
%>
<script language="JavaScript">
alert("出错!您还没登陆!点确定返回首页登陆部落....");
</script>
<meta HTTP-EQUIV=REFRESH CONTENT="0;URL=/xunibuluo/index.jsp">
<%
}
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -