orderinfo.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:8k
源码类别:
Applet
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.util.Iterator" errorPage="" %>
- <%@page import="MyFly.Book.Bookpass" %>
- <jsp:useBean id="customerBean" class="MyFly.Bean.customerBean" scope="request"/>
- <jsp:useBean id="Bookdeliver" class="MyFly.Book.Bookdeliver" scope="request"/>
- <jsp:useBean id="Bookpass" class="MyFly.Book.Bookpass" scope="request"/>
- <%
- String name=(String)session.getAttribute("name");
- String totalprice=(String)request.getParameter("totalprice");
- customerBean.getNew(name);
- %>
- <HTML><HEAD><TITLE>填写订单详细信息</TITLE>
- <META http-equiv=Content-Type content="text/html; charset=gb2312">
- <META content=index,follow name=Robots><LINK
- href="../image/buyok_shop.css" type=text/css rel=stylesheet>
- <script language="javascript">
- function get(){
- document.payment.peisong.value=document.payment.post.options[document.payment.post.selectedIndex].text;
- //alert(str1);
- }
- </script>
- <SCRIPT language=JavaScript>
- function CheckForm()
- {
- if (document.payment.post.value.length == 0) {
- alert("请选择配送方式");
- document.payment.post.focus();
- return false;
- }
- if (document.payment.post.value == "dsd") {
- alert("请选择配送方式");
- document.payment.post.focus();
- return false;
- }
- if (document.payment.Recname.value.length <2 || document.payment.Recname.value.length>20 ) {
- alert("请检查您输入的收货人姓名");
- document.payment.Recname.focus();
- return false;
- }
- if (document.payment.RecPhone.value.length < 6 || document.payment.RecPhone.value.length > 15) {
- alert("请检查您输入的联系电话");
- document.payment.RecPhone.focus();
- return false;
- }
- if (document.payment.Recmail.value.length <11 || document.payment.Recmail.value.length >=100) {
- alert("请检查您输入的电子信箱");
- document.payment.Recmail.focus();
- return false;
- }
- if (document.payment.Recmail.value.length > 0 && !document.payment.Recmail.value.match( /^.+@.+$/ ) ) {
- alert("请检查您输入的电子信箱");
- document.payment.Recmail.focus();
- return false;
- }
- if (document.payment.ZipCode.value.length < 4) {
- alert("请检查您输入的邮政编码");
- document.payment.ZipCode.focus();
- return false;
- }
- if (document.payment.address.value.length < 4) {
- alert("请检查您输入的收货地址");
- document.payment.address.focus();
- return false;
- }
- return true;
- }
- </SCRIPT>
- <STYLE type=text/css>.STYLE1 {
- FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #ff0000
- }
- .STYLE2 {
- COLOR: #ff0000
- }
- .STYLE3 {
- FONT-SIZE: 14px; COLOR: #ff0000
- }
- A:link {
- COLOR: #ff0000
- }
- .STYLE5 {
- FONT-SIZE: 12px; COLOR: #ff0000
- }
- </STYLE>
- <META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
- <BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=20>
- <TABLE cellSpacing=0 cellPadding=0 width=530 align=center border=0>
- <TBODY>
- <TR bgColor=#ffffff>
- <TD height=25>
- <DIV align=center><SPAN class=red>购物车<IMG height=7
- src="../image/gowu1.gif" width=11>购物清单</SPAN> <IMG height=7
- src="../image/gowu1.gif" width=11> <SPAN
- class=red>收货人信息[配送方式]</SPAN> <IMG height=7 src="../image/gowu1.gif"
- width=11> 检查订单信息 <IMG height=7 src="../image/gowu2.gif" width=10>
- 生成订单 </DIV></TD></TR>
- <TR bgColor=#ffffff>
- <TD align=middle height=18><FONT
- color=red><B>您选购的图书总价为:<%=totalprice%></B></FONT></TD>
- </TR>
- <TR bgColor=#ffffff>
- <TD align=middle height=30><SPAN class=STYLE1><A
- href="#">查看特快专递送货上门地区(货到付款
- 三天内到货)</A></SPAN></TD></TR></TBODY></TABLE>
- <TABLE cellSpacing=1 cellPadding=2 width=530 align=center bgColor=#cccccc
- border=0>
- <FORM name=payment onsubmit="return CheckForm();" action=orderview.jsp
- method=post>
- <TBODY>
- <TR bgColor=#ffffff>
- <TD align=right width="20%">配送及运费 </TD>
- <TD>
- <select size=1 name=post>
- <option value="dsd"
- selected>请选择配送方式</option>
- <%
- Bookdeliver.getQuery();
- //Object[] a=dd.bookdeliver.toArray();
- //Bookpass tt;
- Iterator ite=Bookdeliver.bookdeliver.iterator();
- while(ite.hasNext())
- {
- Bookpass tt=(Bookpass)ite.next();
- // System.out.print(tt.getPrice());
- //System.out.print(tt.getType());
- %>
- <option value=<%=tt.getPrice()%>><%=tt.getType()%>:<%=tt.getPrice()%></option>
- <%}%>
- </select>
- <FONT color=red> *</FONT>
- <TD width=114></TD></TR>
- <TR bgColor=#ffffff>
- <TD align=right>收货人姓名 </TD>
- <TD colSpan=2><INPUT
- style="BORDER-RIGHT: #cccccf 1px solid; BORDER-TOP: #cccccf 1px solid; FONT: 9pt verdana; BORDER-LEFT: #cccccf 1px solid; COLOR: #666666; BORDER-BOTTOM: #cccccf 1px solid; HEIGHT: 20px"
- maxLength=16 size=30 value="<%=customerBean.getUserName()%>" name=Recname><FONT color=red> *</FONT>
- 请填写真实的姓名</TD></TR>
- <TR bgColor=#ffffff>
- <TD align=right>收货人电话 </TD>
- <TD colSpan=2><INPUT
- style="BORDER-RIGHT: #cccccf 1px solid; BORDER-TOP: #cccccf 1px solid; FONT: 9pt verdana; BORDER-LEFT: #cccccf 1px solid; COLOR: #666666; BORDER-BOTTOM: #cccccf 1px solid; HEIGHT: 20px"
- maxLength=15 size=30 value="<%=customerBean.getTelephone()%>" name=RecPhone> <FONT
- color=red>*</FONT> </TD></TR>
- <TR bgColor=#ffffff>
- <TD align=right>收货人邮箱 </TD>
- <TD colSpan=2><INPUT
- style="BORDER-RIGHT: #cccccf 1px solid; BORDER-TOP: #cccccf 1px solid; FONT: 9pt verdana; BORDER-LEFT: #cccccf 1px solid; COLOR: #666666; BORDER-BOTTOM: #cccccf 1px solid; HEIGHT: 20px"
- maxLength=100 size=30 value="<%=customerBean.getEmail()%>" name=Recmail> <FONT
- color=red>*</FONT></TD></TR>
- <TR bgColor=#ffffff>
- <TD align=right>邮政编码 </TD>
- <TD colSpan=2><INPUT
- style="BORDER-RIGHT: #cccccf 1px solid; BORDER-TOP: #cccccf 1px solid; FONT: 9pt verdana; BORDER-LEFT: #cccccf 1px solid; COLOR: #666666; BORDER-BOTTOM: #cccccf 1px solid; HEIGHT: 20px"
- maxLength=10 size=30 value="<%=customerBean.getMobile()%>" name=ZipCode> <FONT
- color=red>*</FONT></TD></TR>
- <TR bgColor=#ffffff>
- <TD align=right>收货人地址 </TD>
- <TD colSpan=2><INPUT
- style="BORDER-RIGHT: #cccccf 1px solid; BORDER-TOP: #cccccf 1px solid; FONT: 9pt verdana; BORDER-LEFT: #cccccf 1px solid; COLOR: #666666; BORDER-BOTTOM: #cccccf 1px solid; HEIGHT: 20px"
- maxLength=100 size=30 value="<%=customerBean.getAddress()%>" name=address><FONT color=red>
- *</FONT></TD></TR>
- <TR bgColor=#ffffff>
- <TD align=right>指定送达时间 </TD>
- <TD colSpan=2><INPUT
- style="BORDER-RIGHT: #cccccf 1px solid; BORDER-TOP: #cccccf 1px solid; FONT: 9pt verdana; BORDER-LEFT: #cccccf 1px solid; COLOR: #666666; BORDER-BOTTOM: #cccccf 1px solid; HEIGHT: 20px"
- maxLength=30 size=30 name=gettime></TD></TR>
- <TR bgColor=#ffffff>
- <TD align=right height=25>付款方式 </TD>
- <TD colSpan=2 height=25> <LABEL><INPUT type=radio CHECKED value=1
- name=fukuan> 货到付款 <INPUT type=radio value=2 name=fukuan>
- 在线支付<SPAN
- class=red>[农行一卡通]</SPAN>
- <INPUT type=radio value=3 name=fukuan> 邮局汇款
- <INPUT type=radio value=4 name=fukuan> 银行电汇 </LABEL></TD></TR>
- <TR bgColor=#ffffff>
- <TD align=right height=25>是否开发票 </TD>
- <TD colSpan=2 height=25> <INPUT type=radio value=是 name=fapiao> 是
- <INPUT type=radio CHECKED value=否 name=fapiao> 否
- <SPAN class=STYLE3>*</SPAN> <SPAN
- class="red STYLE2">发票抬头请在下面注明</SPAN></TD></TR>
- <TR bgColor=#ffffff>
- <TD align=right>我的其它要求 </TD>
- <TD vAlign=top width=282><TEXTAREA class=txtBoxStyle2 id=notes style="OVERFLOW: auto" name=content rows=4 cols=44></TEXTAREA></TD>
- <TD vAlign=top width=118> </TD></TR>
- <TR bgColor=#ffffff>
- <TD align=middle colSpan=3 height=17><INPUT type=image height=27 width=97
- src="../image/bt_1.gif" border=0
- name=imageField onClick="get()"> <A onclick=javascript:history.go(-1)
- ><IMG height=27 src="../image/bt_4.gif" width=97 border=0 ></A>
- <input type="hidden" name="totalprice" value="<%= String.valueOf(totalprice) %>">
- <input type="hidden" name="peisong" value="">
- </TD></TR></FORM>
- </TBODY>
- </TABLE>
- </BODY></HTML>