Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%
2
'=====================================================
123 ghuddy 3
'               Build Environment
119 ghuddy 4
'=====================================================
5
%>
6
<!--#include file="_tabs_definition_env.asp"-->
7
<!--#include file="common/_form_window_common.asp"-->
8
<%
9
'------------ Variable Definition -------------
123 ghuddy 10
Dim parOLshow     ' show/hide outer-latest
11
Dim parBshow      ' expand/collapse base views
12
Dim parPshow      ' expand/collapse personal views
13
Dim parPview      ' enable/disable all personal views
14
Dim parDview      ' enable/disable   deployment   view.
119 ghuddy 15
Dim IMG_locked
16
Dim rsEnvQry
17
Dim pvIdInList
18
Dim checked
19
Dim disabled
20
Dim pkgType
21
Dim SCRIPT_NAME 'Use this here only as the previous one ScriptName is Already Defined
22
'------------ Constants Declaration -----------
23
Const imgMaximise  = "<IMG src='images/i_maximise.gif' alt='Show view contents.' width=13 height=13 hspace='2' vspace='1' border='0'>"
24
Const imgMinimise  = "<IMG src='images/i_minimise.gif' alt='Hide view contents.' width=13 height=13 hspace='2' vspace='1' border='0'>"
25
Const imgForced    = "<img src='images/s_forced.gif' width='19' height='17' align='absmiddle'>"
26
Const imgLocked    = "<img src='images/i_locked.gif' width='7' height='10' border='0' hspace='2'>"
27
Const hlColor      = "#DDDDDD"
28
Const imgAdded     = "<img src='images/i_added.gif' width='11' height='11' border='0' hspace='5' align='absmiddle' title='To Be Added'>"
29
Const imgRemoved   = "<img src='images/i_removed.gif' width='11' height='11' border='0' hspace='5' align='absmiddle' title='To Be Removed'>"
30
'------------ Variable Init -------------------
31
parOLshow = QStrPar("OLshow")
32
parBshow = QStrPar("Bshow")
33
parPshow = QStrPar("Pshow")
34
parPview = QStrPar("Pview")
35
parDview = QStrPar("Dview")
36
'----------------------------------------------
37
%>
38
 
39
<script language="JavaScript" type="text/javascript">
40
<!--
41
var is_ie = (navigator.userAgent.indexOf('MSIE') >= 0) ? 1 : 0;
42
var is_ie5 = (navigator.appVersion.indexOf("MSIE 5.5")!=-1) ? 1 : 0;
43
var is_opera = ((navigator.userAgent.indexOf("Opera6")!=-1)||(navigator.userAgent.indexOf("Opera/6")!=-1)) ? 1 : 0;
44
    //netscape, safari, mozilla behave the same???
45
var is_netscape = (navigator.userAgent.indexOf('Netscape') >= 0) ? 1 : 0;
46
 
4388 dpurdie 47
///////////////////////////////////////////////
48
//  Function:       toggletick    
49
//  Description:    This function will toggle all visible (pending) tick boxes 
50
//  Input:          te  - Controlling element
51
//
52
function toggletick(te)
53
{
54
    // Get the form containing all of the pending items
55
    var f = document.getElementById('pending_PVID_List');
56
    if (f == null) {
57
       alert('Failed To Get pending_PVID_List');   // should never happen unless a coding/rendering mistake is made?
58
    } else {
59
       if (f.pv_id_list != null) {
60
           if (f.length == 1 || typeof f.pv_id_list.length == "undefined") {
61
              if (false == f.pv_id_list.disabled) {
62
                 f.pv_id_list.checked = te.checked;
63
              }
64
           } else {
65
              for (n = 0; n < f.pv_id_list.length; n++) {
66
                 if (false == f.pv_id_list[n].disabled) {
67
                    f.pv_id_list[n].checked = te.checked;
68
                 }
69
              }
70
           }
71
       }
72
    }
73
}
119 ghuddy 74
 
4388 dpurdie 75
///////////////////////////////////////////////
76
//  Function:       countBulkItems
77
//  Description:    Determine the number of bulk ticked items
78
//                  These are suiable and enabled items
79
//  Input:          f - Form element to process
80
//
81
function countBulkItems(f)
82
{
83
    var n;
84
    var numCheckedAndEnabled = 0;
85
    var numUncheckedAndEnabled = 0;
86
 
87
    // Unbelievably, if the form has just one single PV_ID checkbox item, the syntax via which we access it
88
    // has to change. We cannot use array access syntax in such a case.
89
    if (f.length == 1 || typeof f.pv_id_list.length == "undefined")
90
    {
91
       if (f.pv_id_list.value != null)
92
       {
93
          if (false == f.pv_id_list.disabled)
94
          {
95
             if (true == f.pv_id_list.checked)
96
                numCheckedAndEnabled++;
97
             else
98
                numUncheckedAndEnabled++;
99
          }
100
       }
101
    }
102
    else
103
    {
104
       // Here we can and have to use array access syntax.
105
       for (n = 0; n < f.pv_id_list.length; n++)
106
       {
107
          if (false == f.pv_id_list[n].disabled)
108
          {
109
             if (true == f.pv_id_list[n].checked)
110
                numCheckedAndEnabled++;
111
             else
112
                numUncheckedAndEnabled++;
113
          }
114
       }
115
    }
116
    return numCheckedAndEnabled;
117
}
118
 
123 ghuddy 119
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
120
// This function is executed when the Bulk Release action button is pressed. It will do some local
121
// client side checks and then if all is well, it will use the make_bulk_release.asp to initiate
122
// the bulk release process on the server side.
123
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
124
function makeBulkRelease()
125
{
126
   // Get the form containing all of the pending items
127
   var f = document.getElementById('pending_PVID_List');
128
   if (f == null)
129
      alert('Failed To Get pending_PVID_List');   // should never happen unless a coding/rendering mistake is made?
130
   else
131
   {
132
      // When no items exist in the pending tab, the pending_PVID_List form will not contain any
133
      // element called pv_id_list, so it will be null. Check for that and issue an alert as appropriate.
134
      if (f.pv_id_list == null)
135
      {
136
         alert('There are no items pending that can be considered for bulk release.\n\n' +
4388 dpurdie 137
               'Use the Bulk Release button when items with checkboxes are present in the Pending Tab.');
123 ghuddy 138
      }
139
      else
140
      {
141
         var doBulkRelease = true;
4388 dpurdie 142
         var numCheckedAndEnabled = countBulkItems(f);
143
         if (numCheckedAndEnabled == 0)
123 ghuddy 144
         {
4388 dpurdie 145
                alert('Currently, there are no items that can be bulk released.\n\n' +
146
                      'Select items to be released before using the Bulk Release button');
147
                doBulkRelease = false;
148
	     }
123 ghuddy 149
         else
150
         {
4388 dpurdie 151
             doBulkRelease = confirm('Release all ('+numCheckedAndEnabled+') checked items from the Pending List.\n\n' +
152
                                     '\tPress OK to Bulk Release all outstanding items.\n' +
153
                                     '\tPress CANCEL to abort Bulk Release.\n\n' );
123 ghuddy 154
         }
119 ghuddy 155
 
123 ghuddy 156
         if (doBulkRelease == true)
157
         {
158
            // Initiate the bulk release by redirecting the browser to the make_bulk_release.asp page
159
            // which holds the server side VBScript code that actually carries out the release operations.
160
            // Once complete, that code will redirect the browser back to the dependencies.asp page of which
161
            // this _environment.asp file is a part (by direct inclusion)
125 ghuddy 162
            <%If Request("pv_id") Then%>
163
               f.action = "make_bulk_release.asp?pv_id=<%=Request("pv_id")%>&rtag_id=<%=parRtag_id%>";
123 ghuddy 164
            <%Else%>
165
               f.action = "make_bulk_release.asp?rtag_id=<%=parRtag_id%>";
166
            <%End If%>
167
            f.submit();
168
            // TODO : I would like to show progress? Is that even possible? If so, how?
169
         }
170
      }
171
   }
172
}
119 ghuddy 173
 
4358 dpurdie 174
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
175
// This function is executed when the Bulk Remove action button is pressed. It will do some local
176
// client side checks and then if all is well, it will use the make_bulk_remove.asp to initiate
177
// the bulk remove process on the server side.
178
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
179
function makeBulkReject()
180
{
181
   // Get the form containing all of the pending items
182
   var f = document.getElementById('pending_PVID_List');
183
   if (f == null)
184
      alert('Failed To Get pending_PVID_List');   // should never happen unless a coding/rendering mistake is made?
185
   else
186
   {
187
      // When no items exist in the pending tab, the pending_PVID_List form will not contain any
188
      // element called pv_id_list, so it will be null. Check for that and issue an alert as appropriate.
189
      if (f.pv_id_list == null)
190
      {
4388 dpurdie 191
         alert('There are no items pending that can be considered for Bulk Rejection.\n\n' +
192
               'Use the Bulk Reject button when items with checkboxes are present in the Pending Tab.');
4358 dpurdie 193
      }
194
      else
195
      {
196
         var doBulkReject = true;
4388 dpurdie 197
         var numCheckedAndEnabled = countBulkItems(f);
4358 dpurdie 198
         if (numCheckedAndEnabled == 0)
199
         {
4388 dpurdie 200
             alert('Currently, there are no items that can be Bulk Reject.\n\n' +
201
                   'Select items to be released before using the Bulk Reject button');
202
             doBulkReject = false;
4358 dpurdie 203
         }
204
         else
205
         {
4388 dpurdie 206
             doBulkReject = confirm('Reject all ('+numCheckedAndEnabled+') checked items from the Pending List.\n\n' +
207
                                     '\tPress OK to Bulk Reject all outstanding items.\n' +
208
                                     '\tPress CANCEL to abort Bulk Reject.\n\n' );
4358 dpurdie 209
         }
210
 
211
         if (doBulkReject == true)
212
         {
213
            // Initiate the bulk remove by redirecting the browser to the make_bulk_remove.asp page
214
            // which holds the server side VBScript code that actually carries out the remove operations.
215
            // Once complete, that code will redirect the browser back to the dependencies.asp page of which
216
            // this _environment.asp file is a part (by direct inclusion)
217
            <%If Request("pv_id") Then%>
218
               f.action = "make_bulk_reject.asp?pv_id=<%=Request("pv_id")%>&rtag_id=<%=parRtag_id%>";
219
            <%Else%>
220
               f.action = "make_bulk_reject.asp?rtag_id=<%=parRtag_id%>";
221
            <%End If%>
222
            f.submit();
223
            // TODO : I would like to show progress? Is that even possible? If so, how?
224
         }
225
      }
226
   }
227
}
228
 
