Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
' 			 	   REMOVE Issue
5
'               --- PROCESS FORM ---
6
'=====================================================
7
%>
8
<%
9
Option explicit
10
' Good idea to set when using redirect
11
Response.Expires = 0	' always load the page, dont store
12
%>
13
 
14
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
17
<!--#include file="common/qstr.asp"-->
18
<!--#include file="common/common_subs.asp"-->
19
<!--#include file="common/common_dbedit.asp"-->
20
<%
21
' Set rfile parameter. This is a return page after Login
22
Call objPMod.StoreParameter ( "rfile", "fixed_issues.asp" )
23
'------------ ACCESS CONTROL ------------------
24
%>
25
<!--#include file="_access_control_login.asp"-->
26
<!--#include file="_access_control_general.asp"-->
27
<!--#include file="_access_control_project.asp"-->
28
<%
29
'------------ Variable Definition -------------
30
'------------ Constants Declaration -----------
31
'------------ Variable Init -------------------
32
'----------------------------------------------
33
%>
34
<%
35
Sub Remove_Issue( NNpv_id, NNiss_link )	
36
 
37
	OraSession.BeginTrans
38
 
39
	OraDatabase.ExecuteSQL _
40
			"DELETE FROM jira_issues WHERE pv_id = "& NNpv_id &" AND iss_key = '"& NNiss_link&"'"
41
 
42
	OraDatabase.ExecuteSQL _
43
			"BEGIN  Log_Action ( "& NNpv_id &", 'jira_issue_removed', "& objAccessControl.UserId &", 'Issue Key: "& NNiss_link &" Removed' );  END;"
44
 
45
  	OraSession.CommitTrans
46
End Sub
47
%>
48
<%
49
'-----------------------  MAIN LINE  ---------------------------
50
 
51
'--- Process submition ---
52
If (Request("pv_id") <> "") AND  (Request("iss_link") <> "") Then
53
	' All mandatory parameters FOUND
54
	Call Remove_Issue( Request("pv_id"), Request("iss_link") )
55
	Response.Redirect("fixed_issues.asp?hidenv=true&pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"))
56
Else
57
	Response.write "Some mandatory parameters are missing!" & "<br>" 'TODO
58
	Response.write QSTR_All 
59
End If
60
%>
61
 
62
<!-- DESTRUCTOR ------->
63
<!--#include file="common/destructor.asp"-->