模仿Taobao购物网

源代码在线查看: orderinfo.jsp~81~

软件大小: 5150 K
上传用户: mpeg2000
关键词: Taobao
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				
				
				
				
				
				
				
				飞梦通信:订单确认
				
				
								.red {color: #FF0000; font-size: 20px; }
				.r {background:#EBEBE4}
				-->
				
				
								function MM_form () {
				  var receiverName = document.form1.receiverName.value;
				  var receiverAdress = document.form1.receiverAdress.value;
				  var receiverPostCode = document.form1.receiverPostCode.value;
				  var receiverPhone = document.form1.receiverPhone.value;
				  if(receiverName == "") {
				    alert("请填写收货人姓名!");
				    document.form1.receiverName.focus();
				    return false;
				  }
				  else if(!isNaN(receiverName)) {
				    alert("请填写真实的姓名!(姓名不能为数字)");
				    document.form1.receiverName.focus();
				    return false;
				  }
				  else if(receiverAdress == "") {
				    alert("请填写收获人的地址!");
				    document.form1.receiverAdress.focus();
				    return false;
				  }
				  else if(receiverAdress.length < 3) {
				    alert("请填写详细的收获人地址!");
				    document.form1.receiverAdress.focus();
				    return false;
				  }
				  else if(receiverPostCode == "") {
				    alert("请填写收获人的邮编!");
				    document.form1.receiverPostCode.focus();
				    return false;
				  }
				  else if(receiverPostCode.length < 6 || isNaN(receiverPostCode)) {
				    alert("请填写有效的邮编!");
				    document.form1.receiverPostCode.focus();
				    return false;
				  }
				  else if(receiverPhone == "") {
				    alert("请填写收货人电话!");
				    document.form1.receiverPhone.focus();
				    return false;
				  }
				  else if(isNaN(receiverPhone)) {
				    alert("请填写收货人电话!");
				    document.form1.receiverPhone.focus();
				    return false;
				  }
				  else if(receiverPhone.lingth =12 ) {
				    alert("请填写有效的电话!包括区号 /n 如(07714232657)");
				    document.form1.receiverPhone.focus();
				    return false;
				  }
				  else {
				    return true;
				  }
				}
				//-->
				
				
				
				
				
								java.util.Date nowtime = new Date();
				SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm");
				String dateString = formatter.format(nowtime);
				
				Vector buylist = (Vector)session.getValue("shopcar");
				if(buylist == null || buylist.size() < 1) {
				%>
				
								else {
				  String username = (String)session.getValue("username");
				  int useriD = orderInfoBean.selectOf(username);
				  float pricenum = 0;
				  for(int i = 0;i < buylist.size();i++) {
				    ShouJI_Bean shouJIBean = (ShouJI_Bean)buylist.elementAt(i);
				    pricenum += shouJIBean.getBuynum()*shouJIBean.getMemberPrice();
				  }
				}
				%>
				
				
				  
				    
				  
				    
				      查看以下订单信息,然后点击“订单确认”
				    
				    
				      
				    
				    
				      会员ID :
				      
				    
				     
				      商品总金额 : 
				      
				    
				    
				      运费总费用 : 
				      
				    
				    
				      合计总金额 : 
				      
				    
				    
				      收货人姓名 :
				      *
				    
				    
				      收获人的地址 : 
				      
				        
				        *
				    
				    
				      收获人的邮编 : 
				      *
				    
				    
				      收货人电话 : 
				      *
				    
				
				    
				      配送方式类型 : 
				      
				        
				          邮寄
				        
				      
				    
				    
				      支付方式类型 : 
				      
				        
				          银行电汇
				        
				      
				    
				    
				      下订单时间 : 
				      
				    
				    
				      
				    
				    
				      
				      
				    
				  
				  
				
				
				
				
							

相关资源