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

📄 orderinfo.jsp

📁 用jsp+javabean做的一个网上花店
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="com.*,java.util.*"%>
<jsp:useBean id="goods" class="com.GoodsBean" scope="session"/>
<jsp:useBean id="cart" class="com.Cart" scope="session">
</jsp:useBean>
<%
System.out.println("@@@@@@@@@@1@@@@1@1");
int ordersId;
String totalPrice;
try 
{
	totalPrice=session.getAttribute("totalPrice").toString();
	ordersId=cart.genOrder((String)session.getAttribute("name"),totalPrice);
	System.out.println(ordersId+"@@@@@@@1");
%>
<HTML><HEAD><TITLE>cart</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/css.css" type=text/css rel=stylesheet>
<STYLE>TD {
	FONT-SIZE: 9pt; COLOR: #353535; LINE-HEIGHT: 120%
}
BODY {
	FONT-SIZE: 9pt; LINE-HEIGHT: 120%
}
A:link {
	COLOR: #000000; TEXT-DECORATION: none
}
A:visited {
	COLOR: #000000; TEXT-DECORATION: none
}
A:active {
	COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
	RIGHT: 0px; COLOR: #336699; POSITION: relative; TOP: 1px; TEXT-DECORATION: none
}
.white1 {
	FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: #ffffff
}
.blue1 {
	FONT-WEIGHT: bold; COLOR: #00addf
}
.blue2 {
	FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: #00addf
}
</STYLE>

<SCRIPT language=JavaScript type=text/JavaScript>
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</SCRIPT>

<STYLE type=text/css>A:link {
	FONT-SIZE: 9pt; TEXT-DECORATION: none
}
UNKNOWN {
	FONT-SIZE: 9pt; COLOR: #f51424
}
UNKNOWN {
	COLOR: #000000
}
UNKNOWN {
	FONT-SIZE: 9pt; COLOR: #000000
}
UNKNOWN {
	FONT-FAMILY: Arial, Helvetica, sans-serif
}
</STYLE>

<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</SCRIPT>

<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>



<BODY>
<TABLE cellSpacing=0 cellPadding=0 width=812 align=center bgColor=#ffffff 
border=0>
  <TBODY>
  <TR>
    <TD><IMG height=1 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/spacer.gif" width=38 border=0></TD>
    <TD><IMG height=1 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/spacer.gif" width=63 border=0></TD>
    <TD><IMG height=1 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/spacer.gif" width=59 border=0></TD>
    <TD><IMG height=1 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/spacer.gif" width=56 border=0></TD>
    <TD><IMG height=1 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/spacer.gif" width=62 border=0></TD>
    <TD><IMG height=1 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/spacer.gif" width=16 border=0></TD>
    <TD><IMG height=1 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/spacer.gif" width=44 border=0></TD>
    <TD><IMG height=1 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/spacer.gif" width=77 border=0></TD>
    <TD><IMG height=1 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/spacer.gif" width=82 border=0></TD>
    <TD><IMG height=1 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/spacer.gif" width=77 border=0></TD>
    <TD><IMG height=1 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/spacer.gif" width=80 border=0></TD>
    <TD><IMG height=1 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/spacer.gif" width=72 border=0></TD>
    <TD><IMG height=1 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/spacer.gif" width=34 
  border=0></TD></TR>
  <TR>
    <TD colSpan=6 rowSpan=2><IMG height=79 alt="" 
      src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/title_r1_c1.gif" width=294 border=0 name=title_r1_c1></TD>
    <TD bgColor=#ffffff colSpan=7>
      <DIV align=right><A name=top></A><A 
      href="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cart.jsp"><IMG height=20 
      src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/top_cart.gif" width=76 border=0></A> <A onfocus=this.blur() 
      href="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/checkMyInfo.jsp"><IMG height=20 
      src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/top_my.gif" width=76 border=0></A> <A onfocus=this.blur() 
      href="file:///C|/Tomcat%205.0/webapps/buyFlowers1/tourist/help.jsp"><IMG height=20 
      src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/top_faq.gif" width=76 border=0></A>  <A onfocus=this.blur() 
      href="file:///C|/Tomcat%205.0/webapps/buyFlowers1/index.jsp?exit=yes"><IMG height=20 
      src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/top_wh.gif" width=76 border=0></A></DIV></TD></TR>
  <TR>
    <TD bgColor=#ffffff colSpan=7>
      <TABLE height=44 cellSpacing=0 cellPadding=0 width="61%" align=right 
      border=0>
        <TBODY>
          <TR>
            <TD>
              <DIV align=left>订花热线:0532-12345678</DIV></TD>
          </TR>
          <TR>
            <TD>
              <DIV align=left>订花 Q&nbsp;Q:12345678</DIV></TD>
          </TR>
        </TBODY>
      </TABLE></TD></TR>
  <TR>
    <TD><IMG height=27 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/title_r2_c1.gif" width=38 
      border=0 name=title_r2_c1></TD>
    <TD><A href="file:///C|/Tomcat%205.0/webapps/buyFlowers1/index.jsp"><IMG height=27 alt="" 
      src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/title_r2_c2.gif" width=63 border=0 name=title_r2_c2></A></TD>
    <TD colspan="11"><A href="file:///C|/Tomcat%205.0/webapps/buyFlowers1/tourist/produceInfo.jsp"><IMG height=27 
      alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/title_r2_c10.gif" width=77 border=0 
      name=title_r2_c10></A><A href="file:///C|/Tomcat%205.0/webapps/buyFlowers1/tourist/language.jsp"><IMG height=27 alt="" 
      src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/title_r2_c11.gif" width=80 border=0 
    name=title_r2_c11></A><A href="file:///C|/Tomcat%205.0/webapps/buyFlowers1/tourist/flowersLanguage.jsp"><IMG 
      height=27 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/title_r2_c12.gif" width=72 border=0 
      name=title_r2_c12></A><IMG height=27 alt="" src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/title_r2_c13.gif" width=476 
      border=0 name=title_r2_c13></TD>
</TR></TBODY></TABLE>
<DIV align=left><BR></DIV>
<TABLE cellSpacing=1 cellPadding=2 width=812 align=center border=0>
  <TBODY>
  <TR>
    <TD width=397 height=40>
      <DIV class=blue2 align=center>
      <DIV align=left> 订单生成成功!</DIV>
      </DIV></TD>
    <TD width=352>
<DIV align=center><IMG height=60 src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/liucheng1.gif" 
      width=235></DIV></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=1 cellPadding=1 width=812 align=center bgColor=#00addf 
border=0>
  <FORM action="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cart.jsp" method=get>
  <TBODY>
  <TR bgColor=#00addf>
    <TD width="22%" bgColor=#00addf height=22>
      <DIV class=white1 align=center>订单号</DIV></TD>
    <TD width="26%" height=22>
      <DIV class=white1 align=center>用户名</DIV></TD>
    <TD width="23%" height=22>
      <DIV class=white1 align=center>总价</DIV></TD>
    <TD class=white1 width="29%" height=22>
      <DIV align=center>日期</DIV></TD>
   </TR>
  <tr bgcolor="#FFFFFF">
    <td><div align="center"><%=ordersId%></div></td>   
    <td><div align="center"><%=session.getAttribute("name")%></div></td>
	 <td><div align="center"><%=totalPrice%></div></td>
	 <td><div align="center"><%=new java.util.Date().toLocaleString()%></div></td>
  </tr>

    <%	
	java.util.HashMap cart_item=cart.getItems();
 	Iterator it=cart_item.keySet().iterator();

	while(it.hasNext())
	{
		String goodsId=(String)it.next();
		GoodsClass goodsClass=goods.getGoodsInfo(goodsId);
	int i=Integer.parseInt(String.valueOf(cart_item.get(goodsId)));	cart.saveItems(ordersId,goodsClass.getGoodsName(),""+goodsClass.getGoodsPrice(),i);
	}
	}
	catch(Exception e)
	{
		e.printStackTrace();
	}
	%>

  <TR bgColor=#ffffff>
    <TD colSpan=6 height=25>
	   &nbsp;
	   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FORM>
       <DIV align=center><FORM name=form1  method=post>
         <input onFocus=this.blur() 
      onClick="this.form.action='../index.jsp';this.form.submit()" type=image height=43 width=93 
      src="file:///C|/Tomcat%205.0/webapps/buyFlowers1/register/cartImage.files/cart01.gif" border=0 name=imageField>  
	 </DIV></TD></TR>
  <TR bgColor=#ebf9fd>
    <TD colSpan=6 height=36>
<DIV align=center></DIV></TD></TR><INPUT type=hidden 
  name=h_price> </FORM></TBODY></TABLE>
<BR>


      <TABLE cellSpacing=0 cellPadding=0 width=812 align=center bgColor=#e0e0e0 
border=0>
  <TBODY>
  <TR>
<TD>&nbsp;</TD></TR></TBODY></TABLE>
      <table width=812 height="48" border=0 align=center cellpadding=0 cellspacing=0>
        <tbody>
          <tr>
            <td height="16" bgcolor=#f5f5f5><div align="center"><SPAN class=cfont><FONT 
                        color=#7f7f7f><B><A 
                        href="file:///C|/Tomcat%205.0/webapps/buyFlowers1/admin/CheckLogin.jsp">管理员登录</A></B></FONT></SPAN></div></td>
          </tr>
          <tr>
            <td height="31" bgcolor=#f5f5f5><div align="center">Copyright &copy;  All Rights Reserved </div></td>
          </tr>
        </tbody>
</table>
<p>&nbsp;</p>
</BODY></HTML>

⌨️ 快捷键说明

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