Subversion Repositories DevTools

Rev

Rev 147 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'|                                                   |
'|             _resetDaemonInstruction               |
'|                                                   |
'=====================================================
%>
<%
Option explicit
Response.Expires = 0
%>
<!--#include file="common/conf.asp"-->
<!--#include file="common/globals.asp"-->
<!--#include file="common/formating.asp"-->
<!--#include file="common/qstr.asp"-->
<!--#include file="common/common_subs.asp"-->
<!--#include file="common/_form_window_common.asp"-->
<!--#include file="common/daemon_instructions.asp"-->
<%
'------------ ACCESS CONTROL ------------------
%>
<!--#include file="_access_control_general.asp"-->
<!--#include file="_access_control_login.asp"-->
<%
'------------ VARIABLE DEFINITION -------------
'------------ CONSTANTS DECLARATION -----------
'------------ VARIABLE INIT -------------------
'------------ CONDITIONS ----------------------
'----------------------------------------------
%>
<%
'--------------------------------------------------------------------------------------------------------------------------
Sub ResetDaemonInstruction ()
   On Error Resume Next

   If UserAllowedToResetInProgress() Then
      objEH.TryORA ( OraSession )
      OraDatabase.ExecuteSQL _
      "UPDATE Daemon_Instructions   " &_
      "   SET in_progress = '0' " &_
      " WHERE daemon_instructions_id = "& Request("inst_id")
      objEH.CatchORA ( OraSession )
   Else
      Call RaiseMsg(enum_MSG_ERROR, "You do not have permission to reset a daemon instruction")
   End If
End Sub
'--------------------------------------------------------------------------------------------------------------------------
%>
<%
'**************************** M  A  I  N ******************************
' --- Form is Valid ---
Call ResetDaemonInstruction()

If objEH.Finally Then
   Call OpenInWindow ( "admin_daemon_instructions.asp" )
End If
'**********************************************************************
%>
<%
'------------ RUN AFTER CODE RUN --------------
'----------------------------------------------
'----------------------------------------------
Call Destroy_All_Objects
%>