4388 dpurdie 229
///////////////////////////////////////////////
4395 dpurdie 230
//  Function:    openAllViews
231
//  Description: Open and Populate all Views
232
//               Views are populated via AJAX
233
//               Current scheme allows for one AJAX request to be outstanding
234
//               Have AJAX callback determine if there is more work to be done
235
//
236
var openingAllViews = 0;
237
function openAllViews()
238
{
239
    openingAllViews = 0;
240
    toggleAllViewsIcon(0);
241
 
242
    //if (event.shiftKey==1)
243
    //
244
    //  Locate first/next view to be expanded
245
    var divs = document.getElementsByTagName("div");
246
    for (var i=0;i<divs.length;i++) {
247
        var el = divs[i]; 
248
        var id = el.id;
249
        if (id.indexOf("ENVDIV") == 0)
250
        {
251
            var rowId = id.substr(6);
252
            if (el.innerHTML.indexOf('<%=enumLOADING%>') != -1)
253
            {
254
                openingAllViews = 1;
4398 dpurdie 255
                RequestViewContent(rowId);
4395 dpurdie 256
                return;
257
            } else if (el.style.display == 'none') {
258
               UpdateViewHeader(rowId, 0);
259
            }
260
        }
261
    }
262
}
263
 
264
///////////////////////////////////////////////
4388 dpurdie 265
//  Function:       closeAllViews
4395 dpurdie 266
//  Description:    Close and forget about All Populated Views
4388 dpurdie 267
//
268
function closeAllViews()
269
{
4395 dpurdie 270
    openingAllViews = 0;
271
    toggleAllViewsIcon(0);
272
 
4396 dpurdie 273
    //  Get the View cookie and convert it into a hash
274
    var vhash = new Object();
4388 dpurdie 275
    var us = GetCookie('<%=COOKIE_RELMGR_SHOW_VIEW%>');
276
    if (us) {
277
        var aViewList = us.split(',');
278
        for (index=0; index < aViewList.length;++index) {
4396 dpurdie 279
            vhash[aViewList[index]] = 1;
280
        }
281
    }
282
 
283
    //  Locate first/next view to be closed
284
    var divs = document.getElementsByTagName("div");
285
    for (var i=0;i<divs.length;i++) {
286
        var el = divs[i]; 
287
        var id = el.id;
288
        if (id.indexOf("ENVDIV") == 0)
289
        {
290
            var rowId = id.substr(6);
291
            if (el.innerHTML.indexOf('<%=enumLOADING%>') == -1)
292
            {
293
                UpdateViewHeader(rowId, 1);
294
                el.innerHTML = '<%=enumLOADING%>';
295
 
296
                // Delete from cookie too
297
                delete vhash[rowId];
4388 dpurdie 298
            }
299
        }
4396 dpurdie 300
    }
301
 
302
    //  Reform the cookie
303
    if (us)
304
    {
305
        us = Object.keys(vhash).join(',');
4388 dpurdie 306
        // Store to cookie
307
        document.cookie = '<%=COOKIE_RELMGR_SHOW_VIEW%>' + '=' + us;
4396 dpurdie 308
    }
4388 dpurdie 309
}
4358 dpurdie 310
 
4388 dpurdie 311
///////////////////////////////////////////////
4395 dpurdie 312
//  Function:    toggleAllViewsIcon
313
//  Description: Update the toogleAllViews Icon
314
//  arg        : mode - 0 min, else max
315
//
316
function toggleAllViewsIcon(mode)
317
{
318
    //  Update image
319
    //      images/btn_min.gif 
320
    var f = document.getElementById('cb_minall');
321
    if (mode ) {
322
        f.src = 'images/btn_max.gif';
323
    } else {
324
        f.src = 'images/btn_min.gif';
325
    }
326
}
327
 
328
 
329
///////////////////////////////////////////////
4388 dpurdie 330
//  Function:    toggleAllViews
331
//  Description: Hide/Show all the expanded views
332
//               Will not change the saved list, just the current display
333
//
334
function toggleAllViews()
335
{
4396 dpurdie 336
    var dmatch, dset;
4395 dpurdie 337
    openingAllViews = 0;
338
 
339
    //  Update the icon image
4388 dpurdie 340
    var f = document.getElementById('cb_minall');
341
    if (f.src.indexOf('min.gif') >= 0) {
342
        f.src = 'images/btn_max.gif';
343
        dmatch = 'block';
344
        dset = 'none';
345
    } else {
346
        f.src = 'images/btn_min.gif';
347
        dmatch = 'none';
348
        dset = 'block';
349
    }
350
 
4396 dpurdie 351
    //  Locate first/next view to be toggled
352
    var divs = document.getElementsByTagName("div");
353
    for (var i=0;i<divs.length;i++) {
354
        var el = divs[i]; 
355
        var id = el.id;
356
        if (id.indexOf("ENVDIV") == 0)
357
        {
358
            if (el.innerHTML.indexOf('<%=enumLOADING%>') == -1) {
359
                var rowId = id.substr(6);
360
                if (el && el.style.display == dmatch ) {
361
                    el.style.display = dset;
362
                }
4388 dpurdie 363
            }
364
        }
365
    }
366
}
367
 
368
function UpdateViewHeader(rowId, show)
369
{
370
    if ( show )
371
    {
372
       // View is currently minimised
373
       MM_findObj( 'ENVIMG'+ rowId ).src = 'images/btn_max.gif';
374
       MM_findObj( 'SPANVIEW'+ rowId ).style.color = '#808080';
4397 dpurdie 375
       MM_findObj( 'ENVDIV'+ rowId ).style.display = 'none';
4388 dpurdie 376
    }
377
    else
378
    {
379
       // View is currently maximised
380
       MM_findObj( 'ENVIMG'+ rowId ).src = 'images/btn_min.gif';
381
       MM_findObj( 'SPANVIEW'+ rowId ).style.color = '#000000';
4397 dpurdie 382
       MM_findObj( 'ENVDIV'+ rowId ).style.display = 'block';
4388 dpurdie 383
    }
384
}
385
 
4396 dpurdie 386
///////////////////////////////////////////////
387
//  Function:       RequestViewContent    
388
//  Description:    Maintain view content
389
//                  If View Tab is unpopulated - then populate it
390
//                  if View Tab is populated - then Minimise it
4398 dpurdie 391
//  Arguments:      rowId   - Id if Row to Fetch
4396 dpurdie 392
//
4398 dpurdie 393
function RequestViewContent( rowId ){
123 ghuddy 394
   var requestURL = 'RequestViewContent.asp';
4398 dpurdie 395
   var paramString = '?envtab=<%=nEnvTab%>&rtag_id=<%=parRtag_id%>&script_name=<%=ScriptName%>&view_id=' + rowId;
119 ghuddy 396
 
123 ghuddy 397
   // Change display states
398
   if ( (MM_findObj( 'ENVIMG'+ rowId ).src).indexOf('btn_max.gif') == -1 )
399
   {
400
      // View is currently minimised
4388 dpurdie 401
      UpdateViewHeader(rowId, 1);    
119 ghuddy 402
 
123 ghuddy 403
      // Remove from SHow View List
404
      RemoveFromShowView ( rowId );
405
   }
406
   else
407
   {
408
      // View is currently maximised
4388 dpurdie 409
      UpdateViewHeader(rowId, 0);
410
 
123 ghuddy 411
      // Add it to Show view id
412
      AddToShowView ( rowId );
413
   }
119 ghuddy 414
 
123 ghuddy 415
   // Fix div width for ie so it does not overflow
416
   if (is_ie)
417
   {
418
      MM_findObj( 'ENVDIV'+ rowId ).style.width = '100%';
419
   }
119 ghuddy 420
 
123 ghuddy 421
   // Set ajax divname
422
   ajaxdivname = 'ENVDIV'+ rowId;
119 ghuddy 423
 
123 ghuddy 424
   // Request data from server
425
   if ( (MM_findObj( ajaxdivname ).innerHTML).indexOf('<%=enumLOADING%>') != -1 )
426
   {
427
      //Append the name to search for to the requestURL
428
      var url = requestURL + paramString;
119 ghuddy 429
 
123 ghuddy 430
      //Create the xmlHttp object to use in the request
431
      //stateChangeHandler will fire when the state has changed, i.e. data is received back
432
      // This is non-blocking (asynchronous)
433
      xmlHttp = GetXmlHttpObject(stateChangeHandler);
119 ghuddy 434
 
123 ghuddy 435
      //Send the xmlHttp get to the specified url
436
      xmlHttp_Get(xmlHttp, url);
437
   }
438
}
119 ghuddy 439
 
123 ghuddy 440
function GetXmlHttpObject(handler) {
441
   var objXmlHttp = null;    //Holds the local xmlHTTP object instance
119 ghuddy 442
 
123 ghuddy 443
   //Depending on the browser, try to create the xmlHttp object
444
   if (is_ie){
445
      //The object to create depends on version of IE
446
      //If it isn't ie5, then default to the Msxml2.XMLHTTP object
447
      var strObjName = (is_ie5) ? 'Microsoft.XMLHTTP' : 'Msxml2.XMLHTTP';
119 ghuddy 448
 
123 ghuddy 449
      //Attempt to create the object
450
      try{
451
         objXmlHttp = new ActiveXObject(strObjName);
452
         objXmlHttp.onreadystatechange = handler;
453
      }
454
      catch(e){
455
      //Object creation errored
456
         alert('IE detected, but object could not be created. Verify that active scripting and activeX controls are enabled');
457
         return;
458
      }
459
   }
460
   else if (is_opera){
461
      //Opera has some issues with xmlHttp object functionality
462
      alert('Opera detected. The page may not behave as expected.');
463
      return;
464
   }
465
   else{
466
      // Mozilla | Netscape | Safari
467
      objXmlHttp = new XMLHttpRequest();
468
      objXmlHttp.onload = handler;
469
      objXmlHttp.onerror = handler;
470
   }
119 ghuddy 471
 
123 ghuddy 472
   //Return the instantiated object
473
   return objXmlHttp;
119 ghuddy 474
}
475
 
123 ghuddy 476
//stateChangeHandler will fire when the state has changed, i.e. data is received back
477
// This is non-blocking (asynchronous)
478
function stateChangeHandler()
479
{
480
   //readyState of 4 or 'complete' represents that data has been returned
481
   if (xmlHttp.readyState == 4 || xmlHttp.readyState == 'complete'){
482
      //Gather the results from the callback
483
      var str = xmlHttp.responseText;
119 ghuddy 484
 
123 ghuddy 485
      //Populate the innerHTML of the div with the results
486
      document.getElementById(ajaxdivname).innerHTML = str;
487
   }
4395 dpurdie 488
 
489
   //Cascade view opening
490
   if (openingAllViews) {
491
       openAllViews();
492
   }
123 ghuddy 493
}
119 ghuddy 494
 
123 ghuddy 495
// XMLHttp send GET request
496
function xmlHttp_Get(xmlhttp, url) {
497
   //Getting a permissions error here? Check the url string to
498
   // ensure it is accurate (defined above)
499
   xmlhttp.open('GET', url, true);
500
   xmlhttp.send(null);
501
}
119 ghuddy 502
 
503
 
504
 
505
function RemoveFromShowView ( ViewId )
506
{
123 ghuddy 507
   // Get current cookie settings
508
   var us = GetCookie('<%=COOKIE_RELMGR_SHOW_VIEW%>');
509
   var aShowViews = new Array();
119 ghuddy 510
 
123 ghuddy 511
   if (us)
512
   {
513
      // Cookie is not empty, hence just append new value
514
      var aViews = us.split(',');
119 ghuddy 515
 
123 ghuddy 516
      // Make sure that view is not already on the list
517
      for (i=0; i<aViews.length; i++)
518
      {
519
         if (aViews[i] != ViewId)
520
         {
521
            aShowViews.push(aViews[i]);
522
         }
523
      }
119 ghuddy 524
 
123 ghuddy 525
      // Make a new view list to be stored in cookie
526
      us = aShowViews.join(',');
527
   }
528
   else
529
   {
530
      us = '';
531
   }
119 ghuddy 532
 
123 ghuddy 533
   // Store to cookie
534
   document.cookie = '<%=COOKIE_RELMGR_SHOW_VIEW%>' + '=' + us;
119 ghuddy 535
}
536
 
537
function AddToShowView ( ViewId )
538
{
123 ghuddy 539
   // Get current cookie settings
540
   var us = GetCookie('<%=COOKIE_RELMGR_SHOW_VIEW%>');
541
   var aShowViews = new Array();
119 ghuddy 542
 
123 ghuddy 543
   //Release Manager Cookie Available on Show View
544
   if ( us )
545
   {
546
      // Cookie is not empty, hence just append new value
547
      var aViews = us.split(',');
119 ghuddy 548
 
123 ghuddy 549
      // Make sure that view is not already on the list
550
      for (i=0; i<aViews.length; i++)
551
      {
552
         if (aViews[i] != ViewId)
553
         {
554
            aShowViews.push(aViews[i]);
555
         }
556
      }
119 ghuddy 557
 
123 ghuddy 558
      // Make a new view list to be stored in cookie
559
      us = aShowViews.join(',') + ',' + ViewId;
560
   }
561
   else//Release Manager Cookie Not Available on Show View
562
   {
563
      // Cookie is empty, just add this value
564
      us = ViewId;
119 ghuddy 565
 
123 ghuddy 566
   }
119 ghuddy 567
 
123 ghuddy 568
   // Store to cookie
569
   document.cookie = '<%=COOKIE_RELMGR_SHOW_VIEW%>' + '=' + us;
119 ghuddy 570
}
571
 
5071 dpurdie 572
function addSdk()
573
{
574
    var width = 400
575
    var height = 150
576
    var o1 = MM_findObj('sdkDiv');
577
    if (o1 != null )
578
    {
579
        o1.style.display = 'block';
580
        o1.style.height = $(document).height();
581
        o1.style.width = $(document).width();
582
        var o2 = MM_findObj('sdkDivWrap');
583
        o2.style.top = (window.innerHeight / 2) - height/2;
584
        o2.style.left = (window.innerWidth / 2) - width/2;
585
        o2.style.width = width;
586
        o2.style.height = height;
587
        var o3 = MM_findObj('sdkIframe');
588
        o3.src = '_wform_reference_sdk.asp?rtag_id=<%=parRtag_id%>';
589
        $( "#sdkDivWrap" ).resizable().draggable({iframeFix: true});
119 ghuddy 590
 
5071 dpurdie 591
        o1.addEventListener('click', closeIFrame);
592
    }
593
}
594
 
595
function closeIFrame(ref)
596
{
597
    var o1 = MM_findObj('sdkDiv');
598
    if (o1 != null ) {
599
        o1.style.display = 'none';
600
 
601
        var o3 = MM_findObj('sdkIframe');
602
        o3.src = 'about:blank';
603
    }
604
    if (ref != null) {
605
        console.log("closeIFrame:" + ref);
606
        window.location.href = ref;
607
    }
608
}
609
 
119 ghuddy 610
//-->
611
</script>
612
 
613
<%
614
'------------------------------------------------------------------------------------------------------------------------------------------------
615
Function GetEnvTab ( sEnvTab )
5061 dpurdie 616
'   rmDebug = rmDebug & "Cookie[" & Request.Cookies(COOKIE_RELEASEMANAGER_MEMORY) &"] "
617
'   rmDebug = rmDebug & ", Arg[" & sEnvTab & "] "
123 ghuddy 618
   If sEnvTab <> "" Then
619
      GetEnvTab = sEnvTab
5020 dpurdie 620
      Response.Cookies(COOKIE_RELEASEMANAGER_MEMORY)("envtab") = sEnvTab
123 ghuddy 621
   Else
5020 dpurdie 622
      If Request.Cookies(COOKIE_RELEASEMANAGER_MEMORY)("envtab") <> "" Then
623
         GetEnvTab = Request.Cookies(COOKIE_RELEASEMANAGER_MEMORY)("envtab")
123 ghuddy 624
      Else
625
         GetEnvTab = enumENVTAB_WORK_IN_PROGRESS
5020 dpurdie 626
         Response.Cookies(COOKIE_RELEASEMANAGER_MEMORY)("envtab") = enumENVTAB_WORK_IN_PROGRESS
123 ghuddy 627
      End If
628
   End If
5061 dpurdie 629
'   rmDebug = rmDebug & ", GetEnvTab:" & GetEnvTab
119 ghuddy 630
End Function
631
'------------------------------------------------------------------------------------------------------------------------------------------------
632
Sub Display_Env_BaseView ( NNbase_view_id, SSbase_view, BBviewCollapsed, SScontents )
633
%>
634
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
123 ghuddy 635
   <tr>
636
      <td width="1" align="left" valign="top" bgcolor="#dad7c8"><img src="images/p_ctl.gif" width="3" height="3"></td>
637
      <td width="100%" bgcolor="#dad7c8"><img src="images/spacer.gif" width="1" height="1"></td>
638
      <td width="1" bgcolor="#dad7c8"><img src="images/spacer.gif" width="1" height="1"></td>
639
      <td width="1" align="right" valign="top" bgcolor="#dad7c8"><img src="images/p_ctr.gif" width="3" height="3"></td>
640
   </tr>
641
   <tr>
642
      <td align="left" valign="top" bgcolor="#dad7c8">&nbsp;</td>
643
      <td bgcolor="#dad7c8"><SPAN id="SPANVIEW<%=NNbase_view_id%>" <%If BBviewCollapsed Then%>class="body_scol_thin"<%Else%>class="body_txt"<%End If%>>&nbsp;<b><%=SSbase_view%></b></SPAN></td>
4398 dpurdie 644
      <td align="right" bgcolor="#dad7c8"><a href="javascript:;" title="Expand/Collapse View" onClick="RequestViewContent('<%=NNbase_view_id%>');"><img id="ENVIMG<%=NNbase_view_id%>" src="images/<%If BBviewCollapsed Then %>btn_max.gif<%Else%>btn_min.gif<%End If%>" border="0"></a></td>
123 ghuddy 645
      <td align="right" valign="top" bgcolor="#dad7c8">&nbsp;</td>
646
   </tr>
119 ghuddy 647
</table>
648
<DIV id="ENVDIV<%=NNbase_view_id%>" class="envContent" <%If BBviewCollapsed Then %>style="display:none;"<%Else%>style="display:block;"<%End If%>>
123 ghuddy 649
   <%If NOT BBviewCollapsed Then %>
