📄 reinfo.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" %>
<html>
<head>
<title>重庆杰诺软件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style" rel="stylesheet" type="text/css">
</head>
<%
{
=========================================================
重庆杰诺软件开发研究所开发制作
(http://www.cnkami.com)
诚信,创新,你的最好选择。。。。。。。。。。。
==========================================================
解压密码:www.cnkami.com
==========================================================
****************************************************
* 杰诺供求信息发布系统 v1.5 *
****************************************************
1. 本系统运行环境:
WINW2000+IIS+jdk1.4+odbc
由于本系统采用jsp写成,所以要求服务器支持jsp
数据库采用ACCESS库,要求服务器具有ACCESS的驱动程序,
ADO版本要求2.5以上,
实际上,新装好的WINDOWS SERVER+IIS+SP3就可以很好的运行本系统
本系统做有些修改时需要修改服务器上的文件,所以要求在服务器上有写文件的权限.
2. 系统默认状态下有一个系统管理员,用户名admin,密码admin.
3. 本程序商业版:商业用户:50元
4. 商业版在重写了系统核心以后新增了一些功能,界面美化,如果企业用户可提供更加人性化的修改!
5. 如果你使用本系统,请到http://www.cnkami.com/guestbook/留言,发表自已的看法,谢谢!
6. 如有其它要求请与系统作者联系。
7. 系统作者为可以为客户提供各类大型网站系统,OA系统,数据处理系统等。
8. 系统作者优惠为客户提供网站制作业务,为了让这套系统能发展更好,为了给朋友们写出更多,更好的程序,请大家支持作者。多给作者介绍一些商业客户,不胜感激。
9.使用之前请先配置odbc 名称为:faqaccess;
请保留版权信息!谢谢!请支持作者的工作,!谢谢!
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
有意请联系!:
QQ:1801099
QQ:171476439
邮件:flycomesoho@hotmail.com
电话:63700285 13608336048
如转载,请不要删除此信息!
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
}%>
<body bgcolor="#CCCCCC">
<%
String Addinfo=request.getParameter("re");
if (Addinfo==null){%>
<form name="form1" method="post" action="reinfo.jsp?re=add">
<table width="468" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr align="center">
<td height="29" colspan="4" background="images/table.gif"><strong><font color="#FFFFFF">回复留言:</font></strong></td>
</tr>
<tr align="center">
<td width="62" height="29">管理员:</td>
<td width="168"><input name="username" type="text" id="username"></td>
<td width="56">密码:</td>
<td width="182"><input name="password" type="password" id="password"></td>
</tr>
<tr>
<td height="29" colspan="4"> 回复内容:
<input name="id" type="hidden" id="id" value="<%=request.getParameter("id")%>"></td>
</tr>
<tr align="center">
<td height="29" colspan="4"><textarea name="recontent" cols="50" rows="6" id="recontent"></textarea></td>
</tr>
<tr align="center">
<td height="29" colspan="4"><input type="submit" name="Submit" value="回复">
<input type="reset" name="Submit2" value="重写">
<input type="button" name="Submit22" value="返回" onClick="window.location.href='index.jsp'"></td>
</tr>
</table>
</form>
<%}else{%>
<jsp:useBean id="guestbook" class="guestbook.GuestBookJdbc" scope="page"/>
<%
String username=request.getParameter("username");
String password=request.getParameter("password");
String recontent=request.getParameter("recontent");
int id=java.lang.Integer.parseInt(request.getParameter("id"));
Connection conn=guestbook.GetConn();
Statement sqlrs= conn.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_READ_ONLY) ;
String sql="select count(*) from admin where username='"+username+"' and password='"+password+"'";
try{
ResultSet Rs=sqlrs.executeQuery(sql);
Rs.next();
if(Rs.getInt(1)==0){
out.print("<script>");
out.print("alert('用户名或密码出错!');");
out.print("window.location.href='index.jsp';");
out.print("</script>");
}
else
{
String isql="update guestbook set recontent='"+recontent+"' where id="+id;
sqlrs.executeUpdate(isql);
out.print("<script>");
out.print("alert('回复留言成功了!');");
out.print("window.location.href='index.jsp';");
out.print("</script>");
}
}catch(Exception e)
{
out.print("<script>");
out.print("alert('用户名或密码出错!');");
out.print("window.location.href='index.jsp';");
out.print("</script>");
}
}%>
<table width="75%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="22" align="center">CopyRight 2003-2005 © 重庆杰诺软件版权所有 </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -