comm_pro.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:11k
源码类别:
Applet
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <jsp:useBean id="cao_benBean" class="MyFly.Bean.cao_benBean" scope="request"/>
- <jsp:useBean id="useclassBeans" class="MyFly.Bean.useclassBeans" scope="request"/>
- <jsp:useBean id="characterclassBeans" class="MyFly.Bean.characterclassBeans" scope="request"/>
- <jsp:useBean id="characterclassBean" class="MyFly.Bean.characterclassBean" scope="request"/>
- <script language="javascript" src="js/showimg.js"></script>
- <%@ include file="top.jsp" %>
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.net.*" errorPage="" %>
- <%!
- StringBuffer convert(StringBuffer sour){
- for(int i=0;i<sour.length();i++){
- if(sour.substring(i,i+1).equals("n")){
- sour.delete(i,i+1);
- sour.insert(i,"</p><p>");
- }
- }
- return sour;
- }
- %>
- <%
- int d_count=characterclassBean.getcount();
- %>
- <SCRIPT language=javascript id=clientEventHandlersJS>
- <!--
- var number=<%=d_count%>;
- 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>
- <HTML><HEAD><TITLE>-精品推荐-</TITLE>
- <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
- href="image/buyok_shop.css" type=text/css rel=stylesheet>
- <STYLE type=text/css>
- .pic1 {
- MARGIN-TOP: -135px; MARGIN-LEFT: 0px
- }
- .pic2 {
- PADDING-TOP: 6px
- }
- .red1 {
- COLOR: #ff0000
- }
- </STYLE>
- <LINK href="image/table.css" type=text/css rel=stylesheet><LINK
- href="image/buyok_shop.css" type=text/css rel=stylesheet>
- <STYLE type=text/css>
- BODY {
- MARGIN: 0px
- }
- .STYLE1 {
- COLOR: #ff3300
- }
- .STYLE2 {
- COLOR: #ff0000
- }
- .lei1 { FONT-SIZE: 13px
- }
- </STYLE>
- </HEAD>
- <BODY>
- <CENTER>
- <STYLE type=text/css>BODY {
- FONT-SIZE: 12px
- }
- TD {
- FONT-SIZE: 12px
- }
- TH {
- FONT-SIZE: 12px
- }
- BODY {
- MARGIN: 0px
- }
- </STYLE>
- <LINK href="image/buyok_shop.css" type=text/css rel=stylesheet>
- <TABLE class=grayline cellSpacing=0 cellPadding=0 width=760 align=center
- bgColor=#ffffff border=0>
- <TBODY>
- <TR>
- <TD width=210 height="741" vAlign=top bgColor=#fafafa>
- <SCRIPT language=JavaScript>
- function checkform(){
- if (document.loginbox.name.value.length ==0){
- alert("出错了,您没有填写用户名。");
- document.loginbox.userid.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!=5672){
- alert("出错了,您填写的验证码不正确。");
- document.loginbox.yzm.focus();
- return false;
- }
- return true;
- }
- </SCRIPT>
- <TABLE cellSpacing=0 cellPadding=0 width=200 border=0>
- <TBODY>
- <TR>
- <TD vAlign=center align=middle><TABLE cellSpacing=0 cellPadding=0 width=171 align=center border=0>
- <TBODY>
- <TR>
- <TD height=61><IMG height=61 src="image/help_center.jpg"
- width=171></TD>
- </TR>
- <TR>
- <TD background=image/usermenu2.gif>
- <TABLE cellSpacing=3 cellPadding=0 width="100%" border=0>
- <TBODY>
- <TR>
- <TD vAlign=center align=middle height=20><A
- href="comm_pro.jsp">常见问题</A></TD>
- </TR>
- <TR>
- <TD vAlign=center align=middle height=20><A
- href="purchase_know.jsp">购书须知</A></TD>
- </TR>
- <TR>
- <TD vAlign=center align=middle height=20><A
- href="guidebook.jsp">新手指南</A></TD>
- </TR>
- <TR>
- <TD vAlign=center align=middle height=20><A
- href="dil_way.jsp">配送方式</A></TD>
- </TR>
- <TR>
- <TD vAlign=center align=middle height=20><A
- href="paybook.jsp">如何付款</A></TD>
- </TR>
- <TR>
- <TD vAlign=center align=middle height=20><A
- href="contactus.jsp">联系我们</A></TD>
- </TR>
- <TR>
- <TD vAlign=center align=middle height=20><A
- href="big_pur.jsp">大宗团购</A></TD>
- </TR>
- </TBODY>
- </TABLE></TD>
- </TR>
- <TR>
- <TD height=11><IMG height=11 src="image/usermenu3.gif"
- width=171></TD>
- </TR>
- </TBODY>
- </TABLE></TD>
- </TR></TABLE>
- <TABLE cellSpacing=0 cellPadding=0 width=200 border=0>
- <TBODY>
- <TR>
- <TD>
- <TABLE height="100%" 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=261>
- <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>
- <img
- height=9 src="image/leftlist_bottom.gif"
- width=190></TD>
- </TR></TBODY></TABLE></TD></TR>
- <TR>
- <TD>
- <TABLE cellSpacing=0 cellPadding=0 width=200 align=left border=0>
- <TBODY>
- <TR>
- <TD><IMG height=73 src="image/help.gif"
- width=200></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
- <TD width=1 bgColor=#cccccc></TD>
- <TD class=left vAlign=top align=left width=550 bgColor=#ffffff>
- <TABLE cellSpacing=0 cellPadding=0 width=550 bgColor=#fefefe border=0>
- <TBODY>
- <TR>
- <TD><IMG height=201 src="image/help_center.gif"
- width=550></TD>
- </TR>
- <TR>
- <TD>
- <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
- <TBODY>
- <TR>
- <TD vAlign=center align=middle width=20 height=18><IMG
- height=11 src="image/jt_2.gif" width=11></TD>
- <TD height=18>当前位置:<A
- href="default.jsp">首页</A> >
- 常见问题</TD>
- </TR></TBODY></TABLE></TD></TR>
- <TR>
- <TD background="image/bgline.gif" height=1></TD></TR>
- <TR>
- <TD vAlign=top align=left width=400>
- <DIV align=center>
- <TABLE cellSpacing=1 cellPadding=2 width="100%" align=center
- bgColor=#ffffff border=0></TABLE></DIV></TD></TR></TBODY></TABLE>
- <%
- if(cao_benBean.getNew())
- {
- //out.println("<p align=center>"+cao_benBean.getTitle()+"</p>");
- out.println(convert(new StringBuffer(cao_benBean.getContent())));
- }
- else
- {
- out.println("暂时没有内容");
- }
- %></TD>
- </TR></TBODY></TABLE>
- <%@ include file ="foot.jsp"%>
- </CENTER>
- </BODY></HTML>