Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
5357 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|		           Run Time Dependencies             |
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
<!--#include file="common/common_dbedit.asp"-->
20
<!--#include file="_tabs.asp"-->
21
<!--#include file="_action_buttons.asp"-->
22
<!--#include file="common/_package_common.asp"-->
23
<%
24
'------------ ACCESS CONTROL ------------------
25
%>
6181 dpurdie 26
<!--#include file="_access_control_login_optional.asp"-->
5357 dpurdie 27
<!--#include file="_access_control_general.asp"-->
28
<%
29
'------------ Variable Definition -------------
30
Dim rsTemp
31
Dim	rsQry
32
Dim criticalSectionIsEditable
33
'------------ Constants Declaration -----------
34
'------------ Variable Init -------------------
35
'----------------------------------------------
36
%>
37
<%
38
Function Get_Runtime_Dependencies ( NNpv_id )
39
	Get_Runtime_Dependencies = _
40
	" SELECT rtd.rtd_id, pkg.pkg_name, pv.pkg_version, rtd.rtd_comments, rtd.rtd_url, "&_
41
	"       rtd.mod_date, usr.full_name, usr.user_email"&_
42
	"  FROM packages pkg, package_versions pv, runtime_dependencies rtd, users usr"&_
43
	" WHERE pv.pkg_id = pkg.pkg_id"&_
44
	"   AND rtd.rtd_id = pv.pv_id"&_
45
	"   AND rtd.mod_user = usr.user_id"&_
46
	"   AND rtd.pv_id = "& NNpv_id &_
47
	" ORDER BY UPPER(pkg.pkg_name) "
48
End Function
49
%>
50
 
51
<%
52
'------------------------- MAIN LINE ---------------------------
53
criticalSectionIsEditable = Is_Critical_Section_Editable ( pkgInfoHash.Item ("dlocked") )
54
%>
55
 
56
<html>
57
<head>
58
<title><%=Title(Request("rtag_id"))%></title>
59
<link rel="shortcut icon" href="<%=FavIcon%>"/>
60
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
61
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 62
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
63
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
64
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
65
<script language="JavaScript" src="scripts/remote_scripting.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 66
<!--#include file="_jquery_includes.asp"-->
67
<!-- DROPDOWN MENUS -->
68
<!--#include file="_menu_def.asp"-->
6579 dpurdie 69
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 70
</head>
71
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
72
<!-- HEADER -->
73
<!--#include file="_header.asp"-->
74
<!-- BODY ---->
75
<table width="100%" border="0" cellspacing="0" cellpadding="0">
76
	<tr>
77
		<td valign="top" width="1" background="images/bg_bage.gif">
78
		<!-- LEFT -->
79
		<!--#include file="_environment.asp"-->
80
		</td>
81
		<td width="1" bgcolor="#999999"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
82
		<td valign="top" width="100%">
83
		<!-- MIDDLE -->
84
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
85
		  <tr>
86
		    <td width="1%" background="images/bg_action_norm.gif"><IMG height=35 src="images/spacer.gif" width=15></td>
87
		    <td width="100%" background="images/bg_action_norm.gif"><%Call RenderActionBar(parRtag_id,parPv_id)%></td>
88
		    <td width="1%" background="images/bg_action_norm.gif"><IMG height=1 src="images/spacer.gif" width=15></td>
89
		  </tr>
90
          <tr>
91
            <td background="images/bg_lght_gray.gif"><IMG height="45" src="images/spacer.gif" width=1></td>
92
            <td background="images/bg_lght_gray.gif"><%Call RenderStatus(parRtag_id,parPv_id)%></td>
93
            <td background="images/bg_lght_gray.gif">&nbsp;</td>
94
          </tr>
95
		  <tr>
96
		    <td background="images/bg_lght_gray.gif">&nbsp;</td>
97
		    <td valign="bottom" background="images/bg_lght_gray.gif">
98
		      <table width="100" border="0" cellspacing="0" cellpadding="0">
99
		        <tr>
100
		          <td><IMG height="1" src="images/spacer.gif" width="0" alt="tab-left-margin" ></td>
101
		          <td>
102
				  <!-- TABS ------------------------------------->
103
				  <%Call Generate_Tab_Menu ( TABarray1, "Runtime", "orange" )%>
104
				  </td>
105
		        </tr>
106
		      </table>
107
		    </td>
108
		    <td background="images/bg_lght_gray.gif">&nbsp;</td>
109
		  </tr>
110
		  <tr>
111
		    <td background="images/lbox_bg_orange.gif"><IMG height=35 src="images/spacer.gif" width=1></td>
112
		    <td background="images/lbox_bg_orange.gif">
113
			<!-- TAB ACTION BUTTONS ------------------------------------->
114
			<%Call Action_Buttons ( "Runtime Dependencies" )%>
