comm_pro.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:11k
源码类别:

Applet

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <jsp:useBean id="cao_benBean" class="MyFly.Bean.cao_benBean" scope="request"/>
  3. <jsp:useBean id="useclassBeans" class="MyFly.Bean.useclassBeans" scope="request"/>
  4. <jsp:useBean id="characterclassBeans" class="MyFly.Bean.characterclassBeans" scope="request"/>
  5. <jsp:useBean id="characterclassBean" class="MyFly.Bean.characterclassBean" scope="request"/>
  6. <script language="javascript" src="js/showimg.js"></script>
  7. <%@ include file="top.jsp" %>
  8. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.net.*" errorPage="" %>
  9. <%!
  10.  StringBuffer convert(StringBuffer sour){
  11. for(int i=0;i<sour.length();i++){
  12. if(sour.substring(i,i+1).equals("n")){
  13. sour.delete(i,i+1);
  14. sour.insert(i,"</p><p>");
  15. }
  16. }
  17. return sour;
  18. }
  19. %>
  20. <%
  21. int d_count=characterclassBean.getcount();
  22. %>
  23.  <SCRIPT language=javascript id=clientEventHandlersJS>
  24. <!--
  25. var number=<%=d_count%>;
  26. function LMYC() {
  27. var lbmc;
  28. //var treePic;
  29.     for (i=1;i<=number;i++) {
  30.         lbmc = eval('LM' + i);
  31.         //treePic = eval('treePic'+i);
  32.         //treePic.src = 'images/file.gif';
  33.         lbmc.style.display = 'none';
  34.     }
  35. }
  36.  
  37. function ShowFLT(i) {
  38.     lbmc = eval('LM' + i);
  39.     //treePic = eval('treePic' + i)
  40.     if (lbmc.style.display == 'none') {
  41.         LMYC();
  42.         //treePic.src = 'images/nofile.gif';
  43.         lbmc.style.display = '';
  44.     }
  45.     else {
  46.         //treePic.src = 'images/file.gif';
  47.         lbmc.style.display = 'none';
  48.     }
  49. }
  50. //-->
  51.       </SCRIPT>
  52. <HTML><HEAD><TITLE>-精品推荐-</TITLE>
  53. <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
  54. href="image/buyok_shop.css" type=text/css rel=stylesheet>
  55. <STYLE type=text/css>
  56. .pic1 {
  57. MARGIN-TOP: -135px; MARGIN-LEFT: 0px
  58. }
  59. .pic2 {
  60. PADDING-TOP: 6px
  61. }
  62. .red1 {
  63. COLOR: #ff0000
  64. }
  65. </STYLE>
  66. <LINK href="image/table.css" type=text/css rel=stylesheet><LINK 
  67. href="image/buyok_shop.css" type=text/css rel=stylesheet>
  68. <STYLE type=text/css>
  69. BODY {
  70. MARGIN: 0px
  71. }
  72. .STYLE1 {
  73. COLOR: #ff3300
  74. }
  75. .STYLE2 {
  76. COLOR: #ff0000
  77. }
  78. .lei1 { FONT-SIZE: 13px
  79. }
  80. </STYLE>
  81. </HEAD>
  82. <BODY>
  83. <CENTER>
  84. <STYLE type=text/css>BODY {
  85. FONT-SIZE: 12px
  86. }
  87. TD {
  88. FONT-SIZE: 12px
  89. }
  90. TH {
  91. FONT-SIZE: 12px
  92. }
  93. BODY {
  94. MARGIN: 0px
  95. }
  96. </STYLE>
  97. <LINK href="image/buyok_shop.css" type=text/css rel=stylesheet>
  98. <TABLE class=grayline cellSpacing=0 cellPadding=0 width=760 align=center 
  99. bgColor=#ffffff border=0>
  100.   <TBODY>
  101.   <TR>
  102.     <TD width=210 height="741" vAlign=top bgColor=#fafafa>
  103.       <SCRIPT language=JavaScript>
  104. function checkform(){
  105. if (document.loginbox.name.value.length ==0){
  106. alert("出错了,您没有填写用户名。");
  107. document.loginbox.userid.focus();
  108. return false;
  109. }
  110. if (document.loginbox.password.value.length==0){
  111. alert("出错了,您没有填写密码。");
  112. document.loginbox.password.focus();
  113. return false;
  114. }
  115. if (document.loginbox.yzm.value.length==0){
  116. alert("出错了,您没有填写验证码。");
  117. document.loginbox.yzm.focus();
  118. return false;
  119. }
  120. if (document.loginbox.yzm.value!=5672){
  121. alert("出错了,您填写的验证码不正确。");
  122. document.loginbox.yzm.focus();
  123. return false;
  124. }
  125. return true;
  126. }
  127. </SCRIPT>
  128.       <TABLE cellSpacing=0 cellPadding=0 width=200 border=0>
  129.         <TBODY>
  130.         <TR>
  131.           <TD vAlign=center align=middle><TABLE cellSpacing=0 cellPadding=0 width=171 align=center border=0>
  132.             <TBODY>
  133.               <TR>
  134.                 <TD height=61><IMG height=61 src="image/help_center.jpg" 
  135.             width=171></TD>
  136.               </TR>
  137.               <TR>
  138.                 <TD background=image/usermenu2.gif>
  139.                   <TABLE cellSpacing=3 cellPadding=0 width="100%" border=0>
  140.                     <TBODY>
  141.                       <TR>
  142.                         <TD vAlign=center align=middle height=20><A 
  143.                   href="comm_pro.jsp">常见问题</A></TD>
  144.                       </TR>
  145.                       <TR>
  146.                         <TD vAlign=center align=middle height=20><A 
  147.                   href="purchase_know.jsp">购书须知</A></TD>
  148.                       </TR>
  149.                       <TR>
  150.                         <TD vAlign=center align=middle height=20><A 
  151.                   href="guidebook.jsp">新手指南</A></TD>
  152.                       </TR>
  153.                       <TR>
  154.                         <TD vAlign=center align=middle height=20><A 
  155.                   href="dil_way.jsp">配送方式</A></TD>
  156.                       </TR>
  157.                       <TR>
  158.                         <TD vAlign=center align=middle height=20><A 
  159.                   href="paybook.jsp">如何付款</A></TD>
  160.                       </TR>
  161.                       <TR>
  162.                         <TD vAlign=center align=middle height=20><A 
  163.                   href="contactus.jsp">联系我们</A></TD>
  164.                       </TR>
  165.                       <TR>
  166.                         <TD vAlign=center align=middle height=20><A 
  167.                   href="big_pur.jsp">大宗团购</A></TD>
  168.                       </TR>
  169.                     </TBODY>
  170.                   </TABLE></TD>
  171.               </TR>
  172.               <TR>
  173.                 <TD height=11><IMG height=11 src="image/usermenu3.gif" 
  174.             width=171></TD>
  175.               </TR>
  176.             </TBODY>
  177.           </TABLE></TD>
  178.         </TR></TABLE>
  179.       <TABLE cellSpacing=0 cellPadding=0 width=200 border=0>
  180.         <TBODY>
  181.         <TR>
  182.           <TD>
  183.             <TABLE height="100%" cellSpacing=0 cellPadding=0 width=200 
  184.             align=left border=0>
  185.               <TBODY>
  186.               <TR>
  187.                 <TD width=206 height=31><IMG height=50 
  188.                   src="image/lei.gif" width=200></TD></TR>
  189.               <TR>
  190.                 <TD vAlign=top align=middle height=261>
  191.                   <TABLE height=226 cellSpacing=0 cellPadding=0 width=190 
  192.                   align=center background=image/leftlist_bg.jpg 
  193.                     border=0><TBODY>
  194.                     <TR>
  195.                       <TD vAlign=top align=middle 
  196.                       background=image/leftlist_bg.jpg bgColor=#ebebeb 
  197.                       height=189><TABLE cellSpacing=0 cellPadding=0 width="88%" 
  198.                         bgColor=#fafafa border=0>
  199.                         <TBODY>
  200.                           <TR>
  201.                             <TD background=image/erbook.com.htm 
  202.                             height=11>
  203.                               <TABLE height=9 cellSpacing=0 cellPadding=0 
  204.                               width="100%" align=center border=0>
  205.                                 <TBODY>
  206.                                   <TR>
  207.                                     <TD   bgColor=#ffffff></TD>
  208.                                   </TR>
  209.                                 </TBODY>
  210.                             </TABLE></TD>
  211.                           </TR>
  212.                           <%
  213.  characterclassBeans.getQuery("-1");
  214. for(int i_c=0; i_c<characterclassBeans.getItems(); i_c++)//第一层循环读出大类
  215.     {
  216.   
  217. %>
  218.                           <TR>
  219.                             <TD style="PADDING-LEFT: 20px" 
  220.                             background=image/erbook.com.htm 
  221.                               height=23><IMG height=9 
  222.                               src="image/bit05.gif" width=8 
  223.                               align=absMiddle> <A class=lei1 
  224.                               onclick=javascript:ShowFLT(<%=(i_c+1)%>) 
  225.                               href="javascript:void(null)"><%=characterclassBeans.getCharacterName(i_c)%></A> </TD>
  226.                           </TR>
  227.                           <TR id=LM<%=(i_c+1)%> style="DISPLAY: none">
  228.                             <TD>
  229.                               <TABLE cellSpacing=2 cellPadding=0 width="100%" 
  230.                               border=0>
  231.                                 <TBODY>
  232.                                   <%
  233. int j_u=characterclassBeans.getCharacterID(i_c);
  234. int num1=useclassBeans.getQuerycha(j_u);
  235.  for(int i_q=0; i_q<num1; i_q++)
  236.  {
  237. %>
  238.                                   <TR>
  239.                                     <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")%>
  240. &pageNum=1&proNum=<%=useclassBeans.getUseclassID(i_q)%>"  target=_blank><%=useclassBeans.getUseclassName(i_q)%></A> </TD>
  241.                                   </TR>
  242.                                   <%}
  243. %>
  244.                                 </TBODY>
  245.                             </TABLE></TD>
  246.                           </TR>
  247.                           <%}
  248. %>
  249.                           <TR id=LM18 style="DISPLAY: none">
  250.                             <TD>&nbsp; </TD>
  251.                           </TR>
  252.                         </TBODY>
  253.                       </TABLE></TD>
  254.                     </TR></TBODY></TABLE>
  255.                   <img 
  256.                   height=9 src="image/leftlist_bottom.gif" 
  257.               width=190></TD>
  258.               </TR></TBODY></TABLE></TD></TR>
  259.         <TR>
  260.           <TD>
  261.             <TABLE cellSpacing=0 cellPadding=0 width=200 align=left border=0>
  262.               <TBODY>
  263.               <TR>
  264.       <TD><IMG height=73 src="image/help.gif" 
  265.               width=200></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
  266.     <TD width=1 bgColor=#cccccc></TD>
  267.     <TD class=left vAlign=top align=left width=550 bgColor=#ffffff>
  268.       <TABLE cellSpacing=0 cellPadding=0 width=550 bgColor=#fefefe border=0>
  269.         <TBODY>
  270.         <TR>
  271.           <TD><IMG height=201 src="image/help_center.gif" 
  272.         width=550></TD>
  273.         </TR>
  274.         <TR>
  275.           <TD>
  276.             <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  277.               <TBODY>
  278.               <TR>
  279.                 <TD vAlign=center align=middle width=20 height=18><IMG 
  280.                   height=11 src="image/jt_2.gif" width=11></TD>
  281.                 <TD height=18>当前位置:<A 
  282.                   href="default.jsp">首页</A> &gt; 
  283.               常见问题</TD>
  284.               </TR></TBODY></TABLE></TD></TR>
  285.         <TR>
  286.           <TD background="image/bgline.gif" height=1></TD></TR>
  287.         <TR>
  288.           <TD vAlign=top align=left width=400>
  289.             <DIV align=center>
  290.             <TABLE cellSpacing=1 cellPadding=2 width="100%" align=center 
  291.             bgColor=#ffffff border=0></TABLE></DIV></TD></TR></TBODY></TABLE>
  292.         <%
  293.      if(cao_benBean.getNew())
  294.  {
  295.          //out.println("<p align=center>"+cao_benBean.getTitle()+"</p>");
  296.      out.println(convert(new StringBuffer(cao_benBean.getContent())));
  297.      }
  298.  else
  299.  {
  300.      out.println("暂时没有内容");
  301.      }
  302.  %></TD>
  303.   </TR></TBODY></TABLE>
  304.    
  305.   <%@ include file ="foot.jsp"%>
  306. </CENTER>
  307. </BODY></HTML>