Subversion Repositories DevTools

Rev

Rev 6874 | Rev 7288 | 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
'|                    ADD                            |
6
'|                 PACKAGES                          |
7
'|              OR DEPENDENCIES                      |
8
'=====================================================
9
%>
10
<%
11
Option explicit
12
' Good idea to set when using redirect
13
Response.Expires = 0   ' always load the page, dont store
14
%>
15
<!--#include file="common/conf.asp"-->
16
<!--#include file="common/globals.asp"-->
17
<!--#include file="common/formating.asp"-->
18
<!--#include file="common/qstr.asp"-->
19
<!--#include file="common/common_subs.asp"-->
20
<!--#include file="class/classSortHelper.asp"-->
21
<%
22
 
23
'------------ ACCESS CONTROL ------------------
24
%>
25
<!--#include file="_access_control_login.asp"-->
26
<!--#include file="_access_control_general.asp"-->
27
<!--#include file="_access_control_project.asp"-->
28
<%
29
' Make sure rtag_id is always present
30
If Request("pv_id") = "" AND Request("rtag_id") = "" Then
5957 dpurdie 31
   Call Destroy_All_Objects
5357 dpurdie 32
   Response.Redirect("index.asp")
33
End If
34
%>
35
<%
36
'------------ Variable Definition -------------
37
Dim parAdd_type
38
Dim parPkg_list
39
Dim parBase_view_id
40
Dim rsPkgs
41
Dim HTML_pkg_list
42
Dim parPv_id
43
Dim parPkgfind
44
'------------ Constants Declaration -----------
45
'------------ Variable Init -------------------
46
parAdd_type = Request("add_type")
47
parPkg_list = Request("pkg_list")
48
parBase_view_id = Request("base_view_id")
49
parPv_id = Request("pv_id")
50
parPkgfind = Request("pkgfind")
51
Set pkgInfoHash = CreateObject("Scripting.Dictionary")
52
'----------------------------------------------
53
%>
54
<%
55
' ---- Action requirements ----
5957 dpurdie 56
If parPkg_list = "" Then 
57
    Call Destroy_All_Objects
58
    Response.Redirect( "form_search_result_pkgs.asp?pv_id="& parPv_id &_
59
                                                  "&rtag_id="& parRtag_id &_
60
                                                  "&pkgfind="& parPkgfind &_
61
                                                  "&add_type="& parAdd_type &_
62
                                                  "&errmsg=true" )
63
End If
5357 dpurdie 64
%>
65
<%
66
Function Page_Title ( NNadd_type )
67
   If NNadd_type = Cstr(enum_ADD_PACKAGES) Then
68
      Page_Title = "ADD Package"
69
 
70
   ElseIf NNadd_type = Cstr(enum_ADD_DEPENDENCIES) Then
71
      Page_Title = "ADD Dependency"
72
 
73
   ElseIf NNadd_type = Cstr(enum_ADD_RUNTIME_DEPENDENCIES) Then
74
      Page_Title = "ADD Runtime Dependency"
75
 
76
   Else
77
      Page_Title = ""
78
 
79
   End If
80
End Function
81
 
82
' Gets a set of records each one being unique by pkg_id, each row having (pkg_id, pkg_name, and num_of_versions)
83
Function Get_Pkg_Names ( NNpkg_or_pvid_list, NNadd_type )
84
 
85
   If NNadd_type = Cstr(enum_ADD_DEPENDENCIES) OR NNadd_type = Cstr(enum_ADD_RUNTIME_DEPENDENCIES) Then
86
      ' When adding dependencies, the NNpkg_or_pvid_list is a list of PV_ID's
87
      Get_Pkg_Names = _
88
      " SELECT pkg.PKG_ID, pkg.PKG_NAME, COUNT(pv.PV_ID) AS NUM_OF_VERSIONS "&_
89
      "     FROM PACKAGE_VERSIONS pv,"&_
90
      "           PACKAGES pkg"&_
91
      "    WHERE pv.PV_ID IN ( "& NNpkg_or_pvid_list &" ) "&_
92
      "      AND pv.PKG_ID (+) = pkg.PKG_ID"&_
93
      "    GROUP BY pv.PKG_ID, pkg.PKG_ID, pkg.PKG_NAME"
94
   Else
95
      ' When adding packages, the NNpkg_or_pvid_list is a list of PKG_ID's
96
      Get_Pkg_Names = _
97
      " SELECT pkg.PKG_ID, pkg.PKG_NAME, COUNT(pv.PV_ID) AS NUM_OF_VERSIONS "&_
98
      "     FROM PACKAGE_VERSIONS pv,"&_
99
      "           PACKAGES pkg"&_
100
      "    WHERE pkg.PKG_ID IN ( "& NNpkg_or_pvid_list &" ) "&_
101
      "      AND pv.PKG_ID (+) = pkg.PKG_ID"&_
102
      "    GROUP BY pv.PKG_ID, pkg.PKG_ID, pkg.PKG_NAME"
103
   End If
104
End Function
105
 
106
 
107
Sub Get_All_Base_Views ( NNnewgroup_id, nPkg_id )
108
   Dim rsTemp, Query_String
109
 
110
   Query_String = _
111
   "   SELECT vi.view_id, vi.view_name, bv.hint "&_
112
   "     FROM views vi,"&_
113
   "         ("&_
114
   "         SELECT DISTINCT rc.BASE_VIEW_ID, '>&nbsp;' AS hint"&_
115
   "           FROM release_content rc,"&_
116
   "               package_versions pv"&_
117
   "          WHERE rc.pv_id = pv.pv_id"&_
118
   "            AND pv.pkg_id IN ( "& nPkg_id &" )"&_
119
   "         ) bv"&_
120
   "    WHERE UPPER(vi.base_view) = 'Y'"&_
121
   "      AND bv.BASE_VIEW_ID (+) = vi.VIEW_ID"&_
122
   "    ORDER BY vi.view_name ASC"
123
 
124
   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
125
 
126
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
127
      If NNnewgroup_id = Cstr( rsTemp.Fields("view_id") )  OR NOT IsNull(rsTemp("hint")) Then
128
         Response.write "<option value='"& rsTemp("view_id") &"' selected>"& rsTemp("hint") & rsTemp("view_name") &"</option>"
129
      Else
130
         Response.write "<option value='"& rsTemp("view_id") &"'>"& rsTemp("hint") & rsTemp("view_name") &"</option>"
131
      End If
132
 
133
      rsTemp.MoveNext
134
   WEnd
135
 
136
   rsTemp.Close
137
   Set rsTemp = nothing
138
End Sub
139
 
140
 
141
Sub Get_All_Personal_Views ( NNuser_id )
142
   Dim rsTemp, Query_String
143
   If NNuser_id = "" Then Exit Sub
144
 
145
   Query_String = _
146
   " SELECT vi.view_id, vi.view_name"&_
147
   "  FROM view_settings vs,"&_
148
   "       views vi"&_
149
   " WHERE vs.view_id = vi.view_id"&_
150
   "   AND vs.user_id = vi.owner_id  "&_
151
   "   AND vs.user_id = "& NNuser_id &_
152
   "   AND vi.base_view = 'N'"&_
153
   " ORDER BY UPPER(vi.view_name)"
154
 
155
   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
156
 
157
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
158
      Response.write "<option value='"& rsTemp.Fields("view_id") &"'>"& rsTemp.Fields("view_name") &"</option>"
159
 
160
      rsTemp.MoveNext
161
   WEnd
162
 
163
   rsTemp.Close
164
   Set rsTemp = nothing
165
End Sub
166
 
167
 
168
' This function is only called when adding dependencies. It gets all of the items in the specified release
169
' and sets up dictionaries as follows:
170
'
171
'  Dict Name       key     item
172
'  ------------------------------------
173
'  DDdictPkgId     pv_id   pkg_id
174
'  DDdictPkgName   pv_id   pkg_name
175
'  DDdictPkgVer    pv_id   pkg_version
176
'  DDdictPkgExt    pv_id   v_ext
177
'
178
Sub Get_Versions_From_Release ( NNpv_id_list, NNrtag_id, DDdictPkgId, DDdictPkgName, DDdictPkgVer, DDdictPkgExt )
179
   Dim rsTemp, Query_String
