<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.mysql.jdbc.Driver" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<script language="javascript">
if(form.email.value=="" || !( /^[^@]+@[^@]+\.[^@]+$/.test( form.email.value ))){
alert("请输入正确邮箱!");
return false;
}
}
</script>
<style type="text/css">
td { font-size: 9pt; line-height: 12pt}
a:link {color: #0080FF; text-decoration: none }
a:visited {color: #0080FF; text-decoration: none }
a:hover {color: #ee9c00; text-decoration: underline }
</style>
<base target="_blank">
</head>
<body topmargin="2" bgproperties="fixed" background="img/bg01.gif">
<%
String user=(String)session.getAttribute("id");
session.setAttribute("user",user);
%>
<div align="center">
<center>
<table border="0" width="618" cellpadding="0" cellspacing="0" background="img/sjl.gif" height="80" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="267">
</td>
<td width="289" valign="bottom">
<div align="right">
<table border="0" width="279" height="23" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="200%">
<p align="center">
<marquee width="240" height="12" scrollamount="1">
<font size="2" color="#ff0000">留言簿</font>
</marquee>
</p> </td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<div align="center">
<center>
<form action="insert.jsp" method="post" name="form" onSubmit="return fCheck(this);">
<table border="2" width="618" bgcolor="#C8C8FF" cellspacing="0" cellpadding="6" style="border-style:dotted; border-collapse: collapse; " bordercolor="#808000">
<tr>
<td width="100%">
<table border="0" width="604" cellspacing="0" cellpadding="0">
<tr>
<td nowrap width="30">
<font color="#225ccc"> 姓名:</font></td>
<td nowrap colspan="2" width="574">
<input maxLength="30" name="name" size="19" style="border: 1px dotted #9999FF; ; color:#225CCC; background-color:#C8C8FF">
<font color="#225ccc">留言性质:<input type="radio" value="" checked name="show">公开
<input type="radio" value="0" name="show">悄悄话 性别:
<select name="p1" size="1" style="color: #0000FF; border: 1px dotted #9999FF; background-color: #C8C8FF">
<option selected value="m">男
<option value="w">女</option>
</select>
表情:
<select name="p2s" onChange="ICON.src=this.options[this.selectedIndex].value;">
<option value="face/m01.gif">酷像01</option>
<option value="face/m04.gif">酷像04</option>
<option value="face/m05.gif">酷像05</option>
<option value="face/m11.gif">酷像11</option>
<option value="face/m14.gif">酷像14</option>
<option value="face/m22.gif">酷像22</option>
<option value="face/m23.gif">酷像23</option>
<option value="face/m24.gif">酷像24</option>
<option value="face/m25.gif">酷像25</option>
</select>
</font></td>
</tr>
<tr>
<td nowrap width="30">
<font color="#225ccc">信箱:</font></td>
<td width="465">
<input maxLength="50" name="email" size="24" style="border: 1px dotted #9999FF; ; color:#225CCC; background-color:#C8C8FF"> <font color="#225ccc">主页:<input maxLength="50" name="url" size="30" value="http://" style="border: 1px dotted #9999FF; ; color:#225CCC; background-color:#C8C8FF"></font></td>
<td rowspan="2" width="109">
<p align="center">
<img src="face/m04.gif" name="ICON" id="ICON" alt="请选择上面的“性别”和“表情”更换头像" align="left"> </td>
</tr>
<tr>
<td nowrap width="30"><font color="#225ccc">内容:</font></td>
<td width="465"><textarea cols="60" name="ly" rows="3" wrap="hard" style="background-image: url('name=tus'); border: 1px dotted #9999FF; color:#225CCC; background-color:#C8C8FF"></textarea></td>
</tr>
<tr>
<td width="604" colspan="3">
<p align="center">
<input type="submit" value="提交" style="width:120;height:18;background-color: #C8C8FF; border: 1px dotted #9999FF; ; color:#225CCC">
<input type="reset" value="复原" style="width:120;height:18;background-color: #C8C8FF; border: 1px dotted #9999FF; ; color:#225CCC"></td>
</tr>
</table>
</td>
</tr>
</table></form>
</div>
<div align="center">
<center>
<table border="0" width="616" cellpadding="0" bgcolor="#C8C8FF" style="border-collapse: collapse" bordercolor="#111111" cellspacing="0">
<tr>
<td width="616" bgcolor="#EBEBEB" height="2" colspan="2"></td>
</tr>
<tr>
<td width="300" height="23" valign="bottom" nowrap><img border="0" src="img/address.gif"><font color="#333333"><a href="#" target="_self"></a><%=user%>>> <a href="#" target="_self"> <font color="#225ccc"> 留言本</font></a></font> </td>
<td width="294" height="23" valign="bottom" nowrap><p align="left"><font color="#9999ff">【<a href="reg1.jsp?user=<%=user%>" target="_self"><font color="#FF0000">修改资料</font></a>】【<a href="exit.jsp" target="_self"><font color="#FF0000">退出登陆</font></a>】
【<a href="#" target="_self">版主管理</a>】【<a href="reg.jsp" target="_self">在线申请</a>】</td>
</tr>
<center>
<tr>
<td width="616" colspan="2"><p align="left"> </td>
</tr>
</table>
</center>
</div>
<%
int totalpage=1;//总页数
int totalnum=0;//总条数
int nowpage=1;//当前页
int pagenum=5;//显示条数
int posion=1;//指针
/*Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
try{
Connection conn=DriverManager.getConnection("jdbc:odbc:GuestBook");
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);*/
ResultSet rs;
String driverName="com.mysql.jdbc.Driver";
String userName="root";
String userPasswd="admin";
String dbName="db";
try{
String url="jdbc:mysql://localhost:3306/"+dbName+"?user="+userName+"&password="+userPasswd;
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection conn=DriverManager.getConnection(url);
Statement stmt = conn.createStatement(ResultSet.TYPE_SCR
没有合适的资源?快使用搜索试试~ 我知道了~
jsp留言簿
共94个文件
gif:58个
jsp:27个
frm:4个
5星 · 超过95%的资源 需积分: 0 12 下载量 187 浏览量
2008-05-23
11:39:47
上传
评论
收藏 444KB RAR 举报
温馨提示
一个简单的呵呵,看看吧
资源详情
资源评论
资源推荐
收起资源包目录
GuestBook.rar (94个子文件)
GuestBook
reg.jsp 7KB
login.jsp 3KB
regok.jsp 3KB
loginok.jsp 903B
indexre.jsp 12KB
index.jsp 13KB
mysql.jsp 806B
adminloginok.jsp 982B
admin.jsp 414B
_notes
reg.jsp.mno 402B
untitled.jsp 1KB
conn1.jsp 365B
insert.jsp 2KB
conn.jsp 365B
exitok.jsp 4KB
index1.jsp 5KB
adminLogin.jsp 3KB
img
email.gif 1KB
address.gif 2KB
dot.gif 474B
bg01.gif 65B
find.bmp 3KB
sjl.gif 40KB
email1.gif 1KB
home.gif 1KB
home1.gif 441B
foot.GIF 625B
re.jsp 8KB
exit.jsp 2KB
untitled1.jsp 2KB
regindex.jsp 2KB
amdsave.jsp 2KB
index2.jsp 12KB
datebase
db
student.frm 8KB
user.frm 9KB
db.opt 65B
admin.frm 8KB
book1.frm 9KB
GuestBook.mdb 724KB
data.mdb 296KB
face
m25.gif 7KB
w15.gif 7KB
w01.GIF 532B
w07.GIF 10KB
w24.GIF 3KB
m19.GIF 6KB
m16.GIF 9KB
m21.GIF 15KB
w21.GIF 4KB
w22.gif 20KB
m03.GIF 4KB
m07.GIF 503B
m04.gif 2KB
m06.GIF 4KB
m11.gif 4KB
m17.GIF 23KB
w11.gif 6KB
m05.gif 7KB
m10.GIF 7KB
m18.GIF 13KB
w12.GIF 6KB
m13.GIF 14KB
m08.GIF 12KB
m24.gif 2KB
m12.GIF 7KB
w04.gif 5KB
m23.gif 3KB
w18.GIF 7KB
w14.gif 5KB
w13.GIF 6KB
w06.gif 6KB
m02.GIF 610B
w03.GIF 668B
w23.gif 6KB
m09.GIF 3KB
m20.GIF 23KB
w16.GIF 25KB
w10.GIF 695B
m01.gif 4KB
w17.GIF 4KB
m15.GIF 10KB
w19.gif 2KB
w02.GIF 1KB
w08.GIF 10KB
m22.gif 7KB
w05.GIF 572B
w09.gif 4KB
w20.gif 34KB
m14.gif 10KB
admsavepwd.jsp 914B
reg1.jsp 7KB
reg1ok.jsp 3KB
delete.jsp 704B
reok.jsp 2KB
共 94 条
- 1
ready_paopao
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1