Subversion Repositories DevTools

Rev

Rev 6612 | Go to most recent revision | Details | Compare with Previous | 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
<%
18
'------------ Variable Definition -------------
19
Dim rsTemp
20
Dim parPv_id
21
Dim parBranchId
22
Dim parMode
23
'------------ Constants Declaration -----------
24
'------------ Variable Init -------------------
25
parPv_id = Request ("pv_id")
26
parBranchId = Request ("branch_id")
27
parMode = Request ("mode")
28
'----------------------------------------------
29
%>
30
<%
31
'------------------------------------------------------------------------------------------------------------------------
32
%>
33
<%
34
'------------------------ MAIN LINE ---------------------------------
35
'--------------------------------------------------------------------
36
%>
37
<table width="100%" border="0" cellspacing="0" cellpadding="0">
38
	<tr>
39
	 <td background="images/bg_form_lightbluedark.gif">		
40
 
41
						<table width="100%" border="0" cellspacing="1" cellpadding="1">
42
                          <tr>
43
						    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Bom Name</td>
44
						    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Bom Version</td>
45
						    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Node Name</td>
46
						    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">OS Name</td>
47
						    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Version Used</td>
48
						    <td width="10%" background="images/bg_form_lightbluedark.gif" nowrap class="body_col"></td>
49
						    <td width="1" background="images/bg_form_lightbluedark.gif" nowrap class="body_col">Last&nbsp;Modified</td>
50
						  </tr>
51
                          <%
52
						  OraDatabase.Parameters.Add "PV_ID",  Request("pv_id"),   ORAPARM_INPUT, ORATYPE_NUMBER 
53
						  OraDatabase.Parameters.Add "BRANCH_ID", parBranchId, ORAPARM_INPUT, ORATYPE_NUMBER 
54
						  OraDatabase.Parameters.Add "MATCH",  parMode, ORAPARM_INPUT, ORATYPE_NUMBER 
55
 
56
						  Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("UsedBySBOMDetail.sql"), cint(0))
57
 
58
						  OraDatabase.Parameters.Remove "MATCH"
59
						  OraDatabase.Parameters.Remove "PV_ID"
60
						  OraDatabase.Parameters.Remove "BRANCH"
61
						  %>
62
						  <%If rsTemp.RecordCount < 1 Then%>
63
						  <tr> 
64
						    <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
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
                          </tr>
72
						  <%End If%>
73
			  			  <%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))%>
74
                          <tr>
75
                            <td background="images/bg_form_lightgray.gif" nowrap>
76
                                <a href="<%=DEPLOYMENT_MANAGER_URL%>/BomStates.asp?proj_id=<%=rsTemp("PROJ_ID")%>&branch_id=<%=parBranchId%>" class="txt_linked">
77
                                    <%=rsTemp("bom_name")%></a>
78
                            </td> 
79
                            <td background="images/bg_form_lightgray.gif" nowrap>
80
                                <a href="<%=DEPLOYMENT_MANAGER_URL%>/BomDefault.asp?bom_id=<%=rsTemp("BOM_ID")%>" class="txt_linked">
81
                                    <%=rsTemp("version")%></a>
82
                            </td> 
83
                            <td background="images/bg_form_lightgray.gif" nowrap>
84
                                <a href="<%=DEPLOYMENT_MANAGER_URL%>/NodeDefault.asp?bom_id=<%=rsTemp("BOM_ID")%>&node_id=<%=rsTemp("NODE_ID")%>" class="txt_linked">
85
                                    <%=rsTemp("node_name")%></a>
86
                            </td>
87
                            <td background="images/bg_form_lightgray.gif" nowrap>
88
                                <a href="<%=DEPLOYMENT_MANAGER_URL%>/OsDefault.asp?bom_id=<%=rsTemp("BOM_ID")%>&os_id=<%=rsTemp("OS_ID")%>" class="txt_linked">
89
                                    <%=rsTemp("os_name")%></a>
90
                            </td>
91
                            <td background="images/bg_form_lightgray.gif" nowrap>
92
                              <a href="dependencies.asp?pv_id=<%=rsTemp("pv_id")%>" class="txt_linked <%=iif(rsTemp("MATCH") <> 1,"err_alert","")%>">
93
                                    <%=rsTemp("pkg_name")%>&nbsp;<%=rsTemp("pkg_version")%></a>
94
                            </td>
95
                            <td background="images/bg_form_lightgray.gif" nowrap>
96
                            </td>
6612 dpurdie 97
                            <td background="images/bg_form_lightgray.gif" nowrap class="form_item"><%=emailField(enum_imgUser & rsTemp("full_name"),rsTemp("user_email"))%>
6270 dpurdie 98
                                &nbsp;<%=DisplayDate ( rsTemp("modified_stamp") )%>
99
                            </td>
100
                          </tr>
101
                          <%rsTemp.MoveNext
102
						  WEnd
103
						  rsTemp.Close
104
						  Set rsTemp = nothing%>
105
                        </table>
106
    </td>						
107
  </tr>
108
</table>
109
<%
110
Call Destroy_All_Objects
111
%>