📄 xsiteupdate.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@include file="check.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="../oa.css" rel="stylesheet" type="text/css">
</head>
<body class="notice">
<p>
<%
String tel = request.getParameter("tel");
String xshare = request.getParameter("xshare");
String idx = request.getParameter("id");
String comments = request.getParameter("comments");
dbc.getConnection();
//检查是否已经存在
String sql = "select count(*) from sitebook where xsite='"+tel+"' and id<>'"+idx+"' and cid='"+scid+"'";
//out.println(sql);
if(dbc.getCount(sql)>0){
dbc.close();
%>
</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p align="center">对不起,该网站已经存在,请检查重新填写!</p>
<p align="center"><a href="/telmanager.jsp"> 返 回 </a></p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p> </p>
<p>
<%
}
else{
sql = "update sitebook set xsite='"+tel+"',comments='"+comments+"',xshare='"+xshare+"' where id='"+idx+"'";
//out.println(sql);
dbc.update(charset.ISO_2_GBK(sql));
dbc.close();
response.sendRedirect("../sitemanager.jsp?t=0");
}
%>
</p>
<p align="center"><%@include file="../include/foot.jsp" %></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -