📄 config.asp
字号:
<!--#include file="menkan.asp"-->
<!--#include file="conn.asp"-->
<%
action=request.querystring("action")
select case action
case"show"
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="Image/Main.css" rel="stylesheet" type="text/css" />
<title>站点设置</title>
</head>
<body>
<!--#include file="top.asp"-->
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="14"></td>
</tr>
</table>
<table width="760" border="1"align="center" cellpadding="3" cellspacing="1" bordercolor="#CCCCCC" style="border-collapse: collapse">
<form action="?action=save" method="post" name="config">
<tr>
<td colspan="2" align="center" bgcolor="#eeeeee">站点设置</td>
</tr>
<tr>
<td width="20%" align="center">站点名称</td>
<td><input name="webName" type="text" id="webName" value="<%=webName%>"></td>
</tr>
<tr>
<td align="center">ICP编号</td>
<td><input name="icp" type="text" id="icp" value="<%=icp%>"></td>
</tr>
<tr>
<td align="center">主办单位</td>
<td><input name="host" type="text" id="host" value="<%=host%>"></td>
</tr>
<tr>
<td align="center">联系方式</td>
<td><textarea name="lianxi" cols="40" rows="3" id="lianxi"><%=lianxi%></textarea></td>
</tr>
<tr>
<td align="center">版权所有</td>
<td><textarea name="copyright" cols="40" rows="3" id="copyright"><%=copyright%></textarea></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="提 交">
<input type="reset" name="Submit2" value="重 置"></td>
</tr>
</form>
</table>
<!--#include file="foot.asp"-->
</body>
</html>
<%
case"save"
webname=request.form("webname")
icp=request.form("icp")
host=request.form("host")
lianxi=request.form("lianxi")
copyright=request.form("copyright")
if webname="" then
response.write "<SCRIPT language=JavaScript>alert('站点名称不能为空!');"
response.Write"this.location.href='vbscript:history.back()';</SCRIPT>"
Response.End
end if
if icp="" then
response.write "<SCRIPT language=JavaScript>alert('icp编号不能为空!');"
response.Write"this.location.href='vbscript:history.back()';</SCRIPT>"
Response.End
end if
if host="" then
response.write "<SCRIPT language=JavaScript>alert('主办者不能为空!');"
response.Write"this.location.href='vbscript:history.back()';</SCRIPT>"
Response.End
end if
if lianxi="" then
response.write "<SCRIPT language=JavaScript>alert('联系方式不能为空!');"
response.Write"this.location.href='vbscript:history.back()';</SCRIPT>"
Response.End
end if
if copyright="" then
response.write "<SCRIPT language=JavaScript>alert('版权不能为空!');"
response.Write"this.location.href='vbscript:history.back()';</SCRIPT>"
Response.End
end if
set rs=server.createobject("adodb.recordset")
sql="select * from config"
rs.open sql,conn,1,3
rs("webname")=webname
rs("icp")=icp
rs("host")=host
rs("lianxi")=lianxi
rs("copyright")=copyright
rs.update
rs.close
set rs=nothing
response.Write"<script>alert('修改完成!');location.href('config.asp');</script>"
case else
response.redirect "?action=show"
end select
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -