📄 showdetail.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" import="wssd.*,java.util.*"%>
<jsp:useBean id="db" class="wssd.wssdDB" />
<html>
<head>
<title>查看订单</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../../css/style.css" rel="stylesheet" type="text/css">
<script language="javascript">
function fun(para1,para2)
{
if(para1 == 1)
{
self.location.href = "orderdeal.jsp?action=update&status=1&id="+para2;
}
if(para1 == 2)
{
self.location.href = "orderdeal.jsp?action=update&status=2&id="+para2;
}
}
</script>
</head>
<%
ArrayList list = (ArrayList)session.getAttribute("CurrentList");
if(list == null)
{
out.print("没有记录");
}
else
{
String id = request.getParameter("id");
if(id == null)
{
out.print("链接错误");
}
else
{
shopping sp = (shopping)list.get(Integer.parseInt(id));
%>
<table cellspacing="0" border="1" bordercolor="#000000">
<tr>
<td>订单价格:</td>
<td><%=sp.getShoprice()%></td>
</tr>
<tr>
<td>订单时间:</td>
<td><%=sp.getShoptime()%></td>
</tr>
<tr>
<td>订单方式:</td>
<td><%=KeyWord.paystyle[Integer.parseInt(sp.getPaystyle())]%></td>
</tr>
<tr>
<td colspan="2">
<table>
<%
for(int j=0; j<sp.shoplist.size(); j++)
{
carTable ct = (carTable)sp.shoplist.get(j);
%>
<tr>
<td>商品名称:</td>
<td><%=ct.getTitle()%></td>
</tr>
<tr>
<td>商品价格:</td>
<td><%=ct.getPrice()%></td>
</tr>
<%
}
%>
</table>
</td>
</tr>
<tr>
<td>订单状态:</td>
<td><%=KeyWord.orderStatues[Integer.parseInt(sp.getOrderstatus())]%></td>
</tr>
</table>
<table>
<tr>
<td><input type="button" class="logbutton" value="关闭" onclick="window.close()"></td>
<%
if(Integer.parseInt(sp.getOrderstatus()) == 0)
{
%>
<td><input type="button" class="logbutton" value="处理" onclick="javascript:fun(1,<%=sp.getId()%>)"></td>
<td><input type="button" class="logbutton" value="处理结束" onclick="javascript:fun(2,<%=sp.getId()%>)"></td>
<%
}
if(Integer.parseInt(sp.getOrderstatus()) == 1)
{
%>
<td><input type="button" class="logbutton" value="处理完毕" onclick="fun(2,<%=sp.getId()%>)"></td>
<%
}
%>
</tr>
</table>
<%
}
}
%>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -