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

📄 checkout.jsp

📁 基于MVC架构实现的购物车功能
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@page import="java.text.DecimalFormat;"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  </head>
  <body>
   <center>
  <div style="width:98%;position:relative;border:1px solid red;">
  	<div style="width:98%;height:150px;border:1px solid green;">
  		<div style="width:35%;float:left;height:100px;border:1px solid green"><img src=""></div>
  		<div style="width:64%;float:left;display:inline; height:100px;text-align:center;border:1px solid green"><br><br><h2>我学我会,网上订餐系统</h2></div>
  		<div style="width:99%;height:50px;border:1px solid green;float:left;text-align:middle;"><br>|网站首页|关于我们|订餐帮助|网上订餐|客服中心|</div>
  	
  	</div>
  	
  	
  	<div style="width:98%;position:relative;height:600px;border:1px solid blue;">
  		<div style="width:35%;float:left;height:600px;border:1px solid blue;">
  			<img src="">
  			<p></p>
  			<hr>
  			<p>
  			<input type="text" id="myTime" size="20px" >
  			</p>
  			<hr>
  			
  		</div>
  		<div style="width:64%;float:left;display:inline;height:600px; border:1px solid blue;";>
  			<div style="width:99%;height:50px;border:1px solid red;"></div>
  			<div style="width:99%;height:50px;border:1px solid red;"></div>
  			<div style="width:99%;height:30px;text-align:right; border:1px solid red;"></div>
  			<div style="width:99%;height:470px;text-align:left;border:1px solid red;">
  			<%
  			double totalPrice=0;
  				if (session == null) {
  					request.getRequestDispatcher("/ch05/show.jsp");
  				} else {
  				totalPrice =((Double)session.getAttribute("totalPrice")).doubleValue();
  					
  				}
  			String totalPricestr=new DecimalFormat("0.00").format(totalPrice);
  			%>
  				<center>
  				<form name="myOrderForm" method="post" action="/shangji5/FoodOrder">
  				<table border="1" style="border: 1px none gray; font-size: 12px;" cellpadding="0" align="center" cellspacing="0" width="99%" height="400">
  				<tr><td colspan="3" align="center"  >请确认支付和配送消息</td></tr>
  				<tr><td>订餐人:</td><td colspan="2"><input type="text" name="userName"></td></tr>
  				<tr><td>送货地址:</td><td colspan="2"><input type="text" name="address"></td></tr>
  				<tr><td>邮政编码:</td><td colspan="2"><input type="text" name="postNumber" ></td></tr>
  				<tr><td>联系电话:</td><td colspan="2"><input type="text" name="phone" ></td></tr>
  				<tr><td>移动电话:</td><td colspan="2"><input type="text" name="mobilePhone" ></td></tr>
  				<tr><td>电子邮件;</td><td colspan="2"><input type="text" name="zipCode" ></td></tr>
  				<tr><td>付款金额;</td><td colspan="2"><%=totalPricestr%>¥<input type="hidden" value=<%=totalPricestr%> name="totalPrice"></td></tr>
  				<tr><td>配送方式:</td><td nowrap="nowrap" valign="middle" align="left"><input type="radio" name="sendRedio" value="songcan"  >送餐上门</td><td>10元起送</td></tr>
  				<tr><td>支付方式:</td><td><input name="pay" type="radio" value="pay">餐到付款</td><td>仅限北京3环内</td></tr>
  				<tr><td>订单附言:</td><td colspan="2"><textarea name="notice" cols="30" rows="6" ></textarea></td></tr>
  				<tr><td colspan="3" align="center" ><input type="submit" value="确认以上信息无误提交" ></td></tr>
  				</table>
  				</form>
  				</center>
  			</div>
  			</div>
  		</div>
  	<div style="width:98%;position:relative;height:50px;border:1px solid black;">
  	版权
  	</div>
  	 </div>
  </center>
  </body>
</html>

⌨️ 快捷键说明

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