Subversion Repositories DevTools

Rev

Rev 5305 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5305 Rev 5357
Line 1... Line 1...
1
<%@LANGUAGE="VBSCRIPT"%>
1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
2
<%
3
'=====================================================
3
'=====================================================
4
'|                                                   |
4
'|                                                   |
5
'|              Build Status Information             |
5
'|              Build Status Information             |
6
'|                                                   |
6
'|                                                   |
7
'=====================================================
7
'=====================================================
8
%>
8
%>
9
<%
9
<%
10
Option explicit
10
Option explicit
11
' Good idea to set when using redirect
11
' Good idea to set when using redirect
12
Response.Expires = 0  ' always load the page, dont store
12
Response.Expires = 0  ' always load the page, dont store
13
%>
13
%>
14
<!--#include file="common/conf.asp"-->
14
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/globals.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
16
<!--#include file="common/formating.asp"-->
17
<!--#include file="common/qstr.asp"-->
17
<!--#include file="common/qstr.asp"-->
18
<!--#include file="common/common_subs.asp"-->
18
<!--#include file="common/common_subs.asp"-->
19
<!--#include file="common/_form_window_common.asp"-->
19
<!--#include file="common/_form_window_common.asp"-->
20
<!--#include file="_action_buttons.asp"-->
20
<!--#include file="_action_buttons.asp"-->
21
<!--#include file="class/classActionButtonControl.asp"-->
21
<!--#include file="class/classActionButtonControl.asp"-->
22
<!--#include file="common/daemon_instructions.asp"-->
22
<!--#include file="common/daemon_instructions.asp"-->
23
<%
23
<%
24
'------------ ACCESS CONTROL ------------------
24
'------------ ACCESS CONTROL ------------------
25
'Let users view the build status without being logged in, but as soon as they try and 
25
'Let users view the build status without being logged in, but as soon as they try and 
26
'submit the form, check their login status.
26
'submit the form, check their login status.
27
If Request("action") <> "" AND NOT objAccessControl.UserLogedIn Then%>
27
If Request("action") <> "" AND NOT objAccessControl.UserLogedIn Then%>
28
<!--#include file="_access_control_login.asp"-->
28
<!--#include file="_access_control_login.asp"-->
29
<!--#include file="_access_control_project.asp"-->
29
<!--#include file="_access_control_project.asp"-->
30
<%End If%>
30
<%End If%>
31
<!--#include file="_access_control_general.asp"-->
31
<!--#include file="_access_control_general.asp"-->
32
<% '------------ Scripts -------------------------- %>
32
<% '------------ Scripts -------------------------- %>
33
<%
33
<%
34
'------------ Variable Definition -------------
34
'------------ Variable Definition -------------
35
Dim objSortHelper
35
Dim objSortHelper
36
Dim rsQry
36
Dim rsQry
37
Dim parRtagId
37
Dim parRtagId
38
Dim query_string
38
Dim query_string
39
Dim rcon_id
39
Dim rcon_id
40
Dim shref_base
40
Dim shref_base
41
'------------ Constants Declaration -----------
41
'------------ Constants Declaration -----------
42
'------------ Variable Init -------------------
42
'------------ Variable Init -------------------
43
parRtagId = Request("rtag_id")
43
parRtagId = Request("rtag_id")
44
objPMod.PersistInQryString("rtag_id")
44
objPMod.PersistInQryString("rtag_id")
45
 
45
 
46
'----------------------------------------------
46
'----------------------------------------------
47
%>
47
%>
48
<%
48
<%
49
'--------------------------------------------------------------------------------------------------------------------------
49
'--------------------------------------------------------------------------------------------------------------------------
50
Sub GetFormDetails ( parRtagId, ByRef outobjDetails )
50
Sub GetFormDetails ( parRtagId, ByRef outobjDetails )
51
   Dim rsQry, query
51
   Dim rsQry, query
52
   OraDatabase.Parameters.Add "RTAG_ID",   parRtagId,    ORAPARM_INPUT, ORATYPE_NUMBER
52
   OraDatabase.Parameters.Add "RTAG_ID",   parRtagId,    ORAPARM_INPUT, ORATYPE_NUMBER
53
   query = _
53
   query = _
54
   " SELECT * "&_
54
   " SELECT * "&_
55
   "  FROM RELEASE_TAGS rt"&_
55
   "  FROM RELEASE_TAGS rt"&_
56
   " WHERE rt.RTAG_ID = :RTAG_ID"
56
   " WHERE rt.RTAG_ID = :RTAG_ID"
57
 
57
 
58
   Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )
58
   Set rsQry = OraDatabase.DbCreateDynaset( query, ORADYN_DEFAULT )
59
 
59
 
60
   OraDatabase.Parameters.Remove "RTAG_ID"
60
   OraDatabase.Parameters.Remove "RTAG_ID"
61
 
61
 
62
   If rsQry.RecordCount > 0 Then
62
   If rsQry.RecordCount > 0 Then
63
      outobjDetails.Item ("rtag_id") = rsQry("rtag_id")
63
      outobjDetails.Item ("rtag_id") = rsQry("rtag_id")
64
      outobjDetails.Item ("rtag_name") = rsQry("rtag_name")
64
      outobjDetails.Item ("rtag_name") = rsQry("rtag_name")
65
   Else
65
   Else
66
      Err.Raise 8, "Sub GetFormDetails in "& ScriptName, "Empty record set returned. parRtagId="& parRtagId
66
      Err.Raise 8, "Sub GetFormDetails in "& ScriptName, "Empty record set returned. parRtagId="& parRtagId
67
   End If
67
   End If
68
 
68
 
69
   rsQry.Close
69
   rsQry.Close
70
   Set rsQry = Nothing
70
   Set rsQry = Nothing
71
End Sub
71
End Sub
72
'--------------------------------------------------------------------------------------------------------------------------
72
'--------------------------------------------------------------------------------------------------------------------------
73
Sub RipplePackage (flag)
73
Sub RipplePackage (flag)
74
 
74
 
75
   On Error Resume Next
75
   On Error Resume Next
76
   objEH.ErrorRedirect = TRUE
76
   objEH.ErrorRedirect = TRUE
77
   OraDatabase.Parameters.Add "PV_ID_LIST",  Request("pv_id_list"),  ORAPARM_INPUT, ORATYPE_VARCHAR2
77
   OraDatabase.Parameters.Add "PV_ID_LIST",  Request("pv_id_list"),  ORAPARM_INPUT, ORATYPE_VARCHAR2
78
   OraDatabase.Parameters.Add "RTAG_ID",     parRtag_id,  ORAPARM_INPUT, ORATYPE_NUMBER
78
   OraDatabase.Parameters.Add "RTAG_ID",     parRtag_id,  ORAPARM_INPUT, ORATYPE_NUMBER
79
   OraDatabase.Parameters.Add "USER_ID",     objAccessControl.UserId,  ORAPARM_INPUT, ORATYPE_NUMBER
79
   OraDatabase.Parameters.Add "USER_ID",     objAccessControl.UserId,  ORAPARM_INPUT, ORATYPE_NUMBER
80
 
80
 
81
   objEH.TryORA ( OraSession )
81
   objEH.TryORA ( OraSession )
82
 
82
 
83
   If flag Then
83
   If flag Then
84
      OraDatabase.ExecuteSQL _
84
      OraDatabase.ExecuteSQL _
85
      "BEGIN  Ripple_Package( :PV_ID_LIST, :RTAG_ID, :USER_ID );  END;"
85
      "BEGIN  Ripple_Package( :PV_ID_LIST, :RTAG_ID, :USER_ID );  END;"
86
   Else
86
   Else
87
      OraDatabase.ExecuteSQL _
87
      OraDatabase.ExecuteSQL _
88
      "BEGIN  UnRipple_Package( :PV_ID_LIST, :RTAG_ID, :USER_ID );  END;"
88
      "BEGIN  UnRipple_Package( :PV_ID_LIST, :RTAG_ID, :USER_ID );  END;"
89
   End If
89
   End If
90
 
90
 
91
   objEH.CatchORA ( OraSession )
91
   objEH.CatchORA ( OraSession )
92
 
92
 
93
   OraDatabase.Parameters.Remove "PV_ID_LIST"
93
   OraDatabase.Parameters.Remove "PV_ID_LIST"
94
   OraDatabase.Parameters.Remove "RTAG_ID"
94
   OraDatabase.Parameters.Remove "RTAG_ID"
95
   OraDatabase.Parameters.Remove "USER_ID"
95
   OraDatabase.Parameters.Remove "USER_ID"
96
 
96
 
97
End Sub
97
End Sub
98
'--------------------------------------------------------------------------------------------------------------------------
98
'--------------------------------------------------------------------------------------------------------------------------
99
Function PrettyDelta( delta, daemonState,pkgId )
99
Function PrettyDelta( delta, daemonState,pkgId )
100
    Dim style
100
    Dim style
101
    style = ""
101
    style = ""
102
 
102
 
103
    If (delta > 600) AND (IsNull(pkgId) OR pkgId = "") Then
103
    If (delta > 600) AND (IsNull(pkgId) OR pkgId = "") Then
104
      style = "style=color:Red"
104
      style = "style=color:Red"
105
      If (delta > 86400 ) Then
105
      If (delta > 86400 ) Then
106
        Dim bdate, dd,mm,yy
106
        Dim bdate, dd,mm,yy
107
        bdate = DateAdd("s", - delta,Now())
107
        bdate = DateAdd("s", - delta,Now())
108
        dd = Day(bdate)
108
        dd = Day(bdate)
109
        mm = MonthName(Month(bdate),1)
109
        mm = MonthName(Month(bdate),1)
110
        yy = Year( bdate)
110
        yy = Year( bdate)
111
        delta = dd & "-" & mm & "-" & yy
111
        delta = dd & "-" & mm & "-" & yy
112
        If ( daemonState >= 2 ) Then
112
        If ( daemonState >= 2 ) Then
113
            style = ""
113
            style = ""
114
        End If
114
        End If
115
      ElseIf ( delta > 60*60 ) Then
115
      ElseIf ( delta > 60*60 ) Then
116
        'Dim bdate, hh, mins, ss
116
        'Dim bdate, hh, mins, ss
117
        bdate = DateAdd("s", - delta,Now())
117
        bdate = DateAdd("s", - delta,Now())
118
        delta = TimeValue( bdate)
118
        delta = TimeValue( bdate)
119
        'delta = hh & ":" & mins & ":" & ss
119
        'delta = hh & ":" & mins & ":" & ss
120
      End If
120
      End If
121
    End If
121
    End If
122
 
122
 
123
    If style <> "" Then
123
    If style <> "" Then
124
        delta = "<span " & style & ">" & delta & "</span>"
124
        delta = "<span " & style & ">" & delta & "</span>"
125
    End If
125
    End If
126
    PrettyDelta = delta
126
    PrettyDelta = delta
127
End Function
127
End Function
128
'--------------------------------------------------------------------------------------------------------------------------
128
'--------------------------------------------------------------------------------------------------------------------------
129
Function Get_Daemon_Mode( cMode )
129
Function Get_Daemon_Mode( cMode )
130
 
130
 
131
   If cMode = "S" Then
131
   If cMode = "S" Then
132
      Get_Daemon_Mode = "Slave"
132
      Get_Daemon_Mode = "Slave"
133
   ElseIf cMode = "M" Then
133
   ElseIf cMode = "M" Then
134
      Get_Daemon_Mode = "Master"
134
      Get_Daemon_Mode = "Master"
135
   End If
135
   End If
136
 
136
 
137
End Function
137
End Function
138
'--------------------------------------------------------------------------------------------------------------------------
138
'--------------------------------------------------------------------------------------------------------------------------
139
Function Get_Run_Level( nLevel, indefinitePause, astate)
139
Function Get_Run_Level( nLevel, indefinitePause, astate)
140
 
140
 
141
   If indefinitePause Then
141
   If indefinitePause Then
142
      Get_Run_Level = "<span class='err_alert'>Stopped</span>"
142
      Get_Run_Level = "<span class='err_alert'>Stopped</span>"
143
   ElseIf astate = 1 Then      ' if build daemon paused
143
   ElseIf astate = 1 Then      ' if build daemon paused
144
      Get_Run_Level = "Paused"
144
      Get_Run_Level = "Paused"
145
   ElseIf astate = 2 Then      ' if build daemon disabled
145
   ElseIf astate = 2 Then      ' if build daemon disabled
146
      Get_Run_Level = "Disabled"
146
      Get_Run_Level = "Disabled"
147
   ElseIf astate = 0 Then     ' if build daemon enabled
147
   ElseIf astate = 0 Then     ' if build daemon enabled
148
      If nLevel = 1 Then
148
      If nLevel = 1 Then
149
         Get_Run_Level = "Cannot Continue"
149
         Get_Run_Level = "Cannot Continue"
150
      ElseIf nLevel = 2 Then
150
      ElseIf nLevel = 2 Then
151
         Get_Run_Level = "Paused"
151
         Get_Run_Level = "Paused"
152
      ElseIf nLevel = 3 Then
152
      ElseIf nLevel = 3 Then
153
         Get_Run_Level = "Building"
153
         Get_Run_Level = "Building"
154
      ElseIf nLevel = 4 Then
154
      ElseIf nLevel = 4 Then
155
         Get_Run_Level = "Idle"
155
         Get_Run_Level = "Idle"
156
      ElseIf nLevel = 5 Then
156
      ElseIf nLevel = 5 Then
157
         Get_Run_Level = "Waiting"
157
         Get_Run_Level = "Waiting"
158
      ElseIf nLevel = 6 Then
158
      ElseIf nLevel = 6 Then
159
         Get_Run_Level = "Publishing"
159
         Get_Run_Level = "Publishing"
160
      Else
160
      Else
161
         Get_Run_Level = "<span class='err_alert'>Unknown!</span>"
161
         Get_Run_Level = "<span class='err_alert'>Unknown!</span>"
162
      End If
162
      End If
163
   End If
163
   End If
164
 
164
 
165
End Function
165
End Function
166
 
166
 
167
'--------------------------------------------------------------------------------------------------------------------------
167
'--------------------------------------------------------------------------------------------------------------------------
168
Function Get_Package_Name( sPackageName,nRtagId,nPkgPvid )
168
Function Get_Package_Name( sPackageName,nRtagId,nPkgPvid )
169
 
169
 
170
  If IsNull(sPackageName) Then
170
  If IsNull(sPackageName) Then
171
    Get_Package_Name = "None"
171
    Get_Package_Name = "None"
172
  ElseIf IsNull(nPkgPvid) or nPkgPvid <= 0 Then
172
  ElseIf IsNull(nPkgPvid) or nPkgPvid <= 0 Then
173
    Get_Package_Name = sPackageName
173
    Get_Package_Name = sPackageName
174
  Else
174
  Else
175
    Get_Package_Name = "<a class=""txt_linked"" href=""dependencies.asp?pv_id=" +  nPkgPvid + "&rtag_id=" + nRtagId + """>" + sPackageName + "</a>"
175
    Get_Package_Name = "<a class=""txt_linked"" href=""dependencies.asp?pv_id=" +  nPkgPvid + "&rtag_id=" + nRtagId + """>" + sPackageName + "</a>"
176
  End If
176
  End If
177
 
177
 
178
End Function
178
End Function
179
'--------------------------------------------------------------------------------------------------------------------------
179
'--------------------------------------------------------------------------------------------------------------------------
180
Function GetLastBuildAge( rtagid)
180
Function GetLastBuildAge( rtagid)
181
   Dim  query_string, rsQry
181
   Dim  query_string, rsQry
182
       query_string = "SELECT TRUNC (86400*(SYSDATE - rl.LAST_BUILD)) as delta," &_
182
       query_string = "SELECT TRUNC (86400*(SYSDATE - rl.LAST_BUILD)) as delta," &_
183
                      "       TO_CHAR(rl.LAST_BUILD, 'DD-Mon-YYYY') as last_build," &_
183
                      "       TO_CHAR(rl.LAST_BUILD, 'DD-Mon-YYYY') as last_build," &_
184
                      "       TO_CHAR(rl.LAST_BUILD, 'HH:MM:SS PM') as last_build_hours," &_
184
                      "       TO_CHAR(rl.LAST_BUILD, 'HH:MM:SS PM') as last_build_hours," &_
185
                      "       TRUNC (SYSDATE - rl.LAST_BUILD) as last_build_days" &_
185
                      "       TRUNC (SYSDATE - rl.LAST_BUILD) as last_build_days" &_
186
                      " FROM RELEASE_CONFIG rc, RUN_LEVEL rl, BUILD_MACHINE_CONFIG bm " &_
186
                      " FROM RELEASE_CONFIG rc, RUN_LEVEL rl, BUILD_MACHINE_CONFIG bm " &_
187
                      " WHERE rc.RTAG_ID =" &rtagid &_
187
                      " WHERE rc.RTAG_ID =" &rtagid &_
188
                      "   AND rc.bmcon_id is not null" &_
188
                      "   AND rc.bmcon_id is not null" &_
189
                      "   AND rl.RCON_ID = rc.RCON_ID" &_
189
                      "   AND rl.RCON_ID = rc.RCON_ID" &_
190
                      "   AND rc.bmcon_id = bm.bmcon_id(+)"
190
                      "   AND rc.bmcon_id = bm.bmcon_id(+)"
191
 
191
 
192
        Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
192
        Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
193
        If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
193
        If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
194
            Dim delta, last_build, last_build_time, last_build_days
194
            Dim delta, last_build, last_build_time, last_build_days
195
            If IsNull(rsQry("delta")) Then
195
            If IsNull(rsQry("delta")) Then
196
                delta = 0
196
                delta = 0
197
            Else
197
            Else
198
                delta = CLng(rsQry("delta"))
198
                delta = CLng(rsQry("delta"))
199
            End If
199
            End If
200
            last_build = rsQry("last_build")
200
            last_build = rsQry("last_build")
201
            last_build_time = rsQry("last_build_hours")
201
            last_build_time = rsQry("last_build_hours")
202
            last_build_days = rsQry("last_build_days")
202
            last_build_days = rsQry("last_build_days")
203
            If delta < (60*60*24) Then
203
            If delta < (60*60*24) Then
204
                GetLastBuildAge = last_build_time  
204
                GetLastBuildAge = last_build_time  
205
            Else     
205
            Else     
206
                GetLastBuildAge = last_build
206
                GetLastBuildAge = last_build
207
            End If
207
            End If
208
        End If
208
        End If
209
        rsQry.Close()
209
        rsQry.Close()
210
        Set rsQry = nothing
210
        Set rsQry = nothing
211
 
211
 
212
End Function
212
End Function
213
 
213
 
214
'--------------------------------------------------------------------------------------------------------------------------
214
'--------------------------------------------------------------------------------------------------------------------------
215
Function GetModifiedSeqNo( rtagid)
215
Function GetModifiedSeqNo( rtagid)
216
   Dim  query_string, rsQry
216
   Dim  query_string, rsQry
217
       query_string = "SELECT SEQNUM FROM RELEASE_MODIFIED WHERE RTAG_ID = " & rtagid
217
       query_string = "SELECT SEQNUM FROM RELEASE_MODIFIED WHERE RTAG_ID = " & rtagid
218
 
218
 
219
        Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
219
        Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
220
        If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
220
        If (NOT rsQry.BOF) AND (NOT rsQry.EOF) Then
221
            GetModifiedSeqNo = rsQry("SEQNUM")
221
            GetModifiedSeqNo = rsQry("SEQNUM")
222
        Else
222
        Else
223
            GetModifiedSeqNo = "-"
223
            GetModifiedSeqNo = "-"
224
        End If
224
        End If
225
        rsQry.Close()
225
        rsQry.Close()
226
        Set rsQry = nothing
226
        Set rsQry = nothing
227
 
227
 
228
End Function
228
End Function
229
 
229
 
