Subversion Repositories DevTools

Rev

Rev 5506 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
<%
22
'------------ Variable Definition -------------
23
Dim rsQry, Query_String
24
Dim OutString, parProjId
25
'------------ Constants Declaration -----------
26
'------------ Variable Init -------------------
27
parProjId = Request("proj_id")
28
'----------------------------------------------
29
%>
30
<%
31
'------------------------------------------------------------------------------------------------------------------------
32
'------------------------------------------------------------------------------------------------------------------------
33
%>
34
<%
35
'------------------------ MAIN LINE ---------------------------------
36
If (Request("proj_id")="") Then
37
	Response.write "ERROR: Missing Parameters at "& ScriptName
38
End If
39
'--------------------------------------------------------------------
40
%>
41
 
42
	<%
43
 
44
		Query_String = _
45
		" SELECT DISTINCT PKG.PKG_ID, PKG.PKG_NAME FROM RELEASE_CONTENT RC,"&_
46
		" RELEASE_TAGS RT, PROJECTS PRJ,"&_
47
		" PACKAGE_VERSIONS PV, PACKAGES PKG"&_
48
		" WHERE RC.RTAG_ID = RT.RTAG_ID AND PRJ.PROJ_ID = RT.PROJ_ID AND PKG.PKG_ID NOT IN"&_
49
		" (SELECT PKG_ID FROM PACKAGE_INTEREST WHERE PROJ_ID ="& parProjId &" AND USER_ID ="& objAccessControl.UserId &")"&_
50
		" AND PV.PV_ID = RC.PV_ID AND PKG.PKG_ID = PV.PKG_ID AND PRJ.PROJ_ID="& parProjId &" order by pkg.pkg_name"
51
 
52
		 Set rsQry = OraDatabase.DbCreateDynaset( Query_String , cint(0) )	
53
 
54
 
55
 
56
 
57
 
58
	OutString = NULL
59
 
60
 
61
	While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
62
		OutString = OutString & rsQry("pkg_name") &"|-|"& rsQry("pkg_id")  &"|+|"
63
		rsQry.MoveNext
64
	WEnd
65
 
66
 
67
	If NOT IsNull( OutString ) Then
68
		' Remove last ;
69
		OutString = Left( OutString, Len(OutString) - 3 )
70
	End If
71
 
72
	rsQry.Close
73
	Set rsQry = Nothing
74
 
75
	' Render output
76
	Response.write OutString
77
	%>
78
 
79
<%
80
Call Destroy_All_Objects
81
%>