Subversion Repositories DevTools

Rev

Rev 5946 | Rev 6615 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'|                                                   |
'|                 RequestUsedByThisProject.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 rsTemp
Dim pkgId
Dim parMode
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
pkgId = Request ("pkg_id")
parMode = Request ("mode")
'----------------------------------------------
%>
<%
'------------------------------------------------------------------------------------------------------------------------
%>
<%
'------------------------ MAIN LINE ---------------------------------
'--------------------------------------------------------------------
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
         <td background="images/bg_form_lightbluedark.gif">             
                                        
                                                <table width="100%" border="0" cellspacing="1" cellpadding="1">
                          <tr>
                                                    <td width="33%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Package and Version</td>
                                                    <td width="33%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Version Used</td>
                                                    <td width="33%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col"></td>
                                                    <td width="1" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Last&nbsp;Modified</td>
                                                  </tr>
                          <%
                                                  OraDatabase.Parameters.Add "PV_ID",  Request("pv_id"),   ORAPARM_INPUT, ORATYPE_NUMBER 
                                                  OraDatabase.Parameters.Add "PKG_ID", pkgId, ORAPARM_INPUT, ORATYPE_NUMBER 
                                                  OraDatabase.Parameters.Add "MATCH",  parMode, ORAPARM_INPUT, ORATYPE_NUMBER 
                                                  
                                                  Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("UsedByPackageDetail.sql"), cint(0))
                                                  
                                                  OraDatabase.Parameters.Remove "MATCH"
                                                  OraDatabase.Parameters.Remove "PV_ID"
                                                  OraDatabase.Parameters.Remove "PKG_ID"
                                                  
                                                  %>
                                                  <%If rsTemp.RecordCount < 1 Then%>
                                                  <tr> 
                                                    <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
                            <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
                                                        <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
                                                        <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
                          </tr>
                                                  <%End If%>
                                                  <%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))%>
                          <tr> 
                            <td background="images/bg_form_lightgray.gif" nowrap>
                                <%If rsTemp("dlocked") = "Y" Then%><%=imgPkgLocked%><%Else%><%=imgPkgLockSpacer%><%End If%>
                                <a href="view_by_version.asp?pkg_id=<%=pkgId%>&listby=1" class="txt_linked">
                                    <%=rsTemp("pkg_name")%></a>&nbsp;<a href="dependencies.asp?pv_id=<%=rsTemp("pv_id")%>" class="txt_linked"><%=rsTemp("pkg_version")%></a>
                                </a>
                            </td>
                            <td background="images/bg_form_lightgray.gif" nowrap>
                              <a href="dependencies.asp?pv_id=<%=rsTemp("used_pv_id")%>" class="txt_linked <%=iif(rsTemp("MATCH") <> 1,"err_alert","")%>">
                                    <%=rsTemp("used_version")%>
                            </td>
                            <td background="images/bg_form_lightgray.gif" nowrap>
                            </td>
                            <td background="images/bg_form_lightgray.gif" nowrap class="form_item">
                                <%=enum_imgUser%><%=emailField(rsTemp("full_name"), rsTemp("user_email"))%>&nbsp;<%=DisplayDate ( rsTemp("modified_stamp") )%>
                            </td>
                          </tr>
                          <%rsTemp.MoveNext
                                                  WEnd
                                                  rsTemp.Close
                                                  Set rsTemp = nothing%>
                        </table>
    </td>                                               
  </tr>
</table>
<%
Call Destroy_All_Objects
%>