showing.jsp
上传用户:helenhuo66
上传日期:2007-06-01
资源大小:865k
文件大小:3k
源码类别:

百货/超市行业

开发平台:

Java

  1. <%@ page contentType="text/html;charset=GBK" language="java" import="java.sql.*" errorPage="" %>
  2. <html>
  3. <head>
  4. <jsp:useBean id="mdb" class="ckstudio.db.faq" scope="page"/>
  5. <link href=css.css rel=STYLESHEET type=text/css>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  7. <title>
  8. <%!
  9.  int Cint(String cint)
  10.    {
  11.     try {
  12.   int n;
  13.       n= Integer.parseInt(cint);
  14.   return n;
  15.         }
  16.        catch (NumberFormatException e) {
  17.                  return 0;
  18.         }
  19. }
  20. %>
  21. <%!
  22.  String getStr(String str)
  23. {
  24.   try
  25. {
  26. String temp_p=str;
  27. byte[] temp_t=temp_p.getBytes("ISO8859-1");
  28. String temp=new String(temp_t);
  29. return temp;
  30. }
  31. catch(Exception e)
  32. {
  33. e.printStackTrace();
  34. return null;
  35.  }
  36. }
  37. %>
  38. <%
  39. String user_name,action,sql,hw_name,dailis,user_type,basket_count;
  40. ResultSet rs;
  41. int count=0,hw_id,basket_id,hw_cash,totalcash=0,jiage,daili;
  42. user_name=(String)session.getValue("user_name");
  43. user_type=(String)session.getValue("user_type");
  44. action=request.getParameter("action");
  45. String hw_ids=request.getParameter("hw_id");
  46. String counts=request.getParameter("count");
  47. String hw_cashs=request.getParameter("hw_cash");
  48. hw_name=request.getParameter("hw_name");
  49. if(hw_name!=null){
  50.   hw_name=getStr(hw_name);
  51.   }
  52. if(user_name!=null) 
  53. {
  54.     out.print(user_name+"的购物车");
  55.  }
  56. else
  57. {
  58.         out.print("购物车");
  59. }%>
  60. </title>
  61. </head> 
  62. <body topmargin="0">
  63. <table border="0" width="400" cellspacing="0" cellpadding="0">
  64.   <tr> 
  65.     <td align="center">
  66.     <img border="0" src="img/promo_list_top.gif" width="100%" height="4"></td>
  67.   </tr>
  68.   <tr> 
  69.     <td height="18" align="center" bgcolor="#DBC2B0">当前你已订购的商品</td>
  70.   </tr>
  71.   <!------------------------------things you have bought---------------------------------------->
  72. <%@ include file="bought.jsp"%>
  73.   <!-------------------------------things bought end------------------------->
  74.   <tr> 
  75.     <td height="30" bgcolor="#F5EFE7"><table width="83%" border="0" align="center" cellpadding="0" cellspacing="0">
  76.         <tr> 
  77.           <td width="33%"><a href="buy.jsp"><img src="img/pics/lookbcar.gif" width="100" height="20" border="0"></a></td>
  78.           <td width="33%"><a href="clear.jsp"><img src="img/pics/relbcar.gif" width="100" height="20" border="0"></a></td>
  79.           <td width="33%"><a href="cash.jsp"><img src="img/pics/gobuy.gif" width="100" height="20" border="0"></a></td>
  80.         </tr>
  81.       </table></td>
  82.   </tr>
  83.   <tr> 
  84.     <td></td>
  85.   </tr>
  86. </table>
  87. <table width="400" border="0" cellpadding="0" cellspacing="0">
  88.   <!--DWLayoutTable-->
  89.   <tr> 
  90.     <td width="400" height="16" valign="top"><div align="center"><a href=# onclick="javasrcript:window.close();">关闭窗口</a></div></td>
  91.   </tr>
  92. </table>
  93. <%
  94. mdb.Close();
  95. %>
  96. </body>
  97. </html>