You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
3.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="com.dao.FriendDao" import="com.bean.FriendBean,java.util.*"%>
<%@ page import="java.util.List" import="java.sql.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="./static/css/semantic.min.css">
<link rel="stylesheet" href="./static/css/index.css">
<title>好友列表展示</title>
</head>
<body>
<!--导航-->
<nav class="ui inverted segment m-padded-tb-mini m-shadow-small">
<div class="ui container">
<div class="ui inverted secondary stackable menu">
<h2 class="ui teal header item">Blog</h2>
</div>
</div>
</nav>
<div class="left image">
<form>
<p align="center">
<img src="./static/images/logion.jpg" class="logion image"
style="width: 1000px; height: 200px;">
</p>
</form>
</div>
<%
FriendDao frienddao = new FriendDao();
List<FriendBean> list = frienddao.selectAll();
session.setAttribute("friendResult",list);
%>
<div class="column">
<form action="FriendServlet" method="post" align="center" class="ui header">
<h1 align="center" class="ui teal header" >我的好友列表</h1></br>
<p class="font" style="color: gray" align="center" >共${fn:length(friendResult)}个好友</p></br></br>
<c:forEach items="${friendResult}" var="friend">
<a href="friends_info.jsp" class="friend">${friend.userfriendID}:${friend.userNote}</a></br>
</c:forEach>
</form>
</div>
<font color="red">${tip}</font>
<!--底部-->
<footer class="ui inverted vertical segment m-padded-tb-massive">
<div class="ui center aligned container">
<div class="ui inverted divided stackable grid">
<div class="three wide column">
<div class="ui inverted link list">
<div class="item">
<img src="./static/images/weixin.jpg" alt=""
class="ui rounded image" style="width: 110px;">
</div>
</div>
</div>
<div class="three wide column">
<h4 class="ui inverted header">最新博客</h4>
<div class="ui inverted link list">
<a href="#" class="item">用户故事User Story</a> <a href="#"
class="item">用户故事User Story</a> <a href="#" class="item">用户故事User
Story</a>
</div>
</div>
<div class="three wide column">
<h4 class="ui inverted header">最新博客</h4>
<div class="ui inverted link list">
<a href="#" class="item">用户故事User Story</a> <a href="#"
class="item">用户故事User Story</a> <a href="#" class="item">用户故事User
Story</a>
</div>
</div>
<div class="seven wide column">
<h4 class="ui inverted header">最新博客</h4>
<div class="ui inverted link list">
<p class="m-text-thin m-text-spaced m-opacity-mini">这是我的个人博客、会分享关于编程、写作、思考相关的任何内容</p>
</div>
</div>
</div>
<div class="ui inverted section divider"></div>
<p class="m-text-thin m-text-spaced m-opacity-tiny">Copyright ©
若相遇、请珍惜</p>
</div>
</footer>
</form>
</body>
</html>