Subversion Repositories DevTools

Rev

Rev 5506 | Details | Compare with Previous | 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"-->
6048 dpurdie 20
<% '------------ ACCESS CONTROL ------------------ %>
21
<!--#include file="_access_control_login.asp"-->
147 ghuddy 22
<!--#include file="_access_control_general.asp"-->
23
<%
24
'------------ VARIABLE DEFINITION -------------
25
'------------ CONSTANTS DECLARATION -----------
26
'------------ VARIABLE INIT -------------------
27
'------------ CONDITIONS ----------------------
28
'----------------------------------------------
29
%>
30
<%
31
'--------------------------------------------------------------------------------------------------------------------------
32
Sub ResetDaemonInstruction ()
33
   On Error Resume Next
34
 
35
   If UserAllowedToResetInProgress() Then
36
      objEH.TryORA ( OraSession )
37
      OraDatabase.ExecuteSQL _
38
      "UPDATE Daemon_Instructions   " &_
39
      "   SET in_progress = '0' " &_
40
      " WHERE daemon_instructions_id = "& Request("inst_id")
41
      objEH.CatchORA ( OraSession )
42
   Else
43
      Call RaiseMsg(enum_MSG_ERROR, "You do not have permission to reset a daemon instruction")
44
   End If
45
End Sub
46
'--------------------------------------------------------------------------------------------------------------------------
47
%>
48
<%
49
'**************************** M  A  I  N ******************************
50
' --- Form is Valid ---
51
Call ResetDaemonInstruction()
52
 
53
If objEH.Finally Then
54
   Call OpenInWindow ( "admin_daemon_instructions.asp" )
55
End If
56
'**********************************************************************
57
%>
58
<%
59
'------------ RUN AFTER CODE RUN --------------
60
'----------------------------------------------
61
'----------------------------------------------
62
Call Destroy_All_Objects
63
%>
64