⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 friend.jsp

📁 jsp注册
💻 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>联系人:</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">&nbsp;</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">发送消息</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">&nbsp;</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">发件箱</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">联系人</a></div></td>
  </tr>
  <tr>
    <td height="37" colspan="2">&nbsp;</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 + -