180
 
181
   If NNrtag_id = "" Then
182
      Exit Sub
183
   End If
184
 
185
   Query_String = _
186
   " SELECT pv.pkg_id, pkgs.pkg_name, pv.pkg_version, pv.pv_id, pv.v_ext"&_
187
   "  FROM release_content rc,"&_
188
   "       package_versions pv,"&_
189
   "       packages pkgs"&_
190
   " WHERE rc.pv_id = pv.pv_id"&_
191
   "   AND pkgs.pkg_id = pv.pkg_id"&_
192
   "   AND rc.rtag_id = "& NNrtag_id &_
193
   "   AND pv.pv_id IN ( "& NNpv_id_list &" )"
194
 
195
   Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
196
 
197
   While ((NOT rsTemp.BOF) AND (NOT rsTemp.EOF))
198
 
199
      DDdictPkgId.ADD    Cstr(rsTemp("pv_id")), Cstr(rsTemp("pkg_id"))
200
      DDdictPkgName.ADD  Cstr(rsTemp("pv_id")), Cstr(rsTemp("pkg_name"))
201
      DDdictPkgVer.ADD   Cstr(rsTemp("pv_id")), Cstr(rsTemp("pkg_version"))
202
      If NOT IsNull(rsTemp("v_ext")) Then
203
         DDdictPkgExt.ADD   Cstr(rsTemp("pv_id")), Cstr(rsTemp("v_ext"))
204
      Else
205
         DDdictPkgExt.ADD   Cstr(rsTemp("pv_id")), Cstr("")
206
      End If
207
 
208
      rsTemp.MoveNext
209
   WEnd
210
 
211
   rsTemp.Close
212
   Set rsTemp = nothing
213
End Sub
214
 
215
 
216
' This function is used when adding packages to a release. The function processes a list of package ID's
217
' and forms the HTML to display for each item, the name, all available full versions in a list box
218
Sub Generate_Package_List ( NNpkg_list, SShtml_pkg_list, NNrtag_id, NNadd_type )
219
 
220
   Dim rsPkgs, hidePatches, currRsPkg, qparPkg_list
221
   Dim spanPkgNameId
222
   Dim commonHTML
223
   hidePatches = "hidepatches=true&"
224
 
225
   If pkgInfoHash.Item ("is_patch") = "Y" Then hidePatches = ""
226
 
227
   Set rsPkgs = OraDatabase.DbCreateDynaset( Get_Pkg_Names( NNpkg_list, NNadd_type ), cint(0))
228
   While ((NOT rsPkgs.BOF) AND (NOT rsPkgs.EOF))
229
 
230
      currRsPkg = chr(34) & rsPkgs("pkg_id") & chr(34)
231
      qparPkg_list = chr(34) & parPkg_list & chr(34)
232
 
233
      ' Begin table row
234
      SShtml_pkg_list = SShtml_pkg_list &"<tr> "
235
 
236
      spanPkgNameId = "spanPkgName" & rsPkgs("pkg_id")
237
 
238
      ' Form package name
239
      SShtml_pkg_list = SShtml_pkg_list &"  <td background='images/bg_form_lightgray.gif' nowrap class='form_item'>" _
240
                                        & "<span id='" & spanPkgNameId & "'>"& rsPkgs("pkg_name") &"</span></td>"
241
 
242
      ' setup some common html so that we can make the (full) Version field on the right-most column of the
243
      ' table row update on certain events taking place in the version base input box, and version extension
244
      ' drop down list box
245
      commonHTML = rsPkgs("pkg_id") & "'  onblur='updateVersion(" & currRsPkg & ");'" &_
246
                                        " onchange='updateVersion(" & currRsPkg & ");'"
247
 
248
      SShtml_pkg_list = SShtml_pkg_list & "<td><select class='form_item' id='pkgn" & commonHTML & "name='pkgn" & rsPkgs("pkg_id") & "'>"
