📄 admin_webclassmod.asp
字号:
<%
Option Explicit
Response.buffer=true
const purviewlevel=1
%>
<!--#include file="admin_PurviewChe.asp" -->
<!--#include file="conn.asp"-->
<%
dim rsmod,webclassmod,webclassid,newwebclass,newwebclassurl
webclassid=trim(request("webclassid"))
webclassmod=trim(request("webclassmod"))
newwebclass=trim(request.form("newwebclass"))
newwebclassurl=trim(request.form("newwebclassurl"))
if webclassmod="mod" then
if webclassid<>"" then
set rsmod=server.createobject("ADODB.Recordset")
rsmod.open"select * from webclass where webclassid="&webclassid&"",conn,1,3
rsmod("webclass")=newwebclass
rsmod("webclassurl")=newwebclassurl
rsmod.update
rsmod.close
set rsmod=nothing
call closeconn()
response.write"<div align='center'><br><br>频道修改成功!<br><br>"
response.write"【<a href='admin_WebClassMan.asp'>返回频道管理</a>】</div>"
response.end()
end if
end if
dim rs
if webclassid="" then
response.redirect("admin_WebClassMan.asp")
else
set rs=conn.execute("select * from webclass where webclassid="&webclassid&"")
if rs.eof or rs.bof then
response.write"<div align='center'><br><br>该频道不存在或操作有误!</div>"
response.write"【<a href='admin_WebClassMan.asp'>返回频道管理</a>】</div>"
call closeconn()
response.end()
else
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加新频道</title>
<link href="Style.css" rel="stylesheet" type="text/css">
<script language=javascript>
function checkform()
{
if (window.document.form1.newwebclass.value=="")
{
alert("频道不能为空!");
return false;
}
if (window.document.form1.newwebclassurl.value=="")
{
alert("链接地址不能为空!");
return false;
}
}
</script>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="border">
<tr>
<td align="center" class="txt1">频道修改面板</td>
</tr>
<tr>
<td align="center" class="txt05">[<a href="admin_WebClassMan.asp">返回频道管理</a>]</td>
</tr>
<tr>
<td><form name="form1" method="post" action="" onsubmit="return checkform();">
<table width="100%" border="0" cellpadding="0" cellspacing="8">
<tr>
<td width="50%" align="right" class="txt05">频道名称:</td>
<td width="50%"><input name="newwebclass" type="text" class="but" id="newwebclass" value="<%=rs("webclass")%>"></td>
</tr>
<tr>
<td align="right" class="txt05">频道链接地址:</td>
<td><input name="newwebclassurl" type="text" class="but" id="newwebclassurl" value="<%=rs("webclassurl")%>"></td>
</tr>
<tr align="center">
<td colspan="2"><input name="Submit" type="submit" class="but" value="修改">
<input name="webclassmod" type="hidden" id="webclassmod" value="mod"></td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<%
end if
rs.close
set rs=nothing
end if
call closeconn()
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -