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.

110 lines
3.4 KiB

<%@page import="java.sql.ResultSet"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page import="com.dao.infomationDao"
import="com.bean.infomationBean,java.util.*"%>
<!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">
<form action="SearchMyBlogServlet" method="post">
<div class="ui inverted secondary stackable menu">
<h2 class="ui teal header item">Blog</h2>
<a href="index.jsp" class="m-item item m-mobile-hide">首页</a>
<a href="Blog.jsp" class="m-item item m-mobile-hide">博客</a>
<a href="types.jsp" class="m-item item m-mobile-hide">分类</a>
<a href="tags.jsp" class=" m-item item m-mobile-hide">标签</a>
<!-- <a href="PersonalCenter.jsp" class="m-item item m-mobile-hide">归档</a> -->
<a href="MessageBoard.jsp" class="m-item item m-mobile-hide">留言板</a>
<a href="MyCenter.jsp" class="m-item item m-mobile-hide">我的</a>
<a href="PublishArticle.jsp" class="m-item item m-mobile-hide">发表博客</a>
<div class="right m-item item m-mobile-hide">
<div class="ui icon inverted transparent input">
<input type="text" name="search" placeholder="搜索"><input
type="submit" value="☜(゚ヮ゚☜)">
</div>
</div>
</form>
</div>
</div>
<a href="#"
class="ui menu toggle black icon button m-right-top m-mobile-show">
<i class="sidebar icon"></i>
</a>
</nav>
<%
infomationDao infomationDao = new infomationDao();
List<infomationBean> list = infomationDao.selectAll();
session.setAttribute("infomationResult", list);
%>
<p align="center" class="ui teal header" >好友</p>
<table style="width: 800px; height: 400px;" align="center">
<c:forEach items="${infomationResult}" var="infomationResult">
<tr>
<td style="height: 10px;" align="right">姓名:</td>
<td style="height: 10px;">${infomationResult.name}</td>
</tr>
<tr>
<td style="height: 10px;" align="right">性别:</td>
<td style="height: 10px;" >${infomationResult.sex }</td>
</tr>
<tr>
<td style="height: 10px;" align="right">注册日期:</td>
<td style="height: 10px;" >${infomationResult.day}</td>
</tr>
<tr>
<td style="height: 10px;"align="right">当前所在地:</td>
<td style="height: 10px;">${infomationResult.location}</td>
</tr>
<tr>
<td style="height: 10px;" align="right">手机:</td>
<td style="height: 10px;">${infomationResult.telephone}</td>
</tr>
<tr>
<td style="height: 10px;" align="right">邮箱:</td>
<td style="height: 10px;">${infomationResult.email}</td>
</tr>
<tr>
<td style="height: 10px;" align="right">个人简介:</td>
<td style="height: 10px;">${infomationResult.personResume}</td>
</tr>
<tr>
<td align="right">~~~~~~~~~~~</td>
</tr>
</c:forEach>
</table>
<!--底部-->
<footer class="ui inverted vertical segment m-padded-tb-massive">
<div class="ui center aligned container">
<p class="m-text-thin m-text-spaced m-opacity-tiny">Copyright ©
IT博客欢迎您</p>
</div>
</footer>
</body>
</html>