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

📄 administratorshowoneorderlist.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>
<table    width="734" height="400" border="1" align="center" cellpadding="0" cellspacing="1">
		<form action="print.jsp" name="form1" method="post" > 
  			  
<%	
	request.setCharacterEncoding("gb2312");

ArrayList userOrderList=(ArrayList)(session.getAttribute("userOrderList".toUpperCase()));
	if(userOrderList!=null){	
		String orderID="",addDay="",totalPrice="",card="",num="",picture="",price="",commodityNum="";
		//Hashtable table=(Hashtable)userOrderList.get(0);
		//orderID=table.get("orderID".toUpperCase()).toString();
		//addDay=table.get("addDay".toUpperCase()).toString();
		//totalPrice=table.get("totalPrice".toUpperCase()).toString();
System.out.println("sfsdfsdf");
		for(int i=0;i<userOrderList.size();i++){
			Hashtable table=(Hashtable)userOrderList.get(i);
			//System.out.println("?????");
			card=table.get("card".toUpperCase()).toString();
			//System.out.println("33333");
			num=table.get("num".toUpperCase()).toString();
			//System.out.println("44444444");
			price=table.get("price".toUpperCase()).toString();price=price.substring(0,price.indexOf("."));
			//System.out.println("?5555555??");
			picture=request.getContextPath()+"/image/phone/"+card+"/"+num+"/"+table.get("picture".toUpperCase()).toString();
			//System.out.println("6666");
			commodityNum=table.get("commodityNum".toUpperCase()).toString();
			//System.out.println("!!!!");
%>
			<TABLE cellSpacing=1 cellPadding=0 width=100% bgColor=#6a6967 
			border=0>
			  <TBODY>
			  <TR vAlign=bottom>
				<TD bgColor=#c8cccf colSpan=3 height=20></TD></TR>
			  <TR align=middle>
				<TD width=133 bgColor=#ffffff height=83>
				<img src="<%=picture%>" width=86 height=83></TD>
				<TD width=292 bgColor=#f9f6ed>
				  <TABLE width=250>
					<TBODY>
					<TR>
					  <TD height="83">
					    手机品牌:<%=card%><BR>
						手机型号:<%=num%><BR>
						手机价格:<%=price%>(元)<br>
					  购买数量:<%=commodityNum%>					  </TD></TR></TBODY></TABLE></TD>
			  </TR></TBODY></TABLE>
<%			
		}
	}
%>
</form>

  

⌨️ 快捷键说明

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