650
      <%=SScontents%>
651
   <%Else%>
652
      <%=enumLOADING%>
653
   <%End If%>
654
</DIV>
119 ghuddy 655
<br>
656
<%
657
End Sub
658
'------------------------------------------------------------------------------------------------------------------------------------------------
659
Sub Print_View( NNEnvTab, SSviewtype, NNrtag_id, SSshowviews, NNuser_id )
123 ghuddy 660
   Dim rsView, Query_String
661
   'Dim btn1
662
   Dim tmpURL
663
   Dim SSscript
664
   Dim qstrPar
665
   Dim nViewType
666
   Dim nTrueRecordCount
667
   Dim nOperation
668
   Dim relContentsSTR, viewCollapsed, curr_view_id, view_name
119 ghuddy 669
 
123 ghuddy 670
   If scriptName = "find.asp" Then
671
      SSscript = "dependencies.asp"
672
   Else
673
      SSscript = scriptName
674
   End If
119 ghuddy 675
 
123 ghuddy 676
   If SSviewtype = "guest" Then
677
      nViewType = 1
678
      qstrPar = "Bshow"
679
   ElseIf SSviewtype = "personal" Then
680
      nViewType = 2
681
      qstrPar = "Pshow"
682
   End If
5061 dpurdie 683
'rmDebug = rmDebug & " ,NNEnvTab[" & NNEnvTab & "," & CInt(NNEnvTab) & "]"
123 ghuddy 684
   OraDatabase.Parameters.Add "VIEW_TYPE",           nViewType, ORAPARM_INPUT, ORATYPE_NUMBER
685
   'OraDatabase.Parameters.Add "VIEW_ID_SHOW_LIST",   ShowView( Pipes2Commas( SSshowviews ), SSviewtype ), ORAPARM_INPUT, ORATYPE_VARCHAR2
686
   OraDatabase.Parameters.Add "VIEW_ID_SHOW_LIST",   GetShowViewList(), ORAPARM_INPUT, ORATYPE_VARCHAR2
687
   OraDatabase.Parameters.Add "RTAG_ID",             NNrtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
688
   OraDatabase.Parameters.Add "USER_ID",             NNuser_id, ORAPARM_INPUT, ORATYPE_NUMBER
689
   OraDatabase.Parameters.Add "TRUE_RECORD_COUNT",   NULL, ORAPARM_OUTPUT, ORATYPE_NUMBER
690
   OraDatabase.Parameters.Add "RECORD_SET",          NULL, ORAPARM_OUTPUT, ORATYPE_CURSOR
119 ghuddy 691
 
123 ghuddy 692
   'If it's a Deployment View
693
   If parDview = "enable" Then
694
      ' Decide which environment list is to be displayed to the Integrators/Testers
695
      Select Case CInt( NNEnvTab )
696
         Case enumENVTAB_PRODRELEASE
697
            OraDatabase.ExecuteSQL "BEGIN  PK_ENVIRONMENT.GET_PRODRELEASE_ITEMS ( :RTAG_ID, :TRUE_RECORD_COUNT, :RECORD_SET );  END;"
119 ghuddy 698
 
123 ghuddy 699
         Case enumENVTAB_INTEGRATE
700
            OraDatabase.ExecuteSQL "BEGIN  PK_ENVIRONMENT.GET_INTEGRATION_ITEMS ( :RTAG_ID, :TRUE_RECORD_COUNT, :RECORD_SET );  END;"
119 ghuddy 701
 
123 ghuddy 702
         Case enumENVTAB_TEST
703
            OraDatabase.ExecuteSQL "BEGIN  PK_ENVIRONMENT.GET_TEST_ITEMS ( :RTAG_ID, :TRUE_RECORD_COUNT, :RECORD_SET );  END;"
119 ghuddy 704
 
123 ghuddy 705
         Case enumENVTAB_DEPLOY
706
            OraDatabase.ExecuteSQL "BEGIN  PK_ENVIRONMENT.GET_DEPLOY_ITEMS ( :RTAG_ID, :TRUE_RECORD_COUNT, :RECORD_SET );  END;"
119 ghuddy 707
 
123 ghuddy 708
         Case enumENVTAB_REJECT
709
            OraDatabase.ExecuteSQL "BEGIN  PK_ENVIRONMENT.GET_REJECT_ITEMS ( :RTAG_ID, :TRUE_RECORD_COUNT, :RECORD_SET );  END;"
119 ghuddy 710
 
123 ghuddy 711
      End Select
119 ghuddy 712
 
123 ghuddy 713
   Else
714
      ' Decide which environment list is to be displayed
715
      Select Case CInt( NNEnvTab )
716
         Case enumENVTAB_WORK_IN_PROGRESS
717
            OraDatabase.ExecuteSQL "BEGIN  PK_ENVIRONMENT.GET_WORK_IN_PROGRESS_ITEMS ( :VIEW_TYPE, :USER_ID, :RTAG_ID, :VIEW_ID_SHOW_LIST, :TRUE_RECORD_COUNT, :RECORD_SET );  END;"
119 ghuddy 718
 
123 ghuddy 719
         Case enumENVTAB_PLANNED
720
            OraDatabase.ExecuteSQL "BEGIN  PK_ENVIRONMENT.GET_PENDING_ITEMS ( :VIEW_TYPE, :USER_ID, :RTAG_ID, :VIEW_ID_SHOW_LIST, :TRUE_RECORD_COUNT, :RECORD_SET );  END;"
119 ghuddy 721
 
123 ghuddy 722
         Case enumENVTAB_RELEASED
723
            OraDatabase.ExecuteSQL "BEGIN  PK_ENVIRONMENT.GET_RELEASED_ITEMS ( :VIEW_TYPE, :USER_ID, :RTAG_ID, :VIEW_ID_SHOW_LIST, :TRUE_RECORD_COUNT, :RECORD_SET );  END;"
119 ghuddy 724
 
123 ghuddy 725
         Case Else
726
            OraDatabase.ExecuteSQL "BEGIN  PK_ENVIRONMENT.GET_ENVIRONMENT_ITEMS ( :VIEW_TYPE, :USER_ID, :RTAG_ID, :VIEW_ID_SHOW_LIST, :TRUE_RECORD_COUNT, :RECORD_SET );  END;"
119 ghuddy 727
 
123 ghuddy 728
      End Select
119 ghuddy 729
 
123 ghuddy 730
   End If
119 ghuddy 731
 
123 ghuddy 732
   ' Get Record set from database
733
   Set rsView = OraDatabase.Parameters("RECORD_SET").Value
734
   nTrueRecordCount = OraDatabase.Parameters("TRUE_RECORD_COUNT").Value
119 ghuddy 735
 
123 ghuddy 736
   OraDatabase.Parameters.Remove "RTAG_ID"
737
   OraDatabase.Parameters.Remove "USER_ID"
738
   OraDatabase.Parameters.Remove "VIEW_TYPE"
739
   OraDatabase.Parameters.Remove "VIEW_ID_SHOW_LIST"
740
   OraDatabase.Parameters.Remove "RECORD_SET"
741
   OraDatabase.Parameters.Remove "TRUE_RECORD_COUNT"
119 ghuddy 742
 
123 ghuddy 743
   ' Initialise variables
744
   If ((NOT rsView.BOF) AND (NOT rsView.EOF)) Then
745
      relContentsSTR = ""
746
      viewCollapsed = FALSE
747
      curr_view_id = rsView("view_id")      ' Set current view
748
      view_name = rsView("view_name")
749
   End If
119 ghuddy 750
 
123 ghuddy 751
   While ((NOT rsView.BOF) AND (NOT rsView.EOF))
752
      '==== Get View Contents ====
753
      If NOT IsNull(rsView.Fields("pv_id")) Then
754
         tmpURL = SSscript &"?pv_id="& rsView.Fields("pv_id") &"&rtag_id="& parRtag_id
755
         IMG_locked = ""
756
         If rsView.Fields("dlocked") = "Y" Then IMG_locked = imgLocked
119 ghuddy 757
 
123 ghuddy 758
         ' DEVI-45275 - Normally, dlocked=Y items are denoted with a padlock icon on the web page. Since we can now merge
759
         ' into the pending tab, the dlocked=Y items that end up there would not give any visual indication to the user
760
         ' as to why they are present. So, instead of the padlock icon, display the added or removed icon to indicate
761
         ' what the intended action is to be, once the pending item is approved.
762
         ' Obviously, this functionality does not apply if we are in the deployment view, and only applies if viewing
763
         ' the PENDING or ALL environment tabs.
764
         ' With regard to the operation value, A = Added, S = Subtracted
765
         nOperation = " "
766
         If parDview <> "enable" AND (CInt( NNEnvTab ) = enumENVTAB_PLANNED OR CInt( NNEnvTab ) = enumENVTAB_ALL) Then
767
            nOperation = rsView.Fields("operation")   ' NB. this field is only availble if earlier query was GET_PENDING_ITEMS or GET_ENVIRONMENT_ITEMS
768
            If nOperation = "A" Then
769
               IMG_locked = imgAdded
770
            ElseIf nOperation = "S" Then
771
               IMG_locked = imgRemoved
772
            End If
773
         End If
119 ghuddy 774
 
123 ghuddy 775
         relContentsSTR = relContentsSTR & "<tr>" & VBNewLine
119 ghuddy 776
 
123 ghuddy 777
         If rsView("pkg_state") = 0 And rsView.Fields("deprecated_state") <> "" Then
778
            relContentsSTR = relContentsSTR & "  <td width='1%'>"& DefineStateIcon ( rsView.Fields("deprecated_state"), rsView("dlocked"), NULL, NULL, pkgInfoHash.Item("build_type"), TRUE ) &"</td>"& VBNewLine
779
         Else
780
            If (parDview <> "enable") AND ( ( CInt(NNEnvTab) = enumENVTAB_PLANNED ) OR ( Request("envtab") = enumENVTAB_PLANNED ) ) Then
119 ghuddy 781
 
123 ghuddy 782
               ' if package version is unlocked, rejected, or pending approval, or is to be added/subtracted to/from the release (DEVI-45275), then
783
               If (rsView("dlocked") = "N") OR (rsView("dlocked") = "R") OR (rsView("dlocked") = "P") OR (nOperation = "A") OR (nOperation = "S") Then
784
                  checked = NULL
785
                  disabled = NULL
786
                  ' disable check box if not logged in, or if not in open mode and user has no permission to approve pending
787
                  If objAccessControl.UserLogedIn Then
788
                     If ( ReleaseMode <> enumDB_RELEASE_IN_OPEN_MODE ) Then
5061 dpurdie 789
                        If NOT canActionControlInProject("ApproveForAutoBuild") Then
123 ghuddy 790
                           disabled = "disabled"
791
                        End If
792
                     End If
793
                  Else
794
                     disabled = "disabled"
795
                  End If
119 ghuddy 796
 
123 ghuddy 797
               Else ' always check and disable the checkbox
798
                  checked = "checked"
799
                  disabled = "disabled"
800
               End If
119 ghuddy 801
 
123 ghuddy 802
               relContentsSTR = relContentsSTR & " <td width='1%'><input name='pv_id_list' id='pv_id_list' type=checkbox value="&rsView.Fields("pv_id")&" "&checked&" "&disabled&"></td>"& VBNewLine
803
            Else
804
               relContentsSTR = relContentsSTR & " <td width='1%'>"& DefineStateIcon ( rsView("pkg_state"), rsView("dlocked"), NULL, NULL, pkgInfoHash.Item("build_type"), TRUE ) &"</td>"& VBNewLine
805
            End If
806
         End If
119 ghuddy 807
 
123 ghuddy 808
         relContentsSTR = relContentsSTR & "  <td width='100%' nowrap><a href='"& tmpURL &"' class='body_txt_drk' title="""& HTMLEncode( rsView("pv_description") ) &""">"& rsView.Fields("pkg_name") &"</a></td>" & VBNewLine
809
         relContentsSTR = relContentsSTR & "  <td width='1%' nowrap class='envPkg'>"& rsView.Fields("pkg_version") &"</td>" & VBNewLine
810
         relContentsSTR = relContentsSTR & "  <td width='1%'>"& IMG_locked &"</td>"
811
         relContentsSTR = relContentsSTR & "</tr>" & VBNewLine
812
      Else
813
         'relContentsSTR = relContentsSTR & "<tr><td><label class='form_txt' disabled>...</label></td></tr>"      ' Collapsed view displays dots
119 ghuddy 814
 
123 ghuddy 815
         viewCollapsed = TRUE
816
      End If
119 ghuddy 817
 
123 ghuddy 818
      rsView.MoveNext
119 ghuddy 819
 
123 ghuddy 820
      If ((NOT rsView.BOF) AND (NOT rsView.EOF)) Then
821
         ' NOT end of the record set
822
         If curr_view_id <> rsView("view_id") Then
823
            '====== Draw buttons =================================
824
            'If InStrPipes( SSshowviews, curr_view_id ) Then
825
            '   btn1 = "<a href='"& SSscript &"?"& qstrPar &"="& RemoveFromStrPipes( SSshowviews, curr_view_id ) &"&pv_id="& Request("pv_id") &"&rtag_id="& NNrtag_id &"' >"& imgMinimise &"</a>"
826
            'Else
827
            '   btn1 = "<a href='"& SSscript &"?"& qstrPar &"=|"& curr_view_id &"|"& SSshowviews &"&pv_id="& Request("pv_id") &"&rtag_id="& NNrtag_id &"'>"& imgMaximise &"</a>"
828
            'End If
119 ghuddy 829
 
123 ghuddy 830
            '====== Print contents ===============================
831
            relContentsSTR = "<table width='100%' border='0' cellspacing='0' cellpadding='1'>" & relContentsSTR & "</table>"
832
            Call Display_Env_BaseView ( curr_view_id, view_name, viewCollapsed, relContentsSTR )
119 ghuddy 833
 
123 ghuddy 834
            curr_view_id = rsView("view_id")
835
            view_name = rsView("view_name")
836
            relContentsSTR = ""      ' Empty the contents string
837
            viewCollapsed = FALSE
838
         End If
119 ghuddy 839
 
123 ghuddy 840
      Else
841
         ' End of the record set
119 ghuddy 842
 
123 ghuddy 843
         '====== Draw buttons =================================
844
         'If InStrPipes( SSshowviews, curr_view_id ) Then
845
         '   btn1 = "<a href='"& SSscript &"?"& qstrPar &"="& RemoveFromStrPipes( SSshowviews, curr_view_id ) &"&pv_id="& Request("pv_id") &"&rtag_id="& NNrtag_id &"' >"& imgMinimise &"</a>"
846
         'Else
847
         '   btn1 = "<a href='"& SSscript &"?"& qstrPar &"=|"& curr_view_id &"|"& SSshowviews &"&pv_id="& Request("pv_id") &"&rtag_id="& NNrtag_id &"'>"& imgMaximise &"</a>"
848
         'End If
119 ghuddy 849
 
123 ghuddy 850
         '====== Print contents ===============================
851
         relContentsSTR = "<table width='100%' border='0' cellspacing='0' cellpadding='1'>" & relContentsSTR & "</table>"
852
         Call Display_Env_BaseView ( curr_view_id, view_name, viewCollapsed, relContentsSTR )
119 ghuddy 853
 
123 ghuddy 854
      End If
119 ghuddy 855
 
123 ghuddy 856
   WEnd
119 ghuddy 857
 
123 ghuddy 858
   If relContentsSTR <> "" Then
859
      Response.write "<a href='help/icons_F017.asp' target='_blank' class='body_scol'>Icon Legend...</a><br>"
860
   End If
119 ghuddy 861
 
123 ghuddy 862
   If nTrueRecordCount > 0 Then
863
      If rsView.RecordCount < 1 Then
864
         'If qstrPar = "Bshow" Then
865
         '   'Release is empty. Draw default box for Base view
866
         '   Call DisplayInfo ( "EMPTY_RELEASE_CONTENTS", "100%" )
867
         '
868
         'End If
119 ghuddy 869
 
123 ghuddy 870
         If qstrPar = "Pshow"  Then
871
            'Release is empty. Draw default box for Personal view
872
            Call DisplayInfo ( "PERSONAL_VIEW_NOT_SETUP", "100%" )
873
         End If
119 ghuddy 874
 
123 ghuddy 875
      End If
876
   End If
119 ghuddy 877
 
123 ghuddy 878
   ' Destroy
879
   rsView.Close
880
   Set rsView = nothing
119 ghuddy 881
End Sub
882
'------------------------------------------------------------------------------------------------------------------------------------------------
883
Sub PopulateGetShowViews ( ByRef outShowView )
884
 
123 ghuddy 885
   If Session(SESSION_SHOW_BASE_VIEW) <> "" Then
886
      Set outShowView = Session(SESSION_SHOW_BASE_VIEW)
119 ghuddy 887
 
123 ghuddy 888
   End If
119 ghuddy 889
End Sub
890
'------------------------------------------------------------------------------------------------------------------------------------------------
891
Function GetShowViewList ()
123 ghuddy 892
   'If SSparshow <> "" Then
893
   '   ' get list from query string
894
   '   ShowView = SSparshow
895
   'ElseIf Request.Cookies("RELEASEMANAGER_VIEW_SHOW")( SSviewtype ) <> "" Then
896
   '   ' get list from cookie
897
   '   ShowView = Request.Cookies("RELEASEMANAGER_VIEW_SHOW")( SSviewtype )
898
   'Else
899
   '   ' no list i.e. collapse all views
900
   '   ShowView = -1
901
   'End If
119 ghuddy 902
 
123 ghuddy 903
   'If oShowView.Count = 0 Then
904
   '   GetShowViewList = -1
905
   'Else
906
   '   GetShowViewList = Join( oShowView.Keys, "," )
907
   'End If
119 ghuddy 908
 
123 ghuddy 909
   If Request.Cookies(COOKIE_RELMGR_SHOW_VIEW) = "" Then
910
      GetShowViewList = -1
911
   Else
912
      GetShowViewList = Request.Cookies(COOKIE_RELMGR_SHOW_VIEW)
913
   End If
119 ghuddy 914
 
915
End Function
125 ghuddy 916
 
917
 
918
 
119 ghuddy 919
'------------------------------------------------------------------------------------------------------------------------------------------------
125 ghuddy 920
' This function forms a URL to use for refreshing the current dependencies.asp based page using the settings that are in effect at the time.
921
' Most importantly, it filters out the pv_id parameter if it is null (which otherwise would cause the page to be rendered incorreclty for an
922
' as yet, unknown reason).
923
'
924
Function RefreshedURL(NNdview, NNpview, NNpv_id, NNrtag_id)
925
   Dim url
926
 
927
   url = scriptName & "?Dview=" & NNdview & "&Pview=" & NNpview
928
 
929
   If NNpv_id Then
930
      url = url & "&pv_id=" & NNpv_id
931
   End If
932
 
933
   url = url & "&rtag_id=" & NNrtag_id
934
 
935
   RefreshedURL = url
936
End Function
937
 
938
 
939
'------------------------------------------------------------------------------------------------------------------------------------------------
119 ghuddy 940
%>
941
<%
942
 
943
'------------------------- MAIN LINE ---------------------------
944
%>
945
 
946
<%If parRtag_Id <> "" Then%>
947
<!-- RELEASE ACTION BUTTONS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
948
 
123 ghuddy 949
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
950
      <tr>
951
         <td width="1" background="images/bg_action_norm.gif"><img src="images/spacer.gif" width="10" height="35"></td>
952
         <td width="100%" nowrap background="images/bg_action_norm.gif" >
953
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
954
               <tr>
955
                  <%
5061 dpurdie 956
                  If objAccessControl.UserLogedIn AND ((((ReleaseMode = enumDB_RELEASE_IN_CCB_MODE) OR (ReleaseMode = enumDB_RELEASE_IN_RESTRICTIVE_MODE)) AND canActionControlInProject("AddDeletePackageInRestrictiveMode")) OR (ReleaseMode = enumDB_RELEASE_IN_OPEN_MODE )) Then
123 ghuddy 957
                     Response.write "<td width='1'><a href='form_search_pkgs.asp?rtag_id="& Request("rtag_id") &"&add_type="& enum_ADD_PACKAGES &"' title='Add package to this release'><img src='images/abtn_add_pkg.gif'  width='25' height='25' hspace='1' border='0'></a></td>"
958
                  Else
959
                     Response.write "<td width='1'><img src='images/abtn_add_pkg_off.gif' alt='Add package to this release' width='26' height='26' hspace='1' border='0'></td>"
960
                  End If
119 ghuddy 961
 
4670 dpurdie 962
                  If (pkgInfoHash.Item("dlocked") <> "Y") AND (Request("pv_id") <> "") Then
5061 dpurdie 963
                     If  (objAccessControl.UserLogedIn) AND ( (objAccessControl.UserName = pkgInfoHash.Item("creator")) OR (canActionControlInProject("DestroyPackageFromRelease")) ) Then
123 ghuddy 964
                        Response.write "<td width='1'><a href='_destroy_package.asp?rtag_id="& Request("rtag_id") &"&bfile="& ScriptName &"&pkg_id="& pkgInfoHash.Item("pkg_id") &"&pv_id="& Request("pv_id") &"' title='Destroy the selected Package Version' onClick='return confirmAction(""You are about to destroy ["& pkgInfoHash.Item("pkg_name") &" "& pkgInfoHash.Item("pkg_version") &"]. You cannot undo this operation.\nDo you want to proceed?"");'><img src='icons/i_destroy_package.gif' alt='Destroy the selected Package Version' width='26' height='26' hspace='1' border='0'></td>"
4670 dpurdie 965
                     Else
966
                        Response.write "<td width='1'><img title='Destroy the selected Package Version' src='icons/i_destroy_package_off.gif' alt='Destroy the selected Package Version' width='26' height='26' hspace='1' border='0'></td>"
123 ghuddy 967
                     End If
968
                  End If
119 ghuddy 969
 
5061 dpurdie 970
                   ' Anybody can view properties
971
                   Response.write "<td width='1'><a href='form_edit_release.asp?rtag_id="&parRtag_id&"' title='Release properties'><img src='images/abtn_release_properties.gif'  width='25' height='25' hspace='1' border='0'></a></td>"
119 ghuddy 972
 
123 ghuddy 973
                  Response.write "<td width='1'><img src='images/spacer.gif' width='7' height='25'></td>"
974
                  If objAccessControl.UserLogedIn Then
975
                     If QStrPar("Pview") = "disable" Then
5061 dpurdie 976
                        Dim ref : ref = RefreshedURL(QStrPar("Dview"), "", Request("pv_id"), Request("rtag_id"))
977
                        Response.write "<td width='1'><a href='"& RefreshedURL(QStrPar("Dview"), "", Request("pv_id"), Request("rtag_id")) &"' title='Personal view disabled. Click to enable."&ref&"'><img src='images/abtn_base_view.gif'  width='25' height='25' hspace='1' border='0'></a></td>"
123 ghuddy 978
                     Else
5061 dpurdie 979
                        ref = RefreshedURL(QStrPar("Dview"), "disable", Request("pv_id"), Request("rtag_id")) 
980
                        Response.write "<td width='1'><a href='"& RefreshedURL(QStrPar("Dview"), "disable", Request("pv_id"), Request("rtag_id")) &"' title='Personal view enabled. Click for full view."&ref&"'><img src='images/abtn_personal_view.gif'  width='25' height='25' hspace='1' border='0'></a></td>"
123 ghuddy 981
                     End If
982
                  Else
983
                     Response.write "<td width='1'><img src='images/abtn_personal_view_off.gif' width='26' height='26' hspace='1' border='0'></td>"
984
                  End If
119 ghuddy 985
 
123 ghuddy 986
                  If QStrPar("Dview") = "enable" Then
125 ghuddy 987
                     Response.write "<td width='1'><a href='"& RefreshedURL("", QStrPar("Pview"), Request("pv_id"), Request("rtag_id")) &"' title='Click to switch to Release View'><img src='icons/ReleaseView.gif'  width='25' height='25' hspace='1' border='0'></a></td>"
123 ghuddy 988
                  Else
125 ghuddy 989
                     Response.write "<td width='1'><a href='"& RefreshedURL("enable", QStrPar("Pview"), Request("pv_id"), Request("rtag_id")) &"' title='Click to switch to Deployment View'><img src='icons/DeploymentView.gif'  width='25' height='25' hspace='1' border='0'></a></td>"
123 ghuddy 990
                  End If
119 ghuddy 991
 
123 ghuddy 992
                  Response.write "<td width='1'><img src='images/spacer.gif' width='7' height='25'></td>"
119 ghuddy 993
 
123 ghuddy 994
                  Response.write "<td width='1'><a href='javascript:;' title='Reference other releases...' onClick='ToggleDisplay(""DIV_RELEASE_REFERENCES"",""SPAN_RELEASE_REFERENCES"",""SPAN_RELEASE_REFERENCES_ON""); ' ><SPAN name='SPAN_RELEASE_REFERENCES' id='SPAN_RELEASE_REFERENCES' style='display:block;'><img src='images/abtn_link_release.gif' width='25' height='25' border='0' hspace='1' ></SPAN><SPAN name='SPAN_RELEASE_REFERENCES_ON' id='SPAN_RELEASE_REFERENCES_ON' style='display:none;'><img src='images/abtn_link_release_on.gif' width='25' height='25' border='0' hspace='1' ></SPAN></a></td>"
5071 dpurdie 995
                  Response.write "<td width='1'><a href='javascript:;' title='SDK Managment' onClick='ToggleDisplay(""DIV_RELEASE_SDK"",""SPAN_RELEASE_SDK"",""SPAN_RELEASE_SDK_ON""); ' ><SPAN name='SPAN_RELEASE_SDK' id='SPAN_RELEASE_SDK' style='display:block;'><img src='images/abtn_link_release.gif' width='25' height='25' border='0' hspace='1' ></SPAN><SPAN name='SPAN_RELEASE_SDK_ON' id='SPAN_RELEASE_SDK_ON' style='display:none;'><img src='images/abtn_link_release_on.gif' width='25' height='25' border='0' hspace='1' ></SPAN></a></td>"
119 ghuddy 996
 
123 ghuddy 997
                  Response.write "<td width='1'><img src='images/spacer.gif' width='7' height='25'></td>"
119 ghuddy 998
 
123 ghuddy 999
                  Response.write "<td width='1'><a href='javascript:;' title='Advanced Search...' onClick='ToggleAdvancedSearch(); ' ><SPAN name='SPAN_ADVANCED_SEARCH' id='SPAN_ADVANCED_SEARCH' style='display:block;'><img src='images/abtn_advanced_search.gif' width='25' height='25' border='0' hspace='1' ></SPAN><SPAN name='SPAN_ADVANCED_SEARCH_ON' id='SPAN_ADVANCED_SEARCH_ON' style='display:none;'><img src='images/abtn_advanced_search_on.gif' width='25' height='25' border='0' hspace='1' ></SPAN></a></td>"
119 ghuddy 1000
 
123 ghuddy 1001
                  If ( (QStrPar("Dview") <> "enable") AND ( (CInt(nEnvTab) = enumENVTAB_PLANNED) OR (Request("envtab") = enumENVTAB_PLANNED) ) ) Then
1002
                     If objAccessControl.UserLogedIn Then
4687 dpurdie 1003
                        If ( ReleaseMode = enumDB_RELEASE_IN_OPEN_MODE ) OR _
5061 dpurdie 1004
                                canActionControlInProject("ApproveForAutoBuild") OR _
1005
                                canActionControlInProject("ApproveForManualBuild") Then
123 ghuddy 1006
                              Response.write "<td width='1'><a href='#' onClick='makeBulkRelease();'><img src='images/abtn_make_release_bulk.gif' title='Make Bulk Release...'></td>"
4687 dpurdie 1007
                              Response.write "<td width='1'><img src='images/spacer.gif' width='1' height='25'></td>"
4358 dpurdie 1008
                              Response.write "<td width='1'><a href='#' onClick='makeBulkReject();'><img src='images/abtn_make_bulk_remove.gif' title='Bulk Reject...'></td>"
1009
                        End If
1010
                     End If
1011
                  End If
123 ghuddy 1012
                  %>
1013
                  <td width="100%"><img src="images/spacer.gif" width="1" height="1"></td>
1014
               </tr>
1015
            </table>
1016
         </td>
1017
         <td width="1" background="images/bg_action_norm.gif"><img src="images/spacer.gif" width="10" height="8"></td>
1018
      </tr>
1019
   </table>
119 ghuddy 1020
 
1021
<!-- ADVANCED SEARCH ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
123 ghuddy 1022
   <DIV name="DIV_ADVANCED_SEARCH" id="DIV_ADVANCED_SEARCH" style="display:none;">
1023
      <table width="100%" border="0" cellspacing="0" cellpadding="10">
1024
         <form name="advancedsearch" method="get" action="find.asp">
1025
            <tr>
1026
               <td nowrap  class="form_txt" valign="middle">
1027
                  <%
1028
                  Dim FindPackageCheck, FindFileCheck
119 ghuddy 1029
 
123 ghuddy 1030
                  FindPackageCheck = ""
1031
                  FindFileCheck = ""
119 ghuddy 1032
 
123 ghuddy 1033
                  If Request("searchtype") = "2" Then
1034
                     FindFileCheck = "checked"
1035
                  Else
1036
                     FindPackageCheck = "checked"
1037
                  End If
119 ghuddy 1038
 
123 ghuddy 1039
                  %>
1040
                  <fieldset>
1041
                     <legend class="body_colb"><img src="images/i_mglass.gif" width="17" height="17" border="0" align="absmiddle">&nbsp;Advanced Search</legend>
1042
                     <input name="searchtype" id="searchtype1" type="radio" value="1" <%=FindPackageCheck%>>
1043
                     <a href="javascript:;" onClick="MM_findObj('searchtype1').checked=true;" class="body_txt">Find a Package</a><br>
1044
                     <input name="searchtype" id="searchtype2" type="radio" value="2" <%=FindFileCheck%>>
1045
                     <a href="javascript:;" onClick="MM_findObj('searchtype2').checked=true;" class="body_txt">Find a File</a><br><br>
1046
                     <%If CInt(nEnvTab) = enumENVTAB_WORK_IN_PROGRESS Then%>
1047
                        Find in Work In Progress<br>
1048
                     <%ElseIf CInt(nEnvTab) = enumENVTAB_PLANNED Then%>
1049
                        Find in Pending<br>
1050
                     <%ElseIf  CInt(nEnvTab) = enumENVTAB_RELEASED Then%>
1051
                        Find in Released<br>
1052
                     <%End If%>
1053
                     <input type="text" name="keyword" size="25" class="form_ivaluew" value="<%=Request("keyword")%>">
1054
                     <input type="submit" name="btn" value="Find" class="form_ivalue">
119 ghuddy 1055
 
123 ghuddy 1056
                     <input type="hidden" name="envtab" value="<%=nEnvTab%>">
1057
                     <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
1058
                  </fieldset>
1059
                  <br>
1060
               </td>
1061
            </tr>
1062
         </form>
1063
      </table>
1064
   </DIV>
119 ghuddy 1065
 
123 ghuddy 1066
   <script language="JavaScript" type="text/javascript">
1067
      <!--
1068
      function ToggleAdvancedSearch( )
1069
      {
1070
         if ( MM_findObj("DIV_ADVANCED_SEARCH").style.display == 'none')
1071
         {
1072
            MM_findObj("DIV_ADVANCED_SEARCH").style.display = 'block';
1073
            MM_findObj("SPAN_ADVANCED_SEARCH").style.display = 'none';
1074
            MM_findObj("SPAN_ADVANCED_SEARCH_ON").style.display = 'block';
1075
         }
1076
         else
1077
         {
1078
            MM_findObj("DIV_ADVANCED_SEARCH").style.display = 'none';
1079
            MM_findObj("SPAN_ADVANCED_SEARCH").style.display = 'block';
1080
            MM_findObj("SPAN_ADVANCED_SEARCH_ON").style.display = 'none';
1081
         }
119 ghuddy 1082
 
123 ghuddy 1083
         document.cookie = 'RELMGR_DIV_ADVANCED_SEARCH' + '=' + MM_findObj("DIV_ADVANCED_SEARCH").style.display;
1084
      }
119 ghuddy 1085
 
123 ghuddy 1086
      // Run this on page render for default setting
1087
      if (GetCookie('RELMGR_DIV_ADVANCED_SEARCH') == 'block')
1088
      {
1089
         ToggleAdvancedSearch();
1090
      }
119 ghuddy 1091
 
123 ghuddy 1092
   //-->
1093
   </script>
119 ghuddy 1094
 
1095
<!-- RELEASE REFERENCES  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
123 ghuddy 1096
   <DIV name="DIV_RELEASE_REFERENCES" id="DIV_RELEASE_REFERENCES" style="display:none;">
1097
      <table width="100%" border="0" cellspacing="0" cellpadding="10">
1098
         <form name="relref" method="get" action="_remove_release_reference.asp" onSubmit="ToggleDisplay('RelRefProgressBar');">
1099
            <tr>
1100
               <td width="100%" nowrap class="form_txt">
1101
                  <fieldset>
1102
                     <legend class="body_colb"><img src="images/i_releaseref.gif" border="0" align="absmiddle">&nbsp;Release References</legend>
1103
                     <DIV id="RelRefProgressBar" name="RelRefProgressBar" style="display:none;" class="class="body_scol"">
1104
                        <img src="images/i_processing.gif" width="11" height="17" align="absmiddle" hspace="3">Processing...
1105
                     </DIV>
1106
                     <b>References</b>
1107
                     <hr noshade size="1">
1108
                     <%If (ReleaseMode = enumDB_RELEASE_IN_OPEN_MODE) Then%>
5071 dpurdie 1109
                        <input <%=controlDisabledInProject("AddReleaseReference")%> type="reset" name="btn" value="Add.." class="form_ivalue" onClick="MM_openBrWindow('_wform_reference_release.asp?ToRtag_id=<%=parRtag_id%>&rfile=<%=ScriptName%>&rtag_id=<%=parRtag_id%>','ReferenceRelease','scrollbars=yes,resizable=yes,width=400,height=200')">
1110
                        &nbsp;<input <%=controlDisabledInProject("RemoveReleaseReference")%> type="submit" name="btn" value="Remove" class="form_ivalue"><br><br>
123 ghuddy 1111
                     <%End If%>
119 ghuddy 1112
 
123 ghuddy 1113
                     <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
119 ghuddy 1114
 
123 ghuddy 1115
                     <table width="100%" border="0" cellspacing="0" cellpadding="1">
1116
                        <tr>
1117
                           <td bgcolor="#999999">
119 ghuddy 1118
 
123 ghuddy 1119
                              <table width="100%" border="0" cellspacing="0" cellpadding="1">
1120
                                 <%
1121
                                 OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
119 ghuddy 1122
 
123 ghuddy 1123
                                 Set rsEnvQry = OraDatabase.DbCreateDynaset( GetQuery("ReleaseReferences.sql"), 0 )
119 ghuddy 1124
 
123 ghuddy 1125
                                 OraDatabase.Parameters.Remove "RTAG_ID"
1126
                                 %>
119 ghuddy 1127
 
123 ghuddy 1128
                                 <%If rsEnvQry.RecordCount = 0 Then%>
1129
                                 <tr>
1130
                                    <td colspan="2" bgcolor="#FFFFFF" class="body_txt_gray">
1131
                                       No references used.
1132
                                    </td>
1133
                                 </tr>
1134
                                 <%End If%>
119 ghuddy 1135
 
123 ghuddy 1136
                                 <%While (NOT rsEnvQry.EOF) AND (NOT rsEnvQry.BOF)
1137
                                    If rsEnvQry("official") = "Y" Then
1138
                                       IMG_locked = imgLocked
1139
                                    Else
1140
                                       IMG_locked = ""
1141
                                    End If%>
1142
                                    <tr>
1143
                                       <td bgcolor="#FFFFFF" class="body_txt"><input type="checkbox" name="refrtag_id" value="<%=rsEnvQry("rtag_id")%>"></td>
1144
                                       <td bgcolor="#FFFFFF" class="body_txt" nowrap>
1145
                                          <a href="dependencies.asp?rtag_id=<%=rsEnvQry("rtag_id")%>" class="body_link" title="Go to this release...">
1146
                                          <%=rsEnvQry("proj_name")%> &gt; <%=rsEnvQry("rtag_name")%><%=IMG_locked%></a>&nbsp;
1147
                                       </td>
1148
                                    </tr>
1149
                                    <%rsEnvQry.MoveNext()
1150
                                 WEnd%>
1151
                                 <tr>
1152
                                    <td colspan="2" bgcolor="#FFFFFF" class="body_txt_gray">
1153
                                       <br><br><br>
1154
                                    </td>
1155
                                 </tr>
1156
                              </table>
1157
                           </td>
1158
                        </tr>
1159
                     </table>
1160
                     <br><br>
119 ghuddy 1161
 
123 ghuddy 1162
                     <b>Referenced By</b>
1163
                     <hr noshade size="1">
119 ghuddy 1164
 
123 ghuddy 1165
                     <table width="100%" border="0" cellspacing="0" cellpadding="1">
1166
                        <tr>
1167
                           <td bgcolor="#999999">
119 ghuddy 1168
 
123 ghuddy 1169
                              <table width="100%" border="0" cellspacing="0" cellpadding="1">
1170
                                 <%
1171
                                 OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
119 ghuddy 1172
 
123 ghuddy 1173
                                 Set rsEnvQry = OraDatabase.DbCreateDynaset( GetQuery("ReleaseReferencedBy.sql"), 0 )
119 ghuddy 1174
 
123 ghuddy 1175
                                 OraDatabase.Parameters.Remove "RTAG_ID"
1176
                                 %>
119 ghuddy 1177
 
123 ghuddy 1178
                                 <%If rsEnvQry.RecordCount = 0 Then%>
1179
                                    <tr>
1180
                                       <td colspan="2" bgcolor="#FFFFFF" class="body_txt_gray">
1181
                                          Not referenced anywhere.
1182
                                       </td>
1183
                                    </tr>
1184
                                 <%End If%>
119 ghuddy 1185
 
123 ghuddy 1186
                                 <%While (NOT rsEnvQry.EOF) AND (NOT rsEnvQry.BOF)
1187
                                    If rsEnvQry("official") = "Y" Then
1188
                                       IMG_locked = imgLocked
1189
                                    Else
1190
                                       IMG_locked = ""
1191
                                    End If%>
1192
                                    <tr>
1193
                                       <td bgcolor="#FFFFFF" class="body_txt"><input type="checkbox" name="refrtag_id" value="<%=rsEnvQry("rtag_id")%>" disabled></td>
1194
                                       <td bgcolor="#FFFFFF" class="body_txt" nowrap>
5071 dpurdie 1195
                                          <a href="dependencies.asp?rtag_id=<%=rsEnvQry("rtag_id")%>" class="body_link" title="Go to this SDK...">
123 ghuddy 1196
                                          <%=rsEnvQry("proj_name")%> &gt; <%=rsEnvQry("rtag_name")%><%=IMG_locked%></a>&nbsp;
1197
                                       </td>
1198
                                    </tr>
1199
                                    <%rsEnvQry.MoveNext()
1200
                                 WEnd%>
1201
                                 <tr>
1202
                                    <td colspan="2" bgcolor="#FFFFFF" class="body_txt_gray">
1203
                                       <br><br><br>
1204
                                    </td>
1205
                                 </tr>
1206
                              </table>
1207
                           </td>
1208
                        </tr>
1209
                     </table>
1210
                     <br>
1211
                  </fieldset>
1212
                  <br>
1213
               </td>
1214
            </tr>
1215
         </form>
1216
      </table>
1217
   </DIV>
119 ghuddy 1218
<!-- END OF RELEASE REFERENCES  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
5071 dpurdie 1219
<!-- RELEASE SDK  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
1220
   <div id="sdkDiv" style="display:none;position: absolute;top: 0;left: 0;z-index:1000;width: 100%;height: 100%;background-color: rgba(204, 208, 42, 0.54);">
1221
    <div id=sdkDivWrap class="rounded_box" style="position:relative;background:white;">
1222
        <iframe id=sdkIframe scrolling="no" style="width:100%;height:100%;overflow:hidden;border:0px" ></iframe>
1223
    </div>
1224
   </div>
119 ghuddy 1225
 
5071 dpurdie 1226
   <DIV name="DIV_RELEASE_SDK" id="DIV_RELEASE_SDK" style="display:none;">
1227
      <table width="100%" border="0" cellspacing="0" cellpadding="10">
1228
         <form name="RelSdk" method="get" action="sdk_remove_release.asp" onSubmit="ToggleDisplay('RelSdkProgressBar');">
1229
            <tr>
1230
               <td width="100%" nowrap class="form_txt">
1231
                  <fieldset>
1232
                     <legend class="body_colb"><img src="images/i_releaseref.gif" border="0" align="absmiddle">&nbsp;Release SDK</legend>
1233
                     <DIV id="RelSdkProgressBar" name="RelRefProgressBar" style="display:none;" class="class="body_scol"">
1234
                        <img src="images/i_processing.gif" width="11" height="17" align="absmiddle" hspace="3">Processing...
1235
                     </DIV>
1236
                     <%If (ReleaseMode = enumDB_RELEASE_IN_OPEN_MODE) Then%>
1237
                        <button <%=controlDisabledInProject("AddReleaseReference")%> onClick="addSdk(); return false;" class="rmbutton">Add ...</button>
1238
                        &nbsp;<button  <%=controlDisabledInProject("RemoveReleaseReference")%> class="rmbutton">Remove</button><br><br>
1239
                     <%End If%>
1240
 
1241
                     <input type="hidden" name="rtag_id" value="<%=parRtag_id%>">
1242
 
1243
                     <table width="100%" border="0" cellspacing="0" cellpadding="1">
1244
                        <tr>
1245
                           <td bgcolor="#999999">
1246
 
1247
                              <table width="100%" border="0" cellspacing="0" cellpadding="1">
1248
                                 <%
1249
                                 OraDatabase.Parameters.Add "RTAG_ID", parRtag_id, ORAPARM_INPUT, ORATYPE_NUMBER
1250
                                 Set rsEnvQry = OraDatabase.DbCreateDynaset( GetQuery("ReleaseSdks.sql"), 0 )
1251
                                 OraDatabase.Parameters.Remove "RTAG_ID"
1252
                                 %>
1253
 
1254
                                 <%If rsEnvQry.RecordCount = 0 Then%>
1255
                                 <tr>
1256
                                    <td colspan="2" bgcolor="#FFFFFF" class="body_txt_gray">
1257
                                       No SDKs used.
1258
                                    </td>
1259
                                 </tr>
1260
                                 <%End If%>
1261
 
1262
                                 <%While (NOT rsEnvQry.EOF) AND (NOT rsEnvQry.BOF)%>
1263
                                    <tr>
1264
                                       <td bgcolor="#FFFFFF" class="body_txt"><input type="checkbox" name="sdktag_id" value="<%=rsEnvQry("SDKTAG_ID")%>"></td>
1265
                                       <td bgcolor="#FFFFFF" class="body_txt" nowrap><%=rsEnvQry("SDK_NAME")%> &gt; <%=rsEnvQry("SDKTAG_NAME")%><%=IMG_locked%></td>
1266
                                    </tr>
1267
                                    <%rsEnvQry.MoveNext()
1268
                                 WEnd%>
1269
                                 <tr>
1270
                                    <td colspan="2" bgcolor="#FFFFFF" class="body_txt_gray">
1271
                                       <br><br><br>
1272
                                    </td>
1273
                                 </tr>
1274
                              </table>
1275
                           </td>
1276
                        </tr>
1277
                     </table>
1278
                  </fieldset>
1279
                  <br>
1280
               </td>
1281
            </tr>
1282
         </form>
1283
      </table>
1284
   </DIV>
1285
<!-- END OF RELEASE SDK  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
1286
 
119 ghuddy 1287
<!-- PACKAGE LIST ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
4389 dpurdie 1288
   <form id="pending_PVID_List" name="pending_PVID_List" method="post" action="make_bulk_release.asp?pv_id=<%=Request("pv_id")%>&rtag_id=<%=parRtag_id%>", onSubmit="makeBulkRelease();">
123 ghuddy 1289
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
1290
         <tr>
1291
            <td width="1" bgcolor="#999999"><img src="images/spacer.gif" width="10" height="25"></td>
1292
            <td width="100%" bgcolor="#999999" valign="bottom">
1293
               <!-- TAB CONTROLS ++++++++++++++++++++++ -->
1294
               <%
1295
               Set objTabControl = New TabControl
1296
               objTabControl.TemplateDoc = ReadFile( Server.MapPath("controls/ERGTabStyleDreamWeaver/dreamweaver_style.html") ) ' Supply tab style definition
1297
               objTabControl.TabStyle = "StyleDreamWeaver"
1298
               If   QStrPar("Dview") = "enable"   Then
1299
                  objTabControl.AddTabDefnition ( arrProductEnv )   '-   Integration/Test/Deploy
1300
               Else
1301
                  objTabControl.AddTabDefnition ( arrEnv )
1302
               End If
1303
               objTabControl.SelectByIndex ( nEnvTab )
1304
               objTabControl.Render ()
1305
               %>
1306
               <!-- END OF TAB CONTROLS +++++++++++++++ -->
1307
            </td>
1308
            <td width="1" bgcolor="#999999"><img src="images/spacer.gif" width="10" height="1"></td>
1309
         </tr>
1310
         <tr>
1311
            <td></td>
1312
            <td>
4388 dpurdie 1313
                <%Dim cb_selectall_display, cb_disabled
1314
                  If nEnvTab <> 1 Then cb_selectall_display = " style=display:none"
1315
                  If NOT objAccessControl.UserLogedIn Then cb_disabled = " disabled"%>
1316
                <input id="cb_selectall" type="checkbox" title="Toggle all checkboxes" onclick="toggletick(this);"<%=cb_selectall_display%><%=cb_disabled%> style="position: relative;left: 5px;float: left;">
1317
                <a href="javascript:;" title="Minimise/Restore all populated Views" onclick="toggleAllViews();"><img id="cb_minall" src="images/btn_min.gif" style="float: right;position: relative;left: -4;top: 3;"></a>
1318
                <a href="javascript:;" title="Close Populated Views" onclick="closeAllViews();"><img src="images/btn_remove.gif" style="float: right;position: relative;left: -4;"></a>
4395 dpurdie 1319
                <a href="javascript:;" title="Open and Populate all Views" onclick="openAllViews();"><img src="images/btn_expand.gif" style="float: right;position: relative;left: -4; top:2;"></a>
123 ghuddy 1320
               <%
1321
               Dim tempTimer
1322
               tempTimer = Timer
1323
               %>
1324
               <%'Response.write "TOTAL TIME: "&  Timer - tempTimer%>
1325
               <%
119 ghuddy 1326
 
123 ghuddy 1327
               '--- Render Environment ---
1328
               If objAccessControl.UserLogedIn AND (parPview <> "disable") Then
1329
                  'Personal View
1330
                  Call Print_View( nEnvTab, "personal", parRtag_id, parPshow, objAccessControl.UserId )
1331
               Else
1332
                  ' Guest view
1333
                  Call Print_View( nEnvTab, "guest", parRtag_id, parBshow, empty )
1334
               End If
1335
               %>
119 ghuddy 1336
 
123 ghuddy 1337
               <%'Response.write "TOTAL TIME: "&  Timer - tempTimer%>
1338
               <br>
1339
            </td>
1340
            <td></td>
1341
         </tr>
4389 dpurdie 1342
       </table>
1343
   </form>
123 ghuddy 1344
   <!-- <input type="hidden" name="pv_id_list" value=<%=Request("pv_id_list")%>> -->
119 ghuddy 1345
<!--END OF PACKAGE LIST ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
1346
 
1347
<%End If%>