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
'|  RequestAddendumCombo.asp
6
'|
119 ghuddy 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
<%
20
'------------ Variable Definition -------------
21
Dim rsQry, Query_String
22
Dim OutString, parBsId
23
'------------ Constants Declaration -----------
24
'------------ Variable Init -------------------
25
parBsId = Request("bs_id")
26
'----------------------------------------------
27
%>
28
<%
29
'------------------------------------------------------------------------------------------------------------------------
30
'------------------------------------------------------------------------------------------------------------------------
31
%>
32
<%
33
'------------------------ MAIN LINE ---------------------------------
34
If (Request("bs_id")="") Then
35
	Response.write "ERROR: Missing Parameters at "& ScriptName
36
End If
37
'--------------------------------------------------------------------
38
%>
39
 
40
	<%
41
		If parBsId = "1" Then
42
		Query_String = "SELECT * FROM BUILD_STANDARDS_ADDENDUM WHERE BS_ID = 1"
43
		ElseIf parBsId = "2" Then
44
		Query_String = "SELECT * FROM BUILD_STANDARDS_ADDENDUM WHERE BS_ID = 2"
45
		End If
46
 
47
		 Set rsQry = OraDatabase.DbCreateDynaset( Query_String , cint(0) )	
48
 
49
 
50
 
51
 
52
 
53
	OutString = NULL
54
 
55
 
56
	While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
57
		OutString = OutString & rsQry("bsa_name") &"|-|"& rsQry("bsa_id")  &"|+|"
58
		rsQry.MoveNext
59
	WEnd
60
 
61
 
62
	If NOT IsNull( OutString ) Then
63
		' Remove last ;
64
		OutString = Left( OutString, Len(OutString) - 3 )
65
	End If
66
 
67
	rsQry.Close
68
	Set rsQry = Nothing
69
 
70
	' Render output
71
	Response.write OutString
72
	%>
73
 
74
<%
75
Call Destroy_All_Objects
76
%>