parent
e27f3283a6
commit
b66e91c961
@ -0,0 +1,153 @@
|
||||
<%@ page import="java.util.Map" %>
|
||||
<%@ page import="java.util.List" %>
|
||||
<%@ page import="Function.Admin" %>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: 29005
|
||||
Date: 2021/4/19
|
||||
Time: 14:16
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<html>
|
||||
|
||||
|
||||
<head>
|
||||
<script TYPE="text/javascript">
|
||||
function clickByType() {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
#header{
|
||||
background-image: url("image/findthingbg.jpg");
|
||||
height: 100px;
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#content{
|
||||
width: 80%;
|
||||
height: 80px;
|
||||
|
||||
}
|
||||
|
||||
#content a{
|
||||
text-decoration: none;
|
||||
}
|
||||
#content a:hover{
|
||||
background-color: #b650b6;
|
||||
color: red;
|
||||
|
||||
}
|
||||
</style>
|
||||
<title>查询失物</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<div id="header">
|
||||
<a href="javascript:history.back()"><<返回</a>
|
||||
<br/>
|
||||
<%-- <a href="mainfun.jsp"><<返回首页</a>--%>
|
||||
<div style="width: 500px;"><h2 style="color: white">又丢东西了?他们捡到了这些</h2></div>
|
||||
<div style="position:absolute; left: 40%;top: 10px; width: 400px;height: 80px;">
|
||||
<form action="admin_selectLostThings" method="post" name="myForm">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<input results="s" type="search" style="width: 300px;height: 50px;border-radius: 10px" placeholder="请输入关键字查询失物" name="keyword" value="${keyword1}"/>
|
||||
<input type="submit" value="搜索" style="width:60px;height: 30px;color:white;background-color: #cb3acb"/>
|
||||
<br/>
|
||||
<input type="hidden" name="act" value="condiction"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="content" style="position:absolute;top: 18%">
|
||||
<div style="margin-left: 40px"><font color="#a9a9a9">物品类型:</font>
|
||||
<c:forEach var="thingsType" items="${sessionScope.findThingsType}">
|
||||
<a style="color: rebeccapurple" href="admin_selectLostThings?act=condiction&keyword=${thingsType.type}" onclick="">${thingsType.type}</a>
|
||||
</c:forEach>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="position:absolute; top: 20%;width: 100%;">
|
||||
<hr/>
|
||||
<c:forEach var="Deatail" items="${requestScope.Deatail}">
|
||||
<c:if test="${Deatail.ownername==null}">
|
||||
<a href="admin_selectLostThings?act=detail&thingsid=${Deatail.id}">
|
||||
</c:if>
|
||||
<div style="position:relative;">
|
||||
<div id="time" style="float: right"><font color="#a9a9a9" >${Deatail.begin_time}</font></div>
|
||||
<div id="type" style="position: absolute;left: 30%;background-color: dodgerblue;border-radius: 3px"> <font color="white">${Deatail.thingstype}</font></div>
|
||||
<div style="position: absolute; left:8%;height: 80px;width:260px;border-style: dashed;"><font color="red">标题:<br/></font><font style="font-weight: bold">${Deatail.title}</font></div>
|
||||
<div style="position:absolute; top:20%;left: 30% ; color:#ff7400 ">描述<p>${Deatail.thingsdescribe}</p></div>
|
||||
<div style="position:absolute;left: 70%">
|
||||
<c:if test="${Deatail.ownername!=null}">
|
||||
<font color="red">已被认领</font>
|
||||
<br/>认领人姓名:${Deatail.ownername}<br/>
|
||||
认领人电话:${Deatail.ownerphone}
|
||||
</c:if>
|
||||
<c:if test="${Deatail.ownername==null}">
|
||||
<font color="#006400">未被认领</font>
|
||||
</c:if>
|
||||
|
||||
|
||||
</div>
|
||||
<img src="uploadFile/${Deatail.thingsphoto}" style="width:100px;height: 100px">
|
||||
<img src="image/userIcon1.png" style="width: 20px;height: 20px"><font color="#a9a9a9" >联系人: ${Deatail.discoverer_name}</font>
|
||||
<img src="image/photoicon.png" style="width: 20px;height: 20px"><font color="#a9a9a9" >联系方式: ${Deatail.phonenumber}</font>
|
||||
<hr/>
|
||||
|
||||
</div>
|
||||
</a>
|
||||
<div>
|
||||
|
||||
</c:forEach>
|
||||
|
||||
共${totalCount}条记录 共${totalPage}页
|
||||
第${pageCur}页
|
||||
<%
|
||||
//解决URL不能传中文问题
|
||||
String keyword1 =(String)request.getAttribute("keyword1");
|
||||
if(keyword1 != null){
|
||||
keyword1 = java.net.URLEncoder.encode(keyword1,"utf-8");
|
||||
request.setAttribute("keyword1",keyword1);
|
||||
}
|
||||
%>
|
||||
<c:url var="url_pre" value="admin_selectLostThings?act=${act}&keyword1=${keyword1}">
|
||||
<c:param name="pageCur" value="${pageCur - 1 }"/><!--通过此字段来传参-->
|
||||
</c:url>
|
||||
<c:url var="url_next" value="admin_selectLostThings?act=${act}&keyword1=${keyword1}">
|
||||
<c:param name="pageCur" value="${pageCur + 1 }"/>
|
||||
</c:url>
|
||||
<!-- 第一页没有上一页 -->
|
||||
<c:if test="${pageCur != 1&&pageCur!=null}">
|
||||
<a href="${url_pre}">上一页</a>
|
||||
</c:if>
|
||||
<!-- 最后一页,没有下一页 -->
|
||||
<c:if test="${pageCur != totalPage && totalPage !=0 }">
|
||||
<a href="${url_next}">下一页</a>
|
||||
</c:if>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue