Subversion Repositories DevTools

Rev

Rev 6612 | Rev 6790 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|	           RequestUsedByThisProject.asp     	 |
6
'|                                                   |
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 rsTemp
5939 dpurdie 22
Dim parPvId
5946 dpurdie 23
Dim parMode
119 ghuddy 24
'------------ Constants Declaration -----------
25
'------------ Variable Init -------------------
5939 dpurdie 26
parPvId = Request("pv_id")
5946 dpurdie 27
parMode = Request ("mode")
119 ghuddy 28
'----------------------------------------------
29
%>
30
<table width="100%" border="0" cellspacing="0" cellpadding="0">
31
	<tr>
32
	 <td background="images/bg_form_lightbluedark.gif">		
33
 
5946 dpurdie 34
        <table width="100%" border="0" cellspacing="1" cellpadding="3">
35
          <tr>
36
            <td width="33%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Release</td>
37
            <td width="33%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Location</td>
38
            <td width="33%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Version&nbsp;Used</td>
39
            <td width="1" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Last&nbsp;Modified</td>
40
          </tr>
119 ghuddy 41
 
42
<%
5946 dpurdie 43
          OraDatabase.Parameters.Add "PROJ_ID", Request("proj_id"), 	ORAPARM_INPUT, ORATYPE_NUMBER 
44
          OraDatabase.Parameters.Add "PV_ID",   parPvId, ORAPARM_INPUT, ORATYPE_NUMBER 
45
          OraDatabase.Parameters.Add "MATCH",   parMode, ORAPARM_INPUT, ORATYPE_VARCHAR2
46
 
47
          Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("UsedByThisProject.sql"), cint(0))
48
 
49
          OraDatabase.Parameters.Remove "PROJ_ID"
50
          OraDatabase.Parameters.Remove "PV_ID"
51
          OraDatabase.Parameters.Remove "MATCH"
52
          %>
53
          <%If rsTemp.RecordCount < 1 Then%>
54
          <tr> 
55
            <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
56
            <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
57
            <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
58
            <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
59
          </tr>
60
          <%End If%>
61
          <%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))%>
62
          <tr> 
63
            <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>
64
            <td background="images/bg_form_lightgray.gif" class="body_txt_gray" nowrap><%=GetEnvName(rsTemp("env_area")) %></td>
65
            <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>
6612 dpurdie 66
            <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>
5946 dpurdie 67
          </tr>
68
          <%rsTemp.MoveNext
69
          WEnd
70
          rsTemp.Close
71
          Set rsTemp = nothing%>
72
        </table>
119 ghuddy 73
    </td>						
74
  </tr>
75
</table>
76
<%
77
Call Destroy_All_Objects
78
%>