Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3863 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|			      _DeleteProjectExtension				 	 |
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
<%
20
'------------ ACCESS CONTROL ------------------
21
%>
22
<!--#include file="_access_control_general.asp"-->
23
<!--#include file="_access_control_login.asp"-->
24
<%
25
'------------ VARIABLE DEFINITION -------------
26
'------------ CONSTANTS DECLARATION -----------
27
'------------ VARIABLE INIT -------------------
28
'------------ CONDITIONS ----------------------
29
'----------------------------------------------
30
%>
31
<%
32
'--------------------------------------------------------------------------------------------------------------------------
33
Sub DeleteProjectExtension (ext)
34
 
35
   objEH.TryORA ( OraSession )
36
   On Error Resume Next
37
 
38
   OraDatabase.ExecuteSQL _
39
        "DELETE FROM PROJECT_EXTENTIONS WHERE ext_name = '" & ext & "'"
40
 
41
   objEH.CatchORA ( OraSession )
42
End Sub
43
'--------------------------------------------------------------------------------------------------------------------------
44
%>
45
<%
46
'**************************** M  A  I  N ******************************
47
' --- Form is Valid ---
48
Call DeleteProjectExtension(Request("ext"))
49
 
50
If objEH.Finally Then
51
	Call OpenInWindow ("admin_project_suffix.asp")
52
End If
53
'**********************************************************************
54
%>
55
<%
56
'------------ RUN AFTER CODE RUN --------------
57
'----------------------------------------------
58
'----------------------------------------------
59
Call Destroy_All_Objects
60
%>