📄 class_mod.asp
字号:
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/function.asp"-->
<!--#include file="Admin_ChkPurview.asp"-->
<%
Dim Rs,Sql,action,ttt
dim channelname,channelshortname
action =request("action")
if action="修改频道" then
ttt=""
set Rs=server.createobject("adodb.recordset")
Sql="select * from PE_Channel where ChannelID=" & request("id")
Rs.open Sql,Conn,1,1
ChannelID= request("id")
channelname=rs("ChannelName")
channelshortname=rs("ChannelShortName")
rs.close
set rs=nothing
elseif action="确认修改" then
if request.form("ChannelName")="" or request.form("ChannelShortName")="" then
ttt="<font color=red>请填写完整!</font>"
else
sql = "update Pe_Channel set ChannelName='" & request.form("ChannelName") & "',ChannelShortName='" & request.form("ChannelShortName") &"' where ChannelID=" & request.form("ChannelID")
conn.execute(sql)
Call CloseConn()
Call CloseConnItem()
response.redirect("class_index.asp")
response.end
end if
else
Call CloseConn()
Call CloseConnItem()
response.redirect("class_index.asp")
response.end
end if
%>
<html>
<head>
<title>采集系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="Admin_Style.css">
<style type="text/css">
.ButtonList {
BORDER-RIGHT: #000000 2px solid; BORDER-TOP: #ffffff 2px solid; BORDER-LEFT: #ffffff 2px solid; CURSOR: default; BORDER-BOTTOM: #999999 2px solid; BACKGROUND-COLOR: #e6e6e6
}
</style>
<SCRIPT language=javascript>
function unselectall(thisform){
if(thisform.chkAll.checked){
thisform.chkAll.checked = thisform.chkAll.checked&0;
}
}
function CheckAll(thisform){
for (var i=0;i<thisform.elements.length-6;i++){
var e = thisform.elements[i];
if (e.Name !="chkAll"&&e.disabled!=true)
e.checked = thisform.chkAll.checked;
}
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="border">
<tr class='topbg'>
<td height="22" colspan="2" align="center" ><strong>本 地 数 据 分 类 管 理</strong></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="border">
<tr class="tdbg">
<td width="65" height="30"><strong>管理导航:</strong></td>
<td height="30"><a href=class_index.asp>管理首页</a> | 修改频道</td>
</tr>
</table>
<br>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="border" >
<tr>
<td height="22" colspan="2" class="title"> <div align="center"><b></b></div></td>
</tr>
</table>
<table class="border" border="0" cellspacing="1" width="100%" cellpadding="0">
<TR>
<TD height=22 align=center class=ButtonList>请修改以下项目</TD>
</TR>
</TABLE>
<form name="myform" method="POST" action="class_mod.asp">
<div align="center"> <%=ttt%>
<input name="ChannelID" type="hidden" size="50" maxlength="50" value="<%=ChannelID%>">
<p>频道名称:<strong>
<input name="ChannelName" type="text" size="50" maxlength="50" value="<%=channelname%>">
</strong></p>
<p>频道说明:
<input name="ChannelShortName" type="text" size="50" maxlength="250" value="<%=channelshortname%>">
</p>
<p>
<input name="action" type="submit" id="action" value="确认修改">
<input name="action" type="submit" id="action" value="返回">
</p>
<!--#include file="Admin_ItemFoot.asp"-->
</div>
</form>
</body>
</html>
<%
Call CloseConn()
Call CloseConnItem()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -