📄 orders.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ include file="../../include.inc"%>
<jsp:directive.page import="com.t53.crm4.common.PaginationBean" />
<html>
<head>
<title>jb-aptech毕业设计项目</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="<%=request.getContextPath()%>/css/style.css"
rel="stylesheet" type="text/css">
<script src="<%=request.getContextPath()%>/js/customer.js"></script>
<script type="text/javascript"
src="<%=request.getContextPath()%>/js/customer-ajax.js"></script>
</head>
<body>
<html:form
action="/customer/orders.do?op=show&custNo=${requestScope.custNo}">
<div class="page_title">
客户信息管理 > 客户信息 > 历史订单
</div>
<div class="button_bar">
<button class="common_button" onclick="help('');">
帮助
</button>
<button class="common_button" onclick="back();">
返回
</button>
</div>
<table class="query_form_table">
<tr>
<th>
客户编号
</th>
<td>
${requestScope.custNo }
</td>
<th>
客户名称
</th>
<td>
${requestScope.custName }
</td>
</tr>
</table>
<br />
<table class="data_list_table">
<tr>
<th>
订单编号
</th>
<th>
日期
</th>
<th>
送货地址
</th>
<th>
状态
</th>
<th>
操作
</th>
</tr>
<c:if test="${not empty requestScope.orderList}">
<c:forEach items="${requestScope.orderList}" var="order">
<tr>
<td class="list_data_text">
${order.odrId }
</td>
<td class="list_data_text">
${order.odrDate }
</td>
<td class="list_data_text">
${order.odrAddr }
</td>
<td class="list_data_text">
<c:choose>
<c:when test="${order.odrStatus eq 1 }">
新创建
</c:when>
<c:when test="${order.odrStatus eq 5 }">
已发货
</c:when>
<c:when test="${order.odrStatus eq 6 }">
已回款
</c:when>
</c:choose>
</td>
<td class="list_data_op">
<img
onclick="to('<%=request.getContextPath()%>/customer/orders.do?op=detail&odrId=${order.odrId }');"
title="查看明细"
src="<%=request.getContextPath()%>/images/bt_detail.gif"
class="op_button" />
</td>
</tr>
</c:forEach>
<tr>
<th colspan="100" class="pager">
<div class="pager">
共
<span><html:hidden property="bean.maxinum" write="true" />
</span> 条 每页
<html:text property="bean.perCount" styleClass="mytext"
style="width:30px;"></html:text>
条 第
<span>${requestScope.custForm.bean.pageCount}</span>页/共
<span><html:hidden property="bean.pageNum" write="true" />
</span>页
<input type="button" value="首页" name="btn1"
onclick="sub('<%=PaginationBean.FIRST%>')"
class="common_button" />
<input type="button" value="上一页" name="btn2"
onclick="sub('<%=PaginationBean.PREVIOUS%>')"
class="common_button" />
<input type="button" value="下一页" name="btn3"
onclick="sub('<%=PaginationBean.NEXT%>')" class="common_button" />
<input type="button" value="尾页" name="btn4"
onclick="sub('<%=PaginationBean.LAST%>')" class="common_button" />
转到
<html:text property="bean.pageCount" styleClass="mytext"
style="width:30px;"></html:text>
页
<input type="button" value="GO" name="btn5" onclick="sub('')"
class="common_button" />
<html:hidden styleId="bean.operate" property="bean.operate" />
</div>
</th>
</tr>
</c:if>
<c:if test="${empty requestScope.orderList}">
<tr>
<td colspan="7" style="color: red; font-size: 15px;"
align="center">
快返回吧,[ ${requestScope.custName } ]目前没有历史订单!!
</td>
</tr>
</c:if>
</table>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -