Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
147 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|             _resetDaemonInstruction               |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
Response.Expires = 0
12
%>
13
<!--#include file="common/conf.asp"-->
14
<!--#include file="common/globals.asp"-->
15
<!--#include file="common/formating.asp"-->
16
<!--#include file="common/qstr.asp"-->
17
<!--#include file="common/common_subs.asp"-->
18
<!--#include file="common/_form_window_common.asp"-->
19
<!--#include file="common/daemon_instructions.asp"-->
20
<%
21
'------------ ACCESS CONTROL ------------------
22
%>
23
<!--#include file="_access_control_general.asp"-->
24
<!--#include file="_access_control_login.asp"-->
25
<%
26
'------------ VARIABLE DEFINITION -------------
27
'------------ CONSTANTS DECLARATION -----------
28
'------------ VARIABLE INIT -------------------
29
'------------ CONDITIONS ----------------------
30
'----------------------------------------------
31
%>
32
<%
33
'--------------------------------------------------------------------------------------------------------------------------
34
Sub ResetDaemonInstruction ()
35
   On Error Resume Next
36
 
37
   If UserAllowedToResetInProgress() Then
38
      objEH.TryORA ( OraSession )
39
      OraDatabase.ExecuteSQL _
40
      "UPDATE Daemon_Instructions   " &_
41
      "   SET in_progress = '0' " &_
42
      " WHERE daemon_instructions_id = "& Request("inst_id")
43
      objEH.CatchORA ( OraSession )
44
   Else
45
      Call RaiseMsg(enum_MSG_ERROR, "You do not have permission to reset a daemon instruction")
46
   End If
47
End Sub
48
'--------------------------------------------------------------------------------------------------------------------------
49
%>
50
<%
51
'**************************** M  A  I  N ******************************
52
' --- Form is Valid ---
53
Call ResetDaemonInstruction()
54
 
55
If objEH.Finally Then
56
   Call OpenInWindow ( "admin_daemon_instructions.asp" )
57
End If
58
'**********************************************************************
59
%>
60
<%
61
'------------ RUN AFTER CODE RUN --------------
62
'----------------------------------------------
63
'----------------------------------------------
64
Call Destroy_All_Objects
65
%>
66