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