230
'--------------------------------------------------------------------------------------------------------------------------
230
'--------------------------------------------------------------------------------------------------------------------------
231
%>
231
%>
232
<%
232
<%
233
'------------ RUN BEFORE PAGE RENDER ----------
233
'------------ RUN BEFORE PAGE RENDER ----------
234
shref_base = "http://" & archive_server & "/devl/abtlog/"
234
shref_base = "http://" & archive_server & "/devl/abtlog/"
235
 
235
 
236
' --- Get Form details from DB ---
236
' --- Get Form details from DB ---
237
Call GetFormDetails ( Request("rtag_id"), objFormCollector )
237
Call GetFormDetails ( Request("rtag_id"), objFormCollector )
238
 
238
 
239
' --- Load Validation Rules ---
239
' --- Load Validation Rules ---
240
'Call objForm.LoadValidationRules ( Array("rtag_name","rtag_description", "config_spec_branch"), OraDatabase )    ' Load Validation Rules
240
'Call objForm.LoadValidationRules ( Array("rtag_name","rtag_description", "config_spec_branch"), OraDatabase )    ' Load Validation Rules
241
 
241
 
242
' --- Enter Form Validation Rule Changes here... ----
242
' --- Enter Form Validation Rule Changes here... ----
243
'----------------------------------------------------
243
'----------------------------------------------------
244
 
244
 
245
' --- RUN onPostBack ---
245
' --- RUN onPostBack ---
246
If Request("action") <> "" AND objAccessControl.UserLogedIn Then
246
If Request("action") <> "" AND objAccessControl.UserLogedIn Then
247
 
247
 
248
  If objEH.Finally Then
248
  If objEH.Finally Then
249
    If Request("action") = "include" Then
249
    If Request("action") = "include" Then
250
      Call RipplePackage (True)
250
      Call RipplePackage (True)
251
      ' Redirect to the current page so that a refesh will not
251
      ' Redirect to the current page so that a refesh will not
252
      ' cause a form re-submit.
252
      ' cause a form re-submit.
253
      Response.Redirect(ScriptName & "?rtag_id=" & parRtagId)
253
      Response.Redirect(ScriptName & "?rtag_id=" & parRtagId)
254
    Else
254
    Else
255
      Call OpenInWindow ( "dependencies.asp?rtag_id="& parRtagId )
255
      Call OpenInWindow ( "dependencies.asp?rtag_id="& parRtagId )
256
    End If
256
    End If
257
  End If
257
  End If
258
 
258
 
259
End If
259
End If
260
 
260
 
261
'----------------------------------------------
261
'----------------------------------------------
262
%>
262
%>
263
<script language="JavaScript" type="text/JavaScript">
263
<script language="JavaScript" type="text/JavaScript">
264
 
264
 
265
window.addEventListener ?
265
window.addEventListener ?
266
window.addEventListener("load",InitShow,false) :
266
window.addEventListener("load",InitShow,false) :
267
window.attachEvent && window.attachEvent("onload",InitShow);
267
window.attachEvent && window.attachEvent("onload",InitShow);
268
 
268
 
269
function InitShow(e)
269
function InitShow(e)
270
{
270
{
271
    toggleDispClass('rootCause',0);
271
    toggleDispClass('rootCause',0);
272
    toggleDispClass('rootNoEnv',0);
272
    toggleDispClass('rootNoEnv',0);
273
    toggleDispClass('rootFile',0);
273
    toggleDispClass('rootFile',0);
274
    toggleDispClass('rootIndirect',0);
274
    toggleDispClass('rootIndirect',0);
275
    toggleDispClass('manualCause',0);
275
    toggleDispClass('manualCause',0);
276
}
276
}
277
 
277
 
278
function toggleDispClass(cname,flip)
278
function toggleDispClass(cname,flip)
279
{
279
{
280
    var cookieName = 'RELMGR_BUILDSTATUS';
280
    var cookieName = 'RELMGR_BUILDSTATUS';
281
    var cv = JSON.parse(getCookie(cookieName));
281
    var cv = JSON.parse(getCookie(cookieName));
282
    if (!cv)
282
    if (!cv)
283
        cv = new Object;
283
        cv = new Object;
284
    if (!cv.BuildStatus)
284
    if (!cv.BuildStatus)
285
        cv.BuildStatus = new Object;
285
        cv.BuildStatus = new Object;
286
 
286
 
287
    var state = cv.BuildStatus[cname];
287
    var state = cv.BuildStatus[cname];
288
    if (state === undefined)
288
    if (state === undefined)
289
        state = true;
289
        state = true;
290
 
290
 
291
    if (flip>0)
291
    if (flip>0)
292
        state = !state;
292
        state = !state;
293
 
293
 
294
    cv.BuildStatus[cname] = state;
294
    cv.BuildStatus[cname] = state;
295
 
295
 
296
    // Reflect the current state in the checkbox
296
    // Reflect the current state in the checkbox
297
    var de = document.getElementById(cname);
297
    var de = document.getElementById(cname);
298
    if (de)
298
    if (de)
299
        de.checked = state;
299
        de.checked = state;
300
 
300
 
301
    var elements = new Array();
301
    var elements = new Array();
302
    elements = getElementsByClassName(cname);
302
    elements = getElementsByClassName(cname);
303
    for(i in elements ){
303
    for(i in elements ){
304
        if (state) {
304
        if (state) {
305
            elements[i].style.display = "";
305
            elements[i].style.display = "";
306
        }
306
        }
307
        else {
307
        else {
308
            elements[i].style.display = "none";
308
            elements[i].style.display = "none";
309
        }
309
        }
310
    }
310
    }
311
    setCookie(cookieName, JSON.stringify(cv), 365 );
311
    setCookie(cookieName, JSON.stringify(cv), 365 );
312
}
312
}
313
 
313
 
314
</script>
314
</script>
315
 
315
 
316
<html>
316
<html>
317
   <head>
317
   <head>
318
      <title>Release Manager</title>
318
      <title>Release Manager</title>
319
      <meta http-equiv="Pragma" content="no-cache">
319
      <link rel="shortcut icon" href="<%=FavIcon%>"/>
320
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
320
      <meta http-equiv="Pragma" content="no-cache">
321
      <link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
321
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
322
      <link rel="stylesheet" href="images/navigation.css" type="text/css">
322
      <link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
323
      <script language="JavaScript" src="images/common.js"></script>
323
      <link rel="stylesheet" href="images/navigation.css" type="text/css">
324
      <!--#include file="_jquery_includes.asp"-->
324
      <script language="JavaScript" src="images/common.js"></script>
325
      <!-- TIPS -->
325
      <!--#include file="_jquery_includes.asp"-->
326
      <script type="text/javascript" src="scripts/json2.js"></script>
326
      <!-- TIPS -->
327
      <script language="JavaScript" src="images/tipster.js"></script>
327
      <script type="text/javascript" src="scripts/json2.js"></script>
328
      <script language="JavaScript" src="images/_help_tips.js"></script>
328
      <script language="JavaScript" src="images/tipster.js"></script>
329
      <script language="JavaScript" type="text/JavaScript">
329
      <script language="JavaScript" src="images/_help_tips.js"></script>
330
      formTips.tips.h_shedtime       = stdTip(200, 'Color Code', '<SPAN style=color:Red>Red</SPAN> = overdue<br><SPAN style=color:Green>Green</SPAN> = ready' );
330
      <script language="JavaScript" type="text/JavaScript">
331
      </script>
331
      formTips.tips.h_shedtime       = stdTip(200, 'Color Code', '<SPAN style=color:Red>Red</SPAN> = overdue<br><SPAN style=color:Green>Green</SPAN> = ready' );
332
      <!-- DROPDOWN MENUS -->
332
      </script>
333
      <!--#include file="_menu_def.asp"-->
333
      <!-- DROPDOWN MENUS -->
334
      <script language="JavaScript1.2" src="images/popup_menu.js"></script>
334
      <!--#include file="_menu_def.asp"-->
335
   </head>
335
      <script language="JavaScript1.2" src="images/popup_menu.js"></script>
336
   <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="isChecked('pv_id_list','submit');">
336
   </head>
337
      <!-- MENU LAYERS -------------------------------------->
337
   <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" onload="isChecked('pv_id_list','submit');">
338
      <div id="popmenu" class="menuskin" onmouseover="clearhidemenu();highlightmenu(event,'on')" onmouseout="highlightmenu(event,'off');dynamichide(event)"></div>
338
      <!-- MENU LAYERS -------------------------------------->
339
      <!-- TIPS LAYERS -------------------------------------->
339
      <div id="popmenu" class="menuskin" onmouseover="clearhidemenu();highlightmenu(event,'on')" onmouseout="highlightmenu(event,'off');dynamichide(event)"></div>
340
      <div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
340
      <!-- TIPS LAYERS -------------------------------------->
341
      <!----------------------------------------------------->
341
      <div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
342
      <!-- HEADER -->
342
      <!----------------------------------------------------->
343
      <!--#include file="_header.asp"-->
343
      <!-- HEADER -->
344
      <!-- BODY ---->
344
      <!--#include file="_header.asp"-->
345
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
345
      <!-- BODY ---->
346
         <tr>
346
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
347
            <td width="1" background="images/bg_home_orange.gif" valign="top"></td>
347
         <tr>
348
            <td width="100%" rowspan="1" align="center" valign="top" bgcolor="#EEEFEF">
348
            <td width="1" background="images/bg_home_orange.gif" valign="top"></td>
349
               <!-- FORM START -->
349
            <td width="100%" rowspan="1" align="center" valign="top" bgcolor="#EEEFEF">
350
               <%
350
               <!-- FORM START -->
351
               objFormComponent.FormName = "FormName"
351
               <%
352
               objFormComponent.Action = ScriptName &"?rtag_id="& parRtagId
352
               objFormComponent.FormName = "FormName"
353
               Call objFormComponent.FormStart()
353
               objFormComponent.Action = ScriptName &"?rtag_id="& parRtagId
354
               %>
354
               Call objFormComponent.FormStart()
355
               <table width="10" border="0" cellspacing="0" cellpadding="0">
355
               %>
356
                  <tr>
