add.jsp
资源名称:zyp.rar [点击查看]
上传用户:zdly666
上传日期:2022-08-09
资源大小:6511k
文件大小:8k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
- <%@ include file="conn.jsp"%>
- <%
- String condition="select * from manage";
- rs=stmt.executeQuery(condition);
- rs.next();
- %>
- <html>
- <head>
- <%--<meta http-equiv="Content-Type" content="text/html; charset=gb2312">--%>
- <title><%=rs.getString("title")%></title>
- <link href="style.css" rel="stylesheet" type="text/css">
- <style type="text/css">
- <!--
- a.rights:link {
- COLOR: #000000;
- TEXT-DECORATION: none;
- }
- a.rights:visited {
- COLOR: #000000;
- TEXT-DECORATION: none;
- }
- a.rights:hover {
- COLOR: #FF0000;
- TEXT-DECORATION: none;
- }
- </style>
- <script language="JavaScript">
- <!--
- function check()
- {
- if(form.name.value=="")
- {
- alert("姓名不能为空");
- form.name.focus();
- return false;
- }
- if( form.qq.value!="" )
- {
- if( isNumberString(form.qq.value,"1234567890")!=1 )
- {
- alert("请输入数字")
- form.qq.focus();
- return false;
- }
- }
- if( form.email.value!="" )
- {
- if ( fIsNumber(form.email.value,"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ._-@")!=1 )
- {
- alert("EMAIL只能是数字、字符、@ .组成");
- form.email.focus();
- return false;
- }
- }
- if( form.http.value.length>150 )
- {
- alert("http长度不能超过150个字符")
- form.http.focus();
- return false;
- }
- if( form.content.value=="")
- {
- alert("留言内容不能为空")
- form.content.focus();
- return false;
- }
- else
- {
- if( form.content.value.length>300 )
- {
- alert("留言内容不能超过300个字符")
- form.content.focus();
- return false;
- }
- }
- return true;
- }
- </script>
- </head>
- <body background="img/beijing.gif" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
- <table width="650" border="0" align="center" cellpadding="0" cellspacing="0" class="tittle0">
- <tr>
- <td width="389" align="center" valign="middle"><img src="img/toplogo11.gif" width="389" height="150"></td>
- <td width="66" background="img/toplogobg.jpg"> </td>
- <td width="195"><img src="img/toplogo2.jpg" width="203" height="150"></td>
- </tr>
- </table>
- <table width="650" border="0" align="center" cellpadding="0" cellspacing="0" class="tittle1">
- <tr>
- <td height="26" background="img/bg.gif"><table width="100%" height="15" border="0" cellpadding="0" cellspacing="0">
- <tr align="center">
- <td class="font0"><span class="font0">版主:</span><font color="#006699"><%=rs.getString("adminname")%></font></td>
- <td class="font0"><a href="login.jsp">管理员登陆</a> </td>
- <td class="font0"><a href="Index.jsp" class="font0">个人简介</a> <a href="add.jsp" class="font0"> </a></td>
- <td class="font0"><a href="add.jsp" class="font0">给我留言</a></td>
- <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>
- <td class="font0"><font color="#000099"><a href="picture1.jsp" class="font0">个人相册</a></font></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <br>
- <table width="650" border="0" cellspacing="0" cellpadding="0" align="center">
- <tr>
- <td></td>
- </tr>
- <tr>
- <td valign="top" bgcolor="#FFFFFF">
- <form action="add_operate.jsp" method="POST" name="form" id="form" onsubmit="return check()">
- <table width="650" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tittle3">
- <tr>
- <td width="12%"><img src="img/top1.gif" width="81" height="22"></td>
- <td width="86%" background="img/top2.gif"><a href="add_all_slly.jsp"><center><font size="3" color="#000000">查看所有留言</font></center></a></td>
- <td width="2%"><img src="img/top3.gif" width="47" height="22"></td>
- </tr>
- </table></td>
- </tr>
- <tr valign="top">
- <td height="162"> <table width="100%" border="0" cellpadding="0" cellspacing="2" class="tittle1">
- <tr>
- <td width="70" height="21" align="right"><font color="#000099"><img src="img/Forum_nav.gif" width="15" height="19" align="absmiddle">
- <span class="font0">姓 名</span></font></td>
- <td width="180" height="30"> <input name="name" type="text" id="name" style="border:1px double rgb(187,185,185);font:9pt" maxlength="5">
- <font color="#FF0000">*</font> </td>
- <td rowspan="4" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><font color="#000099"><img src="img/shareforum.gif" width="25" height="25" align="absmiddle">
- <span class="font0">编写留言</span></font></td>
- </tr>
- <tr>
- <td align="center"> <textarea name="content" cols="55" rows="5" id="content" style="border:1px double rgb(187,185,185);font:9pt"></textarea>
- <font color="#FF0000">*</font> </td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td align="right"><font color="#000099"><img src="img/topicnew.gif" width="16" height="18" align="absmiddle"><span class="font0">
- 性 别</span></font></td>
- <td height="30"> <span class="font0"> 男</span>
- <input type="radio" name="sex" value="0" checked>
- <span class="font0">女</span>
- <input type="radio" name="sex" value="1">
- </td>
- </tr>
- <tr>
- <td height="21" align="right"><font color="#000099"><img src="img/topichot2.gif" width="16" height="18" align="absmiddle"><span class="font0">
- Q Q</span></font></td>
- <td height="30"> <input name="qq" type="text" id="qq" style="border:1px double rgb(187,185,185);font:9pt" onChange="return qq()">
- </td>
- </tr>
- <tr>
- <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>
- <td height="30"> <input name="email" type="text" id="email" style="border:1px double rgb(187,185,185);font:9pt">
- </td>
- </tr>
- <tr>
- <td height="21" align="right"><font color="#000099"><img src="img/topicnonew.gif" width="16" height="18" align="absmiddle">
- <span class="font0">主 页</span></font></td>
- <td height="30"> <input name="http" type="text" id="http" style="border:1px double rgb(187,185,185);font:9pt" value="http://">
- </td>
- <td align="center"> <input type="submit" name="Submit" value="提 交" style="border:1 solid #BBB9B9;background:#ffffff" class="button">
- <input type="reset" name="Submit2" value="重 写" style="border:1 solid #BBB9B9;background:#ffffff" class="button">
- </td>
- </tr>
- </table></td>
- </tr>
- <tr valign="top">
- <td><table border="0" width="650" cellspacing="0" cellpadding="0" height="7" align="center">
- <tr>
- <td width="2%" align="center"><img src="img/end1.gif" width="12" height="14"></td>
- <td width="89%" align="center" background="img/end2.gif"></td>
- <td width="9%" align="center"><img src="img/end3.gif" width="65" height="14"></td>
- </tr>
- </table></td>
- </tr>
- </table>
- </form></td>
- </tr>
- </table>
- <table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td align="center"><p class="style4 style8"><a href="http://jorwoo.yeah.net" target="_blank" class="rights">周亚平</a> 版权所有 <br>
- 程序设计:周亚平 E-mail: <a href="mailto:zhouyaping1986@126.com" class="rights">zhouyaping1986@126.com</a><br>
- QQ:153589840</p> </td>
- </tr>
- </table>
- </body>
- </html>