-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpageDemo.txt
121 lines (112 loc) · 4.74 KB
/
pageDemo.txt
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 language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<meta charset="utf-8">
<title>乐惠微官网商店数据管理系统</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/Pager.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="js/jquery.pager.js"></script>
<script type="text/javascript">
$(function() {
$("#pager").pager({ pagenumber: '${pageNo}', pagecount: '${pagination.pageCount}', buttonClickCallback: pageClick });
});
pageClick = function(pageNo) {
var form = $('#test2');
var pageNoInput = $('<input type="hidden" name="pageNo"/>');
pageNoInput.val(pageNo);
pageNoInput.appendTo(form);
form.appendTo('body');
form.submit();
};
</script>
</head>
<body>
<form action="back/order/paginationOrdere.action?ordrStateKey=${ordrStateKey}" method="post" id="test2">
<div class="place">
<span>位置:</span>
<ul class="placeul">
<li><a href="back/indexBus.action">首页</a></li>
<li><a>订单管理</a></li>
<li><a>订单查询</a></li>
</ul>
</div>
<div class="rightinfo">
<div class="tools">
<ul class="toolbar">
<li>
<!-- <form action="back/order/serOrderNameBus.action" method="post"> -->
<label for="contactPerson">客户姓名</label><input id="contactPerson" name="ordere.contactPerson" type="text"/>
客户号码 <input id="contactPhone" name="ordere.contactPhone" type="text"/>
订单编号 <input id="contactPhone" name="ordere.ordrID" type="text"/>
<input type="submit" value="搜索"/>
<a href="back/order/paginationOrdere.action?ordrStateKey=1" class="tablelink">查看已发货的订单</a>
<a href="back/order/paginationOrdere.action?ordrStateKey=3" class="tablelink">查看已取消的订单</a>
<!-- </form> -->
</li>
</ul>
</div>
<table class="tablelist">
<thead align="center">
<tr>
<th style="width:20%"> 订单号</th>
<th style="width:10%"> 时间</th>
<th style="width:6%">客户姓名</th>
<th style="width:10%"> 联系方式</th>
<th style="width:6%">支付方式</th>
<th style="width:6%">共需支付</th>
<th style="width:6%">订单状态</th>
<th style="width:5%">是否支付</th>
<th style="width:23%"> 收货地址</th>
<th style="width:8%"> 操作</th>
</tr>
</thead>
<tbody>
<s:iterator value="#request.pagination.pageList" status="iter">
<tr>
<td align="center" style="height:20px"><s:property value="ordrID"></s:property></td>
<td align="center" style="height:20px"><s:property value="ordrCreateTime"></s:property></td>
<td align="center" style="height:20px"><s:property value="contactPerson"/></td>
<td align="center" style="height:20px"><s:property value="contactPhone"/></td>
<td align="center" style="height:20px">
<s:if test="ordrPaymentMethod == 0">支付宝</s:if>
<s:else>货到付款</s:else>
</td>
<td align="center" style="height:20px"><s:property value="totalPrice"/></td>
<td align="center" style="height:20px">
<s:if test="ordrState == 0">已下单</s:if>
<s:elseif test="ordrState == 1">配送中</s:elseif>
<s:elseif test="ordrState == 2">已完成</s:elseif>
<s:else>已取消</s:else>
</td>
<td align="center" style="height:20px">
<s:if test="paymentState == 0">否</s:if>
<s:else>是</s:else>
</td>
<td align="center" style="height:20px"><s:property value="address"/></td>
<td align="center" style="height:20px">
<a href="back/order/detailOrdere.action?ordere.ordrID=${ordrID }" class="tablelink">订单详情</a>
</td>
</tr>
</s:iterator>
</tbody>
</table>
<div id="pager"></div>
</div>
</form>
<script type="text/javascript">
$('.tablelist tbody tr:odd').addClass('odd');
</script>
</body>
</html>