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