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

Applet

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  3. <jsp:useBean id="messageboardBean" class="MyFly.Bean.messageboardBean" scope="request"/>
  4. <jsp:useBean id="messageboardBeans" class="MyFly.Bean.messageboardBeans" scope="request"/>
  5. <%@ include file ="top_liuyan.jsp" %>
  6. <HTML><HEAD><TITLE>仙客吧, 每时每刻, 仙妮蕾德,每时每刻贸易公司,每时每刻,每时每刻贸易有限公司,仙妮蕾德论坛,仙妮蕾德事业论坛,仙妮蕾德产品论坛,生之源,力之源,维体力,蔻蒂森,加力能,Sunrider, Money, Fortune, Health,二十一世纪,财富第五波,黄金产业,加盟,开店,健康,亚健康,疾病,糖尿病,高血压,高脂肪,尿结石,尿毒症,头痛,感冒,健康论坛,事业分享,产品分享,高考,美容,绿色产品,保健产品,杭州, 食疗,食养,膳食,营养,杭州市, 上海市, 浙江省, 做生意, 发财, 发财致富, 特许经营, 连锁加盟, 商务部, 营养学, 营养师, 营养论坛, 创业,心脏病, 痛风, 腰肌劳损, 腰酸背痛, 关节炎, 肝硬化,减肥, 瘦身, 苗条, 肌肉, 长高, 聪明, 机会分享、财富分享、希望分享、事业中心、创业中心、商机、商业机会,安利、完美、立新世纪、优莎娜、如新、南方李锦记、康宝莱、罗麦</TITLE>
  7. <META content="text/html; charset=gb2312" http-equiv=Content-Type>
  8. <META content="MSHTML 5.00.3700.6699" name=GENERATOR>
  9. <META content="Visual Basic 7.0" name=CODE_LANGUAGE>
  10. <META content=JavaScript name=vs_defaultClientScript>
  11. <STYLE type=text/css>
  12. TD {
  13. FONT-SIZE: 9pt; LETTER-SPACING: 0.02em
  14. }
  15. A {
  16. COLOR: #000000; TEXT-DECORATION: none
  17. }
  18. A:hover {
  19. COLOR:#ff6600 ; POSITION: relative; RIGHT: 0px; TOP: 1px
  20. }
  21. .hg {
  22. LINE-HEIGHT: 18px
  23. }
  24. .whitetx {
  25. COLOR: #000000;
  26. }
  27. .ibox {
  28. BACKGROUND-COLOR: #EEFBEA; BORDER-BOTTOM: #00CC00 1px solid; BORDER-LEFT: #00CC00 1px solid; BORDER-RIGHT: #00CC00 1px solid; BORDER-TOP: #00CC00 1px solid; FONT-SIZE: 12px; HEIGHT: 16px
  29. }
  30. .style7 {color: #000000}
  31. .opacity {FILTER: alpha(opacity=100)
  32. }
  33. .style3 {color: #FF0099}
  34. .style1 {color: #FF0000}
  35. .style9 {font-size: 14pt}
  36. .style11 {font-size: 10px}
  37. </STYLE> 
  38.  
  39. </HEAD>
  40. <BODY background="image/fig_background.gif" leftMargin=0 topMargin=0>
  41.   <table width="775" height="689" border="0" align="center" cellspacing="0">
  42.     <tr valign="top">
  43.       <td width="773" height="513"><table width="100%" height="694"  border="1" cellspacing="0">
  44.         <!--DWLayoutTable-->
  45.           <tr>
  46.             <td width="770" height="25"><span class="font14px style9"><img src="image/xz07.gif" width="16" height="16"> </span><strong>当前位置:</strong><a href="index.jsp">首页</a><strong> —&gt; </strong>留言 </td>
  47.           </tr>
  48.           <tr>
  49.             <td height="656" align="center" valign="top"><table width="100%" height="661"  border="0" cellspacing="0">
  50.                
  51.                 <TR>
  52.                   <TD height="646" valign="middle" background="image/liuyan.jpg"><table align=center border=0 cellpadding=0 cellspacing=0 width=627>
  53.                     <tbody>
  54.                       <tr>
  55.                         <td align=center height=43 width=627><table width="100%" height="153"  border="0" cellspacing="0">
  56.                           <tr>
  57.                               <td height="15"><span style="font-size: 12pt; color: #FF0000;"><strong>相关留言:</strong></span></td>
  58.                           </tr>
  59.                           <tr>
  60.                             <td height="15">&nbsp;</td>
  61.                           </tr>
  62.                           <tr>
  63.                             <td height="94"><%
  64.        int size=2;
  65.            String strNum=request.getParameter("pageNum");
  66.        int cur;
  67.            if(strNum == null || strNum.equals(""))
  68.        {
  69.             cur=1;
  70.        }
  71.        else
  72.        {
  73.                 cur=Integer.parseInt(strNum);//取得要显示的页
  74.         }
  75.          messageboardBeans.init(size);
  76.          int pageNum=messageboardBeans.get_pageCount(); //取得总页数
  77.   
  78.          messageboardBeans.get_pageRow(cur);
  79.   
  80.           for(int i=0; i<messageboardBeans.getItems(); i++)
  81.            {
  82.  %>
  83.                               <table width="550">
  84.                                 <tr>----------------------------------- 留言 -----------------------------------</tr>
  85.                                 <tr height="150" >留言者的姓名:&nbsp;&nbsp;&nbsp;&nbsp;<%=messageboardBeans.getName(i)%></tr>
  86.                                 <tr>留言内容:&nbsp;&nbsp;&nbsp;&nbsp;<%=messageboardBeans.getContent(i)%></tr>
  87.                                 <tr>留言时间:&nbsp;&nbsp;&nbsp;&nbsp;<%=messageboardBeans.getTime(i)%></tr>
  88.                                 <tr style="background:background-color ; color:#CC6699">----------------------------------- 回复 -----------------------------------</tr>
  89.                                 <tr bgcolor="#66CCCC">客服回复内容:&nbsp;&nbsp;&nbsp;&nbsp;<%=messageboardBeans.getHuifu(i)%></tr>
  90.                                 <tr bgcolor="#66CCCC">客服回复时间:&nbsp;&nbsp;&nbsp;&nbsp;<%=messageboardBeans.getHuifutime(i)%></tr>
  91.                               </table>
  92.                               <%
  93.    }
  94.    %></td>
  95.                           </tr>
  96.   
  97.                           <tr>
  98.                             <td height="20">
  99. <a href="liuyan.jsp?pageNum=<%=1%>">首页 
  100. <% 
  101.   if(cur > 1)
  102.   {
  103.   %>
  104.      <a href="liuyan.jsp?pageNum=<%=cur-1 %>">上一页</a> &nbsp;
  105.         <%
  106.   }
  107.   %>
  108.   
  109.         <%
  110.   if(cur < pageNum)
  111.   {
  112.   %>
  113.      <a href="liuyan.jsp?pageNum=<%=cur+1 %>">下一页</a> 
  114.      <%
  115.    }
  116.    %>
  117.      <a href="liuyan.jsp?pageNum=<%=pageNum%>">尾页</a>&nbsp;页次: <STRONG><FONT 
  118.                   color=red><%=cur%></FONT>/<%=pageNum%></STRONG>页 &nbsp;<B><%=size%></B>条/页
  119. </td>
  120.                           </tr>
  121.                         </table>
  122.     </td>
  123.                       </tr>
  124.  <tr>
  125.  <script language="javascript">
  126. function mycheck(myform){
  127. if(myform.name.value=="")
  128.   {
  129.   alert("姓名没有输入!");
  130.   myform.name.focus();
  131.   return false;
  132.   }
  133.   if (myform.telephone.value == "")
  134.   {
  135.     alert("请填写电话号码!");
  136.     myform.telephone.focus();
  137.     return false;
  138.   }
  139.   if(myform.qq.value=="")
  140.   {
  141.   alert("OICQ没有输入!");
  142.   myform.qq.focus();
  143.   return false;
  144.   }  
  145.   if(myform.mailbox.value=="")
  146.  {
  147.   alert("请填写邮箱!");
  148.   myform.mailbox.focus();
  149.   return false;
  150.  }
  151.   if (myform.mailbox.value!="")
  152.  { if((myform.mailbox.value.length < 5)||(myform.mailbox.value.indexOf("@")<1) || (myform.mailbox.value.indexOf(".")<1) || (myform.mailbox.value.charAt(myform.mailbox.value.length-1)=="."))
  153.   {  
  154.     alert("请填写正确的E-mail地址以便联系!格式为:userName@host.name");
  155.     myform.mailbox.focus();
  156.     return false;
  157.    }
  158.  }
  159.  if(myform.title.value=="")
  160.  {
  161.   alert("请填写主题!");
  162.   myform.title.focus();
  163.   return false;
  164.  }
  165.  if(myform.content.value=="")
  166.  {
  167.   alert("请填写内容!");
  168.   myform.content.focus();
  169.   return false;
  170.  }
  171. }
  172. </script>
  173.                         <form  name="myform" onSubmit="return mycheck(myform)"  action="addliouyan.jsp" method="post" >
  174.                           <td height="415" valign="top"> 
  175.                             <table align=left border=0 cellpadding=0 cellspacing=0 
  176. width="100%">
  177.                               <tbody>
  178.                                 <tr>
  179.                                   <td width="73%" valign="top">
  180. <table align=center border=0 cellpadding=0 cellspacing=0 
  181.                   height=356 width="95%">
  182.                                       <tbody>
  183.                                         <tr align=middle> 
  184.                                           <td height=53 colspan=2 class=font14px style="font-size: 16pt" style9><div align="left"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请填写您的留言</strong></div></td>
  185.                                         </tr>
  186.                                         <tr> 
  187.                                           <td align=right height=25>姓名:</td>
  188.                                           <td height=-2 width="83%"><font size=+0> 
  189.                                             <input type="text" name="name" size=18 
  190.                         style="FONT-SIZE: 14px">
  191.                                             </font></td>
  192.                                         </tr>
  193.                                         <tr> 
  194.                                           <td align=right height=25>电话:</td>
  195.                                           <td height=-1 width="83%"><font size=+0> 
  196.                                             <input type="text" name="telephone" size=18 
  197.                         style="FONT-SIZE: 14px">
  198.                                             </font></td>
  199.                                         </tr>
  200.                                         <tr> 
  201.                                           <td align=right height=25>OICQ:</td>
  202.                                           <td height=11 width="83%"><font size=+0> 
  203.                                             <input  type="text"
  204.                         class=kuang maxlength=36 name="qq" size=18 
  205.                         style="FONT-SIZE: 14px">
  206.                                             </font></td>
  207.                                         </tr>
  208.                                         <tr> 
  209.                                           <td align=right height=25>E-mail:</td>
  210.                                           <td height=11 width="83%"><font size=+0> 
  211.                                             <input type="text"
  212.                         class=kuang maxlength=36 name="mailbox" size=18 
  213.                         style="FONT-SIZE: 14px">
  214.                                             </font></td>
  215.                                         </tr>
  216.                                         <tr> 
  217.                                           <td align=right height=25 width="17%">留言主题: 
  218.                                           </td>
  219.                                           <td height=25 width="83%"><input type="text" class=kuang 
  220.                         maxlength=36 name="title" size=30 
  221.                       style="FONT-SIZE: 14px"></td>
  222.                                         </tr>
  223.                                         <tr> 
  224.                                           <td align=right height=1 valign=top width="17%">留言内容: 
  225.                                           </td>
  226.                                           <td height=1 valign=top width="83%"><textarea cols=45 name="content" rows=10 style="FONT-SIZE: 14px"></textarea> 
  227.                                           </td>
  228.                                         </tr>
  229.                                         <tr> 
  230.                                           <td height=0 valign=top width="17%"></td>
  231.                                           <td height=0 valign=top width="83%"><input name=cmdOk style="BACKGROUND-COLOR: #ffffff" type=submit value=提交留言> 
  232.                                             <input name=cmdReset style="BACKGROUND-COLOR: #ffffff" type=reset value=重新填写> 
  233.                                           </td>
  234.                                         </tr>
  235.                                       </tbody>
  236.                                     </table></td>
  237.                                   <td width="27%" valign="top">
  238. <div align=center>
  239.                                       <table width="100%" border="0">
  240.                                         <tr>
  241.                                           <td height="28" valign="top">&nbsp;</td>
  242.                                         </tr>
  243.                                         <tr> 
  244.                                           <td height="347" valign="top"> <p>请对自己的言论负责,请勿发表包含有以下内容的言论:<BR>
  245.                                               (一)反对宪法所确定的基本原则的; <BR>
  246.                                               (二)危害国家安全,泄露国家秘密,颠覆国家政权,破坏国家统一的; 
  247.                                               <BR>
  248.                                               (三)损害国家荣誉和利益的;<BR>
  249.                                               (四)煽动民族仇恨、民族歧视,破坏民族团结的; <BR>
  250.                                               (五)破坏国家宗教政策,宣扬邪教和封建迷信的; <BR>
  251.                                               (六)散布谣言,扰乱社会秩序,破坏社会稳定的; <BR>
  252.                                               (七)散布淫秽、色情、赌博、暴力、凶杀、恐怖或者教唆犯罪的; <BR>
  253.                                               (八)侮辱或者诽谤他人,侵害他人合法权益的; <BR>
  254.                                               (九)含有法律、行政法规禁止的其他内容的。 
  255.                                             <p>&nbsp; </td>
  256.                                         </tr>
  257.                                       </table>
  258.                                     </div></td>
  259.                                 </tr>
  260.                               </tbody>
  261.                             </table>
  262.                           </td>
  263.                         </form>
  264.                       </tr>
  265.                       <tr> 
  266.                         <td height="16">&nbsp;</td>
  267.                       </tr>
  268.                     </tbody>
  269.                   </table>                  </TD>
  270.                 </TR>
  271.             </table></td>
  272.           </tr>
  273.          
  274.       </table></td>
  275.     </tr>
  276. </table>
  277.   
  278.   <%@ include file ="foot.jsp"%>
  279. </BODY>
  280. </HTML>