249
      SShtml_pkg_list = SShtml_pkg_list & populateVersionList( rsPkgs("pkg_id") )
250
      SShtml_pkg_list = SShtml_pkg_list & "</select></td>"
251
 
252
      SShtml_pkg_list = SShtml_pkg_list  &"</td>"
253
 
254
      ' End table row
255
      SShtml_pkg_list = SShtml_pkg_list  &"</tr>"
256
 
257
      rsPkgs.MoveNext
258
   WEnd
259
End Sub
260
 
261
' This function deals with a PV_ID list, not a PKG_ID list. Hence, it is used for the ADD Dependencies user operation.
262
' The function was initially based on the Generate_Package_List() function, and then stripped back and reworked to use
263
' the result of the Get_Versions_From_Release() function, which now processes PV_ID lists also.
264
' Adding a dependency means taking the latest version in the release, there is no choice about  it.
265
Sub Generate_Version_List ( NNpv_id_list, SShtml_pkg_list, NNrtag_id, NNadd_type )
266
 
267
   Dim spanPkgNameId
268
   Dim fullVersion
269
   Dim i
270
 
271
   ' dictionaries and arrays
272
   Dim dictPkgId, dictPkgVer, dictPkgExt, dictPkgName
273
   Dim pv_ids, pkg_ids, versions, pkg_names
274
 
275
   ' create dictionaries
276
   Set dictPkgId   = CreateObject("Scripting.Dictionary")
277
   Set dictPkgName = CreateObject("Scripting.Dictionary")
278
   Set dictPkgVer  = CreateObject("Scripting.Dictionary")
279
   Set dictPkgExt  = CreateObject("Scripting.Dictionary")   ' This one assigned, and populated, but currently not used thereafter
280
 
281
   ' populate dictionaries
282
   Call Get_Versions_From_Release ( NNpv_id_list, NNrtag_id, dictPkgId, dictPkgName, dictPkgVer, dictPkgExt )
283
 
284
   ' get the columns we need from the dictionaries
285
   pv_ids    = dictPkgId.Keys
286
   pkg_names = dictPkgName.Items
287
   pkg_ids   = dictPkgId.Items
288
   versions  = dictPkgVer.Items
289
 
290
   ' iterate through all the PV_ID's we found using the Get_Versions_From_Release() function
291
   For i = 0 to ubound(pv_ids)
292
 
293
      fullVersion = versions(i)
294
 
295
      ' Begin table row
296
      SShtml_pkg_list = SShtml_pkg_list &"<tr> "
297
 
298
      ' NOTE: the formation of this span name may result in more than one span of the same name in the HTML.
299
      ' This is because there may be >1 package version of the same package ID (eg sysbasetypes.mas, sysbasetypes.sea)
300
      ' being added as dependencies. It doesn't seem to matter though. It just reflects the ancestry of this code which
301
      ' used to be exclusively package ID focused, whereas now, it has a pv_id focus when dealing with dependencies.
302
      spanPkgNameId = "spanPkgName" & pkg_names(i)
303
 
304
      ' Form package name
305
      SShtml_pkg_list = SShtml_pkg_list & " <td background='images/bg_form_lightgray.gif' nowrap class='form_item'>" _
306
                                        & " <span id='" & spanPkgNameId & "'>"& pkg_names(i) &"</span></td>"
307
 
308
 
309
      ' Form the (full) Version display field
310
      SShtml_pkg_list = SShtml_pkg_list &"  <td background='images/bg_form_lightgray.gif'>"
311
 
312
      If fullVersion = "" Then
313
         SShtml_pkg_list = SShtml_pkg_list &"<span nowrap class='form_item' name='spanFullVersion" & pkg_ids(i) _
314
                                           & "' id='spanFullVersion" & pkg_ids(i) & "'> unset </span>"
315
      Else
316
         SShtml_pkg_list = SShtml_pkg_list &"<span nowrap class='form_item' name='spanFullVersion" & pkg_ids(i) _