115
			</td>
116
		    <td background="images/lbox_bg_orange.gif">&nbsp;</td>
117
		  </tr>
118
		  <tr>
119
		    <td></td>
120
		    <td valign="top">
121
			<!-- DETAILS ------------------------------------------------->
122
			<br>
123
                        <span class="body_colb">Runtime Dependencies</span><br>
124
                        <table width="100%" border="0" cellspacing="1" cellpadding="3">
125
                          <tr>
126
                            <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field"></td>
127
                            <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Product&nbsp;&nbsp;</td>
128
                            <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Version&nbsp;&nbsp;</td>
129
                            <td background="images/bg_form_lightbluedark.gif" nowrap width="100%" class="form_field">Comments</td>
130
							<td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">URL</td>
131
							<td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field" align="center">Added</td>
132
                            <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field"></td>
133
                          </tr>
134
                          <%Set rsTemp = OraDatabase.DbCreateDynaset( Get_Runtime_Dependencies ( parPv_id ), cint(0))%>
135
                          <%If rsTemp.RecordCount < 1 Then%>
136
                          <tr>
137
                            <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
138
                            <td background="images/bg_form_lightgray.gif" nowrap>&nbsp;</td>
139
                            <td background="images/bg_form_lightgray.gif" class="form_item">&nbsp;</td>
140
                            <td background="images/bg_form_lightgray.gif" class="form_item">&nbsp;</td>
141
							<td background="images/bg_form_lightgray.gif" class="form_item">&nbsp;</td>
142
							<td background="images/bg_form_lightgray.gif" class="form_item">&nbsp;</td>
143
                            <td background="images/bg_form_lightgray.gif" class="form_item">&nbsp;</td>
144
                          </tr>
145
                          <%End If%>
146
                          <%While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))%>
147
                          <tr>
148
						    <%If (pkgInfoHash.Item("dlocked") = "N") OR (pkgInfoHash.Item("dlocked") = "R") Then%>
5590 dpurdie 149
                            	<td align="center" nowrap background="images/bg_form_lightgray.gif"><a href="javascript:;" onClick="MM_openVixIFrame('_wform_update_runtime_dependency.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&rtd_id=<%=rsTemp("rtd_id")%>','Update Runtime Dependency')"><img src="images/i_edit.gif" alt="Edit" width="12" height="12" hspace="3" vspace="3" border="0"></a></td>
5357 dpurdie 150
							<%Else%>
151
								<td align="center" nowrap background="images/bg_form_lightgray.gif"><img src="images/i_edit_disable.gif" alt="Edit disabled." width="12" height="12" hspace="3" vspace="3" border="0"></td>
152
							<%End If%>
153
                            <td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsTemp("pkg_name")%></td>
154
                            <td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsTemp("pkg_version")%></td>
155
                            <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=rsTemp("rtd_comments")%></td>
156
							<td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%If NOT IsNull(rsTemp("rtd_url")) Then Response.write "<a href='http://"& rsTemp("rtd_url") &"' target='_blank'><img src='images/i_url.gif' width='15' height='15' hspace='3' vspace='3' border='0' alt='"& rsTemp("rtd_url") &"'></a>"%></td>
6612 dpurdie 157
							<td nowrap background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=DisplayDate(rsTemp("mod_date"))%> by <%=emailField(enum_imgUser & rsTemp("full_name") ,rsTemp("user_email"))%></td>
5357 dpurdie 158
							<%If pkgInfoHash.Item("dlocked") = "N" OR (pkgInfoHash.Item("dlocked") = "R")  Then%>
159
                            	<td align="center" background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="_remove_runtime_dependency.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&rtd_id=<%=rsTemp("rtd_id")%>" onClick="return vixConfirmDelete('this Runtime Dependency');"><img src="images/i_delete.gif" alt="Remove from list." width="13" height="12" hspace="3" border="0"></a></td>
160
							<%Else%>
161
								<td align="center" background="images/bg_form_lightgray.gif" class="form_item" valign="top"><img src="images/i_delete_disable.gif" alt="Remove disabled." width="13" height="12" hspace="3" border="0"></td>
162
							<%End If%>
163
                          </tr>
164
                          <%rsTemp.MoveNext
165
						  WEnd
166
						  rsTemp.Close
167
						  Set rsTemp = nothing%>
168
                        </table>
169
                        <!------------------------------------------------------------>
170
           <br><br>
171
			<!-- END DETAILS ------------------------------------------------->
172
			</td>
173
		    <td>&nbsp;</td>
174
		  </tr>
175
		</table>
176
		<!-- END MIDDLE -------->
177
		</td>
178
	</tr>
179
</table>
180
<!-- FOOTER -->
181
<!--#include file="_footer.asp"-->
182
</body>
183
</html>