📄 ordercheck.jsp
字号:
<%@ page contentType="text/html; charset=GBK" language="java"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %>
<c:if test="${orderList==null}">
<c:redirect url="/servlet/OrderChkServlet" />
</c:if>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
<meta http-equiv="expires" content="Wed, 26 Feb 1970 08:21:57 GMT" />
<title>订单查看</title>
</head>
<script language="javascript" type="text/javascript" src="/lmhshop/font/calendar.js"></script>
<script language="javascript" type="text/javascript">
<!--分页处理-->
function orderPage(pageNum){
var pageValue=showForm.curPage.value;
if(pageNum==1){
pageValue=1;
}else if(pageNum==2&&pageValue>1){
pageValue--;
}else if(pageNum==3&&pageValue<${totalPage}){
pageValue++;
}else if(pageNum==4){
pageValue=${totalPage};
}
showForm.curPage.value=pageValue;
showForm.submit();
}
function checkOrder(norderID){
location.replace("<c:url value='/servlet/OrderCheckServlet?norderID="+norderID+"'/>");
}
</script>
<body>
<c:if test="${empty orderList}">
<table width="100%" align="center">
<tr>
<td align="center">
<br>
<br>
<br>
<br>
<strong>对不起,暂无用户订单!</strong>
<br>
<br>
<br>
<br>
</td>
</tr>
</table>
</c:if>
<c:if test="${!empty orderList}">
<form method="get" action="/lmhshop/servlet/OrderChkServlet" name="showForm">
<input type="hidden" id="curPage" name="curPage" value="${curPage}" />
<table width="100%" align="center">
<tr align="center">
<th width="9%" align="right" nowrap scope="row">
下单日期: </th>
<th width="12%" align="left" nowrap scope="row">
<input name="startDate" type="text" id="startDate" onFocus="javascript:{show_cele_date(this,'','',this);}" value="${param.startDate}" size="15">
</th>
<th width="2%" align="right" nowrap scope="row">至 </th>
<th width="11%" align="left" nowrap scope="row">
<input name="endDate" type="text" id="endDate" onFocus="javascript:{show_cele_date(this,'','',this);}" value="${param.endDate}" size="15">
</th>
<th width="7%" align="right" nowrap scope="row">用户名: </th>
<th width="15%" align="left" nowrap scope="row">
<input name="scuser" type="text" id="scuser" value="${param.scuser}" size="18"> </th>
<th width="9%" align="right" nowrap scope="row">商品名: </th>
<th width="22%" align="left" nowrap scope="row"><input name="smcname" type="text" id="smcname" value="${param.smcname}"></th>
<th width="13%" nowrap scope="row">
<input name="Search" type="submit" id="Search" value="查询" />
<input type="reset" name="resetOrder" id="resetOrder" value="重置"> </th>
</tr>
</table>
<table width="100%" border="1" align="center">
<tr>
<th width="15%" scope="row">订单号</th>
<th width="12%" scope="row">用户名</th>
<th width="12%" scope="row">真实姓名</th>
<th width="12%" scope="row">发货方式</th>
<th width="20%" scope="row">下单时间</th>
<th width="12%" scope="row">汇款方式</th>
<th width="12%" scope="row">审核状态</th>
<th width="12%" scope="row">操作</th>
</tr>
<c:forEach items="${orderList}" var="ob">
<tr>
<th nowrap scope="row">${ob.nid}</th>
<th nowrap scope="row">${ob.scuser}</th>
<th nowrap scope="row">${ob.ssname}</th>
<th nowrap scope="row">${ob.ssendtype}</th>
<th nowrap scope="row">${ob.dgdate}</th>
<th nowrap scope="row">${ob.spaytype}</th>
<th nowrap scope="row">
<input type="hidden" id="sstatus" name="sstatus" value="${ob.sstatus}" />
<c:if test="${ob.sstatus==1}">未审核</c:if>
<c:if test="${ob.sstatus==2}">已通过</c:if>
<c:if test="${ob.sstatus==3}">未通过</c:if>
</th>
<th nowrap scope="row"><a href="#" onClick="checkOrder(${ob.nid});">审核</a></th>
</tr>
</c:forEach>
</table>
<table width="100%" border="1" align="center">
<tr>
<td align="center" valign="middle">共有${countAll}条记录数
|
${curPage}/${totalPage}
|
<c:if test="${curPage!=1}">
<a href="#" onClick="orderPage(1);return false;">首页</a>
<a href="#" onClick="orderPage(2);return false;">上一页</a>
</c:if>
<c:if test="${curPage!=totalPage}">
<a href="#" onClick="orderPage(3);return false;">下一页</a>
<a href="#" onClick="orderPage(4);return false;">尾页</a>
</c:if>
</td>
</tr>
</table>
</form>
</c:if>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -