| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
| 129 |
ghuddy |
4 |
' REMOVE Additional Note
|
| 119 |
ghuddy |
5 |
' --- PROCESS FORM ---
|
|
|
6 |
'=====================================================
|
|
|
7 |
%>
|
|
|
8 |
<%
|
|
|
9 |
Option explicit
|
|
|
10 |
' Good idea to set when using redirect
|
| 129 |
ghuddy |
11 |
Response.Expires = 0 ' always load the page, dont store
|
| 119 |
ghuddy |
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 )
|
| 129 |
ghuddy |
36 |
objEH.TryORA ( OraSession )
|
|
|
37 |
On Error Resume Next
|
|
|
38 |
OraDatabase.ExecuteSQL "DELETE FROM additional_notes WHERE note_id = "& nNote_id &" AND pv_id = "& nPv_id
|
|
|
39 |
objEH.CatchORA ( OraSession )
|
| 119 |
ghuddy |
40 |
End Sub
|
|
|
41 |
%>
|
|
|
42 |
<%
|
|
|
43 |
'----------------------- MAIN LINE ---------------------------
|
|
|
44 |
|
|
|
45 |
'--- Process submition ---
|
|
|
46 |
If (Request("pv_id") <> "") AND (Request("note_id") <> "") Then
|
| 1337 |
dpurdie |
47 |
' All mandatory parameters FOUND
|
| 129 |
ghuddy |
48 |
Call Remove_Additional_Note ( Request("note_id"), Request("pv_id") )
|
|
|
49 |
Response.Redirect("fixed_issues.asp?pv_id="& Request("pv_id") &"&rtag_id="& Request("rtag_id"))
|
| 119 |
ghuddy |
50 |
Else
|
| 1337 |
dpurdie |
51 |
Response.write "Some mandatory parameters are missing!" & "<br>" 'TODO
|
| 129 |
ghuddy |
52 |
Response.write QSTR_All
|
|
|
53 |
|
| 119 |
ghuddy |
54 |
End If
|
|
|
55 |
%>
|
|
|
56 |
|
|
|
57 |
<!-- DESTRUCTOR ------->
|
| 129 |
ghuddy |
58 |
<!--#include file="common/destructor.asp"-->
|