Subversion Repositories DevTools

Rev

Rev 6610 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6270 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'   UsedBySBOMDetail.asp
5
'=====================================================
6
%>
7
<%
8
Option explicit
9
' Good idea to set when using redirect
10
Response.Expires = 0	' always load the page, dont store
11
%>
12
<!--#include file="common/conf.asp"-->
13
<!--#include file="common/globals.asp"-->
14
<!--#include file="common/formating.asp"-->
15
<!--#include file="common/qstr.asp"-->
16
<!--#include file="common/common_subs.asp"-->
17
<!--#include file="common/_rtree_common.asp"-->
18
<%
19
'------------ Variable Definition -------------
20
Dim rsTemp
21
Dim parPv_id
22
Dim parBranchId
23
Dim parMode
24
'------------ Constants Declaration -----------
25
'------------ Variable Init -------------------
26
parPv_id = Request ("pv_id")
27
parBranchId = Request ("branch_id")
28
parMode = Request ("mode")
29
'----------------------------------------------
30
%>
31
<%
32
'------------------------------------------------------------------------------------------------------------------------
33
%>
34
<%
35
'------------------------ MAIN LINE ---------------------------------
36
'--------------------------------------------------------------------
37
%>
38
<table width="100%" border="0" cellspacing="0" cellpadding="0">
39
	<tr>
40
	 <td background="images/bg_form_lightbluedark.gif">		
41
 
42
						<table width="100%" border="0" cellspacing="1" cellpadding="1">
43
                          <tr>
44
						    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Bom Name</td>
45
						    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Bom Version</td>
46
						    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Node Name</td>
47
						    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">OS Name</td>
48
						    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Version Used</td>
49
						    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col"></td>
50
						    <td width="1" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Last&nbsp;Modified</td>
51
						  </tr>
52
                          <%
53
						  OraDatabase.Parameters.Add "PV_ID",  Request("pv_id"),   ORAPARM_INPUT, ORATYPE_NUMBER 
54
						  OraDatabase.Parameters.Add "BRANCH_ID", parBranchId, ORAPARM_INPUT, ORATYPE_NUMBER 
55
						  OraDatabase.Parameters.Add "MATCH",  parMode, ORAPARM_INPUT, ORATYPE_NUMBER 
56
 
57
						  Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("UsedBySBOMDetail.sql"), cint(0))
58
 
59
						  OraDatabase.Parameters.Remove "MATCH"
60
						  OraDatabase.Parameters.Remove "PV_ID"
61
						  OraDatabase.Parameters.Remove "BRANCH"
62
						  %>
63
						  <%If rsTemp.RecordCount < 1 Then%>
64
						  <tr> 
65
						    <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
66
						    <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
67
						    <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
68
						    <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
69
                            <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
70
							<td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
71
							<td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
72
                          </tr>
73
						  <%End If%>
74
			  			  <%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))%>
75
                          <tr>
76
                            <td background="images/bg_form_lightgray.gif" nowrap>
77
                                <a href="<%=DEPLOYMENT_MANAGER_URL%>/BomStates.asp?proj_id=<%=rsTemp("PROJ_ID")%>&branch_id=<%=parBranchId%>" class="txt_linked">
78
                                    <%=rsTemp("bom_name")%></a>
79
                            </td> 
80
                            <td background="images/bg_form_lightgray.gif" nowrap>
81
                                <a href="<%=DEPLOYMENT_MANAGER_URL%>/BomDefault.asp?bom_id=<%=rsTemp("BOM_ID")%>" class="txt_linked">
82
                                    <%=rsTemp("version")%></a>
83
                            </td> 
84
                            <td background="images/bg_form_lightgray.gif" nowrap>
85
                                <a href="<%=DEPLOYMENT_MANAGER_URL%>/NodeDefault.asp?bom_id=<%=rsTemp("BOM_ID")%>&node_id=<%=rsTemp("NODE_ID")%>" class="txt_linked">
86
                                    <%=rsTemp("node_name")%></a>
87
                            </td>
88
                            <td background="images/bg_form_lightgray.gif" nowrap>
89
                                <a href="<%=DEPLOYMENT_MANAGER_URL%>/OsDefault.asp?bom_id=<%=rsTemp("BOM_ID")%>&os_id=<%=rsTemp("OS_ID")%>" class="txt_linked">
90
                                    <%=rsTemp("os_name")%></a>
91
                            </td>
92
                            <td background="images/bg_form_lightgray.gif" nowrap>
93
                              <a href="dependencies.asp?pv_id=<%=rsTemp("pv_id")%>" class="txt_linked <%=iif(rsTemp("MATCH") <> 1,"err_alert","")%>">
94
                                    <%=rsTemp("pkg_name")%>&nbsp;<%=rsTemp("pkg_version")%></a>
95
                            </td>
96
                            <td background="images/bg_form_lightgray.gif" nowrap>
97
                            </td>
98
                            <td background="images/bg_form_lightgray.gif" nowrap class="form_item">
99
                              <a href="mailto:<%=rsTemp("user_email")%>" class="txt_linked"><%=enum_imgUser%><%=rsTemp("full_name")%></a>
100
                                &nbsp;<%=DisplayDate ( rsTemp("modified_stamp") )%>
101
                            </td>
102
                          </tr>
103
                          <%rsTemp.MoveNext
104
						  WEnd
105
						  rsTemp.Close
106
						  Set rsTemp = nothing%>
107
                        </table>
108
    </td>						
109
  </tr>
110
</table>
111
<%
112
Call Destroy_All_Objects
113
%>