📄 message_show.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312"%>
<jsp:directive.page import="com.captainli.struts.form.LoginForm"/>
<jsp:directive.page import="com.captainli.dboperation.LoginDA"/>
<jsp:directive.page import="java.util.ArrayList"/>
<jsp:directive.page import="com.captainli.dboperation.MessageDA"/>
<jsp:directive.page import="com.captainli.bean.MessageBean"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>消息查看...</title>
<link rel="stylesheet" type="text/css" href="../css/sys.css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #FFFFFF;
}
a:link {
color: #1A438E;
text-decoration: underline;
}
a:visited {
text-decoration: underline;
}
a:hover {
text-decoration: none;
color: #000000;
}
a:active {
text-decoration: underline;
}
.style1 { color: #1A438E;
font-size: 12px;
}
.style2 { color:#FF0000;
font-size: 12px;
}
-->
</style></head>
<%
LoginForm form = (LoginForm)session.getAttribute("users");
//消息搜索
int m_reciever = new LoginDA().showL_id(form);
ArrayList list = new MessageDA().showMessageBean(m_reciever);
//修改消息已读
new MessageDA().updateMessage(m_reciever);
%>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="../images/system/r_1.gif" alt="" width="6" height="27" /></td>
<td width="100%" background="../images/system/r_0.gif"><table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="14%">消息查看</td>
<td width="86%" align="right"> </td>
</tr>
</table></td>
<td><img src="../images/system/r_2.gif" alt="" width="6" height="27" /></td>
</tr>
<tr>
<td></td>
<td>
<table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
<%
for(int i = 0;i < list.size();i++){
MessageBean bean = (MessageBean)list.get(i);//一行
%>
<tr onMouseOver="this.className='highlight'" onMouseOut="this.className=''">
<td width="59%" height="25" align="center"><%= bean.getM_content() %></td>
<td width="41%" align="center"><%= bean.getM_time() %></td>
</tr>
<%} %>
</table>
</td>
<td></td>
</tr>
<tr>
<td><img src="../images/system/r_4.gif" alt="" width="6" height="6" /></td>
<td></td>
<td><img src="../images/system/r_3.gif" alt="" width="6" height="6" /></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -