forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcar_queryCarList.jsp
More file actions
121 lines (97 loc) · 3.91 KB
/
car_queryCarList.jsp
File metadata and controls
121 lines (97 loc) · 3.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<jsp:directive.page import="java.util.List"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>物流配货网——车源信息管理</title>
</head>
<link href="css/style.css" type="text/css" rel="stylesheet">
<jsp:useBean id="pagination" class="com.tools.MyPagination" scope="session"></jsp:useBean>
<%
String str=(String)request.getParameter("Page");
int Page=1;
List list=null;
if(str==null){
list=(List)request.getAttribute("list");
int pagesize=4; //指定每页显示的记录数
list=pagination.getInitPage(list,Page,pagesize); //初始化分页信息
}else{
Page=pagination.getPage(str);
list=pagination.getAppointPage(Page); //获取指定页的数据
}
request.setAttribute("list1",list);
%>
<body>
<jsp:include page="main_top.jsp"/>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="57"> </td>
<td width="637" valign="top" align="center">
<table width="615" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25" valign="top">当前位置:车源信息管理</td>
</tr>
</table>
<s:set name="carList" value="#request.list1"/>
<s:if test="#carList==null||#carList.size()==0">
<br>
★★★目前没有车辆信息★★★
<table width="630" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="442" height="21" valign="top"> <img src="images/sign.gif" width="16" height="14"> <a href="car_insertCar.jsp" class="a2">添加车辆信息</a></td>
<td width="188" valign="top"> </td>
</tr>
</table>
</s:if>
<s:else> <s:iterator status="carListStatus" value="carList">
<table width="603" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="E4ECEF">
<tr align="center">
<td width="82" height="20">序号</td>
<td width="82">姓名</td>
<td width="105">车牌号</td>
<td width="139">地址</td>
<td width="78">电话</td>
<td width="119">身份证号</td>
</tr>
<tr align="center" bgcolor="#FFFFFF">
<td height="20"><s:property value="id"/></td>
<td><s:property value="username"/></td>
<td><s:property value="car_number"/></td>
<td><s:property value="address"/></td>
<td><s:property value="tel"/></td>
<td><s:property value="user_number"/></td>
</tr>
<tr align="center">
<td height="20" colspan="2">运输路线</td>
<td colspan="2">车辆描述</td>
<td colspan="2">操作</td>
</tr>
<tr align="center" bgcolor="#FFFFFF">
<td height="20" colspan="2"><s:property value="car_road"/></td>
<td colspan="2"><s:property value="car_content"/></td>
<td colspan="2"><s:a href="car_queryCarForm.action?id=%{id}">修改</s:a> <s:a href="car_deleteCar.action?id=%{id}">删除</s:a></td>
</tr>
</table>
<table width="603" border="0" cellpadding="0" cellspacing="0">
<tr>
<td ><hr></td>
</tr>
</table>
</s:iterator>
<table width="630" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="442" height="21" valign="top"> <img src="images/sign.gif" width="16" height="14"> <a href="car_insertCar.jsp" class="a2">添加车源信息</a></td>
<td width="188" valign="top"><%=pagination.printCtrl(Page) %></td>
</tr>
</table>
</s:else>
</td>
<td width="115" valign="top">
<jsp:include page="main_right.jsp"/>
</td>
</tr>
</table>
<jsp:include page="main_down.jsp" flush="true"/>
</body>
</html>