| Line 37... |
Line 37... |
| 37 |
Dim bShowProblemDaemonSets ' Indicates if problem daemons must be shown during filtering
|
37 |
Dim bShowProblemDaemonSets ' Indicates if problem daemons must be shown during filtering
|
| 38 |
Dim bShowDisabledDaemons ' Indicates if a disabled daemon must be shown during filtering
|
38 |
Dim bShowDisabledDaemons ' Indicates if a disabled daemon must be shown during filtering
|
| 39 |
Dim bShowActiveBuilds ' Indicates if active builds must be shown during filtering
|
39 |
Dim bShowActiveBuilds ' Indicates if active builds must be shown during filtering
|
| 40 |
Dim bShowIdleBuilds ' Indicates if idle builds must be shown during filtering
|
40 |
Dim bShowIdleBuilds ' Indicates if idle builds must be shown during filtering
|
| 41 |
Dim bShowPausedBuilds ' Indicates if paused builds must be shown during filtering
|
41 |
Dim bShowPausedBuilds ' Indicates if paused builds must be shown during filtering
|
| - |
|
42 |
Dim bShowAutoProject ' Hide projects that have no active components
|
| - |
|
43 |
Dim bProjectToggle ' State of the Project toggler
|
| 42 |
|
44 |
|
| 43 |
'------------ Constants Declaration -----------
|
45 |
'------------ Constants Declaration -----------
|
| 44 |
Const Min_Refresh_Time = 10 ' Seconds
|
46 |
Const Min_Refresh_Time = 10 ' Seconds
|
| 45 |
Const Max_DeltaBuild = 31 ' Days
|
47 |
Const Max_DeltaBuild = 31 ' Days
|
| 46 |
'------------ Variable Init -------------------
|
48 |
'------------ Variable Init -------------------
|
| Line 194... |
Line 196... |
| 194 |
End If
|
196 |
End If
|
| 195 |
End If
|
197 |
End If
|
| 196 |
|
198 |
|
| 197 |
If eMachine.Exists("bRow_displayed") Then
|
199 |
If eMachine.Exists("bRow_displayed") Then
|
| 198 |
eRelease.Item("bDisplay_some") = true
|
200 |
eRelease.Item("bDisplay_some") = true
|
| - |
|
201 |
eProject.Item("bDisplay_some") = true
|
| 199 |
End If
|
202 |
End If
|
| 200 |
|
203 |
|
| 201 |
Next
|
204 |
Next
|
| 202 |
Next
|
205 |
Next
|
| 203 |
Next
|
206 |
Next
|
| Line 361... |
Line 364... |
| 361 |
bShowProblemDaemonSets = Filter_Is_On("problemBuilds")
|
364 |
bShowProblemDaemonSets = Filter_Is_On("problemBuilds")
|
| 362 |
bShowActiveBuilds = Filter_Is_On("activeBuilds")
|
365 |
bShowActiveBuilds = Filter_Is_On("activeBuilds")
|
| 363 |
bShowDisabledDaemons = Filter_Is_On("disabledDaemons")
|
366 |
bShowDisabledDaemons = Filter_Is_On("disabledDaemons")
|
| 364 |
bShowIdleBuilds = Filter_Is_On("idleBuilds")
|
367 |
bShowIdleBuilds = Filter_Is_On("idleBuilds")
|
| 365 |
bShowPausedBuilds = Filter_Is_On("pausedBuilds")
|
368 |
bShowPausedBuilds = Filter_Is_On("pausedBuilds")
|
| - |
|
369 |
bShowAutoProject = Filter_Is_On("autoProjects")
|
| - |
|
370 |
|
| - |
|
371 |
bProjectToggle = RequestBool("pAll", True)
|
| 366 |
|
372 |
|
| 367 |
'----------------------------------------------
|
373 |
'----------------------------------------------
|
| 368 |
%>
|
374 |
%>
|
| 369 |
<script language="JavaScript" type="text/javascript">
|
375 |
<script language="JavaScript" type="text/javascript">
|
| 370 |
<!--
|
376 |
<!--
|
| - |
|
377 |
function url_append( url, str ) {
|
| - |
|
378 |
if ( str.length <= 0 )
|
| - |
|
379 |
return url;
|
| - |
|
380 |
|
| - |
|
381 |
if ( url == '' )
|
| - |
|
382 |
url += '\?';
|
| - |
|
383 |
else
|
| - |
|
384 |
url += '\&';
|
| - |
|
385 |
return url + str;
|
| - |
|
386 |
}
|
| - |
|
387 |
|
| - |
|
388 |
function url_remove( url, str) {
|
| - |
|
389 |
// split it into each parameter
|
| - |
|
390 |
var qs_arr = url.split(/[&?]/);
|
| - |
|
391 |
var remaining = new Array();
|
| - |
|
392 |
var newUrl = '';
|
| - |
|
393 |
var i_qs_arr;
|
| - |
|
394 |
for (i_qs_arr in qs_arr)
|
| - |
|
395 |
{
|
| - |
|
396 |
var qs_str = qs_arr[i_qs_arr];
|
| - |
|
397 |
|
| - |
|
398 |
if (qs_str.length > 0) {
|
| - |
|
399 |
if (qs_str.indexOf(str) < 0) {
|
| - |
|
400 |
remaining.push(qs_str);
|
| - |
|
401 |
}
|
| - |
|
402 |
}
|
| - |
|
403 |
}
|
| - |
|
404 |
return url_append('',remaining.join('&'));
|
| - |
|
405 |
}
|
| 371 |
|
406 |
|
| 372 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
407 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
| 373 |
// This function rebuilds the query string so that it either adds or removes the specified project ID from
|
408 |
// This function rebuilds the query string so as to update the list of 'hidden' projects
|
| 374 |
// the HideProj= part of it, whilst leaving the rest of the string intact. The browser location is then
|
- |
|
| 375 |
// updated and the server made to re-render the page. This function must be used from the project checkboxes
|
- |
|
| 376 |
// to show/hide daemon status informaton for specific projects.
|
- |
|
| 377 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
409 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
| 378 |
function toggle_project( proj_id )
|
410 |
function toggle_project()
|
| 379 |
{
|
411 |
{
|
| 380 |
var found = false;
|
- |
|
| 381 |
var new_url_query_string = '';
|
- |
|
| 382 |
var new_hp_list = '';
|
- |
|
| 383 |
|
- |
|
| 384 |
// get the full query string
|
- |
|
| 385 |
var url_query_string = '<%=Request.ServerVariables("QUERY_STRING")%>';
|
- |
|
| 386 |
|
- |
|
| 387 |
// split it into each parameter
|
412 |
// Determine all non-cheked project boxes.
|
| 388 |
var qs_arr = url_query_string.split('&');
|
413 |
var inputs = document.getElementsByTagName('input');
|
| 389 |
var i_qs_arr;
|
414 |
var i;
|
| 390 |
for (i_qs_arr in qs_arr)
|
415 |
var list = new Array();
|
| 391 |
{
|
- |
|
| 392 |
var qs_str = qs_arr[i_qs_arr];
|
- |
|
| 393 |
|
- |
|
| 394 |
if (qs_str.length > 0)
|
416 |
for (i = 0; i < inputs.length; i++) {
|
| 395 |
{
|
- |
|
| 396 |
// if we have found the HideProj parameter
|
- |
|
| 397 |
if (qs_str.indexOf('HideProj') >= 0)
|
- |
|
| 398 |
{
|
- |
|
| 399 |
// Split the HideProj parameter at the = symbol in order to process the comma seperated list of project IDs
|
- |
|
| 400 |
var qs_hp_arr;
|
417 |
var str = inputs[i].name;
|
| 401 |
qs_hp_arr = qs_str.split('=');
|
- |
|
| 402 |
if (qs_hp_arr.length > 1)
|
418 |
if ( ! inputs[i].checked ){
|
| 403 |
{
|
- |
|
| 404 |
// Split the comma seperated list of project IDs, and iterate through each item
|
- |
|
| 405 |
var hp_arr = qs_hp_arr[1].split(',');
|
- |
|
| 406 |
var i_hp_arr;
|
- |
|
| 407 |
for (i_hp_arr in hp_arr)
|
419 |
if (str.indexOf("DIS_PRJ_") >= 0) {
|
| 408 |
{
|
- |
|
| 409 |
var hp_str = hp_arr[i_hp_arr];
|
420 |
list.push(str.replace("DIS_PRJ_",""));
|
| 410 |
|
- |
|
| 411 |
// If the item matches the specified project ID and the checkbox for that project is unchecked
|
- |
|
| 412 |
if (hp_str == proj_id)
|
- |
|
| 413 |
{
|
- |
|
| 414 |
found = true;
|
- |
|
| 415 |
}
|
- |
|
| 416 |
else
|
- |
|
| 417 |
{
|
- |
|
| 418 |
// retain this other project ID in the list
|
- |
|
| 419 |
if (new_hp_list != '')
|
- |
|
| 420 |
new_hp_list += ',';
|
- |
|
| 421 |
new_hp_list += hp_str;
|
- |
|
| 422 |
}
|
- |
|
| 423 |
}
|
- |
|
| 424 |
}
|
- |
|
| 425 |
}
|
- |
|
| 426 |
else
|
- |
|
| 427 |
{
|
- |
|
| 428 |
// feed the existing paramter to the new query string
|
- |
|
| 429 |
if (new_url_query_string == '')
|
- |
|
| 430 |
new_url_query_string += '?';
|
- |
|
| 431 |
else
|
- |
|
| 432 |
new_url_query_string += '&';
|
- |
|
| 433 |
new_url_query_string += qs_str
|
- |
|
| 434 |
}
|
421 |
}
|
| 435 |
}
|
422 |
}
|
| 436 |
}
|
423 |
}
|
| 437 |
|
424 |
|
| 438 |
// If the specified project ID was not found, then that project is not currently hidden
|
- |
|
| 439 |
// and must now be hidden, so add its number to the list to hide it on the next server side
|
- |
|
| 440 |
// page render operation
|
425 |
// get the full query string
|
| 441 |
if (!found)
|
- |
|
| 442 |
{
|
- |
|
| 443 |
if (new_hp_list != '')
|
- |
|
| 444 |
new_hp_list += ',';
|
- |
|
| 445 |
new_hp_list += proj_id
|
426 |
var url_query_string = window.location.search.substr(1);
|
| 446 |
}
|
- |
|
| 447 |
|
427 |
|
| 448 |
// Prepare the new query string
|
428 |
// Remove bits we are going to process
|
| 449 |
if (new_url_query_string == '')
|
- |
|
| 450 |
new_url_query_string += '\?';
|
429 |
url_query_string = url_remove(url_query_string, 'HideProj');
|
| 451 |
else
|
- |
|
| 452 |
new_url_query_string += '\&';
|
- |
|
| 453 |
|
430 |
|
| - |
|
431 |
// Prepare the new query string, only adding the HideProj parameter if the function is being
|
| 454 |
new_url_query_string += 'HideProj=';
|
432 |
// used to hide all projects
|
| - |
|
433 |
if ( list.length > 0) {
|
| 455 |
new_url_query_string += new_hp_list;
|
434 |
url_query_string = url_append(url_query_string, 'HideProj=' + list.join(','));
|
| - |
|
435 |
}
|
| 456 |
|
436 |
|
| 457 |
// reload the page with the new query string
|
437 |
// reload the page with the new query string
|
| 458 |
var url = location.pathname + new_url_query_string;
|
438 |
var url = location.pathname + url_query_string;
|
| 459 |
window.location.assign(url);
|
439 |
window.location.assign(url);
|
| 460 |
}
|
440 |
}
|
| 461 |
|
441 |
|
| 462 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
442 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
| 463 |
// This function rebuilds the query string to either hide all projects, or unhide all projects
|
443 |
// This function rebuilds the query string to either hide all projects, or unhide all projects
|
| 464 |
// fromt he display
|
444 |
// from the display
|
| 465 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
445 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
| 466 |
function toggle_all_projects(bAll)
|
446 |
function toggle_all_projects(el)
|
| 467 |
{
|
447 |
{
|
| 468 |
var new_url_query_string = '';
|
- |
|
| 469 |
var list_proj_ids = '';
|
448 |
var bAll = (el.checked);
|
| 470 |
|
449 |
|
| 471 |
// If hiding all, then find all of the project enable/disable checkboxes, get the project ID
|
450 |
// If hiding all, then find all of the project enable/disable checkboxes, get the project ID
|
| 472 |
// values from each one and accumulate them into a comma seperated list
|
451 |
// values from each one and accumulate them into a comma seperated list
|
| 473 |
if (!bAll)
|
452 |
if (!bAll)
|
| 474 |
{
|
453 |
{
|
| 475 |
var inputs = document.getElementsByTagName('input');
|
454 |
var inputs = document.getElementsByTagName('input');
|
| 476 |
var i;
|
455 |
var i;
|
| - |
|
456 |
var list = new Array();
|
| 477 |
for (i = 0; i < inputs.length; i++)
|
457 |
for (i = 0; i < inputs.length; i++) {
|
| 478 |
{
|
- |
|
| 479 |
var str = inputs[i].name;
|
458 |
var str = inputs[i].name;
|
| 480 |
if (str.indexOf("DIS_PRJ_") >= 0)
|
459 |
if (str.indexOf("DIS_PRJ_") >= 0) {
|
| 481 |
{
|
- |
|
| 482 |
str = str.replace("DIS_PRJ_","");
|
460 |
list.push(str.replace("DIS_PRJ_",""));
|
| 483 |
if (list_proj_ids != '')
|
- |
|
| 484 |
list_proj_ids += ',' + str;
|
- |
|
| 485 |
else
|
- |
|
| 486 |
list_proj_ids += str;
|
- |
|
| 487 |
}
|
461 |
}
|
| 488 |
}
|
462 |
}
|
| 489 |
}
|
463 |
}
|
| 490 |
|
464 |
|
| 491 |
// get the full query string
|
465 |
// get the full query string
|
| 492 |
var url_query_string = '<%=Request.ServerVariables("QUERY_STRING")%>';
|
466 |
var url_query_string = window.location.search.substr(1);
|
| 493 |
|
467 |
|
| 494 |
// split it into each parameter
|
468 |
// Remove bits we are going to process
|
| 495 |
var qs_arr = url_query_string.split('&');
|
469 |
url_query_string = url_remove(url_query_string, 'HideProj');
|
| 496 |
var i_qs_arr;
|
- |
|
| 497 |
for (i_qs_arr in qs_arr)
|
- |
|
| 498 |
{
|
- |
|
| 499 |
var qs_str = qs_arr[i_qs_arr];
|
470 |
url_query_string = url_remove(url_query_string, 'pAll=');
|
| 500 |
|
471 |
|
| 501 |
if (qs_str.length > 0)
|
- |
|
| 502 |
{
|
- |
|
| 503 |
// if we have found the HideProj parameter
|
- |
|
| 504 |
if (qs_str.indexOf('HideProj') >= 0)
|
- |
|
| 505 |
{
|
472 |
if ( !bAll) {
|
| 506 |
// do nothing
|
- |
|
| 507 |
}
|
- |
|
| 508 |
else
|
- |
|
| 509 |
{
|
- |
|
| 510 |
// feed the existing paramter to the new query string
|
- |
|
| 511 |
if (new_url_query_string == '')
|
473 |
url_query_string = url_append(url_query_string, 'pAll=0');
|
| 512 |
new_url_query_string += '?';
|
- |
|
| 513 |
else
|
- |
|
| 514 |
new_url_query_string += '&';
|
- |
|
| 515 |
new_url_query_string += qs_str
|
- |
|
| 516 |
}
|
- |
|
| 517 |
}
|
- |
|
| 518 |
}
|
474 |
}
|
| 519 |
|
475 |
|
| 520 |
// Prepare the new query string, only adding the HideProj parameter if the function is being
|
476 |
// Prepare the new query string, only adding the HideProj parameter if the function is being
|
| 521 |
// used to hide all projects
|
477 |
// used to hide all projects
|
| 522 |
if (!bAll)
|
478 |
if (!bAll) {
|
| 523 |
{
|
- |
|
| 524 |
if (new_url_query_string == '')
|
479 |
if ( list.length > 0) {
|
| 525 |
new_url_query_string += '\?';
|
480 |
url_query_string = url_append(url_query_string, 'HideProj=' + list.join(','));
|
| 526 |
else
|
481 |
}
|
| 527 |
new_url_query_string += '\&';
|
482 |
}
|
| 528 |
|
483 |
|
| 529 |
new_url_query_string += 'HideProj=' + list_proj_ids;
|
- |
|
| 530 |
}
|
- |
|
| 531 |
// reload the page with the new query string
|
484 |
// reload the page with the new query string
|
| 532 |
var url = location.pathname + new_url_query_string;
|
485 |
var url = location.pathname + url_query_string;
|
| 533 |
window.location.assign(url);
|
486 |
window.location.assign(url);
|
| 534 |
}
|
487 |
}
|
| 535 |
|
488 |
|
| 536 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
489 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
| 537 |
// This function rebuilds the query string so that it either adds or removes the Refresh parameter
|
490 |
// This function rebuilds the query string so that it either adds or removes the Refresh parameter
|
| 538 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
491 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
| 539 |
function toggle_refresh()
|
492 |
function toggle_refresh()
|
| 540 |
{
|
493 |
{
|
| 541 |
var new_url_query_string = '';
|
- |
|
| 542 |
|
- |
|
| 543 |
// get the full query string
|
494 |
// get the full query string
|
| 544 |
var url_query_string = '<%=Request.ServerVariables("QUERY_STRING")%>';
|
495 |
var url_query_string = window.location.search.substr(1);
|
| 545 |
|
- |
|
| 546 |
// split it into each parameter
|
- |
|
| 547 |
var qs_arr = url_query_string.split('&');
|
496 |
url_query_string = url_remove(url_query_string, 'Refresh');
|
| 548 |
var i_qs_arr;
|
- |
|
| 549 |
for (i_qs_arr in qs_arr)
|
- |
|
| 550 |
{
|
- |
|
| 551 |
var qs_str = qs_arr[i_qs_arr];
|
- |
|
| 552 |
|
- |
|
| 553 |
if (qs_str.length > 0)
|
- |
|
| 554 |
{
|
- |
|
| 555 |
// if we have found the Refresh parameter
|
- |
|
| 556 |
if (qs_str.indexOf('Refresh') >= 0)
|
- |
|
| 557 |
{
|
- |
|
| 558 |
// do nothing
|
- |
|
| 559 |
}
|
- |
|
| 560 |
else
|
- |
|
| 561 |
{
|
- |
|
| 562 |
// feed the existing paramter to the new query string
|
- |
|
| 563 |
if (new_url_query_string == '')
|
- |
|
| 564 |
new_url_query_string += '?';
|
- |
|
| 565 |
else
|
- |
|
| 566 |
new_url_query_string += '&';
|
- |
|
| 567 |
new_url_query_string += qs_str
|
- |
|
| 568 |
}
|
- |
|
| 569 |
}
|
- |
|
| 570 |
}
|
- |
|
| 571 |
|
497 |
|
| 572 |
// Prepare the new query string
|
498 |
// Prepare the new query string
|
| 573 |
|
- |
|
| 574 |
if (new_url_query_string == '')
|
- |
|
| 575 |
new_url_query_string += '\?';
|
- |
|
| 576 |
else
|
- |
|
| 577 |
new_url_query_string += '\&';
|
- |
|
| 578 |
|
- |
|
| 579 |
new_url_query_string += 'Refresh=';
|
499 |
var refreshData = 'Refresh=';
|
| 580 |
if (document.getElementById('refreshPeriod').value < <%=Min_Refresh_Time%>)
|
500 |
if (document.getElementById('refreshPeriod').value < <%=Min_Refresh_Time%>) {
|
| 581 |
{
|
- |
|
| 582 |
document.getElementById('refreshPeriod').value = <%=Min_Refresh_Time%>;
|
501 |
document.getElementById('refreshPeriod').value = <%=Min_Refresh_Time%>;
|
| 583 |
new_url_query_string += <%=Min_Refresh_Time%>;
|
502 |
refreshData += <%=Min_Refresh_Time%>;
|
| 584 |
}
|
503 |
}
|
| 585 |
else
|
504 |
else
|
| 586 |
new_url_query_string += document.getElementById('refreshPeriod').value;
|
505 |
refreshData += document.getElementById('refreshPeriod').value;
|
| 587 |
|
506 |
|
| 588 |
if (document.getElementById('autoRefresh').checked)
|
507 |
if (document.getElementById('autoRefresh').checked)
|
| 589 |
new_url_query_string += ',ON';
|
508 |
refreshData += ',ON';
|
| 590 |
else
|
509 |
else
|
| 591 |
new_url_query_string += ',OFF';
|
510 |
refreshData += ',OFF';
|
| - |
|
511 |
|
| - |
|
512 |
url_query_string = url_append(url_query_string, refreshData);
|
| 592 |
|
513 |
|
| 593 |
// reload the page with the new query string
|
514 |
// reload the page with the new query string
|
| 594 |
var url = location.pathname + new_url_query_string;
|
515 |
var url = location.pathname + url_query_string;
|
| 595 |
window.location.assign(url);
|
516 |
window.location.assign(url);
|
| 596 |
}
|
517 |
}
|
| 597 |
|
518 |
|
| 598 |
|
519 |
|
| 599 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
520 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
| 600 |
// This function rebuilds the query string to Update the Inactivity parameter
|
521 |
// This function rebuilds the query string to Update the Inactivity parameter
|
| 601 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
522 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
| 602 |
function toggle_inactivity()
|
523 |
function toggle_inactivity()
|
| 603 |
{
|
524 |
{
|
| 604 |
var new_url_query_string = '';
|
- |
|
| 605 |
|
- |
|
| 606 |
// get the full query string
|
525 |
// get the full query string
|
| 607 |
var url_query_string = '<%=Request.ServerVariables("QUERY_STRING")%>';
|
526 |
var url_query_string = window.location.search.substr(1);
|
| 608 |
|
- |
|
| 609 |
// split it into each parameter, then remove the Inactivity parameter
|
- |
|
| 610 |
var qs_arr = url_query_string.split('&');
|
527 |
url_query_string = url_remove(url_query_string, 'Inactivity');
|
| 611 |
var qs_join = '?'
|
- |
|
| 612 |
var i_qs_arr;
|
- |
|
| 613 |
for (i_qs_arr in qs_arr)
|
- |
|
| 614 |
{
|
- |
|
| 615 |
var qs_str = qs_arr[i_qs_arr];
|
- |
|
| 616 |
if (qs_str.length > 0)
|
- |
|
| 617 |
{
|
- |
|
| 618 |
if (qs_str.indexOf('Inactivity') < 0)
|
- |
|
| 619 |
{
|
- |
|
| 620 |
// feed the existing paramter to the new query string
|
- |
|
| 621 |
new_url_query_string += qs_join + qs_str
|
- |
|
| 622 |
qs_join = '&'
|
- |
|
| 623 |
}
|
- |
|
| 624 |
}
|
- |
|
| 625 |
}
|
- |
|
| 626 |
|
528 |
|
| - |
|
529 |
// Prepare the new query string
|
| 627 |
var value = document.getElementById('inactivity').value;
|
530 |
var value = document.getElementById('inactivity').value;
|
| 628 |
if (value && (value != <%=Max_DeltaBuild%>))
|
531 |
if (value && (value != <%=Max_DeltaBuild%>)) {
|
| 629 |
{
|
- |
|
| 630 |
// Prepare the new query string
|
- |
|
| 631 |
new_url_query_string += qs_join + 'Inactivity=' + value;
|
532 |
url_query_string = url_append(url_query_string, 'Inactivity=' + value);
|
| 632 |
}
|
533 |
}
|
| 633 |
|
534 |
|
| 634 |
// reload the page with the new query string
|
535 |
// reload the page with the new query string
|
| 635 |
var url = location.pathname + new_url_query_string;
|
536 |
var url = location.pathname + url_query_string;
|
| 636 |
window.location.assign(url);
|
537 |
window.location.assign(url);
|
| 637 |
}
|
538 |
}
|
| 638 |
|
539 |
|
| 639 |
|
540 |
|
| 640 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
541 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
| 641 |
// Rebuild the query string and reload the page based on the current setting of the filter
|
542 |
// Rebuild the query string and reload the page based on the current setting of the filter
|
| 642 |
// radio buttons
|
543 |
// radio buttons
|
| 643 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
544 |
//////////////////////////////////////////////////////////////////////////////////////////////////
|
| 644 |
function update_Display_Filter()
|
545 |
function update_Display_Filter()
|
| 645 |
{
|
546 |
{
|
| 646 |
var new_url_query_string = '';
|
- |
|
| 647 |
|
- |
|
| 648 |
// get the full query string
|
547 |
// get the full query string
|
| 649 |
var url_query_string = '<%=Request.ServerVariables("QUERY_STRING")%>';
|
548 |
var url_query_string = window.location.search.substr(1);
|
| 650 |
|
- |
|
| 651 |
// split it into each parameter
|
- |
|
| 652 |
var qs_arr = url_query_string.split('&');
|
549 |
url_query_string = url_remove(url_query_string, 'Filter');
|
| 653 |
var i_qs_arr;
|
- |
|
| 654 |
for (i_qs_arr in qs_arr)
|
- |
|
| 655 |
{
|
- |
|
| 656 |
var qs_str = qs_arr[i_qs_arr];
|
- |
|
| 657 |
|
- |
|
| 658 |
if (qs_str.length > 0)
|
- |
|
| 659 |
{
|
- |
|
| 660 |
// if we have found the Display parameter
|
- |
|
| 661 |
if (qs_str.indexOf('Filter') >= 0)
|
- |
|
| 662 |
{
|
- |
|
| 663 |
// do nothing
|
- |
|
| 664 |
}
|
- |
|
| 665 |
else
|
- |
|
| 666 |
{
|
- |
|
| 667 |
// feed the existing paramter to the new query string
|
- |
|
| 668 |
if (new_url_query_string == '')
|
- |
|
| 669 |
new_url_query_string += '?';
|
- |
|
| 670 |
else
|
- |
|
| 671 |
new_url_query_string += '&';
|
- |
|
| 672 |
new_url_query_string += qs_str
|
- |
|
| 673 |
}
|
- |
|
| 674 |
}
|
- |
|
| 675 |
}
|
- |
|
| 676 |
|
550 |
|
| 677 |
// Prepare the new query string
|
551 |
// Prepare the new query string
|
| 678 |
var qJoiner;
|
- |
|
| 679 |
if (new_url_query_string == '')
|
- |
|
| 680 |
qJoiner = '\?';
|
- |
|
| 681 |
else
|
- |
|
| 682 |
qJoiner = '\&';
|
- |
|
| 683 |
|
- |
|
| 684 |
var joiner = '';
|
552 |
var active = new Array();
|
| 685 |
var filterSet = '';
|
- |
|
| 686 |
var items = new Array ("activeBuilds","disabledDaemons","idleBuilds","pausedBuilds","problemBuilds");
|
553 |
var items = new Array ("activeBuilds","disabledDaemons","idleBuilds","pausedBuilds","problemBuilds","autoProjects");
|
| 687 |
for (var item in items)
|
554 |
for (var item in items) {
|
| 688 |
{
|
- |
|
| 689 |
if (document.getElementById(items[item]).checked)
|
555 |
if (document.getElementById(items[item]).checked) {
|
| 690 |
{
|
- |
|
| 691 |
filterSet += joiner + items[item];
|
556 |
active.push(items[item]);
|
| 692 |
joiner = ',';
|
557 |
joiner = ',';
|
| 693 |
}
|
558 |
}
|
| 694 |
}
|
559 |
}
|
| - |
|
560 |
var filterSet = active.join(',') ;
|
| 695 |
|
561 |
|
| 696 |
if (filterSet.length > 0)
|
562 |
if (filterSet.length > 0) {
|
| 697 |
{
|
- |
|
| 698 |
new_url_query_string += qJoiner + 'Filter=' + filterSet;
|
563 |
url_query_string = url_append(url_query_string, 'Filter=' + filterSet);
|
| 699 |
}
|
564 |
}
|
| 700 |
|
565 |
|
| 701 |
// reload the page with the new query string
|
566 |
// reload the page with the new query string
|
| 702 |
var url = location.pathname + new_url_query_string;
|
567 |
var url = location.pathname + url_query_string;
|
| 703 |
window.location.assign(url);
|
568 |
window.location.assign(url);
|
| 704 |
}
|
569 |
}
|
| 705 |
|
570 |
|
| 706 |
//-->
|
571 |
//-->
|
| 707 |
</script>
|
572 |
</script>
|
| Line 734... |
Line 599... |
| 734 |
<input name="disabledDaemons" id="disabledDaemons" type="checkbox" <%=Filter_Checked("disabledDaemons")%> value="disabledDaemons" onclick='update_Display_Filter()'>Disabled
|
599 |
<input name="disabledDaemons" id="disabledDaemons" type="checkbox" <%=Filter_Checked("disabledDaemons")%> value="disabledDaemons" onclick='update_Display_Filter()'>Disabled
|
| 735 |
</div>
|
600 |
</div>
|
| 736 |
<div class=nowrap>
|
601 |
<div class=nowrap>
|
| 737 |
<input name="problemBuilds" id="problemBuilds" type="checkbox" <%=Filter_Checked("problemBuilds")%> value="problemBuilds" onclick='update_Display_Filter()'>Problem Daemon Sets
|
602 |
<input name="problemBuilds" id="problemBuilds" type="checkbox" <%=Filter_Checked("problemBuilds")%> value="problemBuilds" onclick='update_Display_Filter()'>Problem Daemon Sets
|
| 738 |
</div>
|
603 |
</div>
|
| - |
|
604 |
<div class=nowrap>
|
| - |
|
605 |
<input name="autoProjects" id="autoProjects" type="checkbox" <%=Filter_Checked("autoProjects")%> value="autoProjects" onclick='update_Display_Filter()'>Auto Hide Projects
|
| - |
|
606 |
</div>
|
| - |
|
607 |
|
| 739 |
</fieldset>
|
608 |
</fieldset>
|
| 740 |
<fieldset class="body_rowg">
|
609 |
<fieldset class="body_rowg">
|
| 741 |
<legend class="body_scol">Inactivity</legend>
|
610 |
<legend class="body_scol">Inactivity</legend>
|
| 742 |
<input class="body_txt" style="width:3em" name="inactivity" id="inactivity" type="input" maxlength="3" value="<%=param_inactivity%>" onchange='toggle_inactivity()' > Days
|
611 |
<input class="body_txt" style="width:3em" name="inactivity" id="inactivity" type="input" maxlength="3" value="<%=param_inactivity%>" onchange='toggle_inactivity()' > Days
|
| 743 |
</fieldset>
|
612 |
</fieldset>
|
| Line 753... |
Line 622... |
| 753 |
<tr>
|
622 |
<tr>
|
| 754 |
<td colspan='8' background='images/bg_rep_line.gif'><img src='images/spacer.gif' width='1' height='5'></td>
|
623 |
<td colspan='8' background='images/bg_rep_line.gif'><img src='images/spacer.gif' width='1' height='5'></td>
|
| 755 |
</tr>
|
624 |
</tr>
|
| 756 |
<tr>
|
625 |
<tr>
|
| 757 |
<td nowrap class="body_rowg">
|
626 |
<td nowrap class="body_rowg">
|
| 758 |
<input name='DIS_PRJ_<%=eMachine("PROJ_ID")%>' id='DIS_PRJ_<%=eMachine("PROJ_ID")%>' type='checkbox' value=1 <%=strProject_checked%> onclick=toggle_project(<%=eMachine("PROJ_ID")%>)>
|
627 |
<input name='DIS_PRJ_<%=eMachine("PROJ_ID")%>' id='DIS_PRJ_<%=eMachine("PROJ_ID")%>' type='checkbox' value=1 <%=strProject_checked%> onclick=toggle_project()>
|
| 759 |
<a href='rtree.asp?proj_id=<%=eMachine("PROJ_ID")%>'><%=eMachine("PROJ_NAME")%>
|
628 |
<a href='rtree.asp?proj_id=<%=eMachine("PROJ_ID")%>'><%=eMachine("PROJ_NAME")%>
|
| 760 |
</td>
|
629 |
</td>
|
| 761 |
<%
|
630 |
<%
|
| 762 |
End If
|
631 |
End If
|
| 763 |
End Sub
|
632 |
End Sub
|
| Line 792... |
Line 661... |
| 792 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
661 |
<!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 793 |
<!--#include file="messages/_msg_inline.asp"-->
|
662 |
<!--#include file="messages/_msg_inline.asp"-->
|
| 794 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
663 |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
|
| 795 |
<br>
|
664 |
<br>
|
| 796 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
665 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| - |
|
666 |
<!-- Status Table Header -->
|
| 797 |
<tr>
|
667 |
<thead>
|
| 798 |
<td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Project
|
668 |
<th valign="middle" nowrap background="images/bg_table_col.gif" class="body_col tleft">
|
| 799 |
<input name="NOPRJ" id="NOPRJ" type="Button" value="All" onclick="toggle_all_projects(1)">
|
- |
|
| 800 |
<input name="NOPRJ" id="NOPRJ" type="Button" value="None" onclick="toggle_all_projects(0)">
|
669 |
<input type="checkbox" <%=IIF(bProjectToggle, "checked", "")%> title='Show/Hide all active releases' onclick=toggle_all_projects(this)>Project</th>
|
| 801 |
</td>
|
- |
|
| 802 |
<!-- Status Table Header -->
|
- |
|
| 803 |
<td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Release</td>
|
670 |
<th valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Release</th>
|
| 804 |
<td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Release<br>Mode</td>
|
671 |
<th valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Release<br>Mode</th>
|
| 805 |
<td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Daemon<br>Mode</td>
|
672 |
<th valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Daemon<br>Mode</th>
|
| 806 |
<td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Daemon<br>Host</td>
|
673 |
<th valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Daemon<br>Host</th>
|
| 807 |
<td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Daemon<br>State</td>
|
674 |
<th valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Daemon<br>State</th>
|
| 808 |
<td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Building<br>Package</td>
|
675 |
<th valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Building<br>Package</th>
|
| 809 |
<td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Last Change<br>Delta (secs)</td>
|
676 |
<th valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Last Change<br>Delta (secs)</th>
|
| 810 |
</tr>
|
677 |
</thead>
|
| 811 |
|
678 |
|
| 812 |
<!-- Status Table Body -->
|
679 |
<!-- Status Table Body -->
|
| 813 |
<%
|
680 |
<%
|
| 814 |
Dim bProject_changed ' Signals a row change due to a different project
|
681 |
Dim bProject_changed ' Signals a row change due to a different project
|
| 815 |
Dim strProject_checked ' Can be "" or "checked". Determines appearance of project enable checkbox
|
682 |
Dim strProject_checked ' Can be "" or "checked". Determines appearance of project enable checkbox
|
| Line 817... |
Line 684... |
| 817 |
Dim bReleaseHeaderDone ' indicates whether the release name has been rendered yet
|
684 |
Dim bReleaseHeaderDone ' indicates whether the release name has been rendered yet
|
| 818 |
Dim bProjectHeaderDone ' Project Header done
|
685 |
Dim bProjectHeaderDone ' Project Header done
|
| 819 |
Dim bShowAge ' Display age warning
|
686 |
Dim bShowAge ' Display age warning
|
| 820 |
Dim bToggleStyle ' Data shown so toggle style
|
687 |
Dim bToggleStyle ' Data shown so toggle style
|
| 821 |
Dim bShowReleaseSep ' Show Release Seperator
|
688 |
Dim bShowReleaseSep ' Show Release Seperator
|
| - |
|
689 |
Dim bShowProject ' Show this project
|
| 822 |
|
690 |
|
| 823 |
' Iterate over all projects, releases and machines
|
691 |
' Iterate over all projects, releases and machines
|
| 824 |
'
|
692 |
'
|
| 825 |
Dim project,release,machine
|
693 |
Dim project,release,machine
|
| 826 |
Dim eProject,eRelease,eMachine
|
694 |
Dim eProject,eRelease,eMachine
|
| Line 828... |
Line 696... |
| 828 |
' Start of a new Project
|
696 |
' Start of a new Project
|
| 829 |
Set eProject = buildStatus.Item(project)
|
697 |
Set eProject = buildStatus.Item(project)
|
| 830 |
bProjectHeaderDone = false
|
698 |
bProjectHeaderDone = false
|
| 831 |
bProject_changed = true
|
699 |
bProject_changed = true
|
| 832 |
bShowReleaseSep = False
|
700 |
bShowReleaseSep = False
|
| 833 |
|
- |
|
| - |
|
701 |
bShowProject = True
|
| - |
|
702 |
If bShowAutoProject AND NOT eProject.Item("bDisplay_some") Then
|
| - |
|
703 |
bShowProject = False
|
| - |
|
704 |
End If
|
| - |
|
705 |
If bShowProject Then
|
| 834 |
For Each release in eProject.Item("data")
|
706 |
For Each release in eProject.Item("data")
|
| 835 |
' Start of a new Release
|
707 |
' Start of a new Release
|
| 836 |
Set eRelease = eProject.Item("data").Item(release)
|
708 |
Set eRelease = eProject.Item("data").Item(release)
|
| 837 |
bReleaseHeaderDone = False
|
709 |
bReleaseHeaderDone = False
|
| 838 |
bRelease_changed = true
|
710 |
bRelease_changed = true
|
| 839 |
bShowAge = eRelease("bShowAge")
|
711 |
bShowAge = eRelease("bShowAge")
|
| 840 |
If bToggleStyle Then Call ToggleStyleNow
|
712 |
If bToggleStyle Then Call ToggleStyleNow
|
| 841 |
bToggleStyle = false
|
713 |
bToggleStyle = false
|
| 842 |
|
714 |
|
| 843 |
For Each machine in eRelease.Item("data")
|
715 |
For Each machine in eRelease.Item("data")
|
| 844 |
' Start of a new Machine
|
716 |
' Start of a new Machine
|
| 845 |
Set eMachine = eRelease.Item("data").Item(machine)
|
717 |
Set eMachine = eRelease.Item("data").Item(machine)
|
| 846 |
strProject_checked = Is_Project_Checked(eMachine("PROJ_ID"))
|
718 |
strProject_checked = Is_Project_Checked(eMachine("PROJ_ID"))
|
| 847 |
|
719 |
|
| 848 |
' Consider displaying the body of this machine entry
|
720 |
' Consider displaying the body of this machine entry
|
| 849 |
If strProject_checked = "checked" Then
|
721 |
If strProject_checked = "checked" Then
|
| 850 |
If eRelease.Exists("bDisplay_whole_set") OR eMachine.Exists("bRow_displayed") Then
|
722 |
If eRelease.Exists("bDisplay_whole_set") OR eMachine.Exists("bRow_displayed") Then
|
| 851 |
bToggleStyle = true
|
723 |
bToggleStyle = true
|
| 852 |
|
724 |
|
| 853 |
' Display Project and Release Header - Once, or a filler
|
725 |
' Display Project and Release Header - Once, or a filler
|
| 854 |
If NOT bReleaseHeaderDone Then
|
726 |
If NOT bReleaseHeaderDone Then
|
| 855 |
bReleaseHeaderDone = True
|
727 |
bReleaseHeaderDone = True
|
| 856 |
|
728 |
|
| 857 |
' Display Project Header - ONCE. The <tr> is open
|
729 |
' Display Project Header - ONCE. The <tr> is open
|
| 858 |
Call DisplayProjectHeader(bProjectHeaderDone,eMachine, strProject_checked)
|
730 |
Call DisplayProjectHeader(bProjectHeaderDone,eMachine, strProject_checked)
|
| 859 |
bProjectHeaderDone = TRUE
|
731 |
bProjectHeaderDone = TRUE
|
| 860 |
|
732 |
|
| 861 |
|
733 |
|
| 862 |
' Display Release seperator, if this is not the first release in the project
|
734 |
' Display Release seperator, if this is not the first release in the project
|
| 863 |
If bShowReleaseSep Then
|
735 |
If bShowReleaseSep Then
|
| - |
|
736 |
%>
|
| - |
|
737 |
<tr>
|
| - |
|
738 |
<td></td>
|
| - |
|
739 |
<td colspan='7' background='images/bg_rep_line.gif'><img src='images/spacer.gif' width='1' height='1'></td>
|
| - |
|
740 |
</tr>
|
| - |
|
741 |
<tr>
|
| - |
|
742 |
<td></td>
|
| - |
|
743 |
<%
|
| - |
|
744 |
End If
|
| - |
|
745 |
' Display the Release Header, with a marker to show aged releases
|
| 864 |
%>
|
746 |
%>
|
| 865 |
<tr>
|
- |
|
| 866 |
<td></td>
|
747 |
<td nowrap <%=styleNow%>>
|
| 867 |
<td colspan='7' background='images/bg_rep_line.gif'><img src='images/spacer.gif' width='1' height='1'></td>
|
748 |
<a href='build_status.asp?rtag_id=<%=eMachine("RTAG_ID")%>' title='Last Build:<%=eMachine("last_build")%>'><%=eMachine("RTAG_NAME")%></a>
|
| 868 |
</tr>
|
- |
|
| 869 |
<tr>
|
- |
|
| 870 |
<td></td>
|
- |
|
| 871 |
<%
|
749 |
<%
|
| - |
|
750 |
If bShowAge Then
|
| 872 |
End If
|
751 |
%>
|
| 873 |
' Display the Release Header, with a marker to show aged releases
|
752 |
<img src='images/s_warning.gif' width='14' height='13' border='0' title='No Build in this release since <%=eMachine("last_build")%>. [<%=eMachine("last_build_days")%> Days]' style='vertical-align: bottom;'>
|
| - |
|
753 |
<%
|
| - |
|
754 |
End If
|
| - |
|
755 |
%></td><%
|
| 874 |
%>
|
756 |
Else%>
|
| 875 |
<td nowrap <%=styleNow%>>
|
757 |
<td nowrap class="body_rowg"></td>
|
| 876 |
<a href='build_status.asp?rtag_id=<%=eMachine("RTAG_ID")%>' title='Last Build:<%=eMachine("last_build")%>'><%=eMachine("RTAG_NAME")%></a>
|
758 |
<td nowrap <%=styleNow%>></td>
|
| 877 |
<%
|
759 |
<%
|
| 878 |
If bShowAge Then
|
760 |
End If
|
| - |
|
761 |
bShowReleaseSep = true
|
| 879 |
%>
|
762 |
%>
|
| - |
|
763 |
<td nowrap <%=styleNow%>><%=Get_Official(eMachine("OFFICIAL"))%></td>
|
| - |
|
764 |
<td nowrap <%=styleNow%>><%=Get_Daemon_Mode(eMachine("DAEMON_MODE"))%></td>
|
| - |
|
765 |
<td nowrap <%=styleNow%>><%=eMachine("DISPLAY_NAME")%></td>
|
| - |
|
766 |
<td nowrap <%=styleNow%>><%=eMachine("dStateText")%></td>
|
| - |
|
767 |
<td nowrap <%=styleNow%>><%=eMachine("PKG_NAME")%></td>
|
| 880 |
<img src='images/s_warning.gif' width='14' height='13' border='0' title='No Build in this release since <%=eMachine("last_build")%>. [<%=eMachine("last_build_days")%> Days]' style='vertical-align: bottom;'>
|
768 |
<td nowrap <%=styleNow%>><%=PrettyDelta(eMachine("delta"),eMachine("PAUSE"),eMachine("PKG_NAME") )%></td>
|
| 881 |
<%
|
769 |
<%
|
| 882 |
End If
|
- |
|
| 883 |
%></td><%
|
- |
|
| 884 |
Else%>
|
- |
|
| 885 |
<td nowrap class="body_rowg"></td>
|
- |
|
| 886 |
<td nowrap <%=styleNow%>></td>
|
- |
|
| 887 |
<%
|
- |
|
| 888 |
End If
|
770 |
End If
|
| 889 |
bShowReleaseSep = true
|
- |
|
| 890 |
%>
|
771 |
%></tr><%
|
| 891 |
<td nowrap <%=styleNow%>><%=Get_Official(eMachine("OFFICIAL"))%></td>
|
- |
|
| 892 |
<td nowrap <%=styleNow%>><%=Get_Daemon_Mode(eMachine("DAEMON_MODE"))%></td>
|
- |
|
| 893 |
<td nowrap <%=styleNow%>><%=eMachine("DISPLAY_NAME")%></td>
|
- |
|
| 894 |
<td nowrap <%=styleNow%>><%=eMachine("dStateText")%></td>
|
- |
|
| 895 |
<td nowrap <%=styleNow%>><%=eMachine("PKG_NAME")%></td>
|
- |
|
| 896 |
<td nowrap <%=styleNow%>><%=PrettyDelta(eMachine("delta"),eMachine("PAUSE"),eMachine("PKG_NAME") )%></td>
|
- |
|
| 897 |
<%
|
- |
|
| 898 |
End If
|
772 |
End If
|
| 899 |
%></tr><%
|
- |
|
| 900 |
End If
|
- |
|
| 901 |
|
773 |
|
| 902 |
' End of Display
|
774 |
' End of Display
|
| 903 |
bRelease_changed = false
|
775 |
bRelease_changed = false
|
| 904 |
bProject_changed = false
|
776 |
bProject_changed = false
|
| - |
|
777 |
Next
|
| 905 |
Next
|
778 |
Next
|
| - |
|
779 |
Call DisplayProjectHeader(bProjectHeaderDone,eMachine, strProject_checked)
|
| - |
|
780 |
End If
|
| 906 |
Next
|
781 |
Next
|
| 907 |
Call DisplayProjectHeader(bProjectHeaderDone,eMachine, strProject_checked)
|
- |
|
| 908 |
Next
|
- |
|
| 909 |
%>
|
782 |
%>
|
| 910 |
<tr>
|
783 |
<tr>
|
| 911 |
<td>
|
784 |
<td>
|
| 912 |
<input type="hidden" name="action" value="true">
|
785 |
<input type="hidden" name="action" value="true">
|
| 913 |
<%=objPMod.ComposeHiddenTags()%>
|
786 |
<%=objPMod.ComposeHiddenTags()%>
|