Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|				          Patches		             |
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
%>
26
<!--#include file="_access_control_general.asp"-->
27
<%
28
'------------ Variable Definition -------------
29
Dim patchRecCount
30
Dim rsTemp
31
Dim dOptionsFilter
32
Dim	rsQry
33
'------------ Constants Declaration -----------
34
Const LIMG_FILTER_ON = "<img src='images/i_data_table.gif' border='0' align='absmiddle' hspace='0' title='Filter in use.'>"
35
Const LIMG_FILTER_OFF = "<img src='images/i_data_table_off.gif' border='0' align='absmiddle' hspace='0' title='Filter not in use.'>"
36
Const LIMG_DROP_DOWN_ARROW = "<img src='images/i_drop_down_arrow.gif' width='5' height='15' hspace='1' border='0' align='absmiddle'>"
37
Const LMAX_ROWS = 50
38
'------------ Variable Init -------------------
39
Set dOptionsFilter = CreateObject("Scripting.Dictionary")
40
'----------------------------------------------
41
%>
42
<%
43
'------------------------------------------------------------------------------------------------------------------------------------
44
Function PatchIcon ( cIsPatch, cIsPatchObsolete )
45
	If IsNull(cIsPatch) Then
46
		PatchIcon = "<img src='images/rex_images/ext_blank.gif' width='16' height='16' border='0' align='absmiddle'>"
47
	Else
48
		If IsNull(cIsPatchObsolete) Then
49
			PatchIcon = "<img src='images/i_patch_small.gif' width='16' height='16' border='0' align='absmiddle' >"
50
		Else
51
			PatchIcon = "<img src='images/i_patch_small_obsolete.gif' width='16' height='16' border='0' align='absmiddle' title='Patch is obsolete'>"
52
		End If
53
	End If
54
End Function
55
'-----------------------------------------------------------------------------------------------------------------
56
Sub GetOptionsFilterValues ( outOptionsFilter )
57
	Dim Val, aValues
58
 
59
	If (Request("btn") <> "") Then
60
 
61
		If (Request("optionsfilter") <> "") Then
62
			' Get values from query string
63
			aValues = Split( Replace(Request("optionsfilter"), " ", ""), "," )
64
 
65
			For Each Val In aValues
66
 
67
				outOptionsFilter.Item (CStr( Val )) = Val
68
 
69
			Next
70
 
71
			' Store current setting in cookie
72
			Response.Cookies(enum_RELMGR_COOKIE_DOMAIN)(COOKIE_PATCH_OPTIONS_FILTER) = Replace(Request("optionsfilter"), " ", "")
73
		Else
74
			' Empty cookie
75
			Response.Cookies(enum_RELMGR_COOKIE_DOMAIN)(COOKIE_PATCH_OPTIONS_FILTER) = ""
76
		End If
77
 
78
 
79
	ElseIf Request.Cookies(enum_RELMGR_COOKIE_DOMAIN)(COOKIE_PATCH_OPTIONS_FILTER) <> "" Then
80
 
81
		' Get values from cookie
82
		aValues = Split( Replace( Request.Cookies(enum_RELMGR_COOKIE_DOMAIN)(COOKIE_PATCH_OPTIONS_FILTER), " ", ""), ",") 
83
 
84
		For Each Val In aValues
85
 
86
			outOptionsFilter.Item (CStr( Val )) = Val
87
 
88
		Next
89
 
90
	End If
91
 
92
End Sub
93
'-----------------------------------------------------------------------------------------------------------------
94
Function GetIsOptionsFilterInUseIcon()
95
	GetIsOptionsFilterInUseIcon = LIMG_FILTER_OFF & LIMG_DROP_DOWN_ARROW
96
 
97
	If dOptionsFilter.Count > 0 Then
98
		GetIsOptionsFilterInUseIcon = LIMG_FILTER_ON & LIMG_DROP_DOWN_ARROW
99
	End If
100
 
101
End Function
102
'-----------------------------------------------------------------------------------------------------------------
103
Function GetIsOptionsFilterChecked( nFilterId )
104
 
105
	If dOptionsFilter.Exists ( CStr(nFilterId)  ) Then
106
		GetIsOptionsFilterChecked = "checked"
107
	End If
108
 
109
End Function
110
'------------------------------------------------------------------------------------------------------------------------------------
111
%>
112
<%
113
'------------------------- MAIN LINE ---------------------------
114
 
115
Call GetOptionsFilterValues ( dOptionsFilter )
116
 
117
'---------------------------------------------------------------
118
%>
119
<html>
120
<title><%=Title(Request("rtag_id"))%></title>
121
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
122
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
123
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
124
<link rel="stylesheet" href="images/navigation.css" type="text/css">
125
<script language="JavaScript" src="images/common.js"></script>
126
<script language="JavaScript" src="scripts/remote_scripting.js"></script>
5085 dpurdie 127
<!--#include file="_jquery_includes.asp"-->
119 ghuddy 128
 
129
<!-- DROPDOWN MENUS -->
130
<!--#include file="_menu_def.asp"-->
131
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
132
</head>
133
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
134
<!-- MENU LAYERS -------------------------------------->
135
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"> 
136
  <!----------------------------------------------------->
137
</div>
138
<!-- HEADER -->
139
<!--#include file="_header.asp"-->
140
<!-- BODY ---->
141
<table width="100%" border="0" cellspacing="0" cellpadding="0">
142
	<tr> 
143
		<td valign="top" width="1" background="images/bg_bage.gif">
144
		<!-- LEFT -->
145
		<!--#include file="_environment.asp"-->
146
		</td>
147
		<td width="1" bgcolor="#999999"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
148
		<td valign="top" width="100%">
149
		<!-- MIDDLE -->
150
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
151
		  <tr>
152
		    <td width="1%" background="images/bg_action_norm.gif"><IMG height=35 src="images/spacer.gif" width=15></td>
185 brianf 153
		    <td width="100%" background="images/bg_action_norm.gif"><%Call RenderActionBar(parRtag_id,parPv_id)%></td>
119 ghuddy 154
		    <td width="1%" background="images/bg_action_norm.gif"><IMG height=1 src="images/spacer.gif" width=15></td>
155
		  </tr>
183 brianf 156
          <tr>
157
            <td background="images/bg_lght_gray.gif"><IMG height="45" src="images/spacer.gif" width=1></td>
187 brianf 158
            <td background="images/bg_lght_gray.gif"><%Call RenderStatus(parRtag_id,parPv_id)%></td>
183 brianf 159
            <td background="images/bg_lght_gray.gif">&nbsp;</td>
160
          </tr>
119 ghuddy 161
		  <tr>
162
		    <td background="images/bg_lght_gray.gif">&nbsp;</td>
163
		    <td valign="bottom" background="images/bg_lght_gray.gif">
164
		      <table width="100" border="0" cellspacing="0" cellpadding="0">
165
		        <tr>
4687 dpurdie 166
		          <td><IMG height="1" src="images/spacer.gif" width="0" alt="tab-left-margin" ></td>
119 ghuddy 167
		          <td>
168
				  <!-- TABS ------------------------------------->
169
				  <%Call Generate_Tab_Menu ( TABarray1, "Patches", "orange" )%>
170
				  </td>
171
		        </tr>
172
		      </table>
173
		    </td>
174
		    <td background="images/bg_lght_gray.gif">&nbsp;</td>
175
		  </tr>
176
		  <tr>
177
		    <td background="images/lbox_bg_orange.gif"><IMG height=35 src="images/spacer.gif" width=1></td>
178
		    <td background="images/lbox_bg_orange.gif">
179
			<!-- TAB ACTION BUTTONS ------------------------------------->
180
			<%Call Action_Buttons ( "Patches" )%> 
181
			</td>
182
		    <td background="images/lbox_bg_orange.gif">&nbsp;</td>
183
		  </tr>
184
		  <tr>
185
		    <td></td>
186
		    <td valign="top">
187
			<!-- DETAILS ------------------------------------------------->
188
 
189
 
190
			<br>
191
			<%If CStr(pkgInfoHash.Item("pkg_state")) = CStr( enumPKG_STATE_NEW_PATCH ) Then%>
192
			<%Call DisplayInfo ( "NEW_PATCH_AVAILABLE", "100%" )%>
193
			<%End If%>
194
			<%
195
			OraDatabase.Parameters.Add "PV_ID", 	parPv_id, ORAPARM_INPUT, ORATYPE_NUMBER
196
 
197
			If (GetIsOptionsFilterChecked(enumPATCH_HIDE_OBSOLETE) <> "") Then
198
				OraDatabase.Parameters.Add "HIDE_OBSOLETE", 	"Y", ORAPARM_INPUT, ORATYPE_CHAR
199
			Else
200
				OraDatabase.Parameters.Add "HIDE_OBSOLETE", 	"N", ORAPARM_INPUT, ORATYPE_CHAR
201
			End If
202
 
203
			Set rsTemp = OraDatabase.DbCreateDynaset( GetQuery("Patches.sql"), cint(0))
204
 
205
			OraDatabase.Parameters.Remove "PV_ID"
206
			OraDatabase.Parameters.Remove "HIDE_OBSOLETE"
207
 
208
			patchRecCount = rsTemp.RecordCount
209
			%>
210
			<!-- OPTIONS FILTER +++++++++++++++++++++++++++++++++++++++++++ -->		
211
			<table width="100%"  border="0" cellspacing="0" cellpadding="0">
212
			<form name="FornName" method="get" action="<%=ScriptName%>">
213
			<input type="hidden" name="pv_id" value="<%=parPv_Id%>">
214
			<input type="hidden" name="rtag_id" value="<%=parRtag_Id%>">
215
	            <tr>
216
				<td width="100%"></td>
217
				<td width="1" align="right">
218
				<fieldset>
219
				<legend><a href="javascript:;" class="body_scol" onClick="ToggleDisplay('divOptionsFilter');" ><%=GetIsOptionsFilterInUseIcon() %>&nbsp;Options...</a></legend>			
220
				    <div name="divOptionsFilter" id="divOptionsFilter" class="body_txt" style="display:none;">
221
					<br>
222
					      <table width="100%"  border="0" cellspacing="1" cellpadding="3">
223
	                        <tr>
224
	                          <td width="1" background="images/bg_action_norm.gif"><input name="optionsfilter" type="checkbox" value="<%=enumPATCH_SHOW_ALL%>" <%=GetIsOptionsFilterChecked(enumPATCH_SHOW_ALL)%>></td>
225
	                          <td width="100%" nowrap background="images/bg_action_norm.gif" class="form_field">Show All</td>
226
	                        </tr>
227
	                        <tr>
228
	                          <td background="images/bg_action_norm.gif"><input type="checkbox" name="optionsfilter" value="<%=enumPATCH_HIDE_OBSOLETE%>" <%=GetIsOptionsFilterChecked(enumPATCH_HIDE_OBSOLETE)%>></td>
229
	                          <td nowrap background="images/bg_action_norm.gif" class="form_field">Hide Obsolete</td>
230
	                        </tr>
231
							<tr>
232
	                          <td background="images/bg_action_norm.gif">&nbsp;</td>
233
	                          <td background="images/bg_action_norm.gif"><input name="btn" type="submit" class="form_btn" id="btn" value="Apply"></td>
234
	                        </tr>
235
	                      </table>
236
 
237
				        </div>
238
				</fieldset>
239
				</td></tr>
240
			</form>
241
            </table>
242
			<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
243
			<%
244
			' Shift Cursor Position
245
			If (GetIsOptionsFilterChecked(enumPATCH_SHOW_ALL) = "") AND (patchRecCount > 0) Then
246
				If patchRecCount > LMAX_ROWS Then
247
					rsTemp.MoveTo ( patchRecCount - LMAX_ROWS )
248
				End If
249
 
250
			End If
251
			%>
252
			<span class="body_colb">Patches</span><br>
253
 
254
                        <table width="100%" border="0" cellspacing="1" cellpadding="3">
255
                          <tr> 
256
						    <td align="center" background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Installation<br>Order</td>
257
                            <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field"></td>
258
                            <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Patch Version&nbsp;</td>
259
                			<td background="images/bg_form_lightbluedark.gif" nowrap width="100%" class="form_field">Reason for this version</td>
260
							<td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field">Release Date</td>
261
                            <td background="images/bg_form_lightbluedark.gif" nowrap width="1%" class="form_field"></td>
262
                          </tr>
263
 
264
                          <%If patchRecCount < 1 Then%>
265
                          <tr> 
266
						  	<td background="images/bg_form_lightgray.gif" class="form_item">&nbsp;</td>
267
                            <td background="images/bg_form_lightgray.gif" class="form_item">&nbsp;</td>
268
                            <td background="images/bg_form_lightgray.gif" class="form_item">&nbsp;</td>
269
                            <td background="images/bg_form_lightgray.gif" class="form_item">&nbsp;</td>
270
                            <td background="images/bg_form_lightgray.gif" class="form_item">&nbsp;</td>
271
							<td background="images/bg_form_lightgray.gif" class="form_item">&nbsp;</td>
272
                          </tr>
273
                          <%End If%>
274
                          <%
275
						  While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
276
						  %>
277
 
278
						  <%
279
						  ' ---------- PATCH ---------- 
280
						  If Cstr(rsTemp("patch_id")) = "0" Then
281
						  %>
282
                          <tr>
283
						    <td align="center" nowrap background="images/bg_form_lightgray.gif" valign="top"><a href='javascript:;' onClick="MM_openBrWindow('_wform_patch_install_order.asp?patch_id=<%=rsTemp("ppatch_id")%>&pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>','InstallOrder','resizable=yes,width=400,height=250')" class="txt_linked" title="Change Install Order"><%=rsTemp("install_order")%></a></td>
284
							<td align="center" nowrap background="images/bg_form_lightgray.gif" valign="top"><%If rsTemp("dlocked") = "Y" Then%><%=imgLocked%><%End If%></td>
285
                            <td background="images/bg_form_lightgray.gif" nowrap valign="top"><a href="fixed_issues.asp?pv_id=<%=rsTemp("ppatch_id")%>&rtag_id=<%=parRtag_id%>" class="txt_linked"><%=PatchIcon ( rsTemp("is_patch"), rsTemp("is_obsolete") )%><%=rsTemp("pkg_version")%></a></td>
286
                            <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=NewLine_To_BR( To_HTML ( rsTemp("comments") ) )%><br><%=NewLine_To_BR( To_HTML ( rsTemp("obsolete_comments") ) )%></td>
287
                            <td background="images/bg_form_lightgray.gif" class="form_item" nowrap valign="top"><%=EuroDateTime(rsTemp("release_stamp"))%><%If NOT IsNull(rsTemp("release_stamp"))Then%> by <a href="mailto:<%=rsTemp("user_email")%>" class="txt_linked"><%=rsTemp("full_name")%></a><%End If%></td>
288
							<%If rsTemp("dlocked") = "N" Then%>
289
                            	<td align="center" background="images/bg_form_lightgray.gif" class="form_item" valign="top"><a href="_remove_patch.asp?pv_id=<%=parPv_id%>&rtag_id=<%=parRtag_id%>&patch_id=<%=rsTemp("ppatch_id")%>" onClick="return confirmDelete('this patch');"><img src="images/i_delete.gif" alt="Remove from list." width="13" height="12" hspace="3" border="0"></a></td>
290
							<%Else%>
291
								<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>
292
							<%End If%>
293
                          </tr>
294
 
295
						  <%
296
						  Else
297
						  ' ---------  DEPENDENCY ---------
298
						  %>
299
						  <tr>
300
						    <td align="center" nowrap background="images/bg_form_lightgray.gif"></td>
301
							<td align="center" nowrap background="images/bg_form_lightgray.gif"><%If rsTemp("dlocked") = "Y" Then%><%=imgLocked%><%End If%></td>
302
                            <td background="images/bg_form_lightgray.gif" nowrap valign="top"><IMG src="images/spacer.gif" width="20" align="absmiddle"><a href="fixed_issues.asp?pv_id=<%=rsTemp("patch_id")%>&rtag_id=<%=parRtag_id%>" class="txt_linked"><%=PatchIcon ( rsTemp("is_patch"), rsTemp("is_obsolete") )%><%=rsTemp("pkg_name") &" "& rsTemp("pkg_version")%></a></td>
303
                            <td background="images/bg_form_lightgray.gif" class="form_item" valign="top"><%=NewLine_To_BR( To_HTML ( rsTemp("comments") ) )%><br><%=NewLine_To_BR( To_HTML ( rsTemp("obsolete_comments") ) )%></td>
304
                            <td background="images/bg_form_lightgray.gif" class="form_item" nowrap valign="top"><%=EuroDateTime(rsTemp("release_stamp"))%><%If NOT IsNull(rsTemp("release_stamp"))Then%> by <a href="mailto:<%=rsTemp("user_email")%>" class="txt_linked"><%=rsTemp("full_name")%></a><%End If%></td>
305
                            <td align="center" background="images/bg_form_lightgray.gif" class="form_item" valign="top"></td>
306
                          </tr>
307
 
308
						  <%End If%>
309
 
310
 
311
                          <%rsTemp.MoveNext
312
						  WEnd
313
						  rsTemp.Close
314
						  Set rsTemp = nothing
315
 
316
						  %>
317
                        </table>
318
                        <!------------------------------------------------------------>
319
           <br><br>
320
			<!-- END DETAILS ------------------------------------------------->
321
			</td>
322
		    <td>&nbsp;</td>
323
		  </tr>
324
		</table>
325
		<!-- END MIDDLE -------->
326
		</td>
327
	</tr>
328
</table>
329
<!-- FOOTER -->
330
<!--#include file="_footer.asp"-->
331
</body>
332
</html>			
333
<%
334
Call Destroy_All_Objects
335
%>