317
                                           & "' id='spanFullVersion" & pkg_ids(i) & "'>" & fullVersion & "</span>"
318
      End If
319
 
320
      SShtml_pkg_list = SShtml_pkg_list & "<input type='hidden'  id='pkgn" & pkg_ids(i) _
321
                                        & "' name='pkgn" & pkg_ids(i) & "' ' class='form_item' size='12' value='" & fullVersion & "'> "
322
 
323
      ' End table row
324
      SShtml_pkg_list = SShtml_pkg_list  &"</tr>"
325
   Next
326
End Sub
327
 
6070 dpurdie 328
' Create HTML to populate a form selection with versions numbers for a specified
329
' package. This could be done via AJAX but is currently done when the page is
330
' rendered.
5357 dpurdie 331
Function populateVersionList(NNpkg_id)
332
    Dim rsFind
333
    Dim Query_String
334
    Dim aVersions
335
    Dim objSortHelper
336
    Dim lastRow, i
337
 
338
 
6070 dpurdie 339
    ' First one - Use as a prompt
5357 dpurdie 340
    populateVersionList = "<option>-- Select Version --</option>"
341
 
342
    Query_String = _
343
	" SELECT DISTINCT pv.pkg_version, pv.dlocked "&_
344
	"    FROM PACKAGES pkg, package_versions pv"&_
345
	"   WHERE pkg.pkg_id = pv.pkg_id  AND  pkg.pkg_id = " & NNpkg_id
346
 
347
    Set rsFind = OraDatabase.DbCreateDynaset( Query_String, cint(0))
348
	If rsFind.RecordCount > 0 Then
349
 
350
		aVersions = rsFind.GetRows()
351
		lastRow = UBound( aVersions, 2 )
352
 
353
		Set objSortHelper = New SortHelper
354
 
355
		' Sort versions
356
		Call objSortHelper.VersionSort( aVersions, 0, lastRow, rsFind.FieldIndex("pkg_version") )
357
 
358
		' Descending order
359
		For i = lastRow To 0 Step -1
360
            Dim prefix
361
            Dim text
362
 
363
            text = aVersions( rsFind.FieldIndex("pkg_version"), i )
364
 
365
            If aVersions( rsFind.FieldIndex("dlocked"), i ) = "Y" Then
366
                prefix = "R&nbsp;"
367
            Else
368
                prefix = "&nbsp;&nbsp;&nbsp;&nbsp;"
369
            End If
370
 
371
            populateVersionList = populateVersionList &_
372
                "<option value='"& text &"'>" & prefix & text & "</option>"
373
 
374
		Next
375
		Set objSortHelper = nothing
376
	End If
377
 
378
	rsFind.Close
379
	Set rsFind = nothing
380
End Function
381
 
382
%>
383
<%
384
If parPv_id <> "" Then
385
   Call Get_Pkg_Info ( parPv_id, NULL )
386
End If
387
%>
388
<html>
389
<head>
390
<title>Release Manager</title>
391
<link rel="shortcut icon" href="<%=FavIcon%>"/>
392
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
393
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6579 dpurdie 394
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
395
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
396
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 397
<script language="JavaScript" type="text/JavaScript">
398
<!--
399
 
400
window.onload = function()
401
{
402
  checkSeletion(document.getElementById("base_view_id"));
403
   var versionObjectIds = getVersionObjectIds();
404
   for( var iobj in versionObjectIds )
405
   {
406
      updateVersion(versionObjectIds[iobj]);
407
   }
408
}
409
 
410
// getVersionObjectIds is only called when adding packages to a release.
411
function getVersionObjectIds ()
412
{
413
   var versionObjectIds = new Array(); // Memory leak?
414
 
415
   <%
416
   Dim rsPkgs3, versionObjectId
417
   Set rsPkgs3 = OraDatabase.DbCreateDynaset( Get_Pkg_Names( parPkg_list, parAdd_type ), cint(0))
418
 
419
   While ((NOT rsPkgs3.BOF) AND (NOT rsPkgs3.EOF))
420
      versionObjectId = rsPkgs3("pkg_id")
421
      %>
422
      versionObjectIds.push( "<%=versionObjectId%>" );
423
      <%
424
      rsPkgs3.MoveNext
425
   Wend
426
   rsPkgs3.Close()
427
   %>
428
 
429
   return versionObjectIds;
430
}
431
 
