Subversion Repositories DevTools

Rev

Rev 119 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 119 Rev 129
Line 1... Line 1...
1
<%@LANGUAGE="VBSCRIPT"%>
1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
2
<%
3
'=====================================================
3
'=====================================================
4
' 			 	   REMOVE Public View
4
'                 REMOVE Public View
5
'               --- PROCESS FORM ---
5
'               --- PROCESS FORM ---
6
'=====================================================
6
'=====================================================
7
%>
7
%>
8
<%
8
<%
9
Option explicit
9
Option explicit
10
' Good idea to set when using redirect
10
' Good idea to set when using redirect
11
Response.Expires = 0	' always load the page, dont store
11
Response.Expires = 0   ' always load the page, dont store
12
%>
12
%>
13
 
13
 
14
<!--#include file="common/conf.asp"-->
14
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/globals.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
16
<!--#include file="common/formating.asp"-->
Line 32... Line 32...
32
parView_id = QStrPar("FRview_id")
32
parView_id = QStrPar("FRview_id")
33
'----------------------------------------------
33
'----------------------------------------------
34
%>
34
%>
35
<%
35
<%
36
Function Remove_View ( NNview_id )
36
Function Remove_View ( NNview_id )
-
 
37
   On Error Resume Next
37
	' Remove view_setting
38
   ' Remove view_setting
-
 
39
 
38
	OraSession.BeginTrans
40
   objEH.TryORA ( OraSession )
39
	OraDatabase.ExecuteSQL " DELETE FROM view_settings WHERE view_id = "& NNview_id
41
   OraDatabase.ExecuteSQL " DELETE FROM view_settings WHERE view_id = "& NNview_id
40
  	OraSession.CommitTrans
-
 
41
	
42
 
42
	' Remove view definition
43
   If Err.Number = 0 Then
43
	OraSession.BeginTrans
44
      ' Remove view definition
44
	OraDatabase.ExecuteSQL " DELETE FROM view_def WHERE view_id = "& NNview_id
45
      OraDatabase.ExecuteSQL " DELETE FROM view_def WHERE view_id = "& NNview_id
45
  	OraSession.CommitTrans
-
 
46
	
46
 
47
	' Remove view
47
      If Err.Number = 0 Then
48
	OraSession.BeginTrans
48
         ' Remove view
49
	OraDatabase.ExecuteSQL " DELETE FROM views WHERE view_id = "& NNview_id
49
         OraDatabase.ExecuteSQL " DELETE FROM views WHERE view_id = "& NNview_id
-
 
50
      End If
-
 
51
   End If
-
 
52
 
50
  	OraSession.CommitTrans
53
   objEH.CatchORA ( OraSession )
51
End Function
54
End Function
52
%>
55
%>
53
<%
56
<%
54
'-----------------------  MAIN LINE  ---------------------------
57
'-----------------------  MAIN LINE  ---------------------------
55
 
58
 
56
'--- Process submition ---
59
'--- Process submition ---
57
If (parView_id <> "") Then
60
If (parView_id <> "") Then
58
	' All mendatory parameters FOUND
61
   ' All mendatory parameters FOUND
59
	
62
 
60
	Call Remove_View ( parView_id )
63
   Call Remove_View ( parView_id )
61
	
64
 
62
	Response.Redirect("members_public_view.asp")
65
   Response.Redirect("members_public_view.asp")
63
Else
66
Else
64
	Response.write "Some mendatory parameters are missing!" & "<br>" 'TODO
67
   Response.write "Some mendatory parameters are missing!" & "<br>" 'TODO
65
	Response.write QSTR_All 
68
   Response.write QSTR_All
66
End If
69
End If
67
%>
70
%>
68
 
71
 
69
<!-- DESTRUCTOR ------->
72
<!-- DESTRUCTOR ------->
70
<!--#include file="common/destructor.asp"-->
-
 
71
73
<!--#include file="common/destructor.asp"-->
-
 
74