356
               <table width="10" border="0" cellspacing="0" cellpadding="0">
357
                     <td width="1%"></td>
357
                  <tr>
358
                     <td width="100%">
358
                     <td width="1%"></td>
359
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
359
                     <td width="100%">
360
                           <tr>
360
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
361
                              <td nowrap class="body_txt"></td>
361
                           <tr>
362
                           </tr>
362
                              <td nowrap class="body_txt"></td>
363
                        </table>
363
                           </tr>
364
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
364
                        </table>
365
                           <tr>
365
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
366
                              <td nowrap class="form_ttl"><p>&nbsp;</p>
366
                           <tr>
367
                                 <p>BUILD STATUS INFORMATION</p>
367
                              <td nowrap class="form_ttl"><p>&nbsp;</p>
368
                              </td>
368
                                 <p>BUILD STATUS INFORMATION</p>
369
                              <td align="right" valign="bottom"></td>
369
                              </td>
370
                           </tr>
370
                              <td align="right" valign="bottom"></td>
371
                        </table>
371
                           </tr>
372
                     </td>
372
                        </table>
373
                     <td width="1%"></td>
373
                     </td>
374
                  </tr>
374
                     <td width="1%"></td>
375
                  <tr>
375
                  </tr>
376
                     <td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
376
                  <tr>
377
                     <td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
377
                     <td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
378
                     <td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
378
                     <td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
379
                  </tr>
379
                     <td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
380
                  <tr>
380
                  </tr>
381
                     <td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
381
                  <tr>
382
                     <td bgcolor="#FFFFFF" valign="top">
382
                     <td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
383
                        <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
383
                     <td bgcolor="#FFFFFF" valign="top">
384
                        <!--#include file="messages/_msg_inline.asp"-->
384
                        <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
385
                        <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
385
                        <!--#include file="messages/_msg_inline.asp"-->
386
                        <br>
386
                        <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
387
                        <table width="100%" border="0" cellspacing="2" cellpadding="0">
387
                        <br>
388
                        <tr><td colspan=4 class='err_alert'>
388
                        <table width="100%" border="0" cellspacing="2" cellpadding="0">
389
                              <font size='2'><b>Packages Excluded From Build</b></font>
389
                        <tr><td colspan=4 class='err_alert'>
390
                           </td>
390
                              <font size='2'><b>Packages Excluded From Build</b></font>
391
                           </tr>
391
                           </td>
392
                           <td></td>
392
                           </tr>
393
                           <td  colspan=3 class="body_row">
393
                           <td></td>
394
                           <fieldset class="fset" align="right" style=" border: 1px groove; ">
394
                           <td  colspan=3 class="body_row">
395
                                Show
395
                           <fieldset class="fset" align="right" style=" border: 1px groove; ">
396
                                <input type="checkbox" checked value=0 name="showManual"   id="manualCause"   onClick="toggleDispClass('manualCause',1);">Manual Exclusions
396
                                Show
397
                                <input type="checkbox" checked value=0 name="showCause"    id="rootCause"     onClick="toggleDispClass('rootCause',1);">Config Errors
397
                                <input type="checkbox" checked value=0 name="showManual"   id="manualCause"   onClick="toggleDispClass('manualCause',1);">Manual Exclusions
398
                                <input type="checkbox" checked value=0 name="showNoEnv"    id="rootNoEnv"     onClick="toggleDispClass('rootNoEnv',1);">Env Errors
398
                                <input type="checkbox" checked value=0 name="showCause"    id="rootCause"     onClick="toggleDispClass('rootCause',1);">Config Errors
399
                                <input type="checkbox" checked value=0 name="showFile"     id="rootFile"      onClick="toggleDispClass('rootFile',1);">Build Errors
399
                                <input type="checkbox" checked value=0 name="showNoEnv"    id="rootNoEnv"     onClick="toggleDispClass('rootNoEnv',1);">Env Errors
400
                                <input type="checkbox" checked value=0 name="showIndirect" id="rootIndirect"  onClick="toggleDispClass('rootIndirect',1);">Indirect Exclusions
400
                                <input type="checkbox" checked value=0 name="showFile"     id="rootFile"      onClick="toggleDispClass('rootFile',1);">Build Errors
401
                           </fieldset>
401
                                <input type="checkbox" checked value=0 name="showIndirect" id="rootIndirect"  onClick="toggleDispClass('rootIndirect',1);">Indirect Exclusions
402
                           </td>
402
                           </fieldset>
403
                           </tr>
403
                           </td>
404
 
404
                           </tr>
405
                           <tr>
405
 
406
                              <td background="images/bg_table_col.gif" class="err_alert"><b>Directly</b></td>
406
                           <tr>
407
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Package</td>
407
                              <td background="images/bg_table_col.gif" class="err_alert"><b>Directly</b></td>
408
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Version</td>
408
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Package</td>
409
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Root Cause</td>
409
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Version</td>
410
                           </tr>
410
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Root Cause</td>
411
                           <tr>
411
                           </tr>
412
                           <%
412
                           <tr>
413
                           query_string = " select pkg.pkg_name, pv.pkg_version, pv.pv_id, dnr.rtag_id, dnr.root_cause, dnr.root_file, pv.pv_description"&_
413
                           <%
414
                                          "   from do_not_ripple dnr, package_versions pv, packages pkg"&_
414
                           query_string = " select pkg.pkg_name, pv.pkg_version, pv.pv_id, dnr.rtag_id, dnr.root_cause, dnr.root_file, pv.pv_description"&_
415
                                          "  where dnr.rtag_id = "& parRtagId &_
415
                                          "   from do_not_ripple dnr, package_versions pv, packages pkg"&_
416
                                          "    and pv.pv_id    = dnr.pv_id"&_
416
                                          "  where dnr.rtag_id = "& parRtagId &_
417
                                          "    and pkg.pkg_id  = pv.pkg_id"&_
417
                                          "    and pv.pv_id    = dnr.pv_id"&_
418
                                          "    and dnr.root_pv_id is null"&_
418
                                          "    and pkg.pkg_id  = pv.pkg_id"&_
419
                                          "  order by pkg_name"
419
                                          "    and dnr.root_pv_id is null"&_
420
                           Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
420
                                          "  order by pkg_name"
421
                           '--- Render rows ---
421
                           Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
422
                           Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
422
                           '--- Render rows ---
423
                            Dim rowClass
423
                           Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
424
                            Dim rowData
424
                            Dim rowClass
425
                            '
425
                            Dim rowData
426
                            ' Manually excluded packages have no root_cause or root_file or root_pv_id
426
                            '
427
                            '
427
                            ' Manually excluded packages have no root_cause or root_file or root_pv_id
428
                            ' root_file, if supplied, indicates a build failure log file exists
428
                            '
429
                            ' this should always prevail over the textual root_cause
429
                            ' root_file, if supplied, indicates a build failure log file exists
430
                            '
430
                            ' this should always prevail over the textual root_cause
431
                            If (IsNull(rsQry("root_file")) AND IsNull(rsQry("root_cause"))) Then
431
                            '
432
                                rowData = "Manually Excluded"
432
                            If (IsNull(rsQry("root_file")) AND IsNull(rsQry("root_cause"))) Then
433
                                rowClass = "manualCause"
433
                                rowData = "Manually Excluded"
434
 
434
                                rowClass = "manualCause"
435
                            ElseIf IsNull(rsQry("root_file")) Then
435
 
436
                               rowData = rsQry("root_cause")
436
                            ElseIf IsNull(rsQry("root_file")) Then
437
                               If InStr(rowData, "no build env") Then
437
                               rowData = rsQry("root_cause")
438
                                   rowClass = "rootNoEnv"
438
                               If InStr(rowData, "no build env") Then
439
                               Else
439
                                   rowClass = "rootNoEnv"
440
                                   rowClass = "rootCause"
440
                               Else
441
                               End If
441
                                   rowClass = "rootCause"
442
 
442
                               End If
443
                            Else
443
 
444
                                rowClass = "rootFile"
444
                            Else
445
                                rowData = "<a class=""txt_linked"" title=""" & rsQry("root_file") &_
445
                                rowClass = "rootFile"
446
                                          " Log file may have expired."" " &_
446
                                rowData = "<a class=""txt_linked"" title=""" & rsQry("root_file") &_
447
                                          "href=""" & shref_base & rsQry("root_file") & """>" &_
447
                                          " Log file may have expired."" " &_
448
                                          "Build Failure Log File</a>"
448
                                          "href=""" & shref_base & rsQry("root_file") & """>" &_
449
                            End If
449
                                          "Build Failure Log File</a>"
450
                           %>
450
                            End If
451
                              <tr class="<%=rowClass%>">
451
                           %>
452
                                 <td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
452
                              <tr class="<%=rowClass%>">
453
                              </tr>
453
                                 <td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
454
                              <tr class="<%=rowClass%>">
454
                              </tr>
455
                                 <td nowrap width="1%">
455
                              <tr class="<%=rowClass%>">
456
                                    <!-- The use of the isChecked() javascript function below, enables the submit button if any checkboxes are checked, -->
456
                                 <td nowrap width="1%">
457
                                    <!-- else it will disable the submit button. The function is badly named, but nevertheless, that is what it does.   -->
457
                                    <!-- The use of the isChecked() javascript function below, enables the submit button if any checkboxes are checked, -->
458
                                    <a name="PkgName_<%=rsQry("pkg_name")%>">
458
                                    <!-- else it will disable the submit button. The function is badly named, but nevertheless, that is what it does.   -->
459
                                    <input type="checkbox" value="<%=rsQry("pv_id")%>" name="pv_id_list" id="pv_id_list" onClick="isChecked('pv_id_list','IncludeSubmit');">
459
                                    <a name="PkgName_<%=rsQry("pkg_name")%>">
460
                                    </a>
460
                                    <input type="checkbox" value="<%=rsQry("pv_id")%>" name="pv_id_list" id="pv_id_list" onClick="isChecked('pv_id_list','IncludeSubmit');">
461
                                 </td>
461
                                    </a>
462
                                 <td nowrap class="body_rowg"><a class="txt_linked" href="dependencies.asp?pv_id=<%=rsQry("pv_id")%>&rtag_id=<%=rsQry("rtag_id")%>" title="<%=rsQry("pv_description")%>"><%=rsQry("pkg_name")%></a></td>
462
                                 </td>
463
                                 <td nowrap class="body_rowg"><%=rsQry("pkg_version")%></td>
463
                                 <td nowrap class="body_rowg"><a class="txt_linked" href="dependencies.asp?pv_id=<%=rsQry("pv_id")%>&rtag_id=<%=rsQry("rtag_id")%>" title="<%=rsQry("pv_description")%>"><%=rsQry("pkg_name")%></a></td>
464
                                 <td nowrap class="body_rowg"><%=rowData%></td>
464
                                 <td nowrap class="body_rowg"><%=rsQry("pkg_version")%></td>
465
                              </tr>
465
                                 <td nowrap class="body_rowg"><%=rowData%></td>
466
                           <%
466
                              </tr>
467
                            rsQry.MoveNext
467
                           <%
468
                           Loop%>
468
                            rsQry.MoveNext
469
                           <tr>
469
                           Loop%>
470
                              <td background="images/bg_table_col.gif" class="err_alert"><b>Indirectly</b></td>
470
                           <tr>
471
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Package</td>
471
                              <td background="images/bg_table_col.gif" class="err_alert"><b>Indirectly</b></td>
472
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Version</td>
472
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Package</td>
473
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Root Cause Package</td>
473
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Version</td>
474
                           </tr>
474
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Root Cause Package</td>
475
                           <%
475
                           </tr>
476
                           query_string = " select pv.pv_id, pkg.pkg_name, pv.pkg_version, qkg.pkg_name, dnr.rtag_id, pv.pv_description"&_
476
                           <%
477
                                          "   from do_not_ripple dnr, package_versions pv, package_versions qv, packages pkg, packages qkg"&_
477
                           query_string = " select pv.pv_id, pkg.pkg_name, pv.pkg_version, qkg.pkg_name, dnr.rtag_id, pv.pv_description"&_
478
                                          "  where dnr.rtag_id = "& parRtagId &_
478
                                          "   from do_not_ripple dnr, package_versions pv, package_versions qv, packages pkg, packages qkg"&_
479
                                          "    and pv.pv_id    = dnr.pv_id"&_
479
                                          "  where dnr.rtag_id = "& parRtagId &_
480
                                          "    and pkg.pkg_id  = pv.pkg_id"&_
480
                                          "    and pv.pv_id    = dnr.pv_id"&_
481
                                          "    and qv.pv_id    = dnr.root_pv_id"&_
481
                                          "    and pkg.pkg_id  = pv.pkg_id"&_
482
                                          "    and qkg.pkg_id  = qv.pkg_id"&_
482
                                          "    and qv.pv_id    = dnr.root_pv_id"&_
483
                                          "    and dnr.root_pv_id is not null"&_
483
                                          "    and qkg.pkg_id  = qv.pkg_id"&_
484
                                          "  order by pkg.pkg_name"
484
                                          "    and dnr.root_pv_id is not null"&_
485
                           Dim rsQry2
485
                                          "  order by pkg.pkg_name"
486
                           Set rsQry2 = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
486
                           Dim rsQry2
487
                           '--- Render rows ---
487
                           Set rsQry2 = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
488
                           Do While (NOT rsQry2.BOF) AND (NOT rsQry2.EOF)%>
488
                           '--- Render rows ---
489
                              <tr class="rootIndirect">
489
                           Do While (NOT rsQry2.BOF) AND (NOT rsQry2.EOF)%>
490
                                 <td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
490
                              <tr class="rootIndirect">
491
                              </tr>
491
                                 <td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
492
                              <tr class="rootIndirect">
492
                              </tr>
493
 
493
                              <tr class="rootIndirect">
494
                                 <td nowrap width="1%">
494
 
495
                                    <input type="checkbox" value=0 disabled=true name="notused" id="notused">
495
                                 <td nowrap width="1%">
496
                                 </td>
496
                                    <input type="checkbox" value=0 disabled=true name="notused" id="notused">
497
                                 <td nowrap class="body_rowg"><a class="txt_linked" href="dependencies.asp?pv_id=<%=rsQry2(0)%>&rtag_id=<%=rsQry2(4)%>" title="<%=rsQry2(5)%>"><%=rsQry2(1)%></a></td>
497
                                 </td>
498
                                 <td nowrap class="body_rowg"><%=rsQry2(2)%></td>
498
                                 <td nowrap class="body_rowg"><a class="txt_linked" href="dependencies.asp?pv_id=<%=rsQry2(0)%>&rtag_id=<%=rsQry2(4)%>" title="<%=rsQry2(5)%>"><%=rsQry2(1)%></a></td>
499
                                 <td nowrap class="body_rowg"><a href="#PkgName_<%=rsQry2(3)%>" style="text-decoration: none;">&raquo;&nbsp;<%=rsQry2(3)%></a></td>
499
                                 <td nowrap class="body_rowg"><%=rsQry2(2)%></td>
500
                              </tr>
500
                                 <td nowrap class="body_rowg"><a href="#PkgName_<%=rsQry2(3)%>" style="text-decoration: none;">&raquo;&nbsp;<%=rsQry2(3)%></a></td>
501
                              <%
501
                              </tr>
502
                              rsQry2.MoveNext
502
                              <%
503
                           Loop%>
503
                              rsQry2.MoveNext
504
                        </table>
504
                           Loop%>
505
                     </td>
505
                        </table>
506
                     <td background="images/lbox_bgside_white.gif">&nbsp;</td>
506
                     </td>
507
                  </tr>
507
                     <td background="images/lbox_bgside_white.gif">&nbsp;</td>
508
                  <%If rsQry.RecordCount > 0 Then%>
508
                  </tr>
509
                     <tr>
509
                  <%If rsQry.RecordCount > 0 Then%>
510
                        <td background="images/bg_action_norm.gif"></td>
510
                     <tr>
511
                        <td align="right" background="images/bg_action_norm.gif">
511
                        <td background="images/bg_action_norm.gif"></td>
512
                           <%
512
                        <td align="right" background="images/bg_action_norm.gif">
513
                           Response.Write(objFormComponent.SubmitButton ( "Include", "name='IncludeSubmit' id='IncludeSubmit' class='form_btn' disabled style='color:silver' onClick=""return vixConfirm('Are you sure you want to include these packages for building?',{title:'Include Packages', post : 'FormName'})""" ))
513
                           <%
514
                           Response.Write(objPMod.ComposeHiddenTags())
514
                           Response.Write(objFormComponent.SubmitButton ( "Include", "name='IncludeSubmit' id='IncludeSubmit' class='form_btn' disabled style='color:silver' onClick=""return vixConfirm('Are you sure you want to include these packages for building?',{title:'Include Packages', post : 'FormName'})""" ))
515
                           %>
515
                           Response.Write(objPMod.ComposeHiddenTags())
516
                        </td>
516
                           %>
517
                        <td background="images/bg_action_norm.gif"><img src="images/h_trsp_dot.gif" width="5" height="30"></td>
517
                        </td>
518
                     </tr>
518
                        <td background="images/bg_action_norm.gif"><img src="images/h_trsp_dot.gif" width="5" height="30"></td>
519
                  <%End If%>
519
                     </tr>
520
                  <tr>
520
                  <%End If%>
521
                     <td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
521
                  <tr>
522
                     <td background="images/lbox_bg_blue.gif"></td>
522
                     <td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
523
                     <td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
523
                     <td background="images/lbox_bg_blue.gif"></td>
524
                  </tr>
524
                     <td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
525
               </table>
525
                  </tr>
526
               <!-- ACTION BUTTONS ---------------------------------------------->
526
               </table>
527
               <input type="hidden" name="action" value="include">
527
               <!-- ACTION BUTTONS ---------------------------------------------->
528
               <!-- ACTION BUTTONS END  ------------------------------------------>
528
               <input type="hidden" name="action" value="include">
529
               <%Call objFormComponent.FormEnd()%>
529
               <!-- ACTION BUTTONS END  ------------------------------------------>
530
               <!-- FORM END ----------------------------------------------------->
530
               <%Call objFormComponent.FormEnd()%>
531
            </td>
531
               <!-- FORM END ----------------------------------------------------->
532
            <td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
532
            </td>
533
         </tr>
533
            <td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
534
         <%
534
         </tr>
535
         rsQry.Close()
535
         <%
536
         Set rsQry = nothing
536
         rsQry.Close()
537
         rsQry2.Close()
537
         Set rsQry = nothing
538
         Set rsQry2 = nothing
538
         rsQry2.Close()
539
         %>
539
         Set rsQry2 = nothing
540
         <tr>
540
         %>
541
            <td width="1" background="images/bg_home_orange.gif" valign="top"></td>
541
         <tr>
542
            <td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF">
542
            <td width="1" background="images/bg_home_orange.gif" valign="top"></td>
543
               <table width="10" border="0" cellspacing="0" cellpadding="0">
543
            <td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF">
544
                  <tr>
544
               <table width="10" border="0" cellspacing="0" cellpadding="0">
545
                     <td width="1%"></td>
545
                  <tr>
546
                     <td width="100%">
546
                     <td width="1%"></td>
547
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
547
                     <td width="100%">
548
                           <tr>
548
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
549
                              <td nowrap class="form_ttl"><p>&nbsp;</p>
549
                           <tr>
550
                                 <p>DAEMON STATUS INFORMATION</p>
550
                              <td nowrap class="form_ttl"><p>&nbsp;</p>
551
                              </td>
551
                                 <p>DAEMON STATUS INFORMATION</p>
552
                              <td  valign="bottom" class="body_rowg">
552
                              </td>
553
                                Last Build: <%=GetLastBuildAge(parRtagId)%>
553
                              <td  valign="bottom" class="body_rowg">
554
                                 [<%=GetModifiedSeqNo(parRtagId)%>]
554
                                Last Build: <%=GetLastBuildAge(parRtagId)%>
555
                              </td>