432
// CheckVersion is only called when adding packages to a release.
433
// Called before the form is submitted. Can validate the form
434
// Simply tests that all required fields have been entered
435
function checkVersion ()
436
{
437
   var isValid = checkSeletion(document.getElementById("base_view_id"));
438
   var versionObjectIds = getVersionObjectIds();
439
   for( var iobj in versionObjectIds )
440
   {
441
      if (updateVersion(versionObjectIds[iobj]))
442
        continue;
443
 
444
      isValid = false;
445
      break;
446
   }
447
 
448
   if (isValid) {
449
    MM_showProgressBar();
450
   }
451
   else
452
   {
453
      // failed - exit function, returning false for the form.
454
      document.MM_returnValue = false;
455
      MM_hideProgressBar();
456
      vixAlert ("Complete all selections");
457
      return false;
458
   }
459
   return true;
460
}
461
 
462
// updateVersion is only called when adding packages to a release.
463
function updateVersion( myPkgId, myParPkg_list )
464
{
465
    return checkSeletion(document.getElementById("pkgn" + myPkgId));
466
}
467
 
468
//-->
469
</script>
470
<!-- DROPDOWN MENUS -->
471
<!--#include file="_menu_def.asp"-->
6579 dpurdie 472
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
473
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
474
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
6882 dpurdie 475
<script language="JavaScript" type="text/javascript">
476
formTips.tips.existingVersion = newTip(-150, 20, 150, 10, 'EXISTING VERSION','Select a version from a list of existing versions.');
477
formTips.tips.addPending      = stdTip(300, 'Add to Pending', 'Add the packages to the release as "Pending".' +
478
                                                          '<p>If a WIP package is added to Pending it cannot be moved to the WIP State. It will be removed from the Release if it is rejected.' + 
479
                                                          '<p>A WIP added directly to the Release will be placed in the WIP Tab.' 
480
                                                          );
481
</script>
5357 dpurdie 482
</head>
483
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
484
<!--#include file="_jquery_includes.asp"-->
485
<!-- HEADER -->
486
<!--#include file="_header.asp"-->
487
<!-- BODY ---->
488
<table width="100%" height="80%" border="0" cellpadding="0" cellspacing="0">
6874 dpurdie 489
    <% 'Use the parPkg_list in two different ways. When adding dependencies, the list contains pv_id's.
490
     'When adding packages it contains pkg_id's. Different functions deal with each situation.
491
    If ( (parAdd_type <> Cstr(enum_ADD_DEPENDENCIES)) AND (parAdd_type <> Cstr(enum_ADD_RUNTIME_DEPENDENCIES)) ) Then
492
     Call Generate_Package_List( parPkg_list, HTML_pkg_list, parRtag_id, parAdd_type )
493
    Else
494
     Call Generate_Version_List( parPkg_list, HTML_pkg_list, parRtag_id, parAdd_type )
495
    End If%>
5357 dpurdie 496
   <tr>
6874 dpurdie 497
      <td align="center" valign="top" class='bg_grey'>
5357 dpurdie 498
         <!-- MIDDLE ---------------------------------------->
6874 dpurdie 499
         <div style='width:600px' class=Panel>
500
         <%If parAdd_type = Cstr(enum_ADD_PACKAGES) Then%>
501
            <form name="addpkg" id="addpkg" method="post" action="_add_pkgs_to_release.asp" onSubmit="return checkVersion();">
502
         <%ElseIf parAdd_type = Cstr(enum_ADD_RUNTIME_DEPENDENCIES) Then%>
503
            <form name="addpkg" method="post" action="_add_runtime_dependencies.asp" onSubmit="return true">
504
         <%Else%>
505
            <form name="addpkg" method="post" action="_update_dependencies.asp" onSubmit="return true">
506
         <%End If%>
5357 dpurdie 507
 
