index.jsp
上传用户:xjrzjk
上传日期:2022-07-31
资源大小:1585k
文件大小:30k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GBK" %>
  2. <%@ page import="java.sql.*"%>
  3. <%@ page import="javax.sql.*"%>
  4. <%
  5.   try{
  6.   //数据库连接
  7.   Class.forName("oracle.jdbc.driver.OracleDriver");
  8.   String strUrl = "jdbc:oracle:thin:@slight:1521:LOCAL";
  9.   String strUser = "eshop";
  10.   String strPassword = "eshop";
  11.   Connection con = DriverManager.getConnection(strUrl, strUser, strPassword);
  12.   Statement st = con.createStatement();
  13.   //最近注册商品
  14.   String sql = "select * from product order by regtime desc";
  15.   ResultSet rs  = st.executeQuery(sql);
  16. %>
  17. <html>
  18. <head>
  19. <script>
  20.   function openbag(id) { window.open("eshop.jsp?cpbm="+id,"","height=400,width=630,left=200,top=0,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");}
  21. </script>
  22. <script language="javascript">
  23. <!--
  24. function winopen(url)
  25.      {
  26.         window.open(url,"search","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=640,height=450,top=200,left=100");
  27.       }
  28. function MM_openBrWindow(theURL,winName,features) { //v2.0
  29.   window.open(theURL,winName,features);
  30. }
  31. //-->
  32. </script>
  33. <title>
  34. 网上商城
  35. </title>
  36. <link rel="stylesheet" type="text/css" href="style.css">
  37. </head>
  38. <body leftmargin="0" topmargin="0">
  39. <table cellSpacing="0" cellPadding="0" width="764" align="center" border="0" height="90" bgcolor="#336699">
  40.   <tbody>
  41.     <tr>
  42.       <td width="100%" height="1"> <img src="images/logo_old.gif" width="760" height="80" border="0" usemap="#Map">
  43.         <center>
  44.         </center></td>
  45.     </tr>
  46.   </tbody>
  47. </table>
  48. <map name="Map">
  49.   <area shape="rect" coords="280,14,736,72" href="http://www.cefirst.com/version2.01/product/esystem/default.asp" target="_blank">
  50. </map>
  51. <div align="center">
  52.   <table border="0" width="764" cellspacing="0" cellpadding="0" height="60">
  53.     <center>
  54.       <tr>
  55.         <td width="153" valign="top" bgcolor="#336699" height="60" rowspan="4">
  56.           <div align="center">
  57.             <table>
  58.               <tr>
  59.                 <td width="160" height="20"> </td>
  60.               </tr>
  61.               <tr>
  62.                 <td width="160" bgcolor="#000033" height="1"><spacer type="block" height="1"> </td>
  63.               </tr>
  64.               <tr>
  65.                 <td width="160" bgcolor="#a0a0a0" height="1"><spacer type="block" height="1"> </td>
  66.               </tr>
  67.               <tr>
  68.                 <td width="160" bgcolor="#b0b0b0" height="1"><spacer type="block" height="1"> </td>
  69.               </tr>
  70.               <tr>
  71.                 <td width="160" bgcolor="#c0c0c0" height="1"><spacer type="block" height="1"> </td>
  72.               </tr>
  73.               <tr>
  74.                 <td width="160" bgcolor="#d0d0d0" height="1"><spacer type="block" height="1"> </td>
  75.               </tr>
  76.               <tr>
  77.                 <td width="160" bgcolor="#F0F1EF" height="80"> <div align="center">
  78.                     <table cellspacing="0" cellpadding="0" width="86%" align="center" background border="0">
  79.                       <tbody>
  80.                         <tr>
  81.                           <td>
  82.                             <jsp:include page="news/rollnews.jsp" flush="true" />
  83. </td>
  84.                         </tr>
  85.                       </tbody>
  86.                     </table>
  87.                   </div></td>
  88.               </tr>
  89.               <tr>
  90.                 <td width="160" bgcolor="#000000" height="1"><spacer type="block" height="1"> </td>
  91.               </tr>
  92.               <tr>
  93.                 <td width="160" bgcolor="#c0c0c0" height="1"><spacer type="block" height="1"> </td>
  94.               </tr>
  95.               <tr>
  96.                 <td width="160" bgcolor="#b0b0b0" height="1"><spacer type="block" height="1"> </td>
  97.               </tr>
  98.               <tr>
  99.                 <td width="160" bgcolor="#a0a0a0" height="1"><spacer type="block" height="1"> </td>
  100.               </tr>
  101.               <tr>
  102.                 <td width="160" bgcolor="#000000" height="1"><spacer type="block" height="1"> </td>
  103.               </tr>
  104.               <tr>
  105.                 <td align="middle" width="160"> <p> </p></td>
  106.               </tr>
  107.             </table>
  108.             <table class="main" cellspacing="0" cellpadding="2" width="153" border="0" height="67">
  109.               <tbody>
  110.                 <tr>
  111.                   <td valign="top" align="middle" width="152" height="63">
  112. <form language="javascript" name="FORM1" onSubmit="return FORM1_onsubmit()" action="orderloginsb.jsp" method="post">
  113.                       <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font color="#B0E8F8">
  114. <!--webbot bot="HTMLMarkup" startspan -->
  115.                         <script language=javascript id=clientEventHandlersJS>
  116. //函数名:chksafe
  117. //功能介绍:检查是否含有"'",'\',"/"
  118. //参数说明:要检查的字符串
  119. //返回值:0:是  1:不是
  120. function chksafe(a)
  121. {
  122. return 1;
  123. /* fibdn = new Array ("'" ,"\", "、", ",", ";", "/");
  124. i=fibdn.length;
  125. j=a.length;
  126. for (ii=0;ii<i;ii++)
  127. { for (jj=0;jj<j;jj++)
  128. { temp1=a.charAt(jj);
  129. temp2=fibdn[ii];
  130. if (tem';p1==temp2)
  131. { return 0; }
  132. }
  133. }
  134. return 1;
  135. */
  136. }
  137. //函数名:chkspc
  138. //功能介绍:检查是否含有空格
  139. //参数说明:要检查的字符串
  140. //返回值:0:是  1:不是
  141. function chkspc(a)
  142. {
  143. var i=a.length;
  144. var j = 0;
  145. var k = 0;
  146. while (k<i)
  147. {
  148. if (a.charAt(k) != " ")
  149. j = j+1;
  150. k = k+1;
  151. }
  152. if (j==0)
  153. {
  154. return 0;
  155. }
  156. if (i!=j)
  157. { return 2; }
  158. else
  159. {
  160. return 1;
  161. }
  162. }
  163. //函数名:fucCheckLength
  164. //功能介绍:检查字符串的长度
  165. //参数说明:要检查的字符串
  166. //返回值:长度值
  167. function fucCheckLength(strTemp)
  168. {
  169. var i,sum;
  170. sum=0;
  171. for(i=0;i<strTemp.length;i++)
  172. {
  173. if ((strTemp.charCodeAt(i)>=0) && (strTemp.charCodeAt(i)<=255))
  174. sum=sum+1;
  175. else
  176. sum=sum+2;
  177. }
  178. return sum;
  179. }
  180. </script>
  181.                         <script language=javascript>
  182. function chkitem(str)
  183. {
  184. var strSource ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
  185.   var ch;
  186.   var i;
  187.   var temp;
  188.   for (i=0;i<=(str.length-1);i++)
  189.   {
  190.     ch = str.charAt(i);
  191.     temp = strSource.indexOf(ch);
  192.     if (temp==-1)
  193.     {
  194.      return 0;
  195.     }
  196.   }
  197.   if (strSource.indexOf(ch)==-1)
  198.   {
  199.     return 0;
  200.   }
  201.   else
  202.   {
  203.     return 1;
  204.   }
  205. }
  206. function FORM1_onsubmit()
  207. {
  208. if (chkitem(document.FORM1.uid.value)==0)
  209. {
  210. alert("请输入正确的会员帐号。");
  211. document.FORM1.uid.focus();
  212. return false;
  213. }
  214. if ((document.FORM1.uid.vlaue=='') || (chkspc(document.FORM1.uid.value)==0)|| (chkspc(document.FORM1.uid.value)==2))
  215. {
  216. alert("请将会员帐号填写完整,且不能使用空格!");
  217. document.FORM1.uid.focus();
  218. return false;
  219. }
  220. if (chkitem(document.FORM1.pwd.value)==0)
  221. {
  222. alert("请将填写密码!");
  223. document.FORM1.pwd.focus();
  224. return false;
  225. }
  226. if ( fucCheckLength(document.FORM1.uid.value) != document.FORM1.uid.value.length )
  227. {
  228. alert("会员帐号请不要使用中文!");
  229. document.FORM1.uid.focus();
  230. return false;
  231. }
  232. if (fucCheckLength(document.FORM1.uid.value) <4 )
  233. {
  234. alert("会员帐号必须至少4位");
  235. document.FORM1.uid.focus();
  236. return false;
  237. }
  238. }
  239. </script>
  240.                         <!--webbot bot="HTMLMarkup" endspan -->
  241.                         帐号
  242.                         <input maxlength="16" size="14" name="uid">
  243.                         </font> </p>
  244.                       <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font color="#B0E8F8">密码
  245.                         <input maxlength="16" size="14" name="pwd" type="password">
  246.                         </font> </p>
  247.                       <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">
  248.                         <font color="#B0E8F8"> <br>
  249.                         <input type="submit" size="3" value="登录" name="Submit2">
  250.                         <input type="button" value="注册会员" name="B1" onClick="window.location.href='reguser.htm';">
  251.                         </font> </p>
  252.                     </form></td>
  253.                 </tr>
  254.               </tbody>
  255.             </table>
  256.             <table border="0" width="90%" cellspacing="0" cellpadding="0">
  257.               <tr>
  258.                 <td width="100%"> <div align="center">
  259.                     <table height="10" cellspacing="0" cellpadding="0" width="100%" border="0">
  260.                       <tbody>
  261.                         <tr>
  262.                           <td width="100%"> <font color="#B0E8F8">
  263. <%
  264.    //一级分类
  265.   sql = "select * from class_1";
  266.   ResultSet rs1 = st.executeQuery(sql);
  267.   String strClass1Name = "";
  268.   while (rs1.next()){
  269.     sql = "select * from class_2 where class_1_name = '" + rs1.getString("class_1_name") + "'";
  270.     strClass1Name = rs1.getString("Class_1_Name");
  271.     ResultSet rs2 = st.executeQuery(sql);
  272. %>
  273. </font> <div align="center">
  274. <table border="0" cellspacing="0" width="100%" height="1" bordercolorlight="#C0C0C0" cellpadding="0" bordercolordark="#336699">
  275.   <tr>
  276.     <td height="1" width="100%"> <table border="0" width="100%" bgcolor="#0099CC" cellspacing="0" cellpadding="0">
  277.         <tr>
  278.   <td height="22" bgcolor="#6094C8"> <p align="center"><font color="#F7F7E7"><b>
  279.   <%=strClass1Name%></b>
  280. </font></td>
  281.         </tr>
  282.       </table></td>
  283. </tr>
  284. <%
  285.   int j = 1;
  286.   while(rs2.next()){
  287. %>
  288.         <td width="139" height="22" bgcolor="#B1CBE4">
  289. <p align="center"><a href="splb.jsp?spdl=<%=rs2.getString("Class_1_Name")%>&amp;spxl=<%=rs2.getString("Class_2_Name")%>"><font color="#000000"><%=rs2.getString("Class_2_Name")%></font></a>
  290.         </td>
  291.       </tr>
  292.       <tr>
  293.       <%
  294.       j=j+1;
  295.       }
  296.       rs2.close();
  297.       %>
  298.             </tr>
  299.           </table>
  300.         </div>
  301.         <font color="#B0E8F8">
  302. <%
  303.     }
  304.     rs1.close();
  305. %>
  306.                             </font> </td>
  307.                         </tr>
  308.                       </tbody>
  309.                     </table>
  310.                   </div></td>
  311.               </tr>
  312.             </table>
  313.             <br>
  314.           </div></td>
  315.         <td width="610" valign="top" colspan="2" height="16" bgcolor="#336699" align="center">
  316.           <table border="0" cellspacing="0" cellpadding="0" width="100%">
  317.             <tr align="center">
  318.               <td width="25"><img src="images/left.gif"></td>
  319.               <td width="86" background="images/bgguide.gif"><a href="index.jsp" class="guide">首  页</a></td>
  320.               <td background="images/bgguide.gif"><img src="images/guide.gif"></td>
  321.               <td width="86" background="images/bgguide.gif"><a href="zxsp.jsp" class="guide">最新商品</a></td>
  322.               <td background="images/bgguide.gif"><img src="images/guide.gif"></td>
  323.               <td width="86" background="images/bgguide.gif"><a href="reguser.htm" class="guide">会员注册</a></td>
  324.               <td background="images/bgguide.gif"><img src="images/guide.gif"></td>
  325.               <td width="86" background="images/bgguide.gif"><a href="javascript:openbag()">察看购物车</a></td>
  326.               <td background="images/bgguide.gif"><img src="images/guide.gif"></td>
  327.               <td width="86" background="images/bgguide.gif">购物帮助</td>
  328.               <td width="25"><img src="images/right.gif"></td>
  329.             </tr>
  330.           </table></td>
  331.       </tr>
  332.     </center>
  333.     <tr>
  334.       <td width="610" valign="top" colspan="2" height="25"> <table border="0" width="100%" height="1" cellspacing="0" cellpadding="0">
  335.           <tr>
  336.             <center>
  337.               <td width="50%" height="1"> <form method="POST" action="orderofind.jsp" target="_blank">
  338.                   <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="center">订单查询
  339.                     <input name="Form_Id" type="text" value="订单号" size="8">
  340.                     <input type="submit" value="查询" name="djB1" class="a">
  341.                 </form></td>
  342.             </center>
  343.             <td width="50%" height="1">
  344.               <form method="POST" action="spss.jsp" target="_blank">
  345.                 <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> &nbsp;商品查询
  346.                   <input type="text" name="Product_Name" size="10" class="a" style="font-size: 14px">
  347.                   <select name="Product_Class" size="1" tabindex="0" class="a" style="font-size: 14px">
  348.                     <option value="礼品">礼品</option>
  349.                     <option value="影视">影视</option>
  350.                     <option value="化妆">化妆</option>
  351.                     <option value="互联网">互联网</option>
  352.                   </select>
  353.                   <input type="image" height="20" cache width="52" src="images/go.gif" align="absMiddle" value="GO" border="0" name="I55">
  354.                 </p>
  355.               </form></td>
  356.           </tr>
  357.         </table></td>
  358.     </tr>
  359.     <center>
  360.       <tr>
  361.         <td width="100%" valign="top" height="10"> <div align="center">
  362.             <center>
  363.               <table cellspacing="0" cellpadding="0" width="417" bgcolor="#f0f1ef" border="0">
  364.                 <tbody>
  365.                   <tr>
  366.                     <td valign="top" width="10" rowspan="2"><img height="26" src="images/enet_lt.gif" width="10"></td>
  367.                     <td width="505" bgcolor="#10a6be" height="1"><spacer width="1" type="block"></td>
  368.                     <td valign="top" width="10" rowspan="2"><img src="images/enet_rt.gif"></td>
  369.                   </tr>
  370.                   <tr height="25">
  371.                     <td> <table cellspacing="3" cellpadding="0" width="100%" border="0">
  372.                         <tbody>
  373.                           <tr>
  374.                             <td align="middle" width="10"></td>
  375.                             <td width="475"><img height="10" src="images/arrow_1.gif" width="13"> 商城动态</td>
  376.                           </tr>
  377.                         </tbody>
  378.                       </table></td>
  379.                   </tr>
  380.                 </tbody>
  381.               </table>
  382.             </center>
  383.           </div>
  384.           <div align="center">
  385.             <center>
  386.               <table border="0" width="417" cellspacing="0" cellpadding="0">
  387.                 <tr>
  388.                   <td width="1" bgcolor="#10A6BE"> </td>
  389.                   <td width="415" bgcolor="#F0F1EF"><script src="news/news.jsp"></script>
  390.                   </td>
  391.                   <td width="1" bgcolor="#10A6BE"> </td>
  392.                 </tr>
  393.               </table>
  394.             </center>
  395.           </div>
  396.           <div align="center">
  397.             <center>
  398.               <table cellspacing="0" cellpadding="0" width="417" bgcolor="#f0f1ef" border="0">
  399.                 <tbody>
  400.                   <tr>
  401.                     <td valign="top" width="10" rowspan="2"><img height="26" src="images/enet_bl.gif" width="10"></td>
  402.                     <td width="505" height="19"> <table cellspacing="3" cellpadding="0" width="100%" border="0">
  403.                         <tbody>
  404.                           <tr>
  405.                             <td align="right"> <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="right">以往新闻&gt;&gt;&gt;&gt;</p></td>
  406.                           </tr>
  407.                         </tbody>
  408.                       </table></td>
  409.                     <td valign="top" width="10" rowspan="2"><img height="26" src="images/enet_br.gif" width="10"></td>
  410.                   </tr>
  411.                   <tr height="1">
  412.                     <td width="505" bgcolor="#10a6be" height="1"><spacer width="1" type="block"></td>
  413.                   </tr>
  414.                 </tbody>
  415.               </table>
  416.               <br>
  417.             </center>
  418.           </div></td>
  419.         <td width="161" valign="top" height="10" align="right"> <table cellspacing="0" cellpadding="0" width="150" border="0">
  420.             <tbody>
  421.               <tr>
  422.                 <td valign="top" width="4" bgcolor="#336699" rowspan="2"><img height="18" src="images/tl_img.gif" width="4" border="0"></td>
  423.                 <td bgcolor="#000000" height="1"><img height="1" src="images/stretch.gif" width="142" border="0"></td>
  424.                 <td valign="top" width="4" bgcolor="#336699" rowspan="2"><img height="18" src="images/tr_img.gif" width="4" border="0"></td>
  425.               </tr>
  426.               <tr>
  427.                 <td height="16" valign="bottom" bgcolor="#336699"> <div align="left"><font class="portletTitle" color="#ffffff">&nbsp;新品速递</font><font class="portletTitle" color="#ffffff" size="1"><br>
  428.                     </font> </div></td>
  429.               </tr>
  430.             </tbody>
  431.           </table>
  432.           <table cellspacing="0" cellpadding="0" width="150" border="0">
  433.             <tbody>
  434.               <tr>
  435.                 <td width="1" bgcolor="#000000"><img src="images/stretch.gif" width="1" border="0"></td>
  436.                 <td valign="top" bgcolor="#f7f7e7"><img height="1" src="images/stretch.gif" width="146" border="0"><br>
  437.                   <table border="0" cellpadding="0" cellspacing="0" width="100%" height="1">
  438. <%
  439.   while (rs.next()){
  440. %>
  441. <tr>
  442.   <td width="100%" align="center" height="11">
  443.  <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left">
  444. <img height="14" src="images/point002.GIF" width="14">
  445. <a href="javascript:winopen('spjj.jsp?ProductNO=<%=rs.getLong("Product_No")%>')"><%=rs.getString("Product_name")%></a></p></td>
  446. </tr>
  447. <%
  448.   }
  449. rs.close();
  450. %>
  451.                   </table></td>
  452.                 <!-- this is the shade  the right of the Portlet -->
  453.                 <td width="1" bgcolor="#000000"><img src="images/stretch.gif" width="1" border="0"></td>
  454.                 <td width="1" bgcolor="#9a9c9a"><img src="images/stretch.gif" width="1" border="0"></td>
  455.                 <td width="1" bgcolor="#b3b4b3"><img src="images/stretch.gif" width="1" border="0"></td>
  456.               </tr>
  457.             </tbody>
  458.           </table>
  459.           <table cellspacing="0" cellpadding="0" width="150" border="0">
  460.             <tbody>
  461.               <tr>
  462.                 <td valign="top" width="4" rowspan="4"><img height="6" src="images/bl_img.gif" width="4" border="0"></td>
  463.                 <td bgcolor="#f7f7e7" height="3"><img height="1" src="images/stretch.gif" width="142" border="0"></td>
  464.                 <td valign="top" width="4" rowspan="4"><img height="6" src="images/br_img.gif" width="4" border="0"></td>
  465.               </tr>
  466.               <tr>
  467.                 <td width="1" bgcolor="#000000"><img height="1" src="images/stretch.gif" width="1" border="0"></td>
  468.               </tr>
  469.               <tr>
  470.                 <td width="1" bgcolor="#9a9c9a"><img height="1" src="images/stretch.gif" width="1" border="0"></td>
  471.               </tr>
  472.               <tr>
  473.                 <td width="1" bgcolor="#b3b4b3"><img height="1" src="images/stretch.gif" width="1" border="0"></td>
  474.               </tr>
  475.             </tbody>
  476.           </table></td>
  477.       </tr>
  478.       <tr>
  479.         <td width="100%" valign="top" height="95"> <div align="center">
  480.             <center>
  481.               <table cellspacing="0" cellpadding="0" width="417" bgcolor="#f0f1ef" border="0">
  482.                 <tbody>
  483.                   <tr>
  484.                     <td valign="top" width="10" rowspan="2"><img height="26" src="images/enet_lt.gif" width="10"></td>
  485.                     <td width="505" bgcolor="#10a6be" height="1"><spacer width="1" type="block"></td>
  486.                     <td valign="top" width="10" rowspan="2"><img src="images/enet_rt.gif"></td>
  487.                   </tr>
  488.                   <tr height="25">
  489.                     <td> <table cellspacing="3" cellpadding="0" width="100%" border="0">
  490.                         <tbody>
  491.                           <tr>
  492.                             <td align="middle" width="10"></td>
  493.                             <td width="475"><img height="10" src="images/arrow_1.gif" width="13"> <font class="105v">热卖商品</font>
  494. <%
  495.     sql = "select * from product where rownum<7 order by look_count desc ";
  496.     ResultSet rshot = st.executeQuery(sql);
  497. %>
  498.                             </td>
  499.                           </tr>
  500.                         </tbody>
  501.                       </table></td>
  502.                   </tr>
  503.                 </tbody>
  504.               </table>
  505.             </center>
  506.           </div>
  507.           <div align="center">
  508.             <center>
  509.               <table cellspacing="0" cellpadding="0" width="417" border="0">
  510.                 <tbody>
  511.                   <tr>
  512.                     <td width="100%"> <table cellspacing="1" width="100%" border="0" height="51" bgcolor="#10A6BE">
  513.                         <tbody>
  514.                           <tr valign="top">
  515.                             <td class="default" height="41" width="100%" bgcolor="#FFFFFF">
  516. <table border="0" cellpadding="0" cellspacing="0" width="100%" height="98">
  517. <%
  518.   int k = 1;
  519. %>
  520. <tr>
  521. <%
  522.   while (rshot.next()){
  523. %>
  524. <td>
  525. <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">
  526. <img border="0" src="<%=rshot.getString("p_pic")%>">
  527. <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><a href="javascript:winopen('spjj.jsp?ProductNO=<%=rshot.getLong("Product_No")%>')"><b><%=rshot.getString("Product_Name")%></b></a></p>
  528.             <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">市场价:&yen;
  529.               <strike><%=rshot.getDouble("P_OldPrice")%></strike><br>
  530.               会员价:&yen; <font color="#FF0000"><%=rshot.getDouble("P_NewPrice")%></font><br>
  531.               <a href="javascript:winopen('spjj.jsp?ProductNO=<%=rshot.getLong("Product_No")%>')">[详细介绍]</a></p>
  532.  <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><a href="javascript:openbag(<%=rshot.getString("Product_Id")%>)"><img border="0" src="images/mybuy.gif"></a></p>
  533.             <hr size="1" color="#808000" width="80%">
  534.           </td>
  535.           <%
  536.   if ((double)k/3 == k/3){
  537.           %>
  538.         </tr>
  539.         <tr>
  540.           <%
  541.   }
  542.                 k=k+1;
  543. }
  544.                 rshot.close();
  545.                 con.close();
  546.  %>
  547.                                 </tr>
  548.                               </table></td>
  549.                           </tr>
  550.                         </tbody>
  551.                       </table></td>
  552.                   </tr>
  553.                 </tbody>
  554.               </table>
  555.             </center>
  556.           </div>
  557.           <div align="center">
  558.             <center>
  559.               <table cellspacing="0" cellpadding="0" width="417" bgcolor="#f0f1ef" border="0">
  560.                 <tbody>
  561.                   <tr>
  562.                     <td valign="top" width="10" rowspan="2"><img height="26" src="images/enet_bl.gif" width="10"></td>
  563.                     <td width="505" height="19"> <table cellspacing="3" cellpadding="0" width="100%" border="0">
  564.                         <tbody>
  565.                           <tr>
  566.                             <td align="right"> 谢谢你光临我们的商店 </td>
  567.                           </tr>
  568.                         </tbody>
  569.                       </table></td>
  570.                     <td valign="top" width="10" rowspan="2"><img height="26" src="images/enet_br.gif" width="10"></td>
  571.                   </tr>
  572.                   <tr height="1">
  573.                     <td width="505" bgcolor="#10a6be" height="1"><spacer width="1" type="block"></td>
  574.                   </tr>
  575.                 </tbody>
  576.               </table>
  577.               <br>
  578.             </center>
  579.           </div></td>
  580.         <td width="161" valign="top" height="95" align="right"> <table border="0" width="100%" cellspacing="0" cellpadding="0">
  581.             <tr>
  582.               <td width="100%">&nbsp;</td>
  583.             </tr>
  584.           </table>
  585.           <table cellspacing="0" cellpadding="0" width="150" border="0">
  586.             <tbody>
  587.               <tr>
  588.                 <td valign="top" width="4" bgcolor="#336699" rowspan="2"><img height="18" src="images/tl_img.gif" width="4" border="0"></td>
  589.                 <td bgcolor="#000000" height="1"><img height="1" src="images/stretch.gif" width="142" border="0"></td>
  590.                 <td valign="top" width="4" bgcolor="#336699" rowspan="2"><img height="18" src="images/tr_img.gif" width="4" border="0"></td>
  591.               </tr>
  592.               <tr>
  593.                 <td height="16" valign="bottom" bgcolor="#336699"> <div align="left"><font class="portletTitle" color="#ffffff">&nbsp;在线调查</font><font class="portletTitle" color="#ffffff" size="1"><br>
  594.                     </font> </div></td>
  595.               </tr>
  596.             </tbody>
  597.           </table>
  598.           <table cellspacing="0" cellpadding="0" width="150" border="0">
  599.             <tbody>
  600.               <tr>
  601.                 <td width="1" bgcolor="#000000"><img src="images/stretch.gif" width="1" border="0"></td>
  602.                 <td valign="top" bgcolor="#f7f7e7"><img height="1" src="images/stretch.gif" width="146" border="0">
  603.                   <table class="main" cellspacing="0" cellpadding="2" width="100%" border="0">
  604.                     <tbody>
  605.                       <tr>
  606.                         <td valign="top" align="middle" width="152" height="6">
  607.                     <jsp:include page="showvote.jsp" flush="true" />
  608.                         </td>
  609.                       </tr>
  610.                     </tbody>
  611.                   </table></td>
  612.                 <!-- this is the shade  the right of the Portlet -->
  613.                 <td width="1" bgcolor="#000000"><img src="images/stretch.gif" width="1" border="0"></td>
  614.                 <td width="1" bgcolor="#9a9c9a"><img src="images/stretch.gif" width="1" border="0"></td>
  615.                 <td width="1" bgcolor="#b3b4b3"><img src="images/stretch.gif" width="1" border="0"></td>
  616.               </tr>
  617.             </tbody>
  618.           </table>
  619.           <table cellspacing="0" cellpadding="0" width="150" border="0">
  620.             <tbody>
  621.               <tr>
  622.                 <td valign="top" width="4" rowspan="4"><img src="images/bl_img.gif" border="0"></td>
  623.                 <td bgcolor="#f7f7e7" height="3"><img height="1" src="images/stretch.gif" width="142" border="0"></td>
  624.                 <td valign="top" width="4" rowspan="4"><img height="6" src="images/br_img.gif" width="4" border="0"></td>
  625.               </tr>
  626.               <tr>
  627.                 <td width="1" bgcolor="#000000"><img height="1" src="images/stretch.gif" width="1" border="0"></td>
  628.               </tr>
  629.               <tr>
  630.                 <td width="1" bgcolor="#9a9c9a"><img height="1" src="images/stretch.gif" width="1" border="0"></td>
  631.               </tr>
  632.             </tbody>
  633.           </table>
  634.           <br>
  635.           <table cellspacing="0" cellpadding="0" width="150" border="0">
  636.             <tbody>
  637.               <tr>
  638.                 <td valign="top" width="4" bgcolor="#336699" rowspan="2"><img height="18" src="images/tl_img.gif" width="4" border="0"></td>
  639.                 <td bgcolor="#000000" height="1"><img height="1" src="images/stretch.gif" width="142" border="0"></td>
  640.                 <td valign="top" width="4" bgcolor="#336699" rowspan="2"><img height="18" src="images/tr_img.gif" width="4" border="0"></td>
  641.               </tr>
  642.               <tr>
  643.                 <td height="16" valign="bottom" bgcolor="#336699"> <div align="left"><font class="portletTitle" color="#ffffff">&nbsp;邮件订阅</font><font class="portletTitle" color="#ffffff" size="1"><br>
  644.                     </font> </div></td>
  645.               </tr>
  646.             </tbody>
  647.           </table>
  648.           <table cellspacing="0" cellpadding="0" width="150" border="0">
  649.             <tbody>
  650.               <tr>
  651.                 <td width="1" bgcolor="#000000"><img src="images/stretch.gif" width="1" border="0"></td>
  652.                 <td valign="top" bgcolor="#f7f7e7"><img height="1" src="images/stretch.gif" width="146" border="0">
  653.                   <table class="main" cellspacing="0" cellpadding="2" width="100%" border="0">
  654.                     <tbody>
  655.                       <tr>
  656.    <form method="POST" action="" target="_blank">
  657.                         <td valign="top" align="middle" width="152" height="6">
  658.   <p align="center"><input type="text" name="fsemail" size="16"></p>
  659.   <p align="center"><input type="submit" value="订阅" name="B1" disabled>
  660.   <input type="submit" value="退订" name="td" disabled></p>
  661.                         </td>
  662. </form>
  663.                       </tr>
  664.                     </tbody>
  665.                   </table></td>
  666.                 <!-- this is the shade  the right of the Portlet -->
  667.                 <td width="1" bgcolor="#000000"><img src="images/stretch.gif" width="1" border="0"></td>
  668.                 <td width="1" bgcolor="#9a9c9a"><img src="images/stretch.gif" width="1" border="0"></td>
  669.                 <td width="1" bgcolor="#b3b4b3"><img src="images/stretch.gif" width="1" border="0"></td>
  670.               </tr>
  671.             </tbody>
  672.           </table>
  673.           <table cellspacing="0" cellpadding="0" width="150" border="0">
  674.             <tbody>
  675.               <tr>
  676.                 <td valign="top" width="4" rowspan="4"><img src="images/bl_img.gif" border="0"></td>
  677.                 <td bgcolor="#f7f7e7" height="3"><img height="1" src="images/stretch.gif" width="142" border="0"></td>
  678.                 <td valign="top" width="4" rowspan="4"><img height="6" src="images/br_img.gif" width="4" border="0"></td>
  679.               </tr>
  680.               <tr>
  681.                 <td width="1" bgcolor="#000000"><img height="1" src="images/stretch.gif" width="1" border="0"></td>
  682.               </tr>
  683.               <tr>
  684.                 <td width="1" bgcolor="#9a9c9a"><img height="1" src="images/stretch.gif" width="1" border="0"></td>
  685.               </tr>
  686.             </tbody>
  687.           </table>
  688.           <br> <br> </td>
  689.       </tr>
  690.     </center>
  691.   </table>
  692.   </center>
  693.   </div>
  694. <table align="center" border="0" cellPadding="4" cellSpacing="0" width="764" bgcolor="#FFFFFF">
  695.   <tbody>
  696.     <tr>
  697.       <td align="right" class="unnamed1"><hr size="1" color="#000000"></td>
  698.     </tr>
  699.     <tr>
  700.       <td align="right" class="unnamed1"> <p align="center" style="word-spacing: 0; margin-top: 0; margin-bottom: 0">Copyright
  701.           &copy;亮中计算机技术服务有限公司 2004 </p>
  702.         </td>
  703.     </tr>
  704.   </tbody>
  705. </table>
  706. </body>
  707. </html>
  708. <%
  709.   }catch(Exception e){
  710.     e.printStackTrace();
  711.   }
  712. %>