add.jsp
上传用户:zdly666
上传日期:2022-08-09
资源大小:6511k
文件大小:8k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <%@ include file="conn.jsp"%>
  3. <% 
  4. String condition="select * from manage";
  5. rs=stmt.executeQuery(condition);
  6. rs.next();
  7. %>
  8. <html>
  9. <head>
  10. <%--<meta http-equiv="Content-Type" content="text/html; charset=gb2312">--%>
  11. <title><%=rs.getString("title")%></title>
  12. <link href="style.css" rel="stylesheet" type="text/css">
  13. <style type="text/css">
  14. <!--
  15. a.rights:link {
  16. COLOR: #000000;
  17. TEXT-DECORATION: none;
  18. }
  19. a.rights:visited {
  20. COLOR: #000000;
  21. TEXT-DECORATION: none;
  22. }
  23. a.rights:hover {
  24. COLOR: #FF0000;  
  25. TEXT-DECORATION: none;
  26. }
  27. </style>
  28. <script language="JavaScript">
  29. <!--
  30. function check()
  31. {
  32. if(form.name.value=="")
  33. {
  34. alert("姓名不能为空");
  35. form.name.focus();
  36. return false;
  37. }
  38. if( form.qq.value!="" )
  39. {
  40.     if( isNumberString(form.qq.value,"1234567890")!=1 )
  41. {
  42.         alert("请输入数字")
  43. form.qq.focus();
  44.         return false;
  45.     }
  46. }
  47. if( form.email.value!="" )
  48. {
  49. if ( fIsNumber(form.email.value,"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ._-@")!=1 )
  50. {
  51. alert("EMAIL只能是数字、字符、@ .组成");
  52. form.email.focus();
  53. return false;
  54. }
  55. }
  56.       if( form.http.value.length>150 )
  57.       {
  58.         alert("http长度不能超过150个字符")
  59.         form.http.focus();
  60.         return false;
  61.       }
  62. if( form.content.value=="")
  63.  {
  64.       alert("留言内容不能为空")
  65.     form.content.focus();
  66.     return false;
  67.       }
  68. else
  69. {
  70.    if( form.content.value.length>300 )
  71.     {
  72.        alert("留言内容不能超过300个字符")
  73.     form.content.focus();
  74.    return false;
  75.     }
  76. }
  77. return true;
  78. }
  79. </script>
  80. </head>
  81. <body background="img/beijing.gif" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  82. <table width="650" border="0" align="center" cellpadding="0" cellspacing="0" class="tittle0">
  83.   <tr>
  84.     <td width="389" align="center" valign="middle"><img src="img/toplogo11.gif" width="389" height="150"></td>
  85.     <td width="66" background="img/toplogobg.jpg">&nbsp;</td>
  86.     <td width="195"><img src="img/toplogo2.jpg" width="203" height="150"></td>
  87.   </tr>
  88. </table>
  89. <table width="650" border="0" align="center" cellpadding="0" cellspacing="0" class="tittle1">
  90.   <tr>
  91.     <td height="26" background="img/bg.gif"><table width="100%" height="15" border="0" cellpadding="0" cellspacing="0">
  92.       <tr align="center">
  93.         <td class="font0"><span class="font0">版主:</span><font color="#006699"><%=rs.getString("adminname")%></font></td>
  94.         <td class="font0"><a href="login.jsp">管理员登陆</a> </td>
  95.         <td class="font0"><a href="Index.jsp" class="font0">个人简介</a>  <a href="add.jsp" class="font0"> </a></td>
  96.         <td class="font0"><a href="add.jsp" class="font0">给我留言</a></td>
  97.         <td class="font0"> <font color="#000099"> <span> <a href="news.jsp" class="font0">新闻系统</a></span><font color="#000099"> </font><font color="#000099"> </font></font></td>
  98.         <td class="font0"><font color="#000099"><a href="picture1.jsp"  class="font0">个人相册</a></font></td>
  99.       </tr>
  100.     </table></td>
  101.   </tr>
  102. </table>
  103. <br>
  104. <table width="650" border="0" cellspacing="0" cellpadding="0" align="center">
  105.   <tr> 
  106.     <td></td>
  107.   </tr>
  108.   <tr> 
  109.     <td valign="top" bgcolor="#FFFFFF"> 
  110.  <form action="add_operate.jsp" method="POST" name="form" id="form" onsubmit="return check()">
  111.         <table width="650" border="0" cellspacing="0" cellpadding="0">
  112.           <tr> 
  113.             <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tittle3">
  114.                 <tr> 
  115.                   <td width="12%"><img src="img/top1.gif" width="81" height="22"></td>
  116.                   <td width="86%" background="img/top2.gif"><a href="add_all_slly.jsp"><center><font size="3" color="#000000">查看所有留言</font></center></a></td>
  117.                   <td width="2%"><img src="img/top3.gif" width="47" height="22"></td>
  118.                 </tr>
  119.               </table></td>
  120.           </tr>
  121.           <tr valign="top"> 
  122.             <td height="162"> <table width="100%" border="0" cellpadding="0" cellspacing="2" class="tittle1">
  123.                 <tr> 
  124.                   <td width="70" height="21" align="right"><font color="#000099"><img src="img/Forum_nav.gif" width="15" height="19" align="absmiddle">  
  125.                     <span class="font0">姓 名</span></font></td>
  126.                   <td width="180" height="30"> <input name="name" type="text" id="name" style="border:1px double rgb(187,185,185);font:9pt" maxlength="5"> 
  127.                     <font color="#FF0000">*</font> </td>
  128.                   <td rowspan="4" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  129.                       <tr> 
  130.                         <td><font color="#000099"><img src="img/shareforum.gif" width="25" height="25" align="absmiddle"> 
  131.                           <span class="font0">编写留言</span></font></td>
  132.                       </tr>
  133.                       <tr> 
  134.                         <td align="center"> <textarea name="content" cols="55" rows="5" id="content" style="border:1px double rgb(187,185,185);font:9pt"></textarea> 
  135.                           <font color="#FF0000">*</font> </td>
  136.                       </tr>
  137.                     </table></td>
  138.                 </tr>
  139.                 <tr> 
  140.                   <td align="right"><font color="#000099"><img src="img/topicnew.gif" width="16" height="18" align="absmiddle"><span class="font0">  
  141.                    性 别</span></font></td>
  142.                   <td height="30"> <span class="font0"> 男</span> 
  143.                     <input type="radio" name="sex" value="0" checked>
  144.                     <span class="font0">女</span> 
  145.                     <input type="radio" name="sex" value="1"> 
  146.                   </td>
  147.                 </tr>
  148.                 <tr> 
  149.                   <td height="21" align="right"><font color="#000099"><img src="img/topichot2.gif" width="16" height="18" align="absmiddle"><span class="font0">   
  150.                     Q Q</span></font></td>
  151.                   <td height="30"> <input name="qq" type="text" id="qq" style="border:1px double rgb(187,185,185);font:9pt" onChange="return qq()"> 
  152.                   </td>
  153.                 </tr>
  154.                 <tr> 
  155.                   <td height="21" align="right"><font color="#000099"><img src="img/topichotnonew.gif" width="16" height="18" align="absmiddle"><span class="font0"> Email</span></font></td>
  156.                   <td height="30"> <input name="email" type="text" id="email" style="border:1px double rgb(187,185,185);font:9pt"> 
  157.                   </td>
  158.                 </tr>
  159.                 <tr> 
  160.                   <td height="21" align="right"><font color="#000099"><img src="img/topicnonew.gif" width="16" height="18" align="absmiddle">  
  161.                     <span class="font0">主 页</span></font></td>
  162.                   <td height="30"> <input name="http" type="text" id="http" style="border:1px double rgb(187,185,185);font:9pt" value="http://"> 
  163.                   </td>
  164.                   <td align="center"> <input type="submit" name="Submit" value="提 交" style="border:1 solid #BBB9B9;background:#ffffff" class="button"> 
  165.                     <input type="reset" name="Submit2" value="重 写" style="border:1 solid #BBB9B9;background:#ffffff" class="button"> 
  166.                   </td>
  167.                 </tr>
  168.               </table></td>
  169.           </tr>
  170.           <tr valign="top"> 
  171.             <td><table border="0" width="650" cellspacing="0" cellpadding="0" height="7" align="center">
  172.                 <tr> 
  173.                   <td width="2%" align="center"><img src="img/end1.gif" width="12" height="14"></td>
  174.                   <td width="89%" align="center" background="img/end2.gif"></td>
  175.                   <td width="9%" align="center"><img src="img/end3.gif" width="65" height="14"></td>
  176.                 </tr>
  177.               </table></td>
  178.           </tr>
  179.         </table>
  180.         
  181.       </form></td>
  182.   </tr>
  183. </table>
  184. <table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
  185.   <tr>
  186.     <td align="center"><p class="style4 style8"><a href="http://jorwoo.yeah.net" target="_blank" class="rights">周亚平</a>&nbsp;&nbsp; 版权所有 <br>
  187. 程序设计:周亚平&nbsp;&nbsp; E-mail: <a href="mailto:zhouyaping1986@126.com" class="rights">zhouyaping1986@126.com</a><br>
  188. QQ:153589840</p>    </td>
  189.   </tr>
  190. </table>
  191. </body>
  192. </html>