Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
147 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|         ADMIN Build Status Information            |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
' Good idea to set when using redirect
12
Response.Expires = 0  ' always load the page, dont store
13
%>
14
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
17
<!--#include file="common/qstr.asp"-->
18
<!--#include file="common/common_subs.asp"-->
19
<!--#include file="common/_form_window_common.asp"-->
20
<%
21
'------------ ACCESS CONTROL ------------------
22
%>
23
<!--#include file="_access_control_general.asp"-->
24
<%
25
'------------ Variable Definition -------------
26
Dim rsQry
27
Dim query_string
28
Dim styleAlt1
29
Dim styleAlt2
30
Dim styleNow
31
Dim param_refreshPeriod
4482 dpurdie 32
Dim param_inactivity
147 ghuddy 33
Dim param_refreshEnabled
34
Dim bIndefinitelyPaused
4686 dpurdie 35
Dim buildStatus
36
 
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
39
Dim bShowActiveBuilds         ' Indicates if active 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
42
 
147 ghuddy 43
'------------ Constants Declaration -----------
4431 dpurdie 44
Const Min_Refresh_Time = 10         ' Seconds
45
Const Max_Delta = 600               ' Seconds
4477 dpurdie 46
Const Max_DeltaBuild = 31           ' Days
147 ghuddy 47
'------------ Variable Init -------------------
48
 
49
styleAlt1="class='body_rowg1'"
50
styleAlt2="class='body_rowg2'"
51
styleNow = styleAlt1
52
'----------------------------------------------
53
%>
54
<%
4686 dpurdie 55
'------------------------------------------------------------------------------
56
'   Populate the buildStatus dictionary
57
'   Get all the required data into a hash of hashes
58
'   It will make the following processing so much easier
59
'
60
Sub getBuildStatus
61
    Dim bms
62
    query_string = "SELECT rc.RCON_ID, " &_
63
                  "       rc.RTAG_ID, " &_
64
                  "       bm.DISPLAY_NAME, " &_
65
                  "       rc.DAEMON_MODE, "&_
66
                  "       rt.RTAG_NAME, " &_
67
                  "       rt.OFFICIAL, " &_
4867 dpurdie 68
                  "       rt.BUILD_AGE, " &_
4686 dpurdie 69
                  "       p.PROJ_ID, " &_
70
                  "       p.PROJ_NAME, " &_
71
                  "       rl.CURRENT_PKG_ID_BEING_BUILT, "&_
72
                  "       rl.CURRENT_RUN_LEVEL, "&_
73
                  "       NVL(rl.PAUSE,0) as PAUSE, " &_
74
                  "       TRUNC (86400*(SYSDATE - rl.KEEP_ALIVE)) as delta," &_
75
                  "       TO_CHAR(rl.LAST_BUILD, 'DD-MON-YYYY') as last_build," &_
76
                  "       TRUNC (SYSDATE - rl.LAST_BUILD) as last_build_days," &_
77
                  "       pkg.PKG_NAME" &_
78
                  " FROM RELEASE_CONFIG rc, RELEASE_TAGS rt, PROJECTS p, RUN_LEVEL rl, BUILD_MACHINE_CONFIG bm, PACKAGES pkg " &_
79
                  " WHERE rt.RTAG_ID = rc.RTAG_ID " &_
80
                  "   AND rc.bmcon_id is not null" &_
81
                  "   AND rt.PROJ_ID = p.PROJ_ID " &_
82
                  "   AND rt.OFFICIAL != 'A' " &_
83
                  "   AND rt.OFFICIAL != 'Y' " &_
84
                  "   AND rl.RCON_ID = rc.RCON_ID" &_
85
                  "   AND rc.bmcon_id = bm.bmcon_id(+)" &_
86
                  "   AND pkg.PKG_ID(+) = rl.CURRENT_PKG_ID_BEING_BUILT" &_
87
                  " ORDER BY p.PROJ_NAME, rt.RTAG_NAME, rc.DAEMON_MODE, bm.DISPLAY_NAME, rc.DAEMON_MODE"
88
 
89
    Set buildStatus = CreateObject("Scripting.Dictionary")
90
    Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
91
    Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
92
        Set bms = CreateObject("Scripting.Dictionary")
93
 
94
        bms.Item("RCON_ID")                     = rsQry("RCON_ID")
95
        bms.Item("RTAG_ID")                     = rsQry("RTAG_ID")
96
        bms.Item("DISPLAY_NAME")                = rsQry("DISPLAY_NAME")
97
        bms.Item("RTAG_NAME")                   = rsQry("RTAG_NAME")
98
        bms.Item("DAEMON_MODE")                 = rsQry("DAEMON_MODE")
99
        bms.Item("OFFICIAL")                    = rsQry("OFFICIAL")
4867 dpurdie 100
        bms.Item("BUILD_AGE")                   = NiceInt(rsQry("BUILD_AGE"), 31)
4686 dpurdie 101
        bms.Item("PROJ_ID")                     = rsQry("PROJ_ID")
102
        bms.Item("PROJ_NAME")                   = rsQry("PROJ_NAME")
103
        bms.Item("CURRENT_PKG_ID_BEING_BUILT")  = rsQry("CURRENT_PKG_ID_BEING_BUILT")
104
        bms.Item("CURRENT_RUN_LEVEL")           = rsQry("CURRENT_RUN_LEVEL")
105
        bms.Item("PAUSE")                       = CInt(rsQry("PAUSE"))
106
        bms.Item("delta")                       = rsQry("delta")
107
        bms.Item("last_build")                  = rsQry("last_build")
108
        bms.Item("last_build_days")             = NiceInt(rsQry("last_build_days"), 100)
109
        bms.Item("PKG_NAME")                    = rsQry("PKG_NAME")
110
 
111
        ' Calculate some values
112
        bms.Item("dState") = Classify_Run_Level(bms.Item("CURRENT_RUN_LEVEL"),_
113
                                                bIndefinitelyPaused,_
114
                                                bms.Item("PAUSE"), _
115
                                                bms.Item("delta") ,_
116
                                                bms.Item("CURRENT_PKG_ID_BEING_BUILT"))
