Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

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