?? 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 + -