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

📄 surebuy.jsp

📁 在网上书店买书
💻 JSP
📖 第 1 页 / 共 4 页
字号:
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="java.sql.*"%>
<%@page import="Model.DataOperation"%>
<%@page import="Model.Basket"%>
<%@ page import="Model.User" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="Model.Book" %>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
--%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">



<html xmlns="http://www.w3.org/1999/xhtml">
    <HEAD>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <TITLE>E-Book Store</TITLE>
        
        <style type="text/css">
            @import url("pageControl/Ordercfm.css");
            @import url("pageControl/bottom.css");
            @import url("pageControl/Ordercfm-ql.css");
            @import url("pageControl/pop_cfm.css");
        </style>
        <link rel="stylesheet" type="text/css" href="PageControl/stylesheet.css">
        <script language="javascript">
String.prototype.Trim=function(){return   this.replace(/(^\s*)|(\s*$)/g,"");}   
String.prototype.Ltrim   =   function(){return   this.replace(/(^\s*)/g,   "");}   
String.prototype.Rtrim   =   function(){return   this.replace(/(\s*$)/g,   "");} 
        </script>
    </HEAD>
    <BODY>
        <TABLE cellSpacing=0 cellPadding=0 align=center border=0>
            <TBODY>
                <TR>
                    <TD>&nbsp;</TD>
                </TR>
            </TBODY>
        </TABLE>
        <BR>
        <form id="form3" name="form3" method="POST"  action="SureBuy" >
            
            
            
            
            
            
            <input type="hidden" name="hiddensplit" id="hiddensplit" value="0">
            
            
            
            <input type="hidden" id="isUseGC" value="0"/>
            
            
            
            
            
            
            
            
            <input type="hidden" id="hiddendup" name="hiddendup" value="0"/>
            
            
            <BR>
            
            <BR>
            <TABLE cellSpacing=0 cellPadding=0 width="90%" align=center border=0>
                <TBODY>
                    <TR>
                        <TD>      
                            <TABLE cellSpacing=0 cellPadding=4 width="100%" border=0>
                                <TBODY>
                                    <TR>
                                        <TD>
                                            <DIV align=left><BR>
                                                <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
                                                    <TBODY>
                                                        <TR>
                                                            <TD vAlign=top width=7 bgColor=#3163ce height=30><IMG height=17 src="images/az-s-top-left-blue-corner.gif" width=17></TD>
                                                            <TD bgColor=#3163ce>
                                                                <DIV align=center><IMG height=21 src="images/az-s-click-place-your-order.gif" width=420>
                                                                </DIV>
                                                            </TD>
                                                            
                                                            
                                                            
                                                            <script language="javascript">
String.prototype.Trim=function(){return   this.replace(/(^\s*)|(\s*$)/g,"");}   
String.prototype.Ltrim   =   function(){return   this.replace(/(^\s*)/g,   "");}   
String.prototype.Rtrim   =   function(){return   this.replace(/(\s*$)/g,   "");} 

function checkshipdate(){
	var notnull;		
	var form = document.getElementById("form3");
	notnull = 0;	
	if ( document.getElementById('shippingtime').style.display =="none"){	
		return true;
	}else{			
		for(var i=0;i<document.form3.time1.length;i++){				
			if (document.form3.time1[i].checked==true){
				notnull = 1
				break;
			}
		}		
		
		if (notnull==0 && document.getElementById("remark").value.Trim() == ""){					
			showshdatepop();
			return false;
		}
		else{			
			return true;
		}
	}	
 }
 
function submitFormwithNocheck(){
	var form = document.getElementById("form3");		
	form.submit();
}

function submitForm()
{
	var checkdate;
	var form = document.getElementById("form3");
	checkdate = checkshipdate();	
	if (checkdate==true){		
		if (document.getElementById("needinvoice").checked==true){		
			if (document.getElementById("invoicetitle").value.Trim()=="" || document.getElementById("invoicecontent").value=="^^" || document.getElementById("invoicetitle").value.Trim().length>21){
				showpop();	
				return false;					
			}
		}

		var is_use_card=document.getElementById("isUseGC").value;
		// alert(is_use_card);
		if(is_use_card!=0){
			 showGiftCardPop();
			 return false;
	     }

		if (document.getElementById("hiddendup").value=="1"){			
				showduppop();	
				return false;		
		}					
		form.action = "http://localhost:8084/E-Book/SureBuy";
		form.submit();
		
	}else{		
		return false;
	}
}

function checkinvoice()
{	
	var checkdate;	
	checkdate = checkshipdate();	
	if (checkdate==true){	
		if (document.getElementById("needinvoice").checked==true){		
			if (document.getElementById("invoicetitle").value.Trim()=="" || document.getElementById("invoicecontent").value.Trim()=="^^" || document.getElementById("invoicetitle").value.Trim().length>21){
				showpop();	
				return false;
			}
		}

		var is_use_card=document.getElementById("isUseGC").value;
		// alert(is_use_card);
		if(is_use_card!=0){
			 showGiftCardPop();
			 return false;
	     }

		if (document.getElementById("hiddendup").value=="1"){			
			showduppop();	
			return false;		
		}		
	}else{		
		return false;
	}
	
}

function showGiftCardPop(){
	window.location.href = "#top";
	document.getElementById('popGiftCard').style.display='block';
}

function showduppop(){
	window.location.href = "#top";
	document.getElementById('PopDup').style.display='block';
	
}

⌨️ 快捷键说明

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