6874 dpurdie 508
             <div class='rounded_box_caption'>
509
                <%=Page_Title ( parAdd_type )%>
510
             </div>
511
             <div class='rounded_box'>
512
                 <div class='PanelFrame'>
513
                     <%If parAdd_type = Cstr(enum_ADD_PACKAGES) Then%>
514
                     <!-- Base View -->
515
                     <div class='textPanel PanelPad'>
516
                        <div class=PanelHead>To Base View</div>
517
                        <div class='PanelLine'>
518
                            <select name="base_view_id" id="base_view_id" class="form_item" onblur="checkSeletion(this);" onchange="checkSeletion(this);">
519
                            <option></option>
520
                            <%Call Get_All_Base_Views( parBase_view_id, parPkg_list )%>
521
                            </select>
522
                            <br>
523
                            <span class="rep_small">NOTE: Symbol '>' in Base Views drop-down list is a suggestion where to place selected package(s).</span>
524
                        </div>
525
                    </div>
5357 dpurdie 526
 
6874 dpurdie 527
                     <!-- --------- Private View ------------ -->
528
                     <%If QStrPar("Pview") <> "disable" Then%>
529
                     <div class='textPanel PanelPad'>
530
                         <div class=PanelHead> To Personal View</div>
531
                         <div class=PanelLine>
532
                            <select name="personal_view_id" class="form_item">
533
                                     <option value="">None</option>
534
                                     <%Call Get_All_Personal_Views( objAccessControl.UserId )%>
535
                                  </select>
536
                         </div>
537
                     </div>
538
                     <%End If%>
539
                     <%Else%>
540
                     <div class='textPanel PanelPad'>
541
                        <b><%=pkgInfoHash.Item ("pkg_name")%>&nbsp;<%=pkgInfoHash.Item ("pkg_version")%></b>
542
                     </div>
543
                     <%End If%>
544
                     <!-- --------- Package List ------------ -->
545
                    <div class=PanelPad>
546
                        <table width="100%" border="0" cellspacing="1" cellpadding="2" class=stdGrey>
547
                           <thead>
548
                              <th nowrap width='1%'>Package Name</th>
549
                              <th>Version
550
                              <%If parAdd_type <> Cstr(enum_ADD_DEPENDENCIES) AND parAdd_type <> Cstr(enum_ADD_RUNTIME_DEPENDENCIES) Then
551
                                   Response.Write Quick_Help("existingVersion")
552
                                End If%>
553
                              </th>
554
                           </thead>
555
                           <%=HTML_pkg_list%>
556
                        </table>
557
                    </div>
558
                 </div>
559
                 <!-- Buttons  -->
560
                <div class='buttonPanel'>
561
                    <span id="ProgressBar" name="ProgressBar" style="visibility:hidden;">
562
                       <img src="images/i_processing.gif" width="11" height="17" align="absmiddle" hspace="3">Processing...
563
                    </span>
564
                    <input type="reset" name="btn" value="&laquo; Back" onClick="history.back();">
565
                    <input type="reset" name="btn" value="Cancel" onClick="history.go(-3);">
566
                    <input type="submit" name="btn" value="  Add  " >
567
                    <%If parAdd_type = Cstr(enum_ADD_PACKAGES) Then%>
6882 dpurdie 568
                    <span><input type="checkbox" name="iMode" value="pending">Add to Pending <%=Quick_Help("addPending")%></span>
6874 dpurdie 569
                    <%End If%>
570
                    <input type="hidden" name="update_type" value="add_custom">
571
                    <input type="hidden" name="pv_id" value="<%=parPv_id%>">
572
                    <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
573
                    <input type="hidden" name="pkg_list" value="<%=parPkg_list%>">
574
                </div>
575
             </div>
576
         </form>
577
         </div>
5357 dpurdie 578
         <!-------------------------------------------------->
579
      </td>
580
   </tr>
5957 dpurdie 581
 <!-- FOOTER -->
582
 <!--#include file="_footer.asp"-->
5357 dpurdie 583
</table>
584
</body>
585
</html>