Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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