Subversion Repositories DevTools

Rev

Rev 6610 | 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 parPvId
Dim parMode
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
parPvId = Request("pv_id")
parMode = Request ("mode")
'----------------------------------------------
%>
<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="3">
          <tr>
            <td width="33%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Release</td>
            <td width="33%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Location</td>
            <td width="33%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Version&nbsp;Used</td>
            <td width="1" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Last&nbsp;Modified</td>
          </tr>

<%
          OraDatabase.Parameters.Add "PROJ_ID", Request("proj_id"),     ORAPARM_INPUT, ORATYPE_NUMBER 
          OraDatabase.Parameters.Add "PV_ID",   parPvId, ORAPARM_INPUT, ORATYPE_NUMBER 
          OraDatabase.Parameters.Add "MATCH",   parMode, ORAPARM_INPUT, ORATYPE_VARCHAR2
          
          Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("UsedByThisProject.sql"), cint(0))
          
          OraDatabase.Parameters.Remove "PROJ_ID"
          OraDatabase.Parameters.Remove "PV_ID"
          OraDatabase.Parameters.Remove "MATCH"
          %>
          <%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><a href="dependencies.asp?pv_id=<%=rsTemp("pv_id")%>&rtag_id=<%=rsTemp("rtag_id")%>" class="txt_linked"><%=ReleaseIcon( rsTemp("official") )%>&nbsp;<%=rsTemp("rtag_name")%></a></td>
            <td background="images/bg_form_lightgray.gif" class="body_txt_gray" nowrap><%=GetEnvName(rsTemp("env_area")) %></td>
            <td background="images/bg_form_lightgray.gif" <%If rsTemp("pv_id") <> Request("pv_id") Then%>class="err_alert"<%Else%>class="form_item"<%End If%>><%=rsTemp.Item ("pkg_name") &" "& rsTemp("pkg_version")%></td>
            <td background="images/bg_form_lightgray.gif" class="form_item" nowrap><%=emailField(enum_imgUser & 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
%>