Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
62 rsolanki 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/config.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
17
 
18
<!--#include file="common/common_subs.asp"-->
19
<!--#include file="common/_rtree_common.asp"-->
20
<%
21
'------------ Variable Definition -------------
22
Dim rsQry
23
Dim OutString
24
'------------ Constants Declaration -----------
25
'------------ Variable Init -------------------
26
'----------------------------------------------
27
%>
28
<%
29
'------------------------------------------------------------------------------------------------------------------------
30
'------------------------------------------------------------------------------------------------------------------------
31
%>
32
<%
33
'------------------------ MAIN LINE ---------------------------------
34
If (Request("proj_id")="") Then
35
	Response.write "ERROR: Missing Parameters at "& ScriptName
36
End If
37
'--------------------------------------------------------------------
38
%>
39
 
40
	<%
41
	OraDatabase.Parameters.Add "PROJ_ID", 	Request("proj_id"),	ORAPARM_INPUT, ORATYPE_NUMBER 
42
	OraDatabase.Parameters.Add "BRANCH_ID", 	NULL,	ORAPARM_INPUT, ORATYPE_NUMBER 
43
 
44
	Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("ReleasesCombo.sql"), cint(0))
45
 
46
	OraDatabase.Parameters.Remove "PROJ_ID"
47
	OraDatabase.Parameters.Remove "BRANCH_ID"
48
 
49
 
50
	OutString = NULL
51
 
52
 
53
	While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
54
		OutString = OutString & rsQry("branch_name") &"|-|"& rsQry("branch_id") &"|-|"& rsQry("selected") &"|+|"
55
		rsQry.MoveNext
56
	WEnd
57
 
58
 
59
	If NOT IsNull( OutString ) Then
60
		' Remove last ;
61
		OutString = Left( OutString, Len(OutString) - 3 )
62
	End If
63
 
64
	rsQry.Close
65
	Set rsQry = Nothing
66
 
67
	' Render output
68
	Response.write OutString
69
	%>
70
 
71
<%
72
Call Destroy_All_Objects
73
%>