research.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:16k
源码类别:
Applet
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
- <HTML><HEAD><TITLE>图书高级搜索-</TITLE>
- <%@ include file ="top.jsp" %>
- <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
- href="image/buyok_shop.css" type=text/css rel=stylesheet><LINK
- href="image/table.css" type=text/css rel=stylesheet><LINK
- href="image/buyok_shop.css" type=text/css rel=stylesheet>
- <jsp:useBean id="useclassBeans" class="MyFly.Bean.useclassBeans" scope="request"/>
- <jsp:useBean id="characterclassBeans" class="MyFly.Bean.characterclassBeans" scope="request"/>
- <META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
- <BODY>
- <CENTER>
- <LINK href="image/buyok_shop.css" type=text/css rel=stylesheet>
- <TABLE class=grayline cellSpacing=0 cellPadding=0 width=760 align=center
- bgColor=#fafafa border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=middle width=210>
- <SCRIPT language=JavaScript>
- function checkform(){
- if (document.loginbox.name.value.length ==0){
- alert("出错了,您没有填写用户名。");
- document.loginbox.name.focus();
- return false;
- }
- if (document.loginbox.password.value.length==0){
- alert("出错了,您没有填写密码。");
- document.loginbox.password.focus();
- return false;
- }
- if (document.loginbox.yzm.value.length==0){
- alert("出错了,您没有填写验证码。");
- document.loginbox.yzm.focus();
- return false;
- }
- if (document.loginbox.yzm.value!=2228){
- alert("出错了,您填写的验证码不正确。");
- document.loginbox.yzm.focus();
- return false;
- }
- return true;
- }
- </SCRIPT>
- <TABLE cellSpacing=0 cellPadding=0 width=208 border=0>
- <TBODY>
- <TR>
- <TD vAlign=center align=middle>
- <%
- String userid=(String)session.getAttribute("userid");
- if(userid==null)
- {
- %>
- <TABLE cellSpacing=0 cellPadding=0 width=190 align=center
- border=0><TBODY>
- <TR>
- <TD vAlign=top align=left width=190 height=52><IMG height=51
- alt=登陆 src="image/login_top.gif" width=190></TD></TR>
- <TR>
- <TD height=11><IMG height=14 alt=1
- src="image/login_1.gif" width=190></TD></TR>
- <TR>
- <TD vAlign=top align=left background=image/login_bg.gif
- height=7>
- <TABLE height=16 cellSpacing=0 cellPadding=0 width="100%"
- border=0>
- <FORM name=loginbox onsubmit="return checkform();"
- action=check_login.jsp method=post>
- <TBODY>
- <TR>
- <TD vAlign=top align=left height=16>
- <TABLE height=72 cellSpacing=2 cellPadding=0
- width="100%" border=0>
- <TBODY>
- <TR>
- <TD align=right width="31%">用户名:</TD>
- <TD width="45%" height=22><INPUT
- style="BORDER-RIGHT: #ece2d2 1px solid; BORDER-TOP: #ece2d2 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ece2d2 1px solid; COLOR: #666666; BORDER-BOTTOM: #ece2d2 1px solid; FONT-FAMILY: verdana"
- alt=请填写要登陆的用户名 maxLength=16 size=10
- name=name></TD>
- <TD vAlign=top align=left width="24%"
- rowSpan=3><INPUT type=image
- src="image/login.gif"
- name=imageField></TD></TR>
- <TR>
- <TD align=right>密 码:</TD>
- <TD height=22><INPUT
- style="BORDER-RIGHT: #ece2d2 1px solid; BORDER-TOP: #ece2d2 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ece2d2 1px solid; COLOR: #666666; BORDER-BOTTOM: #ece2d2 1px solid; FONT-FAMILY: verdana"
- type=password alt=请填写正确的密码 maxLength=16 size=10
- name=password> <INPUT type=hidden value=ok
- name=login></TD></TR>
- <TR>
- <TD align=right>验证码:</TD>
- <TD vAlign=center height=22><INPUT
- style="BORDER-RIGHT: #ece2d2 1px solid; BORDER-TOP: #ece2d2 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ece2d2 1px solid; COLOR: #666666; BORDER-BOTTOM: #ece2d2 1px solid; FONT-FAMILY: verdana"
- alt=请根据右边的图片填写验证码 maxLength=4 size=4 name=yzm>
- <img src="checkCode/image.jsp" width="38" height="21" border=0></TD></TR></TBODY></TABLE></TD></TR></FORM></TBODY></TABLE></TD>
- <TR>
- <TD vAlign=center align=middle
- background=image/login_bg.gif height=10><IMG height=1
- alt=5 src="image/login_line.gif" width=189></TD>
- </TR>
- <TR>
- <TD vAlign=center align=middle
- background=image/login_bg.gif height=10>
- <TABLE height=20 cellSpacing=0 cellPadding=0 width="100%"
- border=0>
- <TBODY>
- <TR>
- <TD align=middle width=95><IMG height=5 alt=4
- src="image/login_bt.gif" width=5> <A
- href="reginfo.jsp">注 册</A></TD>
- <TD align=middle width=95><IMG height=5 alt=3
- src="image/login_bt.gif" width=5> <A
- href="UserCenter/findstep1.jsp">找回密码</A></TD>
- </TR></TBODY></TABLE></TD></TR>
- <TR>
- <TD height=13><IMG height=13 alt=2
- src="image/login_2.gif"
- width=190></TD></TR></TABLE>
- <%
- }
- else
- {
- String name=(String)session.getAttribute("name");
- String goods_num=String.valueOf((Integer)session.getAttribute("goods_num"));
- String goods_price=String.valueOf((Float)session.getAttribute("goods_price"));
- if(goods_price=="null")
- {
- goods_price="0";
- }
- if(goods_num=="null")
- {
- goods_num="0";
- }
- %>
- <TABLE height=16 cellSpacing=0 cellPadding=0
- width="91%" border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=left width=190 height=52><IMG height=51
- alt=登陆 src="image/login_top.gif" width=190></TD></TR>
- <TR>
- <TD height=11><IMG height=14 alt=1
- src="image/login_1.gif" width=190></TD></TR>
- <TR>
- <TD vAlign="middle" align="center"
- background="image/login_bg.gif"
- height=25><%=name%>,您的购物车中有 <FONT color=red><%=goods_num%></FONT> 件图书</TD>
- </TR>
- <TR>
- <TD vAlign=center align=middle
- background=image/login_bg.gif
- height=25>总计货款: <FONT color=red><%=goods_price%></FONT> 元</TD>
- </TR>
- <TR>
- <TD vAlign=center align=middle
- background=image/login_bg.gif
- height=25><A
- href="UserCenter/usermanage.jsp"><FONT
- color=red><U
- title=进入会员中心>会员中心</U></FONT></A> <SPAN
- style="CURSOR: hand"
- onclick="window.open('shopcar/cartlist.jsp','blank_','scrollbars=yes,resizable=no,width=650,height=450')"><FONT
- color=red><U title=查看购物车>购 物 车</U></FONT></SPAN></TD>
- </TR>
- <TR>
- <TD height=13><IMG height=13 alt=2
- src="image/login_2.gif"
- width=190></TD>
- </TR>
- </TBODY>
- </TABLE>
- <%}%>
- </TD></TR></TABLE>
- <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=left>
- <TABLE height=263 cellSpacing=0 cellPadding=0 width=200 align=left
- border=0>
- <TBODY>
- <TR>
- <TD width=206 height=31><IMG height=50
- src="image/lei.gif" width=200></TD></TR>
- <TR>
- <TD vAlign=top align=middle height=189>
- <TABLE height=226 cellSpacing=0 cellPadding=0 width=190
- align=center background=image/leftlist_bg.jpg border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=middle
- background=image/leftlist_bg.jpg bgColor=#ebebeb
- height=189>
- <TABLE cellSpacing=0 cellPadding=0 width="88%"
- bgColor=#fafafa border=0>
- <TBODY>
- <TR>
- <TD background=image/erbook.com.htm
- height=11>
- <TABLE height=9 cellSpacing=0 cellPadding=0
- width="100%" align=center border=0>
- <TBODY>
- <TR>
- <TD bgColor=#ffffff></TD>
- </TR>
- </TBODY>
- </TABLE></TD>
- </TR>
- <%
- characterclassBeans.getQuery("-1");
- for(int i_c=0; i_c<characterclassBeans.getItems(); i_c++)//第一层循环读出大类
- {
- %>
- <TR>
- <TD style="PADDING-LEFT: 20px"
- background=image/erbook.com.htm
- height=23><IMG height=9
- src="image/bit05.gif" width=8
- align=absMiddle> <A class=lei1
- onclick=javascript:ShowFLT(<%=(i_c+1)%>)
- href="javascript:void(null)"><%=characterclassBeans.getCharacterName(i_c)%></A> </TD>
- </TR>
- <TR id=LM<%=(i_c+1)%> style="DISPLAY: none">
- <TD>
- <TABLE cellSpacing=2 cellPadding=0 width="100%"
- border=0>
- <TBODY>
- <%
- int j_u=characterclassBeans.getCharacterID(i_c);
- int num1=useclassBeans.getQuerycha(j_u);
- for(int i_q=0; i_q<num1; i_q++)
- {
- %>
- <TR>
- <TD style="PADDING-LEFT: 40px" height=23> <IMG height=7 src="image/bit06.gif" width=8 align=absMiddle> <A href="prosort.jsp?proType=<%=java.net.URLEncoder.encode(useclassBeans.getUseclassName(i_q),"utf-8")%>
- &pageNum=1&proNum=<%=useclassBeans.getUseclassID(i_q)%>" target=_blank><%=useclassBeans.getUseclassName(i_q)%></A> </TD>
- </TR>
- <%}
- %>
- </TBODY>
- </TABLE></TD>
- </TR>
- <%}
- %>
- <TR id=LM18 style="DISPLAY: none">
- <TD> </TD>
- </TR>
- </TBODY>
- </TABLE></TD></TR></TBODY></TABLE>
- <SCRIPT language=javascript id=clientEventHandlersJS>
- <!--
- var number=3;
- function LMYC() {
- var lbmc;
- //var treePic;
- for (i=1;i<=number;i++) {
- lbmc = eval('LM' + i);
- //treePic = eval('treePic'+i);
- //treePic.src = 'images/file.gif';
- lbmc.style.display = 'none';
- }
- }
- function ShowFLT(i) {
- lbmc = eval('LM' + i);
- //treePic = eval('treePic' + i)
- if (lbmc.style.display == 'none') {
- LMYC();
- //treePic.src = 'images/nofile.gif';
- lbmc.style.display = '';
- }
- else {
- //treePic.src = 'images/file.gif';
- lbmc.style.display = 'none';
- }
- }
- //-->
- </SCRIPT>
- <IMG height=9 src="image/leftlist_bottom.gif"
- width=190></TD></TR></TBODY></TABLE></TD></TR>
- <TR>
- <TD vAlign=top align=left> </TD></TR></TBODY></TABLE></TD>
- <TD width=1 bgColor=#cccccc></TD>
- <TD vAlign=top align=middle width=550 bgColor=#fdfdfd>
- <TABLE cellSpacing=2 cellPadding=2 width="100%" align=center border=0>
- <TBODY>
- <TR>
- <TD align=right width="6%"><IMG height=11
- src="image/jt_2.gif" width=11></TD>
- <TD height=30>当前位置:<A
- href="default.jsp">首页</A> >
- 服务中心</TD></TR></TBODY></TABLE>
- <P align=left><FONT
- color=red> <B>根据以下一个或多个复合条件搜索:</B></FONT>
- <table
- style="BORDER-RIGHT: 0px dotted; BORDER-TOP: 0px dotted; BORDER-LEFT: 0px dotted; BORDER-BOTTOM: 0px dotted; BORDER-COLLAPSE: collapse"
- bordercolor=#333333 cellspacing=0 cellpadding=2 width="90%" align=center
- border=1>
- <form name=search action=searchPro.jsp?pageNum=1 method=post>
- <tbody>
- <tr>
- <td align=middle width="25%">根据图书名称 </td>
- <td><input class=4l maxlength=20 name=name_key></td>
- </tr>
- <tr>
- <td align=middle width="25%">根据图书作者 </td>
- <td><input class=4l maxlength=20 name=writer_key></td>
- </tr>
- <tr>
- <td align=middle width="25%">根据条形码 </td>
- <td><input class=4l maxlength=20 name=code_key></td>
- </tr>
- <tr>
- <td align=middle width="25%">根据出版社 </td>
- <td><input class=4l maxlength=20 name=cbs_key></td>
- </tr>
- <tr>
- <td align=middle width="25%">根据图书价格 </td>
- <td>价格范围:从
- <input class=4l maxlength=5 size=5 name=jg1_key>
- 元 至
- <input class=4l maxlength=5 size=5 name=jg2_key>
- 元</td>
- </tr>
- <tr>
- <td align=middle width="25%">搜索结果排序方式 </td>
- <td><br>
- <input type=radio checked value=1 name=paixu>
- 按出版日期<br>
- <br>
- <input type=radio value=2 name=paixu>
- 按图书价格</td>
- </tr>
- <tr>
- <td colspan=2>
- <div align=center>
- <input type=hidden value=ok name=action>
- <input type=submit value=开始搜索 name=action>
- </div></td>
- </tr>
- </form>
- </table> </P>
- </TR></TBODY></TABLE><LINK
- href="image/main.css" type=text/css rel=stylesheet><LINK
- href="image/buyok_shop.css" type=text/css rel=stylesheet>
- <STYLE type=text/css>BODY {
- MARGIN: 0px
- }
- </STYLE>
- <LINK
- href="image/main.css" type=text/css rel=stylesheet><LINK
- href="image/buyok_shop.css" type=text/css rel=stylesheet>
- <STYLE type=text/css>BODY {
- MARGIN: 0px
- }
- </STYLE>
- <%@ include file ="foot.jsp" %></CENTER></BODY></HTML>