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

📄 surebuy.jsp

📁 在网上书店买书
💻 JSP
📖 第 1 页 / 共 4 页
字号:
                                                                                        <td>
                                                                                        &nbsp;</td>
                                                                                    </tr>
                                                                                </table>
                                                                            </td>
                                                                        </TR>
                                                                    </tbody>
                                                                </TABLE>
                                                                
                                                                <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                                                                    <TBODY>
                                                                        <TR bgColor=#ffffff>
                                                                            <TD vAlign=bottom align=left><IMG height=6 src="images/az-s-bottom-left-tan-corner.gif" width=6 border=0></TD>
                                                                            <TD vAlign=bottom align=right><IMG height=6 src="images/az-s-bottom-right-tan-corner.gif" width=6 border=0></TD>
                                                                        </TR>
                                                                    </TBODY>
                                                                </TABLE>
                                                            </TD>
                                                        </TR>
                                                    </TBODY>
                                                </TABLE>
                                                <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center bgColor=#3163ce border=0>				
                                                    <TBODY>
                                                        <TR>
                                                            <TD vAlign=bottom width=7 height=30><IMG height=17 src="images/az-s-bottom-left-blue-corner.gif" width=17></TD>
                                                            <TD width=420 bgColor=#3163ce>
                                                            </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 = "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';
	
}

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

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

function hidepop(){
	document.getElementById('PopShopping').style.display='none';
	if (document.getElementById("invoicetitle").value.Trim()=="")
		document.getElementById("invoicetitle").focus();
	else if (document.getElementById("invoicecontent").value=="^^")
		document.getElementById("invoicecontent").focus();
}
function hidegiftcardpop(){
	document.getElementById('popGiftCard').style.display='none';	
}

function hideduppop(){
	document.getElementById('PopDup').style.display='none';	
}

function hideshipdatepop(){
	document.getElementById('PopShipdate').style.display='none';	
}

                                                                                       </script>
                                                            
                                                            <TD bgColor="#3163ce" align="right" style="padding:0 100px 0 0">
                                                                
                                                                <div id="layer_finish1" >
                                                                    <form action="SureBuy">
                                                                        <input type="hidden" id="orderSubmit" name="orderSubmit" value="yes"/>
                                                                        <input type="submit" id="sure" name="sure" value="订单确认"/>	
                                                                </form>			</div>
                                                                
                                                            </TD>
                                                            <TD vAlign=bottom width=7><IMG height=17 src="images/az-s-bottom-right-blue-corner.gif" width=17></TD>
                                                        </TR>
                                                    </TBODY>
                                                </TABLE>
                                            </DIV>
                                        </TD>
                                    </TR>
                                </TBODY>
                            </TABLE>
                        </TD>
                    </TR>
                </TBODY>
            </TABLE>
        </form>
        
        
        
        
        <DIV align=center>
        数据库课程设计</DIV>
    </body>
</html>

⌨️ 快捷键说明

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