You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shopping/daima/WebRoot/orderManager.jsp

354 lines
8.5 KiB

<%@ page language="java" import="java.util.*,com.ace.shopping.beans.* " pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page import="java.text.SimpleDateFormat"%>
<%
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%>">
<title>My JSP 'ShopManagerMain.jsp' starting page</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">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script>
function changetime()
{
var d = new Date();
var y = d.getYear();
var m = d.getMonth()-1;
var dd = d.getDate();
var hh = d.getHours();
var mi = d.getMinutes();
var sec = d.getSeconds();
document.getElementById("time").innerHTML = "当前时间为"+y+"年"+m+"月"+dd+"日"
+hh+":"+mi+":"+sec;
//过了一段时间后调用函数
}
</script>
<script type="text/javascript">
function su(){
alert("公告发布成功!")
}
</script>
<script>
function guan()
{
if(this.confirm("是否关闭?"))
this.close();
}
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理系统</title>
<script language="javascript" src="jquery.js"></script>
<style type="text/css">
<!--
* {
margin:0px;
padding:0px;
}
html, body{
height:100%;
overflow: hidden;
}
html>body{ /*-- for !IE6.0 --*/
width: auto;
height: auto;
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
}
body {
border:8px solid #ffffff;
background-color: #ffffff;min-width:230px;
}
#mainDiv {
width: 100%;
height: 100%;
padding:60px 0px 25px 0px;;
}
#centerDiv{
width: 100%;
height: 100%;
background-color:#00CCFF;
padding-left:158px;
}
#mainDiv>#centerDiv{ /*-- for !IE6.0 --*/
width: auto;
height: auto;
position: absolute;
top: 56px;
left: 0px;
right: 0px;
bottom: 20px;
}
#left{
width:158px;
height:100%;
background:url(images/slide.jpg) repeat-y;
position:absolute;
left:0px;
}
#lhead{
background:url(images/left-head.jpg) left top no-repeat;
height:25px;
font-size:14px;
color:#FF9933;
text-align:center;
line-height:25px;
}
#right{
width:100%;
height:100%;
background:url(images/bg.gif);
position:absolute;
overflow-y:auto;
border:1px #003366 solid;
padding:20px 0 0 10px;
font-size:12px;
font-family:"宋体";
}
#centerDiv>#right{
width:auto;
height:auto;
position:absolute;
top:0px;
right:0px;
left:158px;
bottom:0px;
}
#topDiv{
width:100%;
height:56px;
background:url(images/head-bg.jpg) repeat-x;
position:absolute;
top:0px;
overflow:hidden;
}
#topDiv ul{
list-style:none;
font-size:12px;
width:100%;
margin:0;
padding:0;
}
#topDiv ul li{
float:left;
width:15%
}
#topDiv ul li a {
display:block;
width:100%;
height:25px;
line-height:25px;
background:url(images/menu-bg.jpg) repeat-x;
color:#FFFFFF;
direction:none;
text-align:center;
border-bottom:1px #000066 solid;
border:1px #06597D solid;
}
#tmenu{
width:100%;
position:absolute;
left:12%;
bottom:0;
padding-left:15%;
margin-left:-15%;
}
#current{
background:#ccc;
height:25px;
line-height:25px;
margin:-20px 0 0 -10;
overflow:hidden;
}
#bottomDiv{
width:100%;
height:20px;
background:url(images/bottom.jpg) repeat-x;
position:absolute;
bottom:0px;
bottom:-1px; /*-- for IE6.0 --*/
}
#left ul{
list-style:none;
font-size:12px;
margin:50px 0 0 8px;
}
#left ul li a{
display:block;
width:140px;
height:25px;
line-height:25px;
background:url(images/menu-bg.jpg) repeat-x;
color:#FFFFFF;
direction:none;
text-align:center;
border-bottom:1px #000066 solid;
border:1px #06597D solid;
}
#left ul li a:hover{
background:url(images/menu-bg.jpg) 0px 25px;
color:#99FFCC;
direction:none;
text-align:center;
border-bottom:1px #000066 solid;
}
#form{
width:80%;
height:99%;
margin:0 auto;
_margin-left:20%;
}
fieldset{
width:100%;
margin:20 auto;
line-height:35px;
padding-left:20PX;
}
-->
</style>
</head>
<body onload="javascript:setInterval(changetime,2000)">
<div id="mainDiv">
<div id="topDiv">
<div id="tmenu"><ul>
<li ><a href="ShopManagerMain.jsp">首页</a></li>
<li ><a href="javascript:window.history.go(1)">前进</a></li>
<li ><a href="javascript:window.history.go(-1)">后退</a></li>
<li ><a href="javascript:window.history.go(0)">刷新</a></li>
<li ><a href="servlet/ShopManagerServlet?op=help">帮助</a></li>
</ul></div></div>
<div id="centerDiv">
<div id="left">
<div id="lhead">管理菜单</div>
<ul>
<li ><a href="servlet/ShopManagerServlet?op=ShowQuser">查看用户</a></li>
<li ><a href="servlet/T_boardServlet?op=five">公告管理</a></li>
<li ><a href="servlet/AdGoodsListServlet">商品管理</a></li>
<li ><a href="servlet/ContactServlet?op=find">留言管理</a></li>
<li ><a href="#">订单管理</a></li>
<li ><a href="servlet/ShowServlet">关 闭</a></li>
</ul>
</div>
<div id="right">
<div id="current">&nbsp;&nbsp;&nbsp;&nbsp;当前位置:</div>
<H1 align="center">欢迎来到GoShopping网上购物后台管理</H1>
<marquee location="right" loop="">
<H2 id="time" align="center"></H2>
</marquee>
<br/>
<center>
<!--文件尾开始-->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="28" style="text-align: center;">
<tr>
<td colspan="6"><h3>查看订单</h3></td>
</tr>
<tr style="background-color: Red">
<th>编号</th>
<th>订单编号</th>
<th>购买商品</th>
<th>价格</th>
<th>数量</th>
<th>收货地址</th>
<th>订单状态</th>
<th>下订单时间</th>
<th>卖家留言</th>
<th>操作</th>
</tr>
<c:forEach var="olist" items="${olists}" varStatus="ss">
<c:if test="${ss.count%2==0}">
<tr style="background-color: lightgray;height: 20px">
<td>${olist.orderDetails.id}</td>
<td>${olist.o_Id}</td>
<td>${olist.orderDetails.g_Name}</td>
<td>${olist.orderDetails.g_Price}</td>
<td>${olist.orderDetails.o_Count}</td>
<td>${olist.o_Address}</td>
<td>${olist.orderDetails.o_Status==0?"未发货":"已发货"}</td>
<td>${olist.o_date}</td>
<td>${olist.o_Msg}</td>
<td>
<c:choose>
<c:when test="${olist.orderDetails.o_Status==0}">
<a href="servlet/ChangeStatusServlet?op=changestatus&id=${olist.orderDetails.id}">发货</a>
</c:when>
<c:otherwise>
已发货
</c:otherwise>
</c:choose>
</td>
</tr>
</c:if>
<c:if test="${ss.count%2!=0}">
<tr style="height: 20px"">
<td>${olist.orderDetails.id}</td>
<td>${olist.o_Id}</td>
<td>${olist.orderDetails.g_Name}</td>
<td>${olist.orderDetails.g_Price}</td>
<td>${olist.orderDetails.o_Count}</td>
<td>${olist.o_Address}</td>
<td>${olist.orderDetails.o_Status==0?"未发货":"已发货"}</td>
<td>${olist.o_date}</td>
<td>${olist.o_Msg}</td>
<td>
<c:choose>
<c:when test="${olist.orderDetails.o_Status==0}">
<a href="servlet/ChangeStatusServlet?op=changestatus&id=${olist.orderDetails.id}">发货</a>
</c:when>
<c:otherwise>
已发货
</c:otherwise>
</c:choose>
</td>
</tr>
</c:if>
</c:forEach>
</table>
</center>
<div id="form">
</div>
</div></div>
<div id="bottomDiv"></div>
</div>
<script language="javascript">
$("#test1").toggle(function(){$("#test").slideDown()},function(){$("#test").slideUp()})
</script>
</body>
</html>
</html>