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 Additional Note
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_Additional_Note ( nNote_id, nPv_Id )
36
	OraSession.BeginTrans
37
	OraDatabase.ExecuteSQL "DELETE FROM additional_notes WHERE note_id = "& nNote_id &" AND pv_id = "& nPv_id
38
  	OraSession.CommitTrans
39
End Sub
40
%>
41
<%
42
'-----------------------  MAIN LINE  ---------------------------
43
 
44
'--- Process submition ---
45
If (Request("pv_id") <> "") AND (Request("note_id") <> "")  Then
46
	' All mendatory parameters FOUND
47
	Call Remove_Additional_Note ( Request("note_id"), Request("pv_id") )
48
	Response.Redirect("fixed_issues.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"))
49
Else
50
	Response.write "Some mendatory parameters are missing!" & "<br>" 'TODO
51
	Response.write QSTR_All 
52
 
53
End If
54
%>
55
 
56
<!-- DESTRUCTOR ------->
57
<!--#include file="common/destructor.asp"-->