show_indent.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:3k
源码类别:
Applet
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
- <%@ page import="MyFly.Book.Books" %>
- <%@ page import="MyFly.Book.strFormat" %>
- <%@ page import="MyFly.Book.Indentlist" %>
- <jsp:useBean id="myIndentlist" scope="page" class="MyFly.Book.Purchase" />
- <jsp:useBean id="mybook" scope="page" class="MyFly.Book.bookmn" />
- <%
- String mesg = "";
- long Id=0;
- String indentNo = request.getParameter("orderno");
- if (indentNo==null) indentNo="";
- if (request.getParameter("id")==null || request.getParameter("id").equals("")) {
- mesg = "你要查看的订单清单不存在!";
- } else {
- try {
- Id = Long.parseLong(request.getParameter("id"));
- if (!myIndentlist.getIndentList(Id)){
- mesg = "你要查看的订单清单不存在!";
- }
- } catch (Exception e){
- mesg = "你要查看的订单清单不存在!";
- }
- }
- %>
- <HTML><HEAD><TITLE>清单详细信息</TITLE>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link rel="stylesheet" href="../image/buyok_shop.css" type="text/css">
- <style type="text/css">
- <!--
- .style1 {color: #FF3300}
- .STYLE2 {
- font-size: 14px;
- font-weight: bold;
- }
- -->
- </style>
- </HEAD>
- <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="20">
- <% if(!mesg.equals("")){
- out.println(mesg);
- } else {
- %>
- <form name=confirm action="orderok.jsp" method=post>
- <table border="0" cellspacing="0" cellpadding="0" align="center" width="520">
- <tr bgcolor="#FFFFFF">
- <td height=25><div align="center">星海网络书店图书订单<span class="red"><%= indentNo %></span> 清单:</div></td>
- </tr>
- </table>
- <div align="center">
- </div>
- <table border="0" cellspacing="1" cellpadding="0" align="center" width="520" bgcolor="CCCCCC">
- <%
- for (int i=0; i<myIndentlist.getIndent_list().size();i++){
- Indentlist idList = (Indentlist) myIndentlist.getIndent_list().elementAt(i);
- if (mybook.getOnebook(String.valueOf(idList.getBookNo())) ){
- Books bk = (Books) mybook.getBooklist().elementAt(0);
- %>
- <tr bgcolor="#FFFFFF">
- <td width="20%" align=right height=25>图书名称 </td>
- <td> <%= bk.getProductName() %></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td width="20%" align=right height=25>作者 </td>
- <td> <%= bk.getAuthor() %> </td></tr>
- <tr bgcolor="#FFFFFF">
- <td width="20%" align=right height=25>出版社 </td>
- <td> <%= bk.getPublish() %> </td></tr>
- <tr bgcolor="#FFFFFF">
- <td width="20%" align=right height=25>单价(元) </td>
- <td> <%= bk.getPreferPrice() %> </td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td width="20%" align=right height=25>数量(件) </td>
- <td> <%= idList.getAmount() %> </td></tr>
- <%
- }
- }%>
- <tr bgcolor="#FFFFFF"><td colspan=2 height=50 align=center> <input name="imageField" type="image" src="../image/bt_9.gif" width="97" height="27" border="0" onClick="javascript:window.close()">
- </td>
- </tr>
- </table>
- </form></table>
- <%}%>
- </BODY>
- </HTML>