| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
Option explicit
|
| 129 |
ghuddy |
4 |
Response.Expires = 0 ' always load the page, dont store
|
| 119 |
ghuddy |
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'=====================================================
|
| 129 |
ghuddy |
8 |
' Add Package Interest
|
| 119 |
ghuddy |
9 |
'=====================================================
|
|
|
10 |
%>
|
|
|
11 |
<!--#include file="common/conf.asp"-->
|
|
|
12 |
<!--#include file="common/globals.asp"-->
|
|
|
13 |
<!--#include file="common/formating.asp"-->
|
|
|
14 |
<!--#include file="common/qstr.asp"-->
|
|
|
15 |
<!--#include file="common/common_subs.asp"-->
|
|
|
16 |
<!--#include file="common/common_dbedit.asp"-->
|
|
|
17 |
<%
|
|
|
18 |
'------------ ACCESS CONTROL ------------------
|
|
|
19 |
%>
|
|
|
20 |
<!--#include file="_access_control_general.asp"-->
|
|
|
21 |
<%
|
|
|
22 |
'------------ Variable Definition -------------
|
|
|
23 |
Dim parPv_id
|
|
|
24 |
Dim parRfile
|
|
|
25 |
Dim rsPkgInfo
|
|
|
26 |
Dim retERRmsg
|
|
|
27 |
Dim retParameters
|
|
|
28 |
Dim parPkg_id
|
|
|
29 |
Dim parProj_id
|
|
|
30 |
'------------ Constants Declaration -----------
|
|
|
31 |
'------------ Variable Init -------------------
|
|
|
32 |
parProj_id = Request("proj_id")
|
|
|
33 |
parRfile = QStrPar("rfile")
|
|
|
34 |
parPkg_id = Request("pkg_id")
|
|
|
35 |
'----------------------------------------------
|
|
|
36 |
%>
|
|
|
37 |
<%
|
|
|
38 |
Sub Add_Package_Interest ( nProj_id, nPkg_id )
|
|
|
39 |
|
| 129 |
ghuddy |
40 |
OraDatabase.Parameters.Add "PROJ_ID", nProj_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
41 |
OraDatabase.Parameters.Add "PKG_ID", nPkg_id, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
42 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
| 119 |
ghuddy |
43 |
|
| 129 |
ghuddy |
44 |
On Error Resume Next
|
|
|
45 |
objEH.TryORA ( OraSession )
|
| 119 |
ghuddy |
46 |
|
| 129 |
ghuddy |
47 |
OraDatabase.ExecuteSQL _
|
|
|
48 |
"BEGIN ADD_PACKAGE_INTEREST ( :PROJ_ID, :PKG_ID, :USER_ID ); END;"
|
| 119 |
ghuddy |
49 |
|
| 129 |
ghuddy |
50 |
objEH.CatchORA ( OraSession )
|
|
|
51 |
|
|
|
52 |
OraDatabase.Parameters.Remove "PROJ_ID"
|
|
|
53 |
OraDatabase.Parameters.Remove "PKG_ID"
|
|
|
54 |
OraDatabase.Parameters.Remove "USER_ID"
|
|
|
55 |
|
| 119 |
ghuddy |
56 |
'Response.Write(objAccessControl.UserId)
|
| 129 |
ghuddy |
57 |
|
| 119 |
ghuddy |
58 |
End Sub
|
|
|
59 |
%>
|
|
|
60 |
<%
|
|
|
61 |
'---------------------------------- MAIN LINE ----------------------------------------
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
Call Add_Package_Interest(parProj_id, parPkg_id)
|
|
|
65 |
%>
|
| 129 |
ghuddy |
66 |
<script language="JavaScript" type="text/javascript">
|
|
|
67 |
window.opener.location='members_notifications.asp?proj_id=<%=parProj_id%>';
|
|
|
68 |
</script>
|
| 119 |
ghuddy |
69 |
<%
|
|
|
70 |
Call CloseWindow()
|
|
|
71 |
|
|
|
72 |
'Return Page
|
|
|
73 |
'If parRfile = "" Or parRfile = "_generate_release_notes.asp" Then
|
|
|
74 |
' Response.Redirect ( "fixed_issues.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
|
|
|
75 |
'Else
|
|
|
76 |
' Response.Redirect ( parRfile &"?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
|
|
|
77 |
'End If
|
| 129 |
ghuddy |
78 |
|
| 119 |
ghuddy |
79 |
%>
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
<!-- DESTRUCTOR ------->
|
| 129 |
ghuddy |
83 |
<!--#include file="common/destructor.asp"-->
|