| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
| 5268 |
dpurdie |
4 |
'|
|
|
|
5 |
'| RequestPackageCombo.asp
|
|
|
6 |
'|
|
|
|
7 |
'| I don't think that this is used
|
|
|
8 |
'|
|
| 119 |
ghuddy |
9 |
'=====================================================
|
|
|
10 |
%>
|
|
|
11 |
<%
|
|
|
12 |
Option explicit
|
|
|
13 |
' Good idea to set when using redirect
|
|
|
14 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
15 |
%>
|
|
|
16 |
<!--#include file="common/conf.asp"-->
|
|
|
17 |
<!--#include file="common/globals.asp"-->
|
|
|
18 |
<!--#include file="common/formating.asp"-->
|
|
|
19 |
<!--#include file="common/qstr.asp"-->
|
|
|
20 |
<!--#include file="common/common_subs.asp"-->
|
|
|
21 |
<!--#include file="common/_rtree_common.asp"-->
|
|
|
22 |
<%
|
|
|
23 |
'------------ Variable Definition -------------
|
|
|
24 |
Dim rsQry, Query_String
|
|
|
25 |
Dim OutString, parProjId
|
|
|
26 |
'------------ Constants Declaration -----------
|
|
|
27 |
'------------ Variable Init -------------------
|
|
|
28 |
parProjId = Request("proj_id")
|
|
|
29 |
'----------------------------------------------
|
|
|
30 |
%>
|
|
|
31 |
<%
|
|
|
32 |
'------------------------------------------------------------------------------------------------------------------------
|
|
|
33 |
'------------------------------------------------------------------------------------------------------------------------
|
|
|
34 |
%>
|
|
|
35 |
<%
|
|
|
36 |
'------------------------ MAIN LINE ---------------------------------
|
|
|
37 |
If (Request("proj_id")="") Then
|
|
|
38 |
Response.write "ERROR: Missing Parameters at "& ScriptName
|
|
|
39 |
End If
|
|
|
40 |
'--------------------------------------------------------------------
|
|
|
41 |
%>
|
|
|
42 |
|
|
|
43 |
<%
|
|
|
44 |
|
|
|
45 |
Query_String = _
|
|
|
46 |
" SELECT DISTINCT PKG.PKG_ID, PKG.PKG_NAME FROM RELEASE_CONTENT RC,"&_
|
|
|
47 |
" RELEASE_TAGS RT, PROJECTS PRJ,"&_
|
|
|
48 |
" PACKAGE_VERSIONS PV, PACKAGES PKG"&_
|
|
|
49 |
" WHERE RC.RTAG_ID = RT.RTAG_ID AND PRJ.PROJ_ID = RT.PROJ_ID AND PKG.PKG_ID NOT IN"&_
|
|
|
50 |
" (SELECT PKG_ID FROM PACKAGE_INTEREST WHERE PROJ_ID ="& parProjId &" AND USER_ID ="& objAccessControl.UserId &")"&_
|
|
|
51 |
" AND PV.PV_ID = RC.PV_ID AND PKG.PKG_ID = PV.PKG_ID AND PRJ.PROJ_ID="& parProjId &" order by pkg.pkg_name"
|
|
|
52 |
|
|
|
53 |
Set rsQry = OraDatabase.DbCreateDynaset( Query_String , cint(0) )
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
OutString = NULL
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
|
|
|
63 |
OutString = OutString & rsQry("pkg_name") &"|-|"& rsQry("pkg_id") &"|+|"
|
|
|
64 |
rsQry.MoveNext
|
|
|
65 |
WEnd
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
If NOT IsNull( OutString ) Then
|
|
|
69 |
' Remove last ;
|
|
|
70 |
OutString = Left( OutString, Len(OutString) - 3 )
|
|
|
71 |
End If
|
|
|
72 |
|
|
|
73 |
rsQry.Close
|
|
|
74 |
Set rsQry = Nothing
|
|
|
75 |
|
|
|
76 |
' Render output
|
|
|
77 |
Response.write OutString
|
|
|
78 |
%>
|
|
|
79 |
|
|
|
80 |
<%
|
|
|
81 |
Call Destroy_All_Objects
|
|
|
82 |
%>
|