__index.java
上传用户:xjrzjk
上传日期:2022-07-31
资源大小:1585k
文件大小:42k
- /* compiled from JSP: /index.jsp
- *
- * This code was automatically generated at 21:23:37 on 2004-4-16
- * by weblogic.servlet.jsp.Jsp2Java -- do not edit.
- */
- package jsp_servlet;
- import java.io.*;
- import java.util.*;
- import javax.servlet.*;
- import javax.servlet.http.*;
- import javax.servlet.jsp.*;
- import javax.servlet.jsp.tagext.*;
- // User imports
- import java.sql.*; //[ /index.jsp; Line: 2]
import javax.sql.*; //[ /index.jsp; Line: 3]
- // built-in init parameters:
- // boolean _verbose -- wants debugging
- // Well-known variables:
- // JspWriter out -- to write to the browser
- // HttpServletRequest request -- the request object.
- // HttpServletResponse response -- the response object.
- // PageContext pageContext -- the page context for this JSP
- // HttpSession session -- the session object for the client (if any)
- // ServletContext application -- The servlet (application) context
- // ServletConfig config -- The ServletConfig for this JSP
- // Object page -- the instance of this page's implementation class (i.e., 'this')
- /**
- * This code was automatically generated at 21:23:37 on 2004-4-16
- * by weblogic.servlet.jsp.Jsp2Java -- do not edit.
- *
- * Copyright (c) 2004 by BEA Systems, Inc. All Rights Reserved.
- */
- public final class __index
- extends
- weblogic.servlet.jsp.JspBase
- implements weblogic.servlet.jsp.StaleIndicator
- {
-
- // StaleIndicator interface
public boolean _isStale() {
weblogic.servlet.jsp.StaleChecker sci =(weblogic.servlet.jsp.StaleChecker)(getServletConfig().getServletContext());
java.io.File f = null;
long lastModWhenBuilt = 0L;
if (sci.isResourceStale("/index.jsp", 1081779284000L, "WebLogic Server 7.0 Thu Jun 20 11:47:11 PDT 2002 190955 ")) return true;
return false;
}
public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) {
java.io.File f = null;
long lastModWhenBuilt = 0L;
if (sci.isResourceStale("/index.jsp", 1081779284000L, "WebLogic Server 7.0 Thu Jun 20 11:47:11 PDT 2002 190955 ")) return true;
return false;
}
-
- public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
- {
-
- // declare and set well-known variables:
- javax.servlet.ServletConfig config = getServletConfig();
- javax.servlet.ServletContext application = config.getServletContext();
- javax.servlet.jsp.tagext.Tag _activeTag = null;
- // variables for Tag extension protocol
- Object page = this;
- javax.servlet.jsp.JspWriter out;
- javax.servlet.jsp.PageContext pageContext =
javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);
- response.setHeader("Content-Type", "text/html; charset=GBK");
out = pageContext.getOut();
JspWriter _originalOut = out;
- javax.servlet.http.HttpSession session = request.getSession(true);
-
-
- try { // error page try block
response.setContentType("text/html; charset=GBK");
out.print("rn");
out.print("rn");
out.print("rn");
//[ /index.jsp; Line: 4]
try{ //[ /index.jsp; Line: 5]
//数据库连接 //[ /index.jsp; Line: 6]
Class.forName("oracle.jdbc.driver.OracleDriver"); //[ /index.jsp; Line: 7]
String strUrl = "jdbc:oracle:thin:@slight:1521:LOCAL"; //[ /index.jsp; Line: 8]
String strUser = "eshop"; //[ /index.jsp; Line: 9]
String strPassword = "eshop"; //[ /index.jsp; Line: 10]
Connection con = DriverManager.getConnection(strUrl, strUser, strPassword); //[ /index.jsp; Line: 11]
Statement st = con.createStatement(); //[ /index.jsp; Line: 12]
//[ /index.jsp; Line: 13]
//最近注册商品 //[ /index.jsp; Line: 14]
String sql = "select * from product order by regtime desc"; //[ /index.jsp; Line: 15]
ResultSet rs = st.executeQuery(sql); //[ /index.jsp; Line: 16]
//[ /index.jsp; Line: 17]
//[ /index.jsp; Line: 18]
out.print("rn<html>rnrn<head>rn<script>rn 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");}rn</script>rn<script language="javascript">rn<!--rnfunction winopen(url)rn {rn 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");rn }rnrnfunction MM_openBrWindow(theURL,winName,features) { //v2.0rn window.open(theURL,winName,features);rn}rn//-->rn</script>rn<title>rn网上商城rn</title>rn<link rel="stylesheet" type="text/css" href="style.css">rn</head>rn<body leftmargin="0" topmargin="0">rn<table cellSpacing="0" cellPadding="0" width="764" align="center" border="0" height="90" bgcolor="#336699">rn <tbody>rn <tr>rn <td width="100%" height="1"> <img src="images/logo_old.gif" width="760" height="80" border="0" usemap="#Map">rn <center>rn </center></td>rn </tr>rn </tbody>rn</table");
out.print(">rn<map name="Map">rn <area shape="rect" coords="280,14,736,72" href="http://www.cefirst.com/version2.01/product/esystem/default.asp" target="_blank">rn</map>rn<div align="center">rn <table border="0" width="764" cellspacing="0" cellpadding="0" height="60">rn <center>rn <tr>rn <td width="153" valign="top" bgcolor="#336699" height="60" rowspan="4">rn <div align="center">rn <table>rn <tr>rn <td width="160" height="20"> </td>rn </tr>rn <tr>rn <td width="160" bgcolor="#000033" height="1"><spacer type="block" height="1"> </td>rn </tr>rn <tr>rn <td width="160" bgcolor="#a0a0a0" height="1"><spacer type="block" height="1"> </td>rn </tr>rn <tr>rn <td width="160" bgcolor="#b0b0b0" height="1"><spacer type="block" height="1"> </td>rn </tr>rn <tr>rn <td width="160" bgcolor="#c0c0c0" height="1"><sp");
out.print("acer type="block" height="1"> </td>rn </tr>rn <tr>rn <td width="160" bgcolor="#d0d0d0" height="1"><spacer type="block" height="1"> </td>rn </tr>rn <tr>rn <td width="160" bgcolor="#F0F1EF" height="80"> <div align="center">rn <table cellspacing="0" cellpadding="0" width="86%" align="center" background border="0">rn <tbody>rn <tr>rn <td>rn ");
{ /* include block for 'news/rollnews.jsp' */ //[ /index.jsp; Line: 87]
String __thePage = //[ /index.jsp; Line: 87]
//[ /index.jsp; Line: 87]
"news/rollnews.jsp"; //[ /index.jsp; Line: 87]
pageContext.include(__thePage); //[ /index.jsp; Line: 87]
out.flush(); //[ /index.jsp; Line: 87]
} /* end include block for 'news/rollnews.jsp' */ //[ /index.jsp; Line: 87]
out.print("rn</td>rn </tr>rn </tbody>rn </table>rn </div></td>rn </tr>rn <tr>rn <td width="160" bgcolor="#000000" height="1"><spacer type="block" height="1"> </td>rn </tr>rn <tr>rn <td width="160" bgcolor="#c0c0c0" height="1"><spacer type="block" height="1"> </td>rn </tr>rn <tr>rn <td width="160" bgcolor="#b0b0b0" height="1"><spacer type="block" height="1"> </td>rn </tr>rn <tr>rn <td width="160" bgcolor="#a0a0a0" height="1"><spacer type="block" height="1"> </td>rn </tr>rn <tr>rn <td width="160" bgcolor="#000000" height="1"><spacer type="block" height="1"> </td>rn </tr>rn <tr>rn <td align="middle" width="160"> <p> </p></td>rn </tr>rn </table>rn <table class="main" ce");
out.print("llspacing="0" cellpadding="2" width="153" border="0" height="67">rn <tbody>rn <tr>rn <td valign="top" align="middle" width="152" height="63">rn<form language="javascript" name="FORM1" onSubmit="return FORM1_onsubmit()" action="orderloginsb.jsp" method="post">rn <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font color="#B0E8F8">rn<!--webbot bot="HTMLMarkup" startspan -->rn <script language=javascript id=clientEventHandlersJS>rn//函数名:chksafern//功能介绍:检查是否含有"'",'\\',"/"rn//参数说明:要检查的字符串rn//返回值:0:是 1:不是rnfunction chksafe(a)rn{rntreturn 1;rn/*tfibdn = new Array ("'" ,"\\", "、", ",", ";", "/");rnti=fibdn.length;rntj=a.length;rntfor (ii=0;ii<i;ii++)rnt{tfor (jj=0;jj<j;jj++)rntt{ttemp1=a.charAt(jj);rnttttemp2=fibdn[ii];rntttif (tem';p1==temp2)rnttt{treturn 0; }rntt}rnt}rntreturn 1;rn*/rn}rnrn//函数名:chkspcrn//功能介绍:检查是否含有空格rn//参数说明:要检查的字符串rn//返回值:0:是 1:不是rnfunction chkspc(a)rn{rntvar i=a.length;rntvar j = 0;rntvar k =");
out.print(" 0;rntwhile (k<i)rnt{rnttif (a.charAt(k) != " ")rntttj = j+1;rnttk = k+1;rnt}rntif (j==0)rnt{rnttreturn 0;rnt}rnrntif (i!=j)rnt{ return 2; }rntelsernt{rnttreturn 1;rnt}rn}rn//函数名:fucCheckLengthrn//功能介绍:检查字符串的长度rn//参数说明:要检查的字符串rn//返回值:长度值rnfunction fucCheckLength(strTemp)rn{rntvar i,sum;rntsum=0;rntfor(i=0;i<strTemp.length;i++)rnt{rnttif ((strTemp.charCodeAt(i)>=0) && (strTemp.charCodeAt(i)<=255))rntttsum=sum+1;rnttelserntttsum=sum+2;rnt}rntreturn sum;rn}rnrnrn</script>rn <script language=javascript>rnrnfunction chkitem(str)rn{rntvar strSource ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";rn var ch;rn var i;rn var temp;rnrn for (i=0;i<=(str.length-1);i++)rn {rnrn ch = str.charAt(i);rn temp = strSource.indexOf(ch);rn if (temp==-1)rn {rn return 0;rn }rn }rn if (strSource.indexOf(ch)==-1)rn {rn return 0;rn }rn elsern {rn return 1;rn }rnrnrn}rnrnfunction FORM1_onsubmit()rn{rntif (chkitem(document.FORM1.uid.value)==0)rnt{rnttalert("请输入");
out.print("正确的会员帐号。");rnttdocument.FORM1.uid.focus();rnttreturn false;rnt}rntif ((document.FORM1.uid.vlaue=='') || (chkspc(document.FORM1.uid.value)==0)|| (chkspc(document.FORM1.uid.value)==2))rnt{rnttalert("请将会员帐号填写完整,且不能使用空格!");rnttdocument.FORM1.uid.focus();rnttreturn false;rnt}rntif (chkitem(document.FORM1.pwd.value)==0)rnt{rnttalert("请将填写密码!");rnttdocument.FORM1.pwd.focus();rnttreturn false;rnt}rnrntif ( fucCheckLength(document.FORM1.uid.value) != document.FORM1.uid.value.length )rnt{rnttalert("会员帐号请不要使用中文!");rnttdocument.FORM1.uid.focus();rnttreturn false;rnt}rntif (fucCheckLength(document.FORM1.uid.value) <4 )rnt{rnttalert("会员帐号必须至少4位");rnttdocument.FORM1.uid.focus();rnttreturn false;rnt}rnrn}rn</script>rn <!--webbot bot="HTMLMarkup" endspan -->rn 帐号rn <input maxlength="16" size="14" name="uid">rn </font> </p>rn <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><font color="#B0E8F8">密码rn ");
out.print(" <input maxlength="16" size="14" name="pwd" type="password">rn </font> </p>rn <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">rn <font color="#B0E8F8"> <br>rn <input type="submit" size="3" value="登录" name="Submit2">rn <input type="button" value="注册会员" name="B1" onClick="window.location.href='reguser.htm';">rn </font> </p>rn </form></td>rn </tr>rn </tbody>rn </table>rn <table border="0" width="90%" cellspacing="0" cellpadding="0">rn <tr>rn <td width="100%"> <div align="center">rn <table height="10" cellspacing="0" cellpadding="0" width="100%" border="0">rn <tbody>rn <tr>rn <td width="100%"> <font color="#B0E8F8">rn");
//[ /index.jsp; Line: 280]
//一级分类 //[ /index.jsp; Line: 281]
sql = "select * from class_1"; //[ /index.jsp; Line: 282]
ResultSet rs1 = st.executeQuery(sql); //[ /index.jsp; Line: 283]
String strClass1Name = ""; //[ /index.jsp; Line: 284]
while (rs1.next()){ //[ /index.jsp; Line: 285]
sql = "select * from class_2 where class_1_name = '" + rs1.getString("class_1_name") + "'"; //[ /index.jsp; Line: 286]
strClass1Name = rs1.getString("Class_1_Name"); //[ /index.jsp; Line: 287]
//[ /index.jsp; Line: 288]
ResultSet rs2 = st.executeQuery(sql); //[ /index.jsp; Line: 289]
out.print("rn</font> <div align="center">rn<table border="0" cellspacing="0" width="100%" height="1" bordercolorlight="#C0C0C0" cellpadding="0" bordercolordark="#336699">rn <tr>rn <td height="1" width="100%"> <table border="0" width="100%" bgcolor="#0099CC" cellspacing="0" cellpadding="0">rn <tr>rn <td height="22" bgcolor="#6094C8"> <p align="center"><font color="#F7F7E7"><b>rn ");
out.print(String.valueOf(strClass1Name)); //[ /index.jsp; Line: 297]
out.print("</b>rn</font></td>rn </tr>rn </table></td>rn</tr>rn");
//[ /index.jsp; Line: 302]
int j = 1; //[ /index.jsp; Line: 303]
while(rs2.next()){ //[ /index.jsp; Line: 304]
out.print("rn <td width="139" height="22" bgcolor="#B1CBE4">rn<p align="center"><a href="splb.jsp?spdl=");
out.print(String.valueOf(rs2.getString("Class_1_Name"))); //[ /index.jsp; Line: 307]
out.print("&spxl=");
out.print(String.valueOf(rs2.getString("Class_2_Name"))); //[ /index.jsp; Line: 307]
out.print(""><font color="#000000">");
out.print(String.valueOf(rs2.getString("Class_2_Name"))); //[ /index.jsp; Line: 307]
out.print("</font></a>rn </td>rn </tr>rn <tr>rn ");
//[ /index.jsp; Line: 311]
j=j+1; //[ /index.jsp; Line: 312]
} //[ /index.jsp; Line: 313]
rs2.close(); //[ /index.jsp; Line: 314]
//[ /index.jsp; Line: 315]
//[ /index.jsp; Line: 315]
out.print("rn </tr>rn </table>rn </div>rn <font color="#B0E8F8">rn");
//[ /index.jsp; Line: 320]
} //[ /index.jsp; Line: 321]
rs1.close(); //[ /index.jsp; Line: 322]
out.print("rn </font> </td>rn </tr>rn </tbody>rn </table>rn </div></td>rn </tr>rn </table>rn <br>rn </div></td>rn <td width="610" valign="top" colspan="2" height="16" bgcolor="#336699" align="center">rn <table border="0" cellspacing="0" cellpadding="0" width="100%">rn <tr align="center">rn <td width="25"><img src="images/left.gif"></td>rn <td width="86" background="images/bgguide.gif"><a href="index.asp" class="guide">首 页</a></td>rn <td background="images/bgguide.gif"><img src="images/guide.gif"></td>rn <td width="86" background="images/bgguide.gif"><a href="zxsp.asp" class="guide">最新商品</a></td>rn <td background="images/bgguide.gif"><img src="images/guide.gif"></td>rn <td width="86" background="images/bgguide.gif"><a href="reguser.htm" class="guide">会员注册</a></td>rn ");
out.print(" <td background="images/bgguide.gif"><img src="images/guide.gif"></td>rn <td width="86" background="images/bgguide.gif"><a href="javascript:openbag()">察看购物车</a></td>rn <td background="images/bgguide.gif"><img src="images/guide.gif"></td>rn <td width="86" background="images/bgguide.gif">购物帮助</td>rn <td width="25"><img src="images/right.gif"></td>rn </tr>rn </table></td>rn </tr>rn </center>rn <tr>rn <td width="610" valign="top" colspan="2" height="25"> <table border="0" width="100%" height="1" cellspacing="0" cellpadding="0">rn <tr>rn <center>rn <td width="50%" height="1"> <form method="POST" action="orderofind.asp" target="_blank">rn <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="center">订单查询rn <input name="Form_Id" type="text" value="订单号" size="8">rn <input type="submit" value="查询" name="djB1" class="a">rn ");
out.print(" </form></td>rn </center>rn <td width="50%" height="1"> <form method="POST" action="spss.asp" target="_blank">rn <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"> 商品查询rn <input type="text" name="Product_Name" size="10" class="a" style="font-size: 14px">rn <select name="Product_Class" size="1" tabindex="0" class="a" style="font-size: 14px">rn <option value="礼品">礼品</option>rn <option value="影视">影视</option>rn <option value="化妆">化妆</option>rn <option value="互联网">互联网</option>rn </select>rn <input type="image" height="20" cache width="52" src="images/go.gif" align="absMiddle" value="GO" border="0" name="I55">rn </p>rn </form></td>rn </tr>rn </table></td>rn </tr>rn <center>rn <tr>rn <td width="100%" valign="top" height="10"> <div align="center">rn");
out.print(" <center>rn <table cellspacing="0" cellpadding="0" width="417" bgcolor="#f0f1ef" border="0">rn <tbody>rn <tr>rn <td valign="top" width="10" rowspan="2"><img height="26" src="images/enet_lt.gif" width="10"></td>rn <td width="505" bgcolor="#10a6be" height="1"><spacer width="1" type="block"></td>rn <td valign="top" width="10" rowspan="2"><img src="images/enet_rt.gif"></td>rn </tr>rn <tr height="25">rn <td> <table cellspacing="3" cellpadding="0" width="100%" border="0">rn <tbody>rn <tr>rn <td align="middle" width="10"></td>rn <td width="475"><img height="10" src="images/arrow_1.gif" width="13"> 商城动态</td>rn </tr>rn </tbody>rn </table></td>rn </tr>rn </");
out.print("tbody>rn </table>rn </center>rn </div>rn <div align="center">rn <center>rn <table border="0" width="417" cellspacing="0" cellpadding="0">rn <tr>rn <td width="1" bgcolor="#10A6BE"> </td>rn <td width="415" bgcolor="#F0F1EF"><script src="news/news.asp"></script>rn </td>rn <td width="1" bgcolor="#10A6BE"> </td>rn </tr>rn </table>rn </center>rn </div>rn <div align="center">rn <center>rn <table cellspacing="0" cellpadding="0" width="417" bgcolor="#f0f1ef" border="0">rn <tbody>rn <tr>rn <td valign="top" width="10" rowspan="2"><img height="26" src="images/enet_bl.gif" width="10"></td>rn <td width="505" height="19"> <table cellspacing="3" cellpadding="0" width="100%" border="0">rn <tbody>rn ");
out.print(" <tr>rn <td align="right"> <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="right">以往新闻>>>></p></td>rn </tr>rn </tbody>rn </table></td>rn <td valign="top" width="10" rowspan="2"><img height="26" src="images/enet_br.gif" width="10"></td>rn </tr>rn <tr height="1">rn <td width="505" bgcolor="#10a6be" height="1"><spacer width="1" type="block"></td>rn </tr>rn </tbody>rn </table>rn <br>rn </center>rn </div></td>rn <td width="161" valign="top" height="10" align="right"> <table cellspacing="0" cellpadding="0" width="150" border="0">rn <tbody>rn <tr>rn <td valign="top" width="4" bgcolor="#336699" rowspan="2"><img height="18" src="images/tl_img.gif" width="4" border="0"></td>rn ");
out.print(" <td bgcolor="#000000" height="1"><img height="1" src="images/stretch.gif" width="142" border="0"></td>rn <td valign="top" width="4" bgcolor="#336699" rowspan="2"><img height="18" src="images/tr_img.gif" width="4" border="0"></td>rn </tr>rn <tr>rn <td height="16" valign="bottom" bgcolor="#336699"> <div align="left"><font class="portletTitle" color="#ffffff"> 新品速递</font><font class="portletTitle" color="#ffffff" size="1"><br>rn </font> </div></td>rn </tr>rn </tbody>rn </table>rn <table cellspacing="0" cellpadding="0" width="150" border="0">rn <tbody>rn <tr>rn <td width="1" bgcolor="#000000"><img src="images/stretch.gif" width="1" border="0"></td>rn <td valign="top" bgcolor="#f7f7e7"><img height="1" src="images/stretch.gif" width="146" border="0"><br>rn <table border="0" cellpadding="0" cellspacing="0" width="100%" hei");
out.print("ght="1">rn");
//[ /index.jsp; Line: 455]
while (rs.next()){ //[ /index.jsp; Line: 456]
out.print("rn<tr>rn <td width="100%" align="center" height="11">rn <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0" align="left">rn<img height="14" src="images/point002.GIF" width="14">rn<a href="javascript:winopen('spjj.jsp?ProductNO=");
out.print(String.valueOf(rs.getLong("Product_No"))); //[ /index.jsp; Line: 462]
out.print("')">");
out.print(String.valueOf(rs.getString("Product_name"))); //[ /index.jsp; Line: 462]
out.print("</a></p></td>rn</tr>rn");
//[ /index.jsp; Line: 464]
} //[ /index.jsp; Line: 465]
rs.close(); //[ /index.jsp; Line: 466]
out.print("rn </table></td>rn <!-- this is the shade the right of the Portlet -->rn <td width="1" bgcolor="#000000"><img src="images/stretch.gif" width="1" border="0"></td>rn <td width="1" bgcolor="#9a9c9a"><img src="images/stretch.gif" width="1" border="0"></td>rn <td width="1" bgcolor="#b3b4b3"><img src="images/stretch.gif" width="1" border="0"></td>rn </tr>rn </tbody>rn </table>rn <table cellspacing="0" cellpadding="0" width="150" border="0">rn <tbody>rn <tr>rn <td valign="top" width="4" rowspan="4"><img height="6" src="images/bl_img.gif" width="4" border="0"></td>rn <td bgcolor="#f7f7e7" height="3"><img height="1" src="images/stretch.gif" width="142" border="0"></td>rn <td valign="top" width="4" rowspan="4"><img height="6" src="images/br_img.gif" width="4" border="0"></td>rn </tr>rn <tr>rn ");
out.print("<td width="1" bgcolor="#000000"><img height="1" src="images/stretch.gif" width="1" border="0"></td>rn </tr>rn <tr>rn <td width="1" bgcolor="#9a9c9a"><img height="1" src="images/stretch.gif" width="1" border="0"></td>rn </tr>rn <tr>rn <td width="1" bgcolor="#b3b4b3"><img height="1" src="images/stretch.gif" width="1" border="0"></td>rn </tr>rn </tbody>rn </table></td>rn </tr>rn <tr>rn <td width="100%" valign="top" height="95"> <div align="center">rn <center>rn <table cellspacing="0" cellpadding="0" width="417" bgcolor="#f0f1ef" border="0">rn <tbody>rn <tr>rn <td valign="top" width="10" rowspan="2"><img height="26" src="images/enet_lt.gif" width="10"></td>rn <td width="505" bgcolor="#10a6be" height="1"><spacer width="1" type="block"></td>rn <td valign="top" width="10" row");
out.print("span="2"><img src="images/enet_rt.gif"></td>rn </tr>rn <tr height="25">rn <td> <table cellspacing="3" cellpadding="0" width="100%" border="0">rn <tbody>rn <tr>rn <td align="middle" width="10"></td>rn <td width="475"><img height="10" src="images/arrow_1.gif" width="13"> <font class="105v">热卖商品</font>rn");
//[ /index.jsp; Line: 511]
sql = "select * from product where rownum<7 order by look_count desc "; //[ /index.jsp; Line: 512]
ResultSet rshot = st.executeQuery(sql); //[ /index.jsp; Line: 513]
out.print("rn </td>rn </tr>rn </tbody>rn </table></td>rn </tr>rn </tbody>rn </table>rn </center>rn </div>rn <div align="center">rn <center>rn <table cellspacing="0" cellpadding="0" width="417" border="0">rn <tbody>rn <tr>rn <td width="100%"> <table cellspacing="1" width="100%" border="0" height="51" bgcolor="#10A6BE">rn <tbody>rn <tr valign="top">rn <td class="default" height="41" width="100%" bgcolor="#FFFFFF">rn<table border="0" cellpadding="0" cellspacing="0" width="100%" height="98">rn");
//[ /index.jsp; Line: 534]
int k = 1; //[ /index.jsp; Line: 535]
out.print("rn<tr>rn");
//[ /index.jsp; Line: 538]
while (rshot.next()){ //[ /index.jsp; Line: 539]
out.print("rn<td>rn<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">rn<img border="0" src="");
out.print(String.valueOf(rshot.getString("p_pic"))); //[ /index.jsp; Line: 543]
out.print("">rn<p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><a href="javascript:winopen('spjj.jsp?ProductNO=");
out.print(String.valueOf(rshot.getLong("Product_No"))); //[ /index.jsp; Line: 544]
out.print("')"><b>");
out.print(String.valueOf(rshot.getString("Product_Name"))); //[ /index.jsp; Line: 544]
out.print("</b></a></p>rn <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">市场价:¥rn <strike>");
out.print(String.valueOf(rshot.getDouble("P_OldPrice"))); //[ /index.jsp; Line: 546]
out.print("</strike><br>rn 会员价:¥ <font color="#FF0000">");
out.print(String.valueOf(rshot.getDouble("P_NewPrice"))); //[ /index.jsp; Line: 547]
out.print("</font><br>rn <a href="javascript:winopen('spjj.jsp?ProductNO=");
out.print(String.valueOf(rshot.getLong("Product_No"))); //[ /index.jsp; Line: 548]
out.print("')">[详细介绍]</a></p>rn <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><a href="javascript:openbag(");
out.print(String.valueOf(rshot.getString("Product_Id"))); //[ /index.jsp; Line: 549]
out.print(")"><img border="0" src="images/mybuy.gif"></a></p>rn <hr size="1" color="#808000" width="80%">rn </td>rn ");
//[ /index.jsp; Line: 552]
if ((double)k/3 == k/3){ //[ /index.jsp; Line: 553]
//[ /index.jsp; Line: 554]
//[ /index.jsp; Line: 554]
out.print("rn </tr>rn <tr>rnrn ");
//[ /index.jsp; Line: 558]
} //[ /index.jsp; Line: 559]
k=k+1; //[ /index.jsp; Line: 560]
} //[ /index.jsp; Line: 561]
rshot.close(); //[ /index.jsp; Line: 562]
con.close(); //[ /index.jsp; Line: 563]
//[ /index.jsp; Line: 564]
//[ /index.jsp; Line: 564]
out.print("rn </tr>rn </table></td>rn </tr>rn </tbody>rn </table></td>rn </tr>rn </tbody>rn </table>rn </center>rn </div>rn <div align="center">rn <center>rn <table cellspacing="0" cellpadding="0" width="417" bgcolor="#f0f1ef" border="0">rn <tbody>rn <tr>rn <td valign="top" width="10" rowspan="2"><img height="26" src="images/enet_bl.gif" width="10"></td>rn <td width="505" height="19"> <table cellspacing="3" cellpadding="0" width="100%" border="0">rn <tbody>rn <tr>rn <td align="right"> 谢谢你光临我们的商店 </td>rn </tr>rn </tbody>rn </table></td>rn <td valign="top" width="10" row");
out.print("span="2"><img height="26" src="images/enet_br.gif" width="10"></td>rn </tr>rn <tr height="1">rn <td width="505" bgcolor="#10a6be" height="1"><spacer width="1" type="block"></td>rn </tr>rn </tbody>rn </table>rn <br>rn </center>rn </div></td>rn <td width="161" valign="top" height="95" align="right"> <table border="0" width="100%" cellspacing="0" cellpadding="0">rn <tr>rn <td width="100%"> </td>rn </tr>rn </table>rn <table cellspacing="0" cellpadding="0" width="150" border="0">rn <tbody>rn <tr>rn <td valign="top" width="4" bgcolor="#336699" rowspan="2"><img height="18" src="images/tl_img.gif" width="4" border="0"></td>rn <td bgcolor="#000000" height="1"><img height="1" src="images/stretch.gif" width="142" border="0"></td>rn <td valign="top" width="4" b");
out.print("gcolor="#336699" rowspan="2"><img height="18" src="images/tr_img.gif" width="4" border="0"></td>rn </tr>rn <tr>rn <td height="16" valign="bottom" bgcolor="#336699"> <div align="left"><font class="portletTitle" color="#ffffff"> 在线调查</font><font class="portletTitle" color="#ffffff" size="1"><br>rn </font> </div></td>rn </tr>rn </tbody>rn </table>rn <table cellspacing="0" cellpadding="0" width="150" border="0">rn <tbody>rn <tr>rn <td width="1" bgcolor="#000000"><img src="images/stretch.gif" width="1" border="0"></td>rn <td valign="top" bgcolor="#f7f7e7"><img height="1" src="images/stretch.gif" width="146" border="0">rn <table class="main" cellspacing="0" cellpadding="2" width="100%" border="0">rn <tbody>rn <tr>rn <td valign="top" align="middle" width="152" height="6">rn ");
out.print(" ");
{ /* include block for 'showvote.jsp' */ //[ /index.jsp; Line: 625]
String __thePage = //[ /index.jsp; Line: 625]
//[ /index.jsp; Line: 625]
"showvote.jsp"; //[ /index.jsp; Line: 625]
pageContext.include(__thePage); //[ /index.jsp; Line: 625]
out.flush(); //[ /index.jsp; Line: 625]
} /* end include block for 'showvote.jsp' */ //[ /index.jsp; Line: 625]
out.print("rn </td>rn </tr>rn </tbody>rn </table></td>rn <!-- this is the shade the right of the Portlet -->rn <td width="1" bgcolor="#000000"><img src="images/stretch.gif" width="1" border="0"></td>rn <td width="1" bgcolor="#9a9c9a"><img src="images/stretch.gif" width="1" border="0"></td>rn <td width="1" bgcolor="#b3b4b3"><img src="images/stretch.gif" width="1" border="0"></td>rn </tr>rn </tbody>rn </table>rn <table cellspacing="0" cellpadding="0" width="150" border="0">rn <tbody>rn <tr>rn <td valign="top" width="4" rowspan="4"><img src="images/bl_img.gif" border="0"></td>rn <td bgcolor="#f7f7e7" height="3"><img height="1" src="images/stretch.gif" width="142" border="0"></td>rn <td valign="top" width="4" rowspan="4"><img height="6" src="images/br_img.gif" width="4" border");
out.print("="0"></td>rn </tr>rn <tr>rn <td width="1" bgcolor="#000000"><img height="1" src="images/stretch.gif" width="1" border="0"></td>rn </tr>rn <tr>rn <td width="1" bgcolor="#9a9c9a"><img height="1" src="images/stretch.gif" width="1" border="0"></td>rn </tr>rn </tbody>rn </table>rn <br>rnrn <table cellspacing="0" cellpadding="0" width="150" border="0">rn <tbody>rn <tr>rn <td valign="top" width="4" bgcolor="#336699" rowspan="2"><img height="18" src="images/tl_img.gif" width="4" border="0"></td>rn <td bgcolor="#000000" height="1"><img height="1" src="images/stretch.gif" width="142" border="0"></td>rn <td valign="top" width="4" bgcolor="#336699" rowspan="2"><img height="18" src="images/tr_img.gif" width="4" border="0"></td>rn </tr>rn <tr>rn <td height="16" valign="bottom" bgcolor");
out.print("="#336699"> <div align="left"><font class="portletTitle" color="#ffffff"> 邮件订阅</font><font class="portletTitle" color="#ffffff" size="1"><br>rn </font> </div></td>rn </tr>rn </tbody>rn </table>rn <table cellspacing="0" cellpadding="0" width="150" border="0">rn <tbody>rn <tr>rn <td width="1" bgcolor="#000000"><img src="images/stretch.gif" width="1" border="0"></td>rn <td valign="top" bgcolor="#f7f7e7"><img height="1" src="images/stretch.gif" width="146" border="0">rn <table class="main" cellspacing="0" cellpadding="2" width="100%" border="0">rn <tbody>rn <tr>rnttttt <form method="POST" action="" target="_blank">rn <td valign="top" align="middle" width="152" height="6">rnrn <p align="center"><input type="text" name="fsemail" size="16"></p>rn <p align="center"><input type="submit" value="订阅" name="B1" disabled>r");
out.print("n <input type="submit" value="退订" name="td" disabled></p>rnrnrn </td>rntttttt</form>rn </tr>rn </tbody>rn </table></td>rn <!-- this is the shade the right of the Portlet -->rn <td width="1" bgcolor="#000000"><img src="images/stretch.gif" width="1" border="0"></td>rn <td width="1" bgcolor="#9a9c9a"><img src="images/stretch.gif" width="1" border="0"></td>rn <td width="1" bgcolor="#b3b4b3"><img src="images/stretch.gif" width="1" border="0"></td>rn </tr>rn </tbody>rn </table>rn <table cellspacing="0" cellpadding="0" width="150" border="0">rn <tbody>rn <tr>rn <td valign="top" width="4" rowspan="4"><img src="images/bl_img.gif" border="0"></td>rn <td bgcolor="#f7f7e7" height="3"><img height="1" src="images/stretch.gif" width="142" border="0"></td>rn <td valign="top" w");
out.print("idth="4" rowspan="4"><img height="6" src="images/br_img.gif" width="4" border="0"></td>rn </tr>rn <tr>rn <td width="1" bgcolor="#000000"><img height="1" src="images/stretch.gif" width="1" border="0"></td>rn </tr>rn <tr>rn <td width="1" bgcolor="#9a9c9a"><img height="1" src="images/stretch.gif" width="1" border="0"></td>rn </tr>rn </tbody>rn </table>rn <br> <br> </td>rn </tr>rn </center>rn </table>rn </center>rn </div>rnrn<table align="center" border="0" cellPadding="4" cellSpacing="0" width="764" bgcolor="#FFFFFF">rn <tbody>rn <tr>rn <td align="right" class="unnamed1"><hr size="1" color="#000000"></td>rn </tr>rn <tr>rn <td align="right" class="unnamed1"> <p align="center" style="word-spacing: 0; margin-top: 0; margin-bottom: 0">Copyrightrn ©亮中计算机技术服务有限公司 2004 </p>rn </td>rn </tr>rn </tbody>rn</table>rn</body>rnrn</html>rn");
//[ /index.jsp; Line: 732]
}catch(Exception e){ //[ /index.jsp; Line: 733]
e.printStackTrace(); //[ /index.jsp; Line: 734]
} //[ /index.jsp; Line: 735]
out.print("rn");
} catch (Throwable __ee) {
while (out != null && out != _originalOut) out = pageContext.popBody();
((weblogic.servlet.jsp.PageContextImpl)pageContext).handlePageException((Throwable)__ee);
}
- //before final close brace...
- }
-
-
- }