117
 
118
        bms.Item("dStateText") = Get_Run_Level(bms.Item("CURRENT_RUN_LEVEL"),_
119
                                               bIndefinitelyPaused,_
120
                                               bms.Item("PAUSE"))
121
 
122
        ' Kill package name on disabled daemons
123
        If bms.Item("PAUSE") = 2 Then bms.Item("PKG_NAME") = Null
124
 
125
 
126
        ' Add to buildStatus
127
        '   This is a three level hash (Project,Release, Daemon)
128
 
129
        Dim ProjRef, RelRef, DRef
130
        ProjRef = bms.Item("PROJ_NAME")
131
        RelRef  = bms.Item("RTAG_NAME")
132
        DRef    = bms.Item("DISPLAY_NAME")
133
 
134
        If  Not buildStatus.Exists(ProjRef) Then
135
            Set buildStatus(ProjRef) = CreateObject("Scripting.Dictionary")
136
            Set buildStatus(ProjRef).Item("data") = CreateObject("Scripting.Dictionary")
4703 dpurdie 137
            'buildStatus(ProjRef).Item("PROJ_ID") = bms.Item("PROJ_ID")
138
            'buildStatus(ProjRef).Item("PROJ_NAME") = bms.Item("PROJ_NAME")
139
 
4686 dpurdie 140
        End If
141
 
142
        If  Not buildStatus(ProjRef).Item("data").Exists(RelRef) Then
143
            Set buildStatus(ProjRef).Item("data").Item(RelRef) = CreateObject("Scripting.Dictionary")
144
            Set buildStatus(ProjRef).Item("data").Item(RelRef).Item("data") = CreateObject("Scripting.Dictionary")
4703 dpurdie 145
            'buildStatus(ProjRef).Item("data").Item(RelRef).Item("RTAG_NAME") = bms.Item("RTAG_NAME")
146
            'buildStatus(ProjRef).Item("data").Item(RelRef).Item("RTAG_ID") = bms.Item("RTAG_ID")
4686 dpurdie 147
        End If
148
 
149
        Set buildStatus(ProjRef).Item("data").Item(RelRef).Item("data").Item(DRef) = bms
150
 
151
        rsQry.MoveNext
152
    Loop
153
    rsQry.Close()
154
    Set rsQry = nothing
155
 
156
    ' Iterate over each deamon set and flag some of its characteristics
157
    '   This could be done inline, as the data is processed from the SQL source
158
    Dim project,release,machine
159
    Dim eProject,eRelease,eMachine
160
    For Each project in buildStatus
161
        Set eProject = buildStatus.Item(project)
162
        For Each release in eProject.Item("data")
163
            Set eRelease = eProject.Item("data").Item(release)
164
            For Each machine in eRelease.Item("data")
165
                Set eMachine = eRelease.Item("data").Item(machine)
166
 
167
                Dim dState
168
                dState = eMachine.Item("dState")
169
 
170
                If dState = "active" Then
171
                    If bShowActiveBuilds Then eMachine.Item("bRow_displayed") = "ShowActive"
172
                ElseIf dState = "idle" Then
173
                    If bShowIdleBuilds Then eMachine.Item("bRow_displayed") = "ShowIdle"
174
                ElseIf dState = "paused" Then
175
                    If bShowPausedBuilds Then eMachine.Item("bRow_displayed") = "ShowPaused"
176
                ElseIf dState = "disabled" Then
177
                    If bShowDisabledDaemons Then eMachine.Item("bRow_displayed") = "ShowDisabled"
178
                ElseIf dState = "problem" Then
179
                    If bShowProblemDaemonSets Then eMachine.Item("bRow_displayed") = "ShowProblem"
180
                    If bShowProblemDaemonSets Then eRelease.Item("bDisplay_whole_set") = true
181
                Else
182
                    eRelease.Item("bDisplay_whole_set") = true
183
                    eMachine.Item("bRow_displayed") = "ShowUnknownState"
184
                End If
185
 
4867 dpurdie 186
                If bShowProblemDaemonSets AND eMachine.Item("BUILD_AGE") > 0 Then
187
                    If (eMachine.Item("last_build_days") > eMachine.Item("BUILD_AGE")) OR (eMachine.Item("last_build_days") > param_inactivity) Then
188
                       If dState = "active" OR dState = "idle" Then
189
                          eRelease.Item("bDisplay_whole_set") = true
190
                          eRelease.Item("bShowAge") = true
191
                          eMachine.Item("bRow_displayed") = "ShowInactiveWarning"
192
                       End If
193
                    End If
4686 dpurdie 194
                End If
195
 
196
                If eMachine.Exists("bRow_displayed") Then
197
                    eRelease.Item("bDisplay_some") = true
198
                End If
199
 
200
            Next
201
        Next
202
    Next
203
 
4703 dpurdie 204
    ' Debug the data structure
205
    '   Requires common/DictDump.vbs to be included to work
4686 dpurdie 206
    'Response.Write "<br>Pretty Dictionary Display<pre>"
207
    'Response.Write DICToutput(buildStatus)
208
 
209
End Sub
210
 
147 ghuddy 211
'--------------------------------------------------------------------------------------------------------------------------
4432 dpurdie 212
' Like Cint, but handles NULL by replacing it with a default value
213
Function NiceInt( val, def)
214
   If isNull(val) Then
215
       NiceInt = def
216
   Else
217
      NiceInt = CInt(val)
218
   End If
219
End Function
147 ghuddy 220
 
221
'--------------------------------------------------------------------------------------------------------------------------
222
' Toggle row style between the two alternative styles
223
Sub ToggleStyleNow
224
   If styleNow = styleAlt1 Then
225
      styleNow = styleAlt2
226
   Else
227
      styleNow = styleAlt1
228
   End If
229
End Sub
230
'--------------------------------------------------------------------------------------------------------------------------
231
' Convert run level into a meaningful string
173 brianf 232
Function Get_Run_Level( nLevel, indefinitePause, astate)
147 ghuddy 233
 
234
   If indefinitePause Then
235
      Get_Run_Level = "<span class='err_alert'>Stopped</span>"
173 brianf 236
   ElseIf astate = 1 Then      ' if build daemon paused
237
      Get_Run_Level = "Paused"
238
   ElseIf astate = 2 Then      ' if build daemon disabled
239
      Get_Run_Level = "Disabled"
1326 dpurdie 240
   ElseIf astate = 0 Then     ' if build daemon enabled
147 ghuddy 241
      If nLevel = 1 Then
242
         Get_Run_Level = "Cannot Continue"
243
      ElseIf nLevel = 2 Then
244
         Get_Run_Level = "Paused"
245
      ElseIf nLevel = 3 Then
1326 dpurdie 246
         Get_Run_Level = "Building"
147 ghuddy 247
      ElseIf nLevel = 4 Then
248
         Get_Run_Level = "Idle"
249
      ElseIf nLevel = 5 Then
250
         Get_Run_Level = "Waiting"
251
      ElseIf nLevel = 6 Then
252
         Get_Run_Level = "Publishing"
253
      Else
254
         Get_Run_Level = "<span class='err_alert'>Unknown!</span>"
255
      End If
256
   End If
257
End Function
4200 dpurdie 258
 
147 ghuddy 259
'--------------------------------------------------------------------------------------------------------------------------
4200 dpurdie 260
' Convert run level into a meaningful filter state as a string
261
' Will be one of: active, idle, paused, disabled, problem, unknown
4202 dpurdie 262
Function Classify_Run_Level( nLevel, indefinitePause, astate, nDelta, pkgId)
4200 dpurdie 263
 
264
   If indefinitePause Then
265
      Classify_Run_Level = "problem"
266
   ElseIf astate = 1 Then                   ' if build daemon paused
267
      Classify_Run_Level = "paused"
268
   ElseIf astate = 2 Then                   ' if build daemon disabled
269
      Classify_Run_Level = "disabled"
4202 dpurdie 270
   ElseIf Int(nDelta) > Max_Delta Then
4200 dpurdie 271
      Classify_Run_Level = "problem"
4202 dpurdie 272
   ElseIf (IsNull(pkgId)) OR (pkgId = "") Then
273
      Classify_Run_Level = "idle"
4200 dpurdie 274
   ElseIf astate = 0 Then                   ' if build daemon enabled
275
      If nLevel = 1 Then
276
         Classify_Run_Level = "problem"
277
      ElseIf nLevel = 2 Then
278
         Classify_Run_Level = "paused"
279
      ElseIf nLevel = 3 Then
280
         Classify_Run_Level = "active"
281
      ElseIf nLevel = 4 Then
282
         Classify_Run_Level = "idle"
283
      ElseIf nLevel = 5 Then
284
         Classify_Run_Level = "idle"
285
      ElseIf nLevel = 6 Then
286
         Classify_Run_Level = "active"
287
      Else
288
         Classify_Run_Level = "unknown"
289
      End If
290
   End If
291
End Function
292
 
293
'--------------------------------------------------------------------------------------------------------------------------
147 ghuddy 294
' Convert daemon mode into a meaningful string
295
Function Get_Daemon_Mode( nMode )
296
   If nMode = "M" Then
297
      Get_Daemon_Mode = "Master"
298
   ElseIf nMode = "S" Then
299
      Get_Daemon_Mode = "Slave"
300
   Else
301
      Get_Daemon_Mode = "?"
302
   End If
303
End Function
304
'--------------------------------------------------------------------------------------------------------------------------
305
' Use this function to determine the state of a specified project checkbox
306
Function Is_Project_Checked( nProjId )
307
   Dim hiddenProjects_arr
308
   Dim hiddenProjects
309
   Dim str
310
 
311
   hiddenProjects = Request("HideProj")
312
   Is_Project_Checked = "checked"
313
 
314
   hiddenProjects_arr = Split(hiddenProjects, ",")
315
   For Each str in hiddenProjects_arr
316
      If str = nProjId Then
317
         Is_Project_Checked = ""
318
         Exit For
319
      End If
320
   Next
321
End Function
322
'--------------------------------------------------------------------------------------------------------------------------
323
' Use this function to set/clear the filter on/off radio button checked state
4200 dpurdie 324
' Format of Filter Param : Filter=[problemBuilds}[,ActiveBuilds]
147 ghuddy 325
Function Display_Filtered(id)
326
   Dim filter
327
 
328
   Display_Filtered = ""
329
 
330
   filter  = Request("Filter")
331
   If NOT IsNull(filter) AND filter <> "" Then
332
      If InStr(filter, id) > 0 Then
333
         Display_Filtered = "checked"
334
      End If
335
   Else
336
      If id = "OFF" Then
337
         Display_Filtered = "checked"
338
      End If
339
   End If
340
End Function
341
 
342
'--------------------------------------------------------------------------------------------------------------------------
343
' Use this function to set/clear a filter option check box with the given ID
4200 dpurdie 344
' If no Filter is present, then assume defaults          
147 ghuddy 345
Function Filter_Checked(id)
346
   Dim filter
347
 
348
   Filter_Checked = ""
349
 
350
   filter  = Request("Filter")
4200 dpurdie 351
   If IsNull(filter) OR filter = "" Then
352
     filter="problemBuilds,activeBuilds"        ' Defaults
147 ghuddy 353
   End If
4200 dpurdie 354
  If InStr(filter, id) > 0 Then
355
     Filter_Checked = "checked"
356
  End If
147 ghuddy 357
End Function
358
'--------------------------------------------------------------------------------------------------------------------------
359
' Test to see if a particular filter option is on
360
Function Filter_Is_On(id)
4200 dpurdie 361
    If Filter_Checked(id) = "checked" Then
362
          Filter_Is_On = True
363
    Else
364
          Filter_Is_On = False
365
    End If
147 ghuddy 366
End Function
367
'--------------------------------------------------------------------------------------------------------------------------
368
Function Indefinitely_Paused()
369
   Dim rsQry2
370
   Dim query_string2
371
 
372
   Indefinitely_Paused = False
373
 
374
   query_string2 = " select * from run_level_schedule rls where rls.indefinite_pause = 'P'"
375
 
376
   Set rsQry2 = OraDatabase.DbCreateDynaset( query_string2, ORADYN_DEFAULT )
377
   If rsQry2.RecordCount > 0 Then
378
      Indefinitely_Paused = True
379
   End If
380
End Function
381
'--------------------------------------------------------------------------------------------------------------------------
4028 dpurdie 382
Function PrettyDelta( delta, daemonState,pkgId )
4202 dpurdie 383
    Dim style,nDelta
4028 dpurdie 384
    style = ""
147 ghuddy 385
 
4202 dpurdie 386
    If delta = "" Then delta = 0
387
    delta = Int(delta)
388
    nDelta = delta
389
 
390
    If (delta > Max_Delta) AND (IsNull(pkgId) OR pkgId = "") Then
4028 dpurdie 391
      style = "style=color:Red"
392
      If (delta > 86400 ) Then
393
        Dim bdate, dd,mm,yy
394
        bdate = DateAdd("s", - delta,Now())
395
        dd = Day(bdate)
396
        mm = MonthName(Month(bdate),1)
397
        yy = Year( bdate)
398
        delta = dd & "-" & mm & "-" & yy
399
        If ( daemonState >= 2 ) Then
400
            style = ""
401
        End If
402
      ElseIf ( delta > 60*60 ) Then
403
        'Dim bdate, hh, mins, ss
404
        bdate = DateAdd("s", - delta,Now())
405
        delta = TimeValue( bdate)
406
        'delta = hh & ":" & mins & ":" & ss
407
      End If
408
    End If
409
 
410
    If style <> "" Then
411
        delta = "<span " & style & ">" & delta & "</span>"
412
    End If
4202 dpurdie 413
    PrettyDelta = delta 
4028 dpurdie 414
End Function
415
 
416
'--------------------------------------------------------------------------------------------------------------------------
417
 
147 ghuddy 418
%>
419
<%
420
'------------ RUN BEFORE PAGE RENDER ----------
421
 
422
' Default values for Auto Refresh checkbox and edit input box
423
param_refreshEnabled = False
424
param_refreshPeriod  = "0"
425
 
426
' Read the Refresh parameter which is of the form Refresh=<time-period>,ON|OFF
427
Dim param_refresh
428
param_refresh = Request("Refresh")
429
If param_refresh <> "" Then
430
   Dim pr_arr
431
   pr_arr = Split(param_refresh,",")
432
   param_refreshPeriod = pr_arr(0)
433
 
434
   ' Range check and end-stop the refresh period if necessary
435
   If CInt(param_refreshPeriod)  < Min_Refresh_Time Then
436
      param_refreshPeriod  = CStr(Min_Refresh_Time)
437
   End If
438
 
439
   ' determine checkbox state
440
   If UBound(pr_arr) >= 1 Then
441
      If InStr(UCase(pr_arr(1)), "ON") > 0 Then
442
         param_refreshEnabled = True
443
      Else
444
         param_refreshEnabled = False
445
      End If
446
   End If
447
End If
448
 
4482 dpurdie 449
' Read the Inactivity Period
450
param_inactivity = NiceInt( Request("Inactivity"), Max_DeltaBuild)
451
If param_inactivity  = 0 Then param_inactivity = Max_DeltaBuild
452
 
4756 dpurdie 453
 
147 ghuddy 454
' Get indefinite pause status
455
bIndefinitelyPaused = Indefinitely_Paused()
456
 
4686 dpurdie 457
' Populate display controls
458
bShowProblemDaemonSets = Filter_Is_On("problemBuilds")
459
bShowActiveBuilds      = Filter_Is_On("activeBuilds")
460
bShowDisabledDaemons   = Filter_Is_On("disabledDaemons")
461
bShowIdleBuilds        = Filter_Is_On("idleBuilds")
462
bShowPausedBuilds      = Filter_Is_On("pausedBuilds")
463
 
147 ghuddy 464
'----------------------------------------------
465
%>
466
<script language="JavaScript" type="text/javascript">
467
<!--
468
 
469
//////////////////////////////////////////////////////////////////////////////////////////////////
470
// This function rebuilds the query string so that it either adds or removes the specified project ID from
471
// the HideProj= part of it, whilst leaving the rest of the string intact. The browser location is then
472
// updated and the server made to re-render the page. This function must be used from the project checkboxes
473
// to show/hide daemon status informaton for specific projects.
474
//////////////////////////////////////////////////////////////////////////////////////////////////
475
function toggle_project( proj_id )
476
{
477
   var found = false;
478
   var new_url_query_string = '';
479
   var new_hp_list = '';
480
 
481
   // get the full query string
482
   var url_query_string = '<%=Request.ServerVariables("QUERY_STRING")%>';
483
 
484
   // split it into each parameter
485
   var qs_arr = url_query_string.split('&');
486
   var i_qs_arr;
487
   for (i_qs_arr in qs_arr)
488
   {
489
      var qs_str = qs_arr[i_qs_arr];
490
 
491
      if (qs_str.length > 0)
492
      {
493
         // if we have found the HideProj parameter
494
         if (qs_str.indexOf('HideProj') >= 0)
495
         {
496
            // Split the HideProj parameter at the = symbol in order to process the comma seperated list of project IDs
497
            var qs_hp_arr;
498
            qs_hp_arr = qs_str.split('=');
499
            if (qs_hp_arr.length > 1)
500
            {
501
               // Split the comma seperated list of project IDs, and iterate through each item
502
               var hp_arr = qs_hp_arr[1].split(',');
503
               var i_hp_arr;
504
               for (i_hp_arr in hp_arr)
505
               {
506
                  var hp_str = hp_arr[i_hp_arr];
507
 
508
                  // If the item matches the specified project ID and the checkbox for that project is unchecked
509
                  if (hp_str == proj_id)
510
                  {
511
                     found = true;
512
                  }
513
                  else
514
                  {
515
                     // retain this other project ID in the list
516
                     if (new_hp_list != '')
517
                        new_hp_list += ',';
518
                     new_hp_list += hp_str;
519
                  }
520
               }
521
            }
522
         }
523
         else
524
         {
525
            // feed the existing paramter to the new query string
526
            if (new_url_query_string == '')
527
               new_url_query_string += '?';
528
            else
529
               new_url_query_string += '&';
530
            new_url_query_string += qs_str
531
         }
532
      }
533
   }
534
 
535
   // If the specified project ID was not found, then that project is not currently hidden
536
   // and must now be hidden, so add its number to the list to hide it on the next server side
537
   // page render operation
538
   if (!found)
539
   {
540
      if (new_hp_list != '')
541
         new_hp_list += ',';
542
      new_hp_list += proj_id
543
   }
544
 
545
   // Prepare the new query string
546
   if (new_url_query_string == '')
547
      new_url_query_string += '\?';
548
   else
549
      new_url_query_string += '\&';
550
 
551
   new_url_query_string += 'HideProj=';
552
   new_url_query_string += new_hp_list;
553
 
554
   // reload the page with the new query string
555
   var url = location.pathname + new_url_query_string;
556
   window.location.assign(url);
557
}
558
 
559
//////////////////////////////////////////////////////////////////////////////////////////////////
560
// This function rebuilds the query string to either hide all projects, or unhide all projects
561
// fromt he display
562
//////////////////////////////////////////////////////////////////////////////////////////////////
563
function toggle_all_projects(bAll)
564
{
565
   var new_url_query_string = '';
566
   var list_proj_ids = '';
567
 
568
   // If hiding all, then find all of the project enable/disable checkboxes, get the project ID
569
   // values from each one and accumulate them into a comma seperated list
570
   if (!bAll)
571
   {
572
      var inputs = document.getElementsByTagName('input');
573
      var i;
574
      for (i = 0; i < inputs.length; i++)
575
      {
576
         var str = inputs[i].name;
577
         if (str.indexOf("DIS_PRJ_") >= 0)
578
         {
579
            str = str.replace("DIS_PRJ_","");
580
            if (list_proj_ids != '')
581
               list_proj_ids += ',' + str;
582
            else
583
               list_proj_ids += str;
584
         }
585
      }
586
   }
587
 
588
   // get the full query string
589
   var url_query_string = '<%=Request.ServerVariables("QUERY_STRING")%>';
590
 
591
   // split it into each parameter
592
   var qs_arr = url_query_string.split('&');
593
   var i_qs_arr;
594
   for (i_qs_arr in qs_arr)
595
   {
596
      var qs_str = qs_arr[i_qs_arr];
597
 
598
      if (qs_str.length > 0)
599
      {
600
         // if we have found the HideProj parameter
601
         if (qs_str.indexOf('HideProj') >= 0)
602
         {
603
            // do nothing
604
         }
605
         else
606
         {
607
            // feed the existing paramter to the new query string
608
            if (new_url_query_string == '')
609
               new_url_query_string += '?';
610
            else
611
               new_url_query_string += '&';
612
            new_url_query_string += qs_str
613
         }
614
      }
615
   }
616
 
617
   // Prepare the new query string, only adding the HideProj parameter if the function is being
618
   // used to hide all projects
619
   if (!bAll)
620
   {
621
      if (new_url_query_string == '')
622
         new_url_query_string += '\?';
623
      else
624
         new_url_query_string += '\&';
625
 
626
      new_url_query_string += 'HideProj=' + list_proj_ids;
627
   }
628
   // reload the page with the new query string
629
   var url = location.pathname + new_url_query_string;
630
   window.location.assign(url);
631
}
632
 
633
//////////////////////////////////////////////////////////////////////////////////////////////////
634
// This function rebuilds the query string so that it either adds or removes the Refresh parameter
635
//////////////////////////////////////////////////////////////////////////////////////////////////
636
function toggle_refresh()
637
{
638
   var new_url_query_string = '';
639
 
640
   // get the full query string
641
   var url_query_string = '<%=Request.ServerVariables("QUERY_STRING")%>';
642
 
643
   // split it into each parameter
644
   var qs_arr = url_query_string.split('&');
645
   var i_qs_arr;
646
   for (i_qs_arr in qs_arr)
647
   {
648
      var qs_str = qs_arr[i_qs_arr];
649
 
650
      if (qs_str.length > 0)
651
      {
652
         // if we have found the Refresh parameter
653
         if (qs_str.indexOf('Refresh') >= 0)
654
         {
655
            // do nothing
656
         }
657
         else
658
         {
659
            // feed the existing paramter to the new query string
660
            if (new_url_query_string == '')
661
               new_url_query_string += '?';
662
            else
663
               new_url_query_string += '&';
664
            new_url_query_string += qs_str
665
         }
666
      }
667
   }
668
 
669
   // Prepare the new query string
670
 
671
   if (new_url_query_string == '')
672
      new_url_query_string += '\?';
673
   else
674
      new_url_query_string += '\&';
675
 
676
   new_url_query_string += 'Refresh=';
677
   if (document.getElementById('refreshPeriod').value < <%=Min_Refresh_Time%>)
678
   {
679
      document.getElementById('refreshPeriod').value = <%=Min_Refresh_Time%>;
680
      new_url_query_string += <%=Min_Refresh_Time%>;
681
   }
682
   else
683
      new_url_query_string += document.getElementById('refreshPeriod').value;
684
 
685
   if (document.getElementById('autoRefresh').checked)
686
      new_url_query_string += ',ON';
687
   else
688
      new_url_query_string += ',OFF';
689
 
4482 dpurdie 690
   // reload the page with the new query string
691
   var url = location.pathname + new_url_query_string;
692
   window.location.assign(url);
693
}
147 ghuddy 694
 
4482 dpurdie 695
 
696
//////////////////////////////////////////////////////////////////////////////////////////////////
697
// This function rebuilds the query string to Update the Inactivity parameter
698
//////////////////////////////////////////////////////////////////////////////////////////////////
699
function toggle_inactivity()
700
{
701
   var new_url_query_string = '';
702
 
703
   // get the full query string
704
   var url_query_string = '<%=Request.ServerVariables("QUERY_STRING")%>';
705
 
706
   // split it into each parameter, then remove the Inactivity parameter
707
   var qs_arr = url_query_string.split('&');
708
   var qs_join = '?'
709
   var i_qs_arr;
710
   for (i_qs_arr in qs_arr)
711
   {
712
      var qs_str = qs_arr[i_qs_arr];
713
      if (qs_str.length > 0)
714
      {
715
         if (qs_str.indexOf('Inactivity') < 0)
716
         {
717
            // feed the existing paramter to the new query string
718
            new_url_query_string += qs_join + qs_str
719
            qs_join = '&'
720
         }
721
      }
722
   }
723
 
724
   var value = document.getElementById('inactivity').value;
725
   if  (value && (value != <%=Max_DeltaBuild%>))
726
   {
727
       // Prepare the new query string
728
        new_url_query_string += qs_join + 'Inactivity=' + value;
729
    }
730
 
147 ghuddy 731
   // reload the page with the new query string
732
   var url = location.pathname + new_url_query_string;
733
   window.location.assign(url);
734
}
735
 
4482 dpurdie 736
 
147 ghuddy 737
//////////////////////////////////////////////////////////////////////////////////////////////////
4200 dpurdie 738
// Rebuild the query string and reload the page based on the current setting of the filter
739
// radio buttons
147 ghuddy 740
//////////////////////////////////////////////////////////////////////////////////////////////////
4200 dpurdie 741
function update_Display_Filter()
147 ghuddy 742
{
743
   var new_url_query_string = '';
744
 
745
   // get the full query string
746
   var url_query_string = '<%=Request.ServerVariables("QUERY_STRING")%>';
747
 
748
   // split it into each parameter
749
   var qs_arr = url_query_string.split('&');
750
   var i_qs_arr;
751
   for (i_qs_arr in qs_arr)
752
   {
753
      var qs_str = qs_arr[i_qs_arr];
754
 
755
      if (qs_str.length > 0)
756
      {
757
         // if we have found the Display parameter
758
         if (qs_str.indexOf('Filter') >= 0)
759
         {
760
            // do nothing
761
         }
762
         else
763
         {
764
            // feed the existing paramter to the new query string
765
            if (new_url_query_string == '')
766
               new_url_query_string += '?';
767
            else
768
               new_url_query_string += '&';
769
            new_url_query_string += qs_str
770
         }
771
      }
772
   }
773
 
774
   // Prepare the new query string
4200 dpurdie 775
   var qJoiner;
147 ghuddy 776
   if (new_url_query_string == '')
4200 dpurdie 777
      qJoiner = '\?';
147 ghuddy 778
   else
4200 dpurdie 779
      qJoiner = '\&';
147 ghuddy 780
 
4200 dpurdie 781
   var joiner = '';
782
   var filterSet = '';
783
   var items = new Array ("activeBuilds","disabledDaemons","idleBuilds","pausedBuilds","problemBuilds");
784
   for (var item in items)
147 ghuddy 785
   {
4200 dpurdie 786
       if (document.getElementById(items[item]).checked)
787
       {
788
          filterSet += joiner + items[item];
789
          joiner = ',';
790
       }
147 ghuddy 791
   }
792
 
4200 dpurdie 793
   if (filterSet.length > 0)
147 ghuddy 794
   {
4200 dpurdie 795
       new_url_query_string += qJoiner + 'Filter=' + filterSet;
147 ghuddy 796
   }
1376 dpurdie 797
 
147 ghuddy 798
   // reload the page with the new query string
799
   var url = location.pathname + new_url_query_string;
800
   window.location.assign(url);
801
}
802
 
803
//-->
804
</script>
805
 
806
<html>
807
   <head>
808
      <title>Release Manager</title>
809
      <meta http-equiv="Pragma" content="no-cache">
810
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
811
      <%If param_refreshEnabled AND param_RefreshPeriod <> 0 Then%>
812
         <META HTTP-EQUIV=REFRESH CONTENT=<%=param_RefreshPeriod%>>
813
      <%End If%>
814
      <link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
815
      <link rel="stylesheet" href="images/navigation.css" type="text/css">
816
      <script language="JavaScript" src="images/common.js"></script>
817
      <!-- DROPDOWN MENUS -->
818
      <!--#include file="_menu_def.asp"-->
819
      <script language="JavaScript1.2" src="images/popup_menu.js"></script>
820
   </head>
821
   <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
822
      <!-- MENU LAYERS -------------------------------------->
823
      <div id="popmenu" class="menuskin" onmouseover="clearhidemenu();highlightmenu(event,'on')" onmouseout="highlightmenu(event,'off');dynamichide(event)"></div>
824
      <!-- TIPS LAYERS -------------------------------------->
825
      <div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
826
      <!----------------------------------------------------->
827
      <!-- HEADER -->
828
      <!--#include file="_header.asp"-->
4686 dpurdie 829
      <% getBuildStatus() %>
147 ghuddy 830
      <!-- BODY ---->
831
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
832
         <tr>
833
            <td width="1" background="images/bg_home_orange.gif" valign="top"></td>
834
            <td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF">
835
 
836
               <table width="10" border="0" cellspacing="0" cellpadding="0">
837
                  <tr>
838
                     <td width="1%"></td>
839
                     <td width="100%">
840
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
841
                           <tr>
842
                              <td nowrap class="form_ttl"><p>&nbsp;</p>
843
                                 <p>BUILD DAEMON STATUS INFORMATION</p>
844
                              </td>
845
                              <td align="right" valign="bottom"></td>
846
                           </tr>
847
 
848
                           <tr>
3959 dpurdie 849
                              <!-- Monitoring Options Selection Box ---->
147 ghuddy 850
                              <td width="100%">
851
                                 <fieldset style="width:700px;">
852
                                    <legend><a href="javascript:;" class="body_scol" >&nbsp;Monitoring&nbsp;Options</a></legend>
853
                                    <table width="100%" border="0" cellspacing="1" cellpadding="3">
854
                                       <tr>
855
                                          <td valign="top" width="200px" nowrap background="images/bg_table_col.gif" class="body_col">Auto Refresh</td>
856
                                          <td valign="top" width="200px" nowrap background="images/bg_table_col.gif" class="body_col">Filter Options</td>
4482 dpurdie 857
                                          <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Inactivity</td>
147 ghuddy 858
                                       </tr>
859
 
860
                                       <tr>
861
                                          <td class="body_rowg">
862
                                             <input name="autoRefresh" id="autoRefresh" type="checkbox" <%If param_refreshEnabled Then%>checked<%End If%> value="1" onclick='toggle_refresh()'>
4482 dpurdie 863
                                             <input style="width:3em" name="refreshPeriod" id="refreshPeriod" type="input" maxlength="3" value="<%=param_refreshPeriod%>" onchange='toggle_refresh()' > Seconds (min. 10)
147 ghuddy 864
                                          </td>
865
                                          <td class="body_rowg">
4200 dpurdie 866
                                             <input name="activeBuilds" id="activeBuilds" type="checkbox" <%=Filter_Checked("activeBuilds")%> value="activeBuilds" onclick='update_Display_Filter()'>Active
867
                                             <input name="idleBuilds" id="idleBuilds" type="checkbox" <%=Filter_Checked("idleBuilds")%> value="idleBuilds" onclick='update_Display_Filter()'>Idle
868
                                             <input name="pausedBuilds" id="pausedBuilds" type="checkbox" <%=Filter_Checked("pausedBuilds")%> value="paused" onclick='update_Display_Filter()'>Paused
869
                                             <input name="disabledDaemons"  id="disabledDaemons"  type="checkbox" <%=Filter_Checked("disabledDaemons")%>  value="disabledDaemons"  onclick='update_Display_Filter()'>Disabled
870
                                             <input name="problemBuilds"  id="problemBuilds"  type="checkbox" <%=Filter_Checked("problemBuilds")%>  value="problemBuilds"  onclick='update_Display_Filter()'>Problem Daemon Sets
4482 dpurdie 871
 
872
                                          <td class="body_rowg">
873
                                             <input style="width:3em" name="inactivity" id="inactivity" type="input" maxlength="3" value="<%=param_inactivity%>" onchange='toggle_inactivity()' > Days
147 ghuddy 874
                                          </td>
875
                                       </tr>
876
                                    </table>
877
                                 </fieldset>
878
                              </td>
879
                           </tr>
880
                           <%If bIndefinitelyPaused Then%>
881
                              <tr>
882
                                 <td>
883
                                    <span class='err_alert'>
884
                                       <font size='2'><b>WARNING: Indefinite Pause, Build Daemons are all stopped - please contact an administrator</b></font>
885
                                    </span>
886
                                 </td>
887
                              </tr>
888
                           <%End If%>
889
                        </table>
890
                     </td>
891
                     <td width="1%"></td>
892
                  </tr>
893
                  <tr>
894
                     <td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
895
                     <td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
896
                     <td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
897
                  </tr>
898
                  <tr>
899
                     <td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
900
                     <td bgcolor="#FFFFFF" valign="top">
901
                        <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
902
                        <!--#include file="messages/_msg_inline.asp"-->
903
                        <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
904
                        <br>
905
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
906
                           <td width="9%" valign="top"></td>
907
                           <tr>
908
                              <td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Project
909
                                 <input name="NOPRJ" id="NOPRJ" type="Button" value="All" onclick="toggle_all_projects(1)">
910
                                 <input name="NOPRJ" id="NOPRJ" type="Button" value="None" onclick="toggle_all_projects(0)">
911
                              </td>
4686 dpurdie 912
                              <!-- Status Table Header -->
147 ghuddy 913
                              <td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Release</td>
914
                              <td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Release<br>Mode</td>
915
                              <td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Daemon<br>Mode</td>
163 brianf 916
                              <td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Daemon<br>Host</td>
147 ghuddy 917
                              <td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Daemon<br>State</td>
918
                              <td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Building<br>Package</td>
919
                              <td valign="middle" nowrap background="images/bg_table_col.gif" class="body_col">Last Change<br>Delta (secs)</td>
920
                           </tr>
4686 dpurdie 921
 
922
                           <!-- Status Table Body -->
147 ghuddy 923
                           <%
4686 dpurdie 924
                            Dim bProject_changed          ' Signals a row change due to a different project
925
                            Dim strProject_checked        ' Can be "" or "checked". Determines appearance of project enable checkbox
926
                            Dim bRelease_changed          ' signals a row change due to a different release
4703 dpurdie 927
                            Dim bReleaseHeaderDone        ' indicates whether the release name has been rendered yet
928
                            Dim bProjectHeaderDone        ' Project Header done
4686 dpurdie 929
                            Dim bShowAge                  ' Display age warning
930
                            Dim bToggleStyle              ' Data shown so toggle style
4703 dpurdie 931
                            Dim bShowReleaseSep           ' Show Release Seperator
147 ghuddy 932
 
4686 dpurdie 933
                            '   Iterate over all projects, releases and machines
934
                            '
935
                            Dim project,release,machine
936
                            Dim eProject,eRelease,eMachine
937
                            For Each project in buildStatus
938
                                ' Start of a new Project
939
                                Set eProject = buildStatus.Item(project)
4703 dpurdie 940
                                bProjectHeaderDone = false
4686 dpurdie 941
                                bProject_changed = true
4703 dpurdie 942
                                bShowReleaseSep = False
147 ghuddy 943
 
4686 dpurdie 944
                                For Each release in eProject.Item("data")
945
                                    '   Start of a new Release
946
                                    Set eRelease = eProject.Item("data").Item(release)
4703 dpurdie 947
                                    bReleaseHeaderDone = False
4686 dpurdie 948
                                    bRelease_changed = true
949
                                    bShowAge = eRelease("bShowAge")
950
                                    If  bToggleStyle Then Call ToggleStyleNow
951
                                    bToggleStyle = false
147 ghuddy 952
 
4686 dpurdie 953
                                    For Each machine in eRelease.Item("data")
954
                                        '   Start of a new Machine
955
                                        Set eMachine = eRelease.Item("data").Item(machine)
956
                                        strProject_checked = Is_Project_Checked(eMachine("PROJ_ID"))
147 ghuddy 957
 
4703 dpurdie 958
                                        ' Display Project Header - ONCE
959
                                        If NOT bProjectHeaderDone Then%>
4686 dpurdie 960
                                            <tr>
4703 dpurdie 961
                                               <td colspan='8'><img src='images/spacer.gif' width='1' height='5'></td>
962
                                            </tr>
963
                                            <tr>
964
                                               <td colspan='8' background='images/bg_rep_line.gif'><img src='images/spacer.gif' width='1' height='5'></td>
965
                                            </tr>
966
                                            <tr>
4686 dpurdie 967
                                                <td nowrap class="body_rowg">
968
                                                    <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")%>)>
969
                                                    <a href='rtree.asp?proj_id=<%=eMachine("PROJ_ID")%>'><%=eMachine("PROJ_NAME")%>
970
                                                </td>
971
                                            <%
972
                                        End If
147 ghuddy 973
 
4703 dpurdie 974
                                        ' Consider displaying the body of this machine entry
4686 dpurdie 975
                                        If strProject_checked = "checked" Then
4703 dpurdie 976
                                            If eRelease.Exists("bDisplay_whole_set") OR eMachine.Exists("bRow_displayed") Then
4686 dpurdie 977
                                                bToggleStyle = true
147 ghuddy 978
 
4703 dpurdie 979
                                                '   Empty cell, if the project header has been displayed
980
                                                If bProjectHeaderDone Then
4686 dpurdie 981
                                                    %><td nowrap class="body_rowg"></td><%
982
                                                End If
4200 dpurdie 983
 
4703 dpurdie 984
                                                ' Display Release Header - Once, or a filler
985
                                                If NOT bReleaseHeaderDone Then
986
                                                    bReleaseHeaderDone = True
987
 
988
                                                    ' Display Release seperator, if this is not the first release in the project
989
                                                    If bShowReleaseSep Then
990
                                                        %>
991
                                                            <tr>
992
                                                                <td></td>
993
                                                                <td colspan='7' background='images/bg_rep_line.gif'><img src='images/spacer.gif' width='1' height='1'></td>
994
                                                            </tr>
995
                                                            <tr>
996
                                                                <td></td>
997
                                                        <%
998
                                                    End If
999
                                                    ' Display the Release Header, with a marker to show aged releases
1000
                                                    %>
1001
                                                    <td nowrap <%=styleNow%>>
1002
                                                        <a href='build_status.asp?rtag_id=<%=eMachine("RTAG_ID")%>' title='Last Build:<%=eMachine("last_build")%>'><%=eMachine("RTAG_NAME")%></a>
4686 dpurdie 1003
                                                    <%
1004
                                                    If bShowAge Then
1005
                                                    %>
1006
                                                        <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;'>
1007
                                                    <%
1008
                                                    End If
1009
                                                    %></td><%
1010
                                                Else
1011
                                                    %><td nowrap <%=styleNow%>></td><%
1012
                                                End If
4703 dpurdie 1013
                                                bShowReleaseSep = true
4686 dpurdie 1014
                                                %>
1015
                                                <td nowrap <%=styleNow%>><%=Get_Official(eMachine("OFFICIAL"))%></td>
1016
                                                <td nowrap <%=styleNow%>><%=Get_Daemon_Mode(eMachine("DAEMON_MODE"))%></td>
1017
                                                <td nowrap <%=styleNow%>><%=eMachine("DISPLAY_NAME")%></td>
1018
                                                <td nowrap <%=styleNow%>><%=eMachine("dStateText")%></td>
1019
                                                <td nowrap <%=styleNow%>><%=eMachine("PKG_NAME")%></td>
1020
                                                <td nowrap <%=styleNow%>><%=PrettyDelta(eMachine("delta"),eMachine("PAUSE"),eMachine("PKG_NAME") )%></td>
1021
                                                <%
1022
                                            End If
1023
                                            %></tr><%
1024
                                        End If
147 ghuddy 1025
 
4686 dpurdie 1026
                                        ' End of Display
1027
                                        bRelease_changed = false
1028
                                        bProject_changed = false
4703 dpurdie 1029
                                        bProjectHeaderDone = true
4686 dpurdie 1030
                                    Next
1031
                                Next
1032
                            Next
147 ghuddy 1033
                           %>
1034
                        </table>
4686 dpurdie 1035
                     <!-- Status Table Footer -->
147 ghuddy 1036
                     </td>
1037
                     <td background="images/lbox_bgside_white.gif">&nbsp;</td>
1038
                  </tr>
1039
                  <tr>
1040
                     <input type="hidden" name="action" value="true">
1041
                     <%=objPMod.ComposeHiddenTags()%>
1042
                     <td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
1043
                     <td background="images/lbox_bg_blue.gif"></td>
1044
                     <td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
1045
                  </tr>
1046
               </table>
1047
            </td>
1048
            <td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
1049
         </tr>
1050
         <tr>
4756 dpurdie 1051
            <td valign="bottom" align="center" background="images/bg_home_orange.gif"><img src="images/img_gear.gif" width="86" height="99" vspace="20" hspace="30"></td>
147 ghuddy 1052
            <td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="350"></td>
1053
         </tr>
1054
      </table>
1055
      <!-- FOOTER -->
1056
      <!--#include file="_footer.asp"-->
1057
   </body>
1058
</html>
1059
<%
1060
Call Destroy_All_Objects
1061
%>