?? friend.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" 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">
<!--
.STYLE3 {color: #FFFFFF}
.STYLE5 {color: #666666}
-->
</style>
</head>
<link href="mycss.css" rel="stylesheet" type="text/css" />
<jsp:useBean id="db" class="data.DBConnectionBean"/>
<%request.setCharacterEncoding("gb2312");
String id=(String)session.getAttribute("id");
%>
<body>
<%
if(id!=null){%>
<table width="626" height="320" border="1" align="left" bgcolor="#FFFFFF">
<tr>
<td height="23" colspan="2" bgcolor="#996666"><div align="center" class="STYLE3">快捷操作</div></td>
<td width="489" rowspan="10"><table width="479" height="256" border="0" align="center" cellpadding="0">
<tr>
<td height="52"><table width="284" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#ECE9D8">
<tr>
<td height="27" bgcolor="#996666"><div align="center" class="STYLE3"><strong>聯(lián)系人:</strong></div></td>
</tr>
<% ResultSet rs=db.findfriend2(id);
while (rs.next()){
String friend=rs.getString("toid");
%>
<tr>
<td><div align="center"><a href="friendmes.jsp?friend=<%=friend%>"><%=friend%></a></div></td>
</tr>
<%}%>
</table></td>
</tr>
<tr>
<td height="198"> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="19" height="23"><div align="center"><img src="../pic/file.gif" width="16" height="14" /></div></td>
<td width="96"><div align="center"><a href="sendmessage.jsp" target="_self">發(fā)送消息</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="serchmessage.jsp">搜索消息</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" class="STYLE5"><a href="zhuyi.jsp">注意事項</a></div></td>
</tr>
<tr>
<td height="49" colspan="2"> </td>
</tr>
<tr>
<td height="23" colspan="2" bgcolor="#996666"><div align="center" class="STYLE3">消息箱</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">發(fā)件箱</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="message.jsp" target="_self">收件箱</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="friend.jsp">聯(lián)系人</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"></meta>
<%
}
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -