📄 actchange.asp
字号:
<%@ LANGUAGE=VBScript%>
<%Response.Expires=0
if Session("a_c_user_name")="" then
Response.write "<b>[操作失败]</b><p>您尚未登录(或已经超时退出),不能进行此操作!"
Response.end
end if
if Session("a_c_user_level")<10 then
Response.Write "<b>[操作失败]</b><p>您没有管理动作库的权限!"
Response.End
end if
dim act()
actfile = server.mappath("actdata.asp")
Set fs = CreateObject("Scripting.FileSystemObject")
set thisfile = fs.OpenTextFile(actfile,1,False)
countact = 0
do while not thisfile.AtEndOfStream
thisline = thisfile.readline
Redim preserve act(countact)
act(countact) = thisline
countact = countact + 1
loop
thisfile.Close
line=Request.QueryString("line")
if int(line) <= int(act(2)) then
Response.Write "<b>[操作失败]</b><p>不能修改内置动作!"
Response.End
end if%><html>
<head>
<title>修改动作</title>
<style type='text/css'>
<!--
.p9 {line-height: 150%; font-size: 9pt;}
.p12 {line-height: 150%; font-size: 12pt;}
body {line-height: 150%;font-size : 12pt;}
A {text-decoration: none;}
A:Hover {text-decoration : none;}
a:visited { color: #0000FF}
-->
</style>
</head>
<body bgcolor="#FFFFFF">
<h1 align="center"><font color="#0099FF">【修改动作】</font></h1>
<div align="center"></div>
<hr noshade size="1" color=#009900>
<p><b>[修改动作说明]</b></p>
<blockquote>
<p>请根据需要修改下述内容:</p>
<form method="post" action="actchangeok.asp" name="">
<p>动作名称:
<input type="text" name="actname" maxlength="4" size="8" style="font-size:12pt" value="<%=act(line+1)%>">
动作对象:
<select name="range" style="font-size:12pt">
<option value="0" <%if act(line)=0 then%>selected<%end if%>>0 对自己</option>
<option value="1" <%if act(line)=1 then%>selected<%end if%>>1 对别人</option>
</select>
</p>
<p>动作内容:
<input type="text" name="act" size="50" maxlength="98" style="font-size:12pt" value="<%=act(line+2)%>">
<input type="hidden" name="line" value="<%=line%>">
</p>
<p align="center">
<input type="submit" name="Submit" value="提交" style="font-size:12pt">
<input type="reset" name="reset" value="重写" style="font-size:12pt">
</p>
</form>
</blockquote>
<div align="center"><a href="javascript:history.go(-1)">放弃修改</a> </div>
<hr noshade size="1" color=#009900>
<div align="center" class="p9"><script src="use.asp"></script> <script src="sn.asp"></script><br><script src="copyright.asp"></script></div>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -