📄 smallclassedit.asp
字号:
<!--#include file=conn.asp -->
<%
IF not(Session("KEY")="super" or Session("KEY")="input" or Session("KEY")="check") THEN
response.write "<script>alert('您无权修改此项目!');history.go(-1);</Script>"
response.end
END IF
%>
<%
dim ID
dim smallclassname
ID=Request("ID")
smallclassname=request("smallclassname")
set rs=server.CreateObject("ADODB.RecordSet")
rs.Source="select * from SmallClass where ID=" & ID
rs.Open rs.Source,conn,1,1
if rs("smallmaster")=session("username") or session("key")="super" or Session("KEY")="check" then
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改分类</title>
<LINK href=style.css rel=stylesheet>
</head>
<body>
<p> </p>
<p> </p>
<form method="POST" action="SmallClassEditok.asp">
<div align="center"><center>
<table border="0" cellspacing="1" width="80%" cellpadding="0" bgcolor="#000000">
<tr>
<td width="100%" height="55" bgcolor="#abb8d6">
<p align="center"><b>修 改 分 类</b>
</td>
</tr>
<tr align="center">
<td width="100%" bgcolor="#FFFFFF">
<table border="0" cellspacing="0" width="90%" height="80" cellpadding="0">
<tr>
<td align="center" height="60">小类标题:
<input type="text" name="typename" size="20" maxlength="20" class="text" value='<%=request("SmallClassName")%>' style="font-family: 宋体; font-size: 9pt"><br>
小类注释: <input type="text" name="smallclasszs" size="20" class="text" value='<%=rs("SmallClasszs")%>' style="font-family: 宋体; font-size: 9pt">
<input type="hidden" name="ID" value='<%=request("ID")%>'>
</td>
</tr>
</table>
</td>
</tr>
<tr align="center">
<td width="100%" bgcolor="#abb8d6" height="60">
<div align="center">
<center>
<input type="submit" value=" 修 改 "
name="cmdok" style="font-family: 宋体; font-size: 9pt">
<input type="reset" value=" 复 原 "
name="cmdcancel" style="font-family: 宋体; font-size: 9pt">
<input type="button" name="ok" value=" 放 弃 " onClick="javascript:history.go(-1)" style="font-family: 宋体; font-size: 9pt">
</center>
</div>
</td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<p></p>
</center></div>
</form>
</body>
</html><%else%>
<script language=javascript>
history.back()
alert("因为这不是您添加的小类,\n所以您无权编辑此小类!")
</script>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -