| Line 7... |
Line 7... |
| 7 |
<%
|
7 |
<%
|
| 8 |
'------------ Variable Definition -------------
|
8 |
'------------ Variable Definition -------------
|
| 9 |
Dim parFLpkg_version, parFLuser_name
|
9 |
Dim parFLpkg_version, parFLuser_name
|
| 10 |
Dim imgLock, fieldRelease_Date, fieldReleased_By, fieldDownloadFullReleaseNotes
|
10 |
Dim imgLock, fieldRelease_Date, fieldReleased_By, fieldDownloadFullReleaseNotes
|
| 11 |
Dim rsVB
|
11 |
Dim rsVB
|
| 12 |
Dim rowColor, imgPointer
|
12 |
Dim imgPointer
|
| 13 |
Dim URLstring
|
13 |
Dim URLstring
|
| 14 |
Dim pvidName
|
14 |
Dim pvidName
|
| 15 |
Dim idxName
|
15 |
Dim idxName
|
| 16 |
Dim filterInUse
|
16 |
Dim filterInUse
|
| 17 |
Dim hideRipple
|
17 |
Dim hideRipple
|
| 18 |
Dim rippleFilter
|
18 |
Dim rippleFilter
|
| 19 |
Dim DestroyPackage
|
19 |
Dim DestroyPackage
|
| 20 |
Dim CanDestroyProjectPackage
|
20 |
Dim CanDestroyProjectPackage
|
| 21 |
Dim CanDestroyPackage
|
21 |
Dim CanDestroyPackage
|
| 22 |
'------------ Constants Declaration -----------
|
22 |
'------------ Constants Declaration -----------
|
| 23 |
Const IMGBG_ROW_HI = "background='images/bg_row_hi.gif'"
|
- |
|
| 24 |
Const IMGBG_ROW = "bgcolor='#FFFFFF'"
|
- |
|
| 25 |
Const IMG_PONTER = "<img src='images/i_pointer.gif' width='6' height='11' hspace='3'>"
|
23 |
Const IMG_PONTER = "<img src='images/i_pointer.gif' width='6' height='11' hspace='3'>"
|
| 26 |
Const IMG_OFFICIAL = "<img src='images/i_locked.gif' width='7' height='10' hspace='5' vspace='2' title='Package has been Released'>"
|
24 |
Const IMG_OFFICIAL = "<img src='images/i_locked.gif' width='7' height='10' hspace='5' vspace='2' title='Package has been Released'>"
|
| 27 |
Const IMG_PENDING = "<img src='icons/i_pending.gif' width='7' height='10' hspace='5' vspace='2' title='Package pending autobuild'>"
|
25 |
Const IMG_PENDING = "<img src='icons/i_pending.gif' width='7' height='10' hspace='5' vspace='2' title='Package pending autobuild'>"
|
| 28 |
Const IMG_NOT_OFFICIAL = "<img src='images/spacer.gif' width='7' height='10' hspace='5' vspace='2' title='Package not yet released'>"
|
26 |
Const IMG_NOT_OFFICIAL = "<img src='images/spacer.gif' width='7' height='10' hspace='5' vspace='2' title='Package not yet released'>"
|
| 29 |
Const IMG_NOT_BUILDABLE = "<img src='icons/s_unbuildable.png' width='14' height='14' hspace='5' vspace='0' title='Package is not buildable'>"
|
27 |
Const IMG_NOT_BUILDABLE = "<img src='icons/s_unbuildable.png' width='14' height='14' hspace='5' vspace='0' title='Package is not buildable'>"
|
| Line 119... |
Line 117... |
| 119 |
End If
|
117 |
End If
|
| 120 |
Next
|
118 |
Next
|
| 121 |
|
119 |
|
| 122 |
End Function
|
120 |
End Function
|
| 123 |
'-----------------------------------------------------------------------------------------------------------------------------------
|
121 |
'-----------------------------------------------------------------------------------------------------------------------------------
|
| 124 |
Function Set_Row_Style ( sClass, pvid )
|
- |
|
| 125 |
Set_Row_Style = "class='pointer selectVersion "& sClass &"' data-pvid='" & pvid &"'"
|
- |
|
| 126 |
End Function
|
- |
|
| 127 |
'-----------------------------------------------------------------------------------------------------------------------------------
|
- |
|
| 128 |
%>
|
122 |
%>
|
| 129 |
<!--#include file="_jquery_includes.asp"-->
|
123 |
<!--#include file="_jquery_includes.asp"-->
|
| 130 |
<script language="JavaScript" type="text/JavaScript">
|
124 |
<script language="JavaScript" type="text/JavaScript">
|
| 131 |
function useThisVersion (pkgName, pkgVersion, rtagId, oldPvid, newPvid) {
|
125 |
function useThisVersion (pkgName, pkgVersion, rtagId, oldPvid, newPvid) {
|
| 132 |
console.log("useThisVersion:", pkgName, pkgVersion);
|
126 |
console.log("useThisVersion:", pkgName, pkgVersion);
|
| Line 171... |
Line 165... |
| 171 |
// oldPVID - PVID Deleted
|
165 |
// oldPVID - PVID Deleted
|
| 172 |
function scrollToPvId() {
|
166 |
function scrollToPvId() {
|
| 173 |
var oldpvid = Number('<%=parOLDpv_id%>');
|
167 |
var oldpvid = Number('<%=parOLDpv_id%>');
|
| 174 |
var pvid = Number('<%=parPv_id%>');
|
168 |
var pvid = Number('<%=parPv_id%>');
|
| 175 |
var idx = Number('<%=parIndex%>');
|
169 |
var idx = Number('<%=parIndex%>');
|
| 176 |
var els;
|
170 |
var els = $();
|
| 177 |
|
171 |
|
| 178 |
if (idx > 0) {
|
172 |
if (idx > 0) {
|
| 179 |
els = document.getElementById('IDX_' + idx.toString() );
|
173 |
els = $('[data-idx='+idx+']');
|
| 180 |
if (!els) {
|
174 |
if (els.length==0) {
|
| 181 |
idx = idx -1;
|
175 |
els = $('[data-idx='+(idx-1)+']');
|
| 182 |
els = document.getElementById('IDX_' + idx.toString() );
|
- |
|
| 183 |
}
|
176 |
}
|
| 184 |
}
|
177 |
}
|
| 185 |
|
178 |
|
| 186 |
if (!els) els = document.getElementById('PVID_' + pvid.toString() );
|
179 |
if (els.length==0) els = $('[data-pvid='+pvid+']');
|
| 187 |
if (!els)els = document.getElementById('PVID_' + oldpvid.toString() );
|
180 |
if (els.length==0) els = $('[data-pvid='+oldpvid+']');
|
| - |
|
181 |
if (els.length) {
|
| 188 |
if (els) els.scrollIntoView();
|
182 |
els[0].scrollIntoView();
|
| - |
|
183 |
els.addClass('highlightRow');
|
| - |
|
184 |
}
|
| 189 |
}
|
185 |
}
|
| 190 |
|
186 |
|
| 191 |
// Set the height of the two areas in the History Window
|
187 |
// Set the height of the two areas in the History Window
|
| 192 |
// Note: Divs may not always be available.
|
188 |
// Note: Divs may not always be available.
|
| 193 |
function setLayerHeight () {
|
189 |
function setLayerHeight () {
|
| Line 263... |
Line 259... |
| 263 |
|
259 |
|
| 264 |
});
|
260 |
});
|
| 265 |
|
261 |
|
| 266 |
//# sourceURL=_version_browser_1.asp
|
262 |
//# sourceURL=_version_browser_1.asp
|
| 267 |
</script>
|
263 |
</script>
|
| - |
|
264 |
<style type="text/css">
|
| - |
|
265 |
table.stdBrown {border:inherit}
|
| - |
|
266 |
table.stdBrown tbody tr.highlightRow {background-color : #FAF3d9}
|
| - |
|
267 |
table.stdBrown tbody tr {vertical-align:top}
|
| - |
|
268 |
table.stdBrown tbody tr td {padding-right: 2px}
|
| - |
|
269 |
table.stdBrown thead th {background-color : #cac5b8;padding-right: 0em;vertical-align:top}
|
| - |
|
270 |
table.stdBrown>tbody>tr>:nth-child(1) {background-color: #cac5b8; padding-right: 0em;}
|
| - |
|
271 |
table.stdBrown>tbody>tr>:nth-child(2) {padding-right: 0em;}
|
| - |
|
272 |
.pkgTitle {background-color : #cac5b8}
|
| 268 |
|
273 |
}
|
| - |
|
274 |
</style>
|
| 269 |
<!--------------- ACTION BUTTONS -------------------------->
|
275 |
<!--------------- ACTION BUTTONS -------------------------->
|
| 270 |
<div style="width:100vw;">
|
276 |
<div style="width:100vw;">
|
| 271 |
<form name="filter" method="get" action="<%=scriptName%>">
|
277 |
<form name="filter" method="get" action="<%=scriptName%>">
|
| 272 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
278 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 273 |
<tr>
|
279 |
<tr>
|
| Line 322... |
Line 328... |
| 322 |
</tr>
|
328 |
</tr>
|
| 323 |
</table>
|
329 |
</table>
|
| 324 |
<!--------------------- CAPTION ---------------------------->
|
330 |
<!--------------------- CAPTION ---------------------------->
|
| 325 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
331 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 326 |
<tr>
|
332 |
<tr>
|
| 327 |
<td class="lbox_ttl_b" background="images/bg_action_dark.gif" align="center"><%=sPkg_Name%></td>
|
333 |
<td class="lbox_ttl_b pkgTitle" align="center"><%=sPkg_Name%></td>
|
| 328 |
</tr>
|
334 |
</tr>
|
| 329 |
</table>
|
335 |
</table>
|
| 330 |
<!------------------ VERSION LIST -------------------------->
|
336 |
<!------------------ VERSION LIST -------------------------->
|
| 331 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
337 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 332 |
<tr>
|
338 |
<tr>
|
| 333 |
<td class='bg_dialog'>
|
339 |
<td class='bg_dialog'>
|
| 334 |
<div id="LayerVersions" style="height: 350px; width:100vw; overflow: auto;" name="LayerVersions">
|
340 |
<div id="LayerVersions" style="height: 350px; width:100vw; overflow: auto;" name="LayerVersions">
|
| 335 |
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
341 |
<table width="100%" border="0" cellspacing="1" cellpadding="2" class=stdBrown>
|
| 336 |
<thead>
|
342 |
<thead>
|
| 337 |
<th width="1" nowrap background="images/bg_action_dark.gif"><img src="images/spacer.gif" width="15" height="10"></th>
|
343 |
<th width="1" nowrap></th>
|
| 338 |
<th width="1" nowrap background="images/bg_action_dark.gif"> </th>
|
344 |
<th width="1" nowrap> </th>
|
| 339 |
<th width="1" valign="top" nowrap background="images/bg_action_dark.gif" class="form_field">Version <br><input name="FLpkg_version" type="text" class="form_ifilter" value="<%=parFLpkg_version%>" size="15"></th>
|
345 |
<th width="1" nowrap>Version <br><input name="FLpkg_version" type="text" class="form_ifilter" value="<%=parFLpkg_version%>" size="15"></th>
|
| 340 |
<th width="1" valign="top" nowrap background="images/bg_action_dark.gif" class="form_field">Last Mod. Date </th>
|
346 |
<th width="1" nowrap>Last Mod. Date </th>
|
| 341 |
<th width="100%" valign="top" nowrap background="images/bg_action_dark.gif" class="form_field">Reason for this version</th>
|
347 |
<th width="100%" nowrap>Reason for this version</th>
|
| 342 |
<th width="1" valign="top" nowrap background="images/bg_action_dark.gif" class="form_field">Last Modified <br><input name="FLuser_name" type="text" class="form_ifilter" value="<%=parFLuser_name%>" size="15"></th>
|
348 |
<th width="1" nowrap>Last Modified <br><input name="FLuser_name" type="text" class="form_ifilter" value="<%=parFLuser_name%>" size="15"></th>
|
| 343 |
<th width="1" nowrap background="images/bg_action_dark.gif"></th>
|
349 |
<th width="1" nowrap></th>
|
| 344 |
<th width="1" nowrap background="images/bg_action_dark.gif"></th>
|
350 |
<th width="1" nowrap></th>
|
| 345 |
</thead>
|
351 |
</thead>
|
| 346 |
<%
|
352 |
<%
|
| 347 |
Dim aVersions, lastRow, i, objSortHelper, idx
|
353 |
Dim aVersions, lastRow, i, objSortHelper, idx, rowClass
|
| 348 |
|
- |
|
| - |
|
354 |
|
| 349 |
Set rsVB = OraDatabase.DbCreateDynaset( Get_All_Versions ( parPkg_id ), cint(0))
|
355 |
Set rsVB = OraDatabase.DbCreateDynaset( Get_All_Versions ( parPkg_id ), cint(0))
|
| 350 |
|
356 |
|
| 351 |
' Descending order
|
357 |
' Descending order
|
| 352 |
If rsVB.RecordCount > 0 Then
|
358 |
If rsVB.RecordCount > 0 Then
|
| 353 |
aVersions = rsVB.GetRows()
|
359 |
aVersions = rsVB.GetRows()
|
| Line 356... |
Line 362... |
| 356 |
Set objSortHelper = New SortHelper
|
362 |
Set objSortHelper = New SortHelper
|
| 357 |
|
363 |
|
| 358 |
|
364 |
|
| 359 |
' Sort versions
|
365 |
' Sort versions
|
| 360 |
Call objSortHelper.VersionSort( aVersions, 0, lastRow, rsVB.FieldIndex("pkg_version") )
|
366 |
Call objSortHelper.VersionSort( aVersions, 0, lastRow, rsVB.FieldIndex("pkg_version") )
|
| 361 |
|
- |
|
| 362 |
CanDestroyProjectPackage = canShowControlInProject ( "DestroyPackage" )
|
367 |
CanDestroyProjectPackage = canShowControlInProject ( "DestroyPackage" )
|
| 363 |
|
368 |
|
| 364 |
' Descending order
|
369 |
' Descending order
|
| 365 |
idx = 0
|
370 |
idx = 0
|
| 366 |
For i = lastRow To 0 Step -1
|
371 |
For i = lastRow To 0 Step -1
|
| 367 |
idx = idx + 1
|
372 |
idx = idx + 1
|
| 368 |
|
373 |
|
| 369 |
%>
|
374 |
%>
|
| 370 |
<% ' Highlight row case
|
375 |
<% ' Highlight row case
|
| 371 |
rowColor = IMGBG_ROW
|
- |
|
| 372 |
imgPointer = ""
|
376 |
imgPointer = ""
|
| - |
|
377 |
rowClass = "pointer selectVersion "
|
| 373 |
If CStr( aVersions( rsVB.FieldIndex("pv_id"), i ) ) = parPv_id Then
|
378 |
If CStr( aVersions( rsVB.FieldIndex("pv_id"), i ) ) = parPv_id Then
|
| 374 |
rowColor = IMGBG_ROW_HI
|
379 |
rowClass = rowClass & " highlightRow"
|
| 375 |
imgPointer = IMG_PONTER
|
380 |
imgPointer = IMG_PONTER
|
| 376 |
End If
|
381 |
End If
|
| 377 |
|
382 |
|
| 378 |
' Official/Unofficial case
|
383 |
' Official/Unofficial case
|
| 379 |
imgLock = IMG_NOT_OFFICIAL
|
384 |
imgLock = IMG_NOT_OFFICIAL
|
| Line 397... |
Line 402... |
| 397 |
End If
|
402 |
End If
|
| 398 |
|
403 |
|
| 399 |
pvidName = "PVID_"& aVersions( rsVB.FieldIndex("pv_id"), i )
|
404 |
pvidName = "PVID_"& aVersions( rsVB.FieldIndex("pv_id"), i )
|
| 400 |
idxName = "IDX_" & idx
|
405 |
idxName = "IDX_" & idx
|
| 401 |
If aVersions( rsVB.FieldIndex("is_patch"), i ) = "Y" Then
|
406 |
If aVersions( rsVB.FieldIndex("is_patch"), i ) = "Y" Then
|
| 402 |
URLstring = "isaPatch"
|
407 |
rowClass = rowClass & " isaPatch"
|
| 403 |
Else
|
- |
|
| 404 |
URLstring = ""
|
- |
|
| 405 |
End If
|
408 |
End If
|
| 406 |
|
409 |
|
| 407 |
' User can try to delete package iff
|
410 |
' User can try to delete package iff
|
| 408 |
' Have suffiecient access (unusual)
|
411 |
' Have suffiecient access (unusual)
|
| 409 |
' They created it or own it
|
412 |
' They created it or own it
|
| Line 432... |
Line 435... |
| 432 |
" <img src='icons/i_destroy_package_sml.gif' width='15' height='15' border='0' ><span>"
|
435 |
" <img src='icons/i_destroy_package_sml.gif' width='15' height='15' border='0' ><span>"
|
| 433 |
Else
|
436 |
Else
|
| 434 |
DestroyPackage = ""
|
437 |
DestroyPackage = ""
|
| 435 |
End If
|
438 |
End If
|
| 436 |
%>
|
439 |
%>
|
| 437 |
<tr id='<%=idxName%>' data-idx='<%=idx%>' <%=Set_Row_Style ( URLstring, CStr( aVersions( rsVB.FieldIndex("pv_id"), i ) ) )%>>
|
440 |
<tr id='<%=idxName%>' data-idx='<%=idx%>' data-pvid='<%=CStr( aVersions( rsVB.FieldIndex("pv_id"), i ) )%>' class='<%=rowClass%>'>
|
| 438 |
<td align="right" background="images/bg_action_dark.gif"><%=imgPointer%><span id="<%=pvidName%>"></span></td>
|
441 |
<td align="center"><%=imgPointer%></td>
|
| 439 |
<td align="center" valign="top" <%=rowColor%>><%=imgLock%></td>
|
442 |
<td align="center" ><%=imgLock%></td>
|
| 440 |
<td valign="top" nowrap <%=rowColor%>><a href="<%=URLstring%>" class="txt_linked"><%=aVersions( rsVB.FieldIndex("pkg_version"), i )%></a></td>
|
443 |
<td nowrap ><a class="txt_linked"><%=aVersions( rsVB.FieldIndex("pkg_version"), i )%></a></td>
|
| 441 |
<td valign="top" nowrap <%=rowColor%> class="form_item"><%=fieldRelease_Date%></td>
|
444 |
<td nowrap ><%=fieldRelease_Date%></td>
|
| 442 |
<td valign="top" <%=rowColor%> class="form_item"><%=NewLine_To_BR ( To_HTML( aVersions( rsVB.FieldIndex("comments"), i ) ) )%></td>
|
445 |
<td ><%=NewLine_To_BR ( To_HTML( aVersions( rsVB.FieldIndex("comments"), i ) ) )%></td>
|
| 443 |
<td valign="top" nowrap <%=rowColor%> class="form_item"><%=fieldReleased_By%></td>
|
446 |
<td nowrap ><%=fieldReleased_By%></td>
|
| 444 |
<td align="center" valign="top" class="nogo" <%=rowColor%>><%=fieldDownloadFullReleaseNotes%></td>
|
447 |
<td align="center" class="nogo" ><%=fieldDownloadFullReleaseNotes%></td>
|
| 445 |
<td align="center" valign="top" class="nogo" <%=rowColor%>><%=DestroyPackage%></td>
|
448 |
<td align="center" class="nogo" ><%=DestroyPackage%></td>
|
| 446 |
</tr>
|
449 |
</tr>
|
| 447 |
<%
|
450 |
<%
|
| 448 |
Next
|
451 |
Next
|
| 449 |
End If
|
452 |
End If
|
| 450 |
%>
|
453 |
%>
|
| Line 459... |
Line 462... |
| 459 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
462 |
<input type="hidden" name="pv_id" value="<%=parPv_id%>">
|
| 460 |
<input type="hidden" name="filter_reset" value="">
|
463 |
<input type="hidden" name="filter_reset" value="">
|
| 461 |
</form>
|
464 |
</form>
|
| 462 |
</div>
|
465 |
</div>
|
| 463 |
|
466 |
|
| 464 |
|
- |
|
| 465 |
|
467 |
|