📄 orderlist.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<link href="<%=path%>/css/css.css" rel="stylesheet" type="text/css" />
<title>订单列表</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<form action="#" name="form1" method="post" >
<table width=100% border=0 class="mytable">
<tr class="tableHead">
<td>订单号</td>
<td>用户名</td>
<td>联系电话</td>
<td>下单时间</td>
<td>状态</td>
<td>操作</td>
<c:if test="${requestScope.orderlist==null}">
<tr>
<td colspan="6" align="center" class="STYLE1">没有订单</td>
</tr>
</c:if>
<c:if test="${requestScope.orderlist!=null}">
</tr>
<c:forEach var="orderlist" items="${requestScope.orderlist}">
<tr>
<td align = "center" >${orderlist.orderid}</td>
<td align = "center" >${orderlist.username}</td>
<td align = "center" >${orderlist.userphone}</td>
<td align = "center" >${orderlist.ordertime}</td>
<c:if test="${orderlist.hasapproved=='0'}">
<td align = "center" class="STYLE2" >待审核</td>
</c:if>
<c:if test="${orderlist.hasapproved=='1'}">
<td align = "center" >已通过</td>
</c:if>
<c:if test="${orderlist.hasapproved=='2'}">
<td align = "center" class="STYLE1" >未通过</td>
</c:if>
<td align = "center" ><a href="${pageContext.request.contextPath}/orderManagerServlet?task=modify&orderid=${orderlist.orderid}">修改</a></td>
</tr>
</c:forEach>
</c:if>
</table>
${mpage.pageBar}
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -