Subversion Repositories DevTools

Rev

Rev 119 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'|                                                   |
'|                 RequestReleaseCombo.asp       |
'|                                                   |
'=====================================================
%>
<%
Option explicit
' Good idea to set when using redirect
Response.Expires = 0    ' always load the page, dont store
%>
<!--#include file="common/conf.asp"-->
<!--#include file="common/globals.asp"-->
<!--#include file="common/formating.asp"-->
<!--#include file="common/qstr.asp"-->
<!--#include file="common/common_subs.asp"-->
<!--#include file="common/_rtree_common.asp"-->
<%
'------------ Variable Definition -------------
Dim rsQry, Query_String
Dim OutString, parBsId
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
parBsId = Request("bs_id")
'----------------------------------------------
%>
<%
'------------------------------------------------------------------------------------------------------------------------
'------------------------------------------------------------------------------------------------------------------------
%>
<%
'------------------------ MAIN LINE ---------------------------------
If (Request("bs_id")="") Then
        Response.write "ERROR: Missing Parameters at "& ScriptName
End If
'--------------------------------------------------------------------
%>

        <%
                If parBsId = "1" Then
                Query_String = "SELECT * FROM BUILD_STANDARDS_ADDENDUM WHERE BS_ID = 1"
                ElseIf parBsId = "2" Then
                Query_String = "SELECT * FROM BUILD_STANDARDS_ADDENDUM WHERE BS_ID = 2"
                End If
                  
                 Set rsQry = OraDatabase.DbCreateDynaset( Query_String , cint(0) )      
        
        

        
        
        OutString = NULL
        
        
        While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
                OutString = OutString & rsQry("bsa_name") &"|-|"& rsQry("bsa_id")  &"|+|"
                rsQry.MoveNext
        WEnd
        
        
        If NOT IsNull( OutString ) Then
                ' Remove last ;
                OutString = Left( OutString, Len(OutString) - 3 )
        End If
        
        rsQry.Close
        Set rsQry = Nothing
        
        ' Render output
        Response.write OutString
        %>
          
<%
Call Destroy_All_Objects
%>