555
                                 [<%=GetModifiedSeqNo(parRtagId)%>]
556
                              <td align="right" valign="bottom">
556
                              </td>
557
                                <a class="txt_linked" href="build_status.asp?rtag_id=<%=parRtagId%>" title="Refresh Page">[Refresh]</a></td>
557
                              <td align="right" valign="bottom">
558
                              </td>
558
                                <a class="txt_linked" href="build_status.asp?rtag_id=<%=parRtagId%>" title="Refresh Page">[Refresh]</a></td>
559
                           </tr>
559
                              </td>
560
                        </table>
560
                           </tr>
561
                     </td>
561
                        </table>
562
                     <td width="1%"></td>
562
                     </td>
563
                  </tr>
563
                     <td width="1%"></td>
564
                  <tr>
564
                  </tr>
565
                     <td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
565
                  <tr>
566
                     <td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
566
                     <td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
567
                     <td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
567
                     <td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
568
                  </tr>
568
                     <td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
569
                  <tr>
569
                  </tr>
570
                     <td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
570
                  <tr>
571
                     <td bgcolor="#FFFFFF" valign="top">
571
                     <td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
572
                        <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
572
                     <td bgcolor="#FFFFFF" valign="top">
573
                        <!--#include file="messages/_msg_inline.asp"-->
573
                        <!-- MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++ -->
574
                        <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
574
                        <!--#include file="messages/_msg_inline.asp"-->
575
                        <br>
575
                        <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
576
                        <table width="100%" border="0" cellspacing="2" cellpadding="0">
576
                        <br>
577
                           <%
577
                        <table width="100%" border="0" cellspacing="2" cellpadding="0">
578
                           Dim indefinitelyPaused
578
                           <%
579
                           indefinitelyPaused = FALSE
579
                           Dim indefinitelyPaused
580
                           ' Insert a warning into the page if the build daemons are indefintely paused.
580
                           indefinitelyPaused = FALSE
581
                           query_string = " select * from run_level_schedule rls where rls.indefinite_pause = 'P'"
581
                           ' Insert a warning into the page if the build daemons are indefintely paused.
582
 
582
                           query_string = " select * from run_level_schedule rls where rls.indefinite_pause = 'P'"
583
                           Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
583
 
584
                           If rsQry.RecordCount > 0 Then
584
                           Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
585
                              indefinitelyPaused = TRUE %>
585
                           If rsQry.RecordCount > 0 Then
586
                              <tr>
586
                              indefinitelyPaused = TRUE %>
587
                                 <span class='err_alert'>
587
                              <tr>
588
                                    <font size='2'><b>WARNING: Build Daemons are all stopped - please contact an administrator</b></font>
588
                                 <span class='err_alert'>
589
                                 </span>
589
                                    <font size='2'><b>WARNING: Build Daemons are all stopped - please contact an administrator</b></font>
590
                              </tr>
590
                                 </span>
591
                           <%End If
591
                              </tr>
592
 
592
                           <%End If
593
                           rsQry.Close()
593
 
594
                           Set rsQry = nothing
594
                           rsQry.Close()
595
                           %>
595
                           Set rsQry = nothing
596
                           <td width="9%" valign="top"></td>
596
                           %>
597
                           <tr>
597
                           <td width="9%" valign="top"></td>
598
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Daemon Host</td>
598
                           <tr>
599
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Machine Type</td>
599
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Daemon Host</td>
600
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Mode</td>
600
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Machine Type</td>
601
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Run Level</td>
601
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Mode</td>
602
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Current Package</td>
602
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Run Level</td>
603
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Last Change<br>Delta (secs)</td>
603
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Current Package</td>
604
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Control State</td>
604
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Last Change<br>Delta (secs)</td>
605
                           </tr>
605
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Control State</td>
606
                           <%
606
                           </tr>
607
                           ' Get the number of release configurations for this RTAG_ID, and iterate through them
607
                           <%
608
                           query_string = " select * from release_config rc, gbe_machtype gm, build_machine_config bm"&_
608
                           ' Get the number of release configurations for this RTAG_ID, and iterate through them
609
                                          "  where rc.rtag_id = "& parRtagId &_
609
                           query_string = " select * from release_config rc, gbe_machtype gm, build_machine_config bm"&_
610
                                          "    and gm.gbe_id = rc.gbe_id"&_
610
                                          "  where rc.rtag_id = "& parRtagId &_
611
                                          "    and rc.bmcon_id=bm.bmcon_id(+)" &_
611
                                          "    and gm.gbe_id = rc.gbe_id"&_
612
                                          "  order by bm.display_name, rc.rcon_id"
612
                                          "    and rc.bmcon_id=bm.bmcon_id(+)" &_
613
 
613
                                          "  order by bm.display_name, rc.rcon_id"
614
                           Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
614
 
615
 
615
                           Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
616
                           Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
616
 
617
                              rcon_id = rsQry("rcon_id")
617
                           Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
618
 
618
                              rcon_id = rsQry("rcon_id")
619
                              Dim pkgName
619
 
620
                              Dim pkgPvid
620
                              Dim pkgName
621
                              Dim currentRunLevel
621
                              Dim pkgPvid
622
                              Dim daemonState
622
                              Dim currentRunLevel
623
                              Dim delta
623
                              Dim daemonState
624
                              Dim pkgId
624
                              Dim delta
625
 
625
                              Dim pkgId
626
                              ' For this release configuration, get its entry from the run_level table. This table may not
626
 
627
                              ' have an entry so we must handle that outcome too.
627
                              ' For this release configuration, get its entry from the run_level table. This table may not
628
                              query_string = " select rl.pause, rl.current_run_level, rl.current_pkg_id_being_built, "&_
628
                              ' have an entry so we must handle that outcome too.
629
                                             "        TRUNC (86400*(SYSDATE - rl.KEEP_ALIVE)) as delta" &_
629
                              query_string = " select rl.pause, rl.current_run_level, rl.current_pkg_id_being_built, "&_
630
                                             "   from run_level rl"&_
630
                                             "        TRUNC (86400*(SYSDATE - rl.KEEP_ALIVE)) as delta" &_
631
                                             "  where rl.rcon_id = "& rcon_id
631
                                             "   from run_level rl"&_
632
 
632
                                             "  where rl.rcon_id = "& rcon_id
633
                              Set rsQry2 = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
633
 
634
 
634
                              Set rsQry2 = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
635
                              currentRunLevel = -1
635
 
636
                              pkgId = Null
636
                              currentRunLevel = -1
637
                              pkgName = NULL
637
                              pkgId = Null
638
                              pkgPvid = NULL
638
                              pkgName = NULL
639
                              daemonState = 0
639
                              pkgPvid = NULL
640
                              delta = NULL
640
                              daemonState = 0
641
 
641
                              delta = NULL
642
                              If (rsQry2.RecordCount > 0) Then
642
 
643
                                ' Get the run level from the run_level table
643
                              If (rsQry2.RecordCount > 0) Then
644
                                currentRunLevel = rsQry2("current_run_level")
644
                                ' Get the run level from the run_level table
645
                                pkgId = rsQry2("current_pkg_id_being_built")
645
                                currentRunLevel = rsQry2("current_run_level")
646
 
646
                                pkgId = rsQry2("current_pkg_id_being_built")
647
                                daemonState = rsQry2("pause")
647
 
648
                                If IsNull(daemonState) Then daemonState = 0
648
                                daemonState = rsQry2("pause")
649
                                If daemonState = "2" Then pkgId = Null
649
                                If IsNull(daemonState) Then daemonState = 0
650
 
650
                                If daemonState = "2" Then pkgId = Null
651
                                delta = rsQry2("delta")
651
 
652
                              End If
652
                                delta = rsQry2("delta")
653
 
653
                              End If
654
                              ' If we got an entry from the run_level table, try and use the pkg_id it contains, to obtain a
654
 
655
                              ' package name from the packages table
655
                              ' If we got an entry from the run_level table, try and use the pkg_id it contains, to obtain a
656
                              Dim rsQry3
656
                              ' package name from the packages table
657
                              If NOT IsNull(pkgId) Then
657
                              Dim rsQry3
658
                                 query_string = " select pkg_name,rl.current_pv_id from run_level rl, packages pk"&_
658
                              If NOT IsNull(pkgId) Then
659
                                                "  where rl.rcon_id = "& rcon_id &_
659
                                 query_string = " select pkg_name,rl.current_pv_id from run_level rl, packages pk"&_
660
                                                "   and  rl.current_pkg_id_being_built = pk.pkg_id"
660
                                                "  where rl.rcon_id = "& rcon_id &_
661
 
661
                                                "   and  rl.current_pkg_id_being_built = pk.pkg_id"
662
                                 Set rsQry3 = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
662
 
663
                                 If (rsQry3.RecordCount > 0) Then
663
                                 Set rsQry3 = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
664
                                    pkgName = rsQry3("pkg_name")
664
                                 If (rsQry3.RecordCount > 0) Then
665
                                    pkgPvid = rsQry3("current_pv_id")
665
                                    pkgName = rsQry3("pkg_name")
666
                                 End If
666
                                    pkgPvid = rsQry3("current_pv_id")
667
                                 rsQry3.Close()
667
                                 End If
668
                                 Set rsQry3 = nothing
668
                                 rsQry3.Close()
669
                              End If
669
                                 Set rsQry3 = nothing
670
 
670
                              End If
671
                              ' --- Now render HTML for this release configuration ---
671
 
672
                              %>
672
                              ' --- Now render HTML for this release configuration ---
673
                              <tr>
673
                              %>
674
                                 <td colspan="7" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
674
                              <tr>
675
                              </tr>
675
                                 <td colspan="7" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
676
                              <tr>
676
                              </tr>
677
                                 <td nowrap class="body_rowg"><%=rsQry("display_name")%></td>
677
                              <tr>
678
                                 <td nowrap class="body_rowg"><%=rsQry("gbe_value")%></td>
678
                                 <td nowrap class="body_rowg"><%=rsQry("display_name")%></td>
679
                                 <td nowrap class="body_rowg"><%=Get_Daemon_Mode(rsQry("daemon_mode"))%></td>
679
                                 <td nowrap class="body_rowg"><%=rsQry("gbe_value")%></td>
680
                                 <td nowrap class="body_rowg"><%=Get_Run_Level(currentRunLevel, indefinitelyPaused,daemonState)%></td>
680
                                 <td nowrap class="body_rowg"><%=Get_Daemon_Mode(rsQry("daemon_mode"))%></td>
681
                                 <td nowrap class="body_rowg"><%=Get_Package_Name(pkgName,parRtagId,pkgPvid)%></td>
681
                                 <td nowrap class="body_rowg"><%=Get_Run_Level(currentRunLevel, indefinitelyPaused,daemonState)%></td>
682
                                 <td nowrap class="body_rowg"><%=PrettyDelta(delta, daemonState,pkgName )%></td>
682
                                 <td nowrap class="body_rowg"><%=Get_Package_Name(pkgName,parRtagId,pkgPvid)%></td>
683
                                 <td nowrap class="body_rowg">
683
                                 <td nowrap class="body_rowg"><%=PrettyDelta(delta, daemonState,pkgName )%></td>
684
                                    <%
684
                                 <td nowrap class="body_rowg">
685
                                    If (rsQry2.RecordCount > 0) AND NOT indefinitelyPaused  Then
685
                                    <%
686
                                       If objAccessControl.UserLogedIn AND canActionControlInProject("BuildControl") Then
686
                                    If (rsQry2.RecordCount > 0) AND NOT indefinitelyPaused  Then
687
                                          If daemonState = 0 Then
687
                                       If objAccessControl.UserLogedIn AND canActionControlInProject("BuildControl") Then
688
                                             Call Action_Buttons ( "Daemon Pause" )
688
                                          If daemonState = 0 Then
689
                                          ElseIf daemonState = 1 Then
689
                                             Call Action_Buttons ( "Daemon Pause" )
690
                                             Call Action_Buttons ( "Daemon Resume" )
690
                                          ElseIf daemonState = 1 Then
691
                                          ElseIf daemonState = 2 Then
691
                                             Call Action_Buttons ( "Daemon Resume" )
692
                                             Call Action_Buttons ( "Daemon Start" )
692
                                          ElseIf daemonState = 2 Then
693
                                          Else
693
                                             Call Action_Buttons ( "Daemon Start" )
694
                                             Call Action_Buttons ( "Daemon Resume" )
694
                                          Else
695
                                          End If
695
                                             Call Action_Buttons ( "Daemon Resume" )
696
                                       Else
696
                                          End If
697
                                          If daemonState = 0 Then
697
                                       Else
698
                                             Call Action_Buttons ( "Daemon Pause Disabled" )
698
                                          If daemonState = 0 Then
699
                                          ElseIf daemonState = 1 Then
699
                                             Call Action_Buttons ( "Daemon Pause Disabled" )
700
                                             Call Action_Buttons ( "Daemon Resume Disabled" )
700
                                          ElseIf daemonState = 1 Then
701
                                          ElseIf daemonState = 2 Then
701
                                             Call Action_Buttons ( "Daemon Resume Disabled" )
702
                                             Call Action_Buttons ( "Daemon Start Disabled" )
702
                                          ElseIf daemonState = 2 Then
703
                                          Else
703
                                             Call Action_Buttons ( "Daemon Start Disabled" )
704
                                             Call Action_Buttons ( "Daemon Resume Disabled" )
704
                                          Else
705
                                          End If
705
                                             Call Action_Buttons ( "Daemon Resume Disabled" )
706
                                       End If
706
                                          End If
707
                                    Else
707
                                       End If
708
                                       %>Unavailable<%
708
                                    Else
709
                                    End If
709
                                       %>Unavailable<%
710
                                    %>
710
                                    End If
711
                                 </td>
711
                                    %>
712
                              </tr>
712
                                 </td>
713
                              <%
713
                              </tr>
714
                              rsQry2.Close()
714
                              <%
715
                              Set rsQry2 = nothing
715
                              rsQry2.Close()
716
                              rsQry.MoveNext
716
                              Set rsQry2 = nothing
717
                           Loop
717
                              rsQry.MoveNext
718
                           %>
718
                           Loop
719
                           <tr>
719
                           %>
720
                             <td valign="bottom" background="images/bg_table_col.gif" class="body_col"></td>
720
                           <tr>
721
                             <td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col"></td>
721
                             <td valign="bottom" background="images/bg_table_col.gif" class="body_col"></td>
722
                             <td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col"></td>
722
                             <td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col"></td>
723
                             <td valign="bottom" background="images/bg_table_col.gif" class="body_col"></td>
723
                             <td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col"></td>
724
                             <td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col"></td>
724
                             <td valign="bottom" background="images/bg_table_col.gif" class="body_col"></td>
725
                             <td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col"></td>
725
                             <td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col"></td>
726
                             <td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col">
726
                             <td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col"></td>
727
                             <%
727
                             <td valign="bottom" nowrap background="images/bg_table_col.gif" class="body_col">
728
                               If (rsQry.RecordCount > 0) AND NOT indefinitelyPaused  Then
728
                             <%
729
                                 If objAccessControl.UserLogedIn AND canActionControlInProject("BuildControl") Then
729
                               If (rsQry.RecordCount > 0) AND NOT indefinitelyPaused  Then
730
                                   Call Action_Buttons ( "Daemon Control All" )
730
                                 If objAccessControl.UserLogedIn AND canActionControlInProject("BuildControl") Then
731
                                 Else 
731
                                   Call Action_Buttons ( "Daemon Control All" )
732
                                   Call Action_Buttons ( "Daemon Control All Disabled" )
732
                                 Else 
733
                                 End If
733
                                   Call Action_Buttons ( "Daemon Control All Disabled" )
734
                               Else
734
                                 End If
735
                                 %>&nbsp<%
735
                               Else
736
                               End If
736
                                 %>&nbsp<%
737
                             %>
737
                               End If
738
                             </td>
738
                             %>
739
                           </tr>
739
                             </td>
740
                           <%
740
                           </tr>
741
                             rsQry.Close()
741
                           <%
742
                             Set rsQry = nothing
742
                             rsQry.Close()
743
                           %>
743
                             Set rsQry = nothing
744
                        </table>
744
                           %>
745
                     </td>
745
                        </table>
746
                     <td background="images/lbox_bgside_white.gif">&nbsp;</td>
746
                     </td>
747
                  </tr>
747
                     <td background="images/lbox_bgside_white.gif">&nbsp;</td>
748
                  <tr>
748
                  </tr>
749
                     <input type="hidden" name="action" value="true">
749
                  <tr>
750
                     <%=objPMod.ComposeHiddenTags()%>
750
                     <input type="hidden" name="action" value="true">
751
                     <td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
751
                     <%=objPMod.ComposeHiddenTags()%>
752
                     <td background="images/lbox_bg_blue.gif"></td>
752
                     <td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
753
                     <td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
753
                     <td background="images/lbox_bg_blue.gif"></td>
754
                  </tr>
754
                     <td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
755
               </table>
755
                  </tr>
756
 
756
               </table>
757
               <!-- Daemon Instructions Display -->
757
 
758
               <table width="10" border="0" cellspacing="0" cellpadding="0">
758
               <!-- Daemon Instructions Display -->
759
                  <tr>
759
               <table width="10" border="0" cellspacing="0" cellpadding="0">
760
                     <td width="1%"></td>
760
                  <tr>
761
                     <td width="100%">
761
                     <td width="1%"></td>
762
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
762
                     <td width="100%">
763
                           <tr>
763
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
764
                              <td nowrap class="form_ttl"><p>&nbsp;</p>
764
                           <tr>
765
                                 <p>DAEMON INSTRUCTIONS FOR THIS RELEASE</p>
765
                              <td nowrap class="form_ttl"><p>&nbsp;</p>
766
                              </td>
766
                                 <p>DAEMON INSTRUCTIONS FOR THIS RELEASE</p>
767
                              <td align="right" valign="bottom"></td>
767
                              </td>
768
                           </tr>
768
                              <td align="right" valign="bottom"></td>
769
                        </table>
769
                           </tr>
770
                     </td>
770
                        </table>
771
                     <td width="1%"></td>
771
                     </td>
772
                  </tr>
772
                     <td width="1%"></td>
773
                  <tr>
773
                  </tr>
774
                     <td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
774
                  <tr>
775
                     <td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
775
                     <td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
776
                     <td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
776
                     <td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="600" height="15"></td>
777
                  </tr>
777
                     <td align="right" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
778
                  <tr>
778
                  </tr>
779
                     <td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" ></td>
779
                  <tr>
780
                     <td bgcolor="#FFFFFF" valign="top">
780
                     <td bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" ></td>
781
                        <table width="100%" border="0" cellspacing="2" cellpadding="0">
781
                     <td bgcolor="#FFFFFF" valign="top">
782
                           <tr>
782
                        <table width="100%" border="0" cellspacing="2" cellpadding="0">
783
                              <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Operation</td>
783
                           <tr>
784
                              <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Package</td>
784
                              <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Operation</td>
785
                              <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Version</td>
785
                              <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Package</td>
786
                              <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Scheduled Time<%=Quick_Help("h_shedtime")%>
786
                              <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Version</td>
787
                              <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Repeat</td>
787
                              <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Scheduled Time<%=Quick_Help("h_shedtime")%>
788
                              <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">In Progress</td>
788
                              <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">Repeat</td>
789
                           </tr>
789
                              <td align="left" nowrap background="images/bg_table_col.gif" class="body_col">In Progress</td>
790
                           <%
790
                           </tr>
791
                           Dim PkgVersion
791
                           <%
792
                           Dim UserName
792
                           Dim PkgVersion
793
                           Dim UserEmail
793
                           Dim UserName
794
                           Dim bInProgress
794
                           Dim UserEmail
795
                           Dim bIsOverdue
795
                           Dim bInProgress
796
                           Dim bIsReady
796
                           Dim bIsOverdue
797
 
797
                           Dim bIsReady
798
                           Set rsQry = OraDatabase.DbCreateDynaset( "SELECT DAEMON_INSTRUCTIONS_ID,"&_
798
 
799
                                                                  "       OP_CODE,"&_
799
                           Set rsQry = OraDatabase.DbCreateDynaset( "SELECT DAEMON_INSTRUCTIONS_ID,"&_
800
                                                                  "       RTAG_ID,"&_
800
                                                                  "       OP_CODE,"&_
801
                                                                  "       PV_ID,"&_
801
                                                                  "       RTAG_ID,"&_
802
                                                                  "       SCHEDULED_DATETIME,"&_
802
                                                                  "       PV_ID,"&_
803
                                                                  "       REPEAT_SECS,"&_
803
                                                                  "       SCHEDULED_DATETIME,"&_
804
                                                                  "       ADDED_DATETIME,"&_
804
                                                                  "       REPEAT_SECS,"&_
805
                                                                  "       USER_ID,"&_
805
                                                                  "       ADDED_DATETIME,"&_
806
                                                                  "       IN_PROGRESS,"&_
806
                                                                  "       USER_ID,"&_
807
                                                                  "       (CASE WHEN SCHEDULED_DATETIME <= SYSDATE THEN 1 ELSE 0 END) AS READY,"&_
807
                                                                  "       IN_PROGRESS,"&_
808
                                                                  "       (CASE WHEN (SCHEDULED_DATETIME + (1/144)) < SYSDATE THEN 1 ELSE 0 END) AS OVERDUE"&_
808
                                                                  "       (CASE WHEN SCHEDULED_DATETIME <= SYSDATE THEN 1 ELSE 0 END) AS READY,"&_
809
                                                                  "  FROM DAEMON_INSTRUCTIONS "&_
809
                                                                  "       (CASE WHEN (SCHEDULED_DATETIME + (1/144)) < SYSDATE THEN 1 ELSE 0 END) AS OVERDUE"&_
810
                                                                  "  WHERE RTAG_ID = "& parRtagId &_
810
                                                                  "  FROM DAEMON_INSTRUCTIONS "&_
811
                                                                  "  ORDER BY PV_ID, SCHEDULED_DATETIME, DAEMON_INSTRUCTIONS_ID", ORADYN_DEFAULT )
811
                                                                  "  WHERE RTAG_ID = "& parRtagId &_
812
                           While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
812
                                                                  "  ORDER BY PV_ID, SCHEDULED_DATETIME, DAEMON_INSTRUCTIONS_ID", ORADYN_DEFAULT )
813
 
813
                           While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
814
                              If IsNull(rsQry("IN_PROGRESS")) OR rsQry("IN_PROGRESS") = "0" Then
814
 
815
                                 bInProgress = False
815
                              If IsNull(rsQry("IN_PROGRESS")) OR rsQry("IN_PROGRESS") = "0" Then
816
                              Else
816
                                 bInProgress = False
817
                                 bInProgress = True
817
                              Else
818
                              End If
818
                                 bInProgress = True
819
 
819
                              End If
820
                              ' only flag as overdue if time threshold has been met but the daemon has not marked the instruction as being in progress.
820
 
821
                              If rsQry("OVERDUE") AND NOT bInProgress Then
821
                              ' only flag as overdue if time threshold has been met but the daemon has not marked the instruction as being in progress.
822
                                 bIsOverdue = True
822
                              If rsQry("OVERDUE") AND NOT bInProgress Then
823
                              Else
823
                                 bIsOverdue = True
824
                                 bIsOverdue = False
824
                              Else
825
                              End If
825
                                 bIsOverdue = False
826
 
826
                              End If
827
                              If rsQry("READY") Then
827
 
828
                                 bIsReady = True
828
                              If rsQry("READY") Then
829
                              Else
829
                                 bIsReady = True
830
                                 bIsReady = False
830
                              Else
831
                              End If
831
                                 bIsReady = False
832
 
832
                              End If
833
                              ' Get as much info about the package as we can
833
 
834
                              PkgId = 0
834
                              ' Get as much info about the package as we can
835
                              PkgName = "N/A"
835
                              PkgId = 0
836
                              PkgVersion = "N/A"
836
                              PkgName = "N/A"
837
                              If (NOT IsNull(rsQry("PV_ID"))) AND (rsQry("PV_ID") <> "") Then
837
                              PkgVersion = "N/A"
838
                                 Call Get_Pkg_Short_Info(rsQry("PV_ID"), PkgId, PkgName, PkgVersion, NULL, NULL, NULL)
838
                              If (NOT IsNull(rsQry("PV_ID"))) AND (rsQry("PV_ID") <> "") Then
839
                              End If
839
                                 Call Get_Pkg_Short_Info(rsQry("PV_ID"), PkgId, PkgName, PkgVersion, NULL, NULL, NULL)
840
 
840
                              End If
841
                              %>
841
 
842
                              <tr>
842
                              %>
843
 
843
                              <tr>
844
                                 <td align="left" valign="top" class="body_txt">
844
 
845
                                    <%=DaemonInstructionOperationName(rsQry("OP_CODE"))%>
845
                                 <td align="left" valign="top" class="body_txt">
846
                                 </td>
846
                                    <%=DaemonInstructionOperationName(rsQry("OP_CODE"))%>
847
 
847
                                 </td>
848
                                 <td align="left" valign="top" class="body_txt">
848
 
849
                                    <%If (NOT IsNull(rsQry("PV_ID"))) AND (rsQry("PV_ID") <> "") Then%>
849
                                 <td align="left" valign="top" class="body_txt">
850
                                       <a href='fixed_issues.asp?rtag_id=<%=rsQry("RTAG_ID")%>&pv_id=<%=rsQry("PV_ID")%>'><%=PkgName%>
850
                                    <%If (NOT IsNull(rsQry("PV_ID"))) AND (rsQry("PV_ID") <> "") Then%>
851
                                    <%Else%>
851
                                       <a href='fixed_issues.asp?rtag_id=<%=rsQry("RTAG_ID")%>&pv_id=<%=rsQry("PV_ID")%>'><%=PkgName%>
852
                                       <%=PkgName%>
852
                                    <%Else%>
853
                                    <%End If%>
853
                                       <%=PkgName%>
854
                                 </td>
854
                                    <%End If%>
855
 
855
                                 </td>
856
                                 <td align="left" valign="top" class="body_txt">
856
 
857
                                    <%=PkgVersion%>
857
                                 <td align="left" valign="top" class="body_txt">
858
                                 </td>
858
                                    <%=PkgVersion%>
859
 
859
                                 </td>
860
                                 <td align="left" valign="top" class="body_txt" <%If bIsOverdue Then%>style=color:Red<%Elseif bIsReady Then%>style=color:Green<%End If%>><%=EuroDateTime(rsQry("SCHEDULED_DATETIME"))%></td>
860
 
861
 
861
                                 <td align="left" valign="top" class="body_txt" <%If bIsOverdue Then%>style=color:Red<%Elseif bIsReady Then%>style=color:Green<%End If%>><%=EuroDateTime(rsQry("SCHEDULED_DATETIME"))%></td>
862
                                 <td align="left" valign="top" class="body_txt"><%=DaemonInstructionRepeatString(rsQry("OP_CODE"), rsQry("REPEAT_SECS"))%></td>
862
 
863
 
863
                                 <td align="left" valign="top" class="body_txt"><%=DaemonInstructionRepeatString(rsQry("OP_CODE"), rsQry("REPEAT_SECS"))%></td>
864
                                 <td align="left" valign="top" class="body_txt">
864
 
865
                                    <%If bInProgress Then%>
865
                                 <td align="left" valign="top" class="body_txt">
866
                                       YES
866
                                    <%If bInProgress Then%>
867
                                    <%Else%>
867
                                       YES
868
                                       NO
868
                                    <%Else%>
869
                                    <%End If%>
869
                                       NO
870
                                 </td>
870
                                    <%End If%>
871
                              </tr>
871
                                 </td>
872
                              <tr>
872
                              </tr>
873
                                 <td colspan="6" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
873
                              <tr>
874
                              </tr>
874
                                 <td colspan="6" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
875
                              <%
875
                              </tr>
876
                              rsQry.MoveNext()
876
                              <%
877
                           Wend
877
                              rsQry.MoveNext()
878
                           rsQry.Close()
878
                           Wend
879
                           Set rsQry = nothing
879
                           rsQry.Close()
880
                           %>
880
                           Set rsQry = nothing
881
                        </table>
881
                           %>
882
                     </td>
882
                        </table>
883
                     <td background="images/lbox_bgside_white.gif">&nbsp;</td>
883
                     </td>
884
                  </tr>
884
                     <td background="images/lbox_bgside_white.gif">&nbsp;</td>
885
                  <tr>
885
                  </tr>
886
                     <td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
886
                  <tr>
887
                     <td background="images/lbox_bg_blue.gif"></td>
887
                     <td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
888
                     <td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
888
                     <td background="images/lbox_bg_blue.gif"></td>
889
                  </tr>
889
                     <td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
890
               </table>
890
                  </tr>
891
 
891
               </table>
892
            </td>
892
 
893
            <td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
893
            </td>
894
         </tr>
894
            <td width="1" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
895
         <tr>
895
         </tr>
896
            <td valign="bottom" align="center" background="images/bg_home_orange.gif">
896
         <tr>
897
                <img src="images/img_gear.gif" width="86" height="99" vspace="20" hspace="30">
897
            <td valign="bottom" align="center" background="images/bg_home_orange.gif">
898
            </td>
898
                <img src="images/img_gear.gif" width="86" height="99" vspace="20" hspace="30">
899
            <td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="350">
899
            </td>
900
            </td>
900
            <td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="350">
901
         </tr>
901
            </td>
902
      </table>
902
         </tr>
903
      <!-- FOOTER -->
903
      </table>
904
      <!--#include file="_footer.asp"-->
904
      <!-- FOOTER -->
905
   </body>
905
      <!--#include file="_footer.asp"-->
906
</html>
906
   </body>
907
<%
907
</html>
908
Call Destroy_All_Objects
908
<%
909
%>
909
Call Destroy_All_Objects
-
 
910
%>