📄 editweb.asp
字号:
<!--#include file="adyou.asp"-->
<!--#include file="error.asp"-->
<%
dim founderr,errmsg
founderr=false
errmsg=""
if session("super")<>"super" then
response.Write("<script>alert('您没权限访问本页');window.location.href='de.asp'</script>")
response.End()
end if
%>
<%
id=request("id")
if id="" then
errmsg="参数丢失!"
call diserror()
Response.End
end if
modify=request("modify")
title=request("title")
url=request("url")
if modify="yes" then
if title="" or url="" then
errmsg="表单不完整!"
call diserror()
else
set r=server.createobject("adodb.recordset")
r.open "select * from XS20_URL where id="&id,adyou,1,3
if not r.eof then
r("title")=title
r("url")=url
r.update
errmsg="网站信息已经修改成功!"
call disok()
Response.End
end if
end if
end if
%>
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<LINK href="../inc/djcss.css" type=text/css rel=StyleSheet>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--
body {
background-image: url(../images/dj_bg.gif);
}
-->
</style></HEAD>
<BODY>
<form action="editweb.asp" method="get">
<%
set r=server.createobject("adodb.recordset")
r.open "select * from XS20_URL where id="&id,adyou,1,3
if not r.eof then
%>
<big>
<table width="50%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#C0C0C0" style="border-collapse: collapse">
<tr bgcolor="#E8E8E8">
<td height="30" colspan="2"><div align="center">网站信息修改 </div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>网站编号:</td><td><input name="x" value='<%=r("id")%>' disabled>
<input name="id" value='<%=r("id")%>' type='hidden'>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td>网站名称:</td><td><input name="title" value='<%=r("title")%>'></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>网站URL:</td><td><input name="url" value='<%=r("url")%>'></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2">
<div align="center">
<input type="submit" value="确定修改">
</div></td>
</tr>
</table>
<%
end if
%>
<input name="modify" value="yes" type="hidden">
</form>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -