📄 actchangeok.asp
字号:
<%@ LANGUAGE=VBScript%>
<%Server.ScriptTimeout=600
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.Form("line")
if int(line) <= int(act(2)) then
Response.Write "<b>[操作失败]</b><p>不能修改内置动作!"
Response.End
end if
actname=Request.Form("actname")
range=Request.Form("range")
actnl=Request.Form("act")
actname=Trim(actname)
actnl=Trim(actnl)
set outfile = fs.CreateTextFile(actfile,TRUE,FALSE)
for i=0 to line-1
outfile.WriteLine act(i)
next
outfile.WriteLine range
outfile.WriteLine actname
outfile.WriteLine actnl
for i=line+3 to countact-1
outfile.WriteLine act(i)
next
outfile.Close%>
<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>已经将第 <font color="#FF0000"><b><%=line%></b></font> 行的动作修改为:<a href="javascript:history.go(-2)">【返回】</a></p>
<p>动作对象:<font color="#FF0000"><%=range%></font></p>
<p>动作名称:<font color="#FF0000"><%=actname%></font></p>
<p>动作内容:<font color="#FF0000"><%=actnl%></font></p>
</blockquote>
<div align="center"></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>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -