⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clientshoworder.jsp

📁 电子商务网站使用MVC模式B/S结构功能不是很全适合初学者看
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@page import="java.util.Hashtable"%>
<%@page import="java.util.ArrayList" %>
<% 
		if(request.getParameter("logged")!=null){
%>
			<script language="javascript">
				alert("你还未登陆");
			</script>
<%	
		}else if(request.getParameter("done")!=null){		
%>		
			<script language="javascript">
				alert("操作成功");
			</script>
<%
		}	
%>		
<style type="text/css">
<!--
A {
    COLOR: #3333CC; TEXT-DECORATION: none ;border-bottom:1px dotted
}
.mobile_top5_1{
	margin:5px 4;
	padding:0;
	width:190px;
	height:127px;
   background:url(<%=request.getContextPath()%>/image/moblie_bg1.gif);
}
.mobile_top5_1 h4{
 margin:15px 3px 2 3px;
 font-size:12px; 
 width:20px; 
 height:100px; 
 float:left; 
 text-align: center; 
 font-weight:normal;
}
.mobile_top5_1 table{
margin:5px 5px 2px 0; 
float:right;
}
.aindex{color: blue;font-size: 13px}
.currentindex{color: red;font-size: 13px}
.index{color: black;font-size: 12px}
.style1 {color: #ECE9D8;font-size: 12px}
.style3 {font-size: 12px}
.style4 {color: #3333CC}
-->
</style>
<center>
<form action="print.jsp" name="form1" method="post">
  <table width="770" height="247" border="1" align="center">
    <tr>
      <td width="155"><div align="center">订单号</div></td>
      <td width="120"><div align="center">订单日期</div></td>
      <td width="120"><div align="center">金额(元)</div></td>
      <td width="145"><div align="center">发货情况</div></td>
      <td width="196"><div align="center">收货情况</div></td>
    </tr>
<%	
	ArrayList order=(ArrayList)(session.getAttribute("userOrder".toUpperCase()));
	if(order!=null){
		for(int i=0;i<order.size();i++){
			Hashtable table=(Hashtable)order.get(i);
			String orderID="",addDay="",totalPrice="",consignment="",receipt="";
			orderID=table.get("orderID".toUpperCase()).toString();
			addDay=table.get("addDay".toUpperCase()).toString();
			totalPrice=table.get("totalPrice".toUpperCase()).toString();
			consignment=table.get("consignment".toUpperCase()).toString();
			receipt=table.get("receipt".toUpperCase()).toString();
%>
			<tr>
				<Td><div align="center"><a href="<%=request.getContextPath()%>/clientShowOneOrderListAction?orderID=<%=orderID%>" target="showOrderList" title="查看订单"><%=orderID%></a></div></Td>
				<td><div align="center"><%=addDay%></div></td>
				<Td><div align="center"><%=totalPrice%></div></Td>
			    <Td><div align="center"><%=consignment%></Td>
			    <Td><div align="center"><%=receipt%>&nbsp;<%if(receipt.equals("未收到")){ %><a href="<%=request.getContextPath()%>/clientReceiptOrderAction?orderID=<%=orderID%>" title="若已收到货物将订单标志为已收到">收货确认</a><%}%></Td>
			</tr>
<%
		}
	}else{
		System.out.println("kao zmmeiy");
	}	
%>
	<tr >
	  <td height="198" colspan="5" >
<iframe src="" width="734" height="800"  scrolling="yes"  name="showOrderList"></iframe>	  </td>
	</tr>			
  </table> 
</form>

  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -