approve_ok.asp

来自「网上车辆管理系统」· ASP 代码 · 共 23 行

ASP
23
字号
<!--#include file="..\pub\ChkAdmin.asp"-->
<!--#include file="..\CONN.INC"-->

<%
if Request("RPL")="1" then 
	conn.execute "update UsageInfo set EventType=2 where EventID="&Request("ID")
	conn.execute "update UsageInfo set ApproverID="&Session("UserID")&" where EventID="&Request("ID")
	RPL="通过"
end if
if Request("RPL")="2" then 
	conn.execute "update UsageInfo set EventType=3 where EventID="&Request("ID")
	conn.execute "update UsageInfo set ApproverID="&Session("UserID")&" where EventID="&Request("ID")
	RPL="驳回"
end if
set rs=nothing
Conn.close
set Conn=nothing
%>
<form name=reDirectURL action=Approve.asp method=post></form>
<script language="javascript">
	 alert("信息已<%=RPL%>");
     document.reDirectURL.submit();
</script>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?