Subversion Repositories DevTools

Rev

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

Rev 2365 Rev 3959
Line 19... Line 19...
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
' Set rfile parameter. This is a return page after Login
-
 
25
Call objPMod.StoreParameter ( "rfile", "rtree.asp" )
-
 
26
objPMod.PersistInQryString("proj_id")
24
objPMod.PersistInQryString("proj_id")
27
'------------ ACCESS CONTROL ------------------
25
'------------ ACCESS CONTROL ------------------
28
'Let users view the build status without being logged in, but as soon as they try and submit the form, check
26
'Let users view the build status without being logged in, but as soon as they try and submit the form, check
29
'their login status.
27
'their login status.
30
If Request("action") <> "" AND NOT objAccessControl.UserLogedIn Then%>
28
If Request("action") <> "" AND NOT objAccessControl.UserLogedIn Then%>
31
<!--#include file="_access_control_login.asp"-->
29
<!--#include file="_access_control_login.asp"-->
32
<!--#include file="_access_control_project.asp"-->
30
<!--#include file="_access_control_project.asp"-->
33
<%End If%>
31
<%End If%>
34
<!--#include file="_access_control_general.asp"-->
32
<!--#include file="_access_control_general.asp"-->
-
 
33
<% '------------ Scripts -------------------------- %>
-
 
34
<script type="text/javascript" src="scripts/json2.js"></script>
35
<%
35
<%
36
'------------ Variable Definition -------------
36
'------------ Variable Definition -------------
37
Dim objSortHelper
37
Dim objSortHelper
38
Dim rsQry
38
Dim rsQry
39
Dim parRtagId
39
Dim parRtagId
40
Dim parSourceRtagId
40
Dim parSourceRtagId
41
Dim query_string
41
Dim query_string
42
Dim objBtnControl
-
 
43
Dim rcon_id
42
Dim rcon_id
44
Dim shref_base
43
Dim shref_base
45
'------------ Constants Declaration -----------
44
'------------ Constants Declaration -----------
46
'------------ Variable Init -------------------
45
'------------ Variable Init -------------------
47
parRtagId = Request("rtag_id")
46
parRtagId = Request("rtag_id")
48
objPMod.PersistInQryString("rtag_id")
47
objPMod.PersistInQryString("rtag_id")
49
Set objBtnControl = New ActionButtonControl
-
 
-
 
48
 
50
'----------------------------------------------
49
'----------------------------------------------
51
%>
50
%>
52
<%
51
<%
53
'--------------------------------------------------------------------------------------------------------------------------
52
'--------------------------------------------------------------------------------------------------------------------------
54
Sub GetFormDetails ( parRtagId, ByRef outobjDetails )
53
Sub GetFormDetails ( parRtagId, ByRef outobjDetails )
Line 178... Line 177...
178
 
177
 
179
End If
178
End If
180
 
179
 
181
'----------------------------------------------
180
'----------------------------------------------
182
%>
181
%>
-
 
182
<script language="JavaScript" type="text/JavaScript">
-
 
183
 
-
 
184
window.addEventListener ?
-
 
185
window.addEventListener("load",InitShow,false) :
-
 
186
window.attachEvent && window.attachEvent("onload",InitShow);
-
 
187
 
-
 
188
function InitShow(e)
-
 
189
{
-
 
190
    toggleDispClass('rootCause',0);
-
 
191
    toggleDispClass('rootFile',0);
-
 
192
}
-
 
193
 
-
 
194
function toggleDispClass(cname,flip)
-
 
195
{
-
 
196
    var cookieName = 'RELMGR_BUILDSTATUS';
-
 
197
    var cv = JSON.parse(getCookie(cookieName));
-
 
198
    if (!cv)
-
 
199
        cv = new Object;
-
 
200
    if (!cv.BuildStatus)
-
 
201
        cv.BuildStatus = new Object;
-
 
202
 
-
 
203
    var state = cv.BuildStatus[cname];
-
 
204
    if (state === undefined)
-
 
205
        state = true;
-
 
206
 
-
 
207
    if (flip>0)
-
 
208
        state = !state;
-
 
209
 
-
 
210
    cv.BuildStatus[cname] = state;
-
 
211
 
-
 
212
    // Reflect the current state in the checkbox
-
 
213
    var de = document.getElementById(cname);
-
 
214
    if (de)
-
 
215
        de.checked = state;
-
 
216
 
-
 
217
    var elements = new Array();
-
 
218
    elements = getElementsByClassName(cname);
-
 
219
    for(i in elements ){
-
 
220
        if (state) {
-
 
221
            elements[i].style.display = "";
-
 
222
        }
-
 
223
        else {
-
 
224
            elements[i].style.display = "none";
-
 
225
        }
-
 
226
    }
-
 
227
    setCookie(cookieName, JSON.stringify(cv), 365 );
-
 
228
}
-
 
229
 
-
 
230
</script>
-
 
231
 
183
<html>
232
<html>
184
   <head>
233
   <head>
185
      <title>Release Manager</title>
234
      <title>Release Manager</title>
186
      <meta http-equiv="Pragma" content="no-cache">
235
      <meta http-equiv="Pragma" content="no-cache">
187
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
236
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
Line 252... Line 301...
252
                           </span>
301
                           </span>
253
                           <tr>
302
                           <tr>
254
                              <td background="images/bg_table_col.gif" class="err_alert"><b>Directly</b></td>
303
                              <td background="images/bg_table_col.gif" class="err_alert"><b>Directly</b></td>
255
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">PACKAGE NAME</td>
304
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">PACKAGE NAME</td>
256
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">PACKAGE VERSION</td>
305
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">PACKAGE VERSION</td>
257
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">ROOT CAUSE
306
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">ROOT CAUSE</td>
-
 
307
                           </tr>
-
 
308
                           <tr>
-
 
309
                           <td colspan=3></td>
-
 
310
                           <td class="body_row">
-
 
311
                           <fieldset class="fset" align="right">
-
 
312
                                Show
-
 
313
                                <input type="checkbox" checked value=0 name="showCause" id="rootCause" onClick="toggleDispClass('rootCause',1);">Config Errors
-
 
314
                                <input type="checkbox" checked value=0 name="showFile"  id="rootFile"  onClick="toggleDispClass('rootFile',1);">Build Errors
-
 
315
                           </fieldset>
258
                              </td>
316
                           </td>
259
                           </tr>
317
                           </tr>
260
                           <%
318
                           <%
261
                           query_string = " select pkg.pkg_name, pv.pkg_version, pv.pv_id, dnr.rtag_id, dnr.root_cause, dnr.root_file, pv.pv_description"&_
319
                           query_string = " select pkg.pkg_name, pv.pkg_version, pv.pv_id, dnr.rtag_id, dnr.root_cause, dnr.root_file, pv.pv_description"&_
262
                                          "   from do_not_ripple dnr, package_versions pv, packages pkg"&_
320
                                          "   from do_not_ripple dnr, package_versions pv, packages pkg"&_
263
                                          "  where dnr.rtag_id = "& parRtagId &_
321
                                          "  where dnr.rtag_id = "& parRtagId &_
Line 266... Line 324...
266
                                          "    and dnr.root_pv_id is null"&_
324
                                          "    and dnr.root_pv_id is null"&_
267
                                          "  order by pkg_name"
325
                                          "  order by pkg_name"
268
                           Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
326
                           Set rsQry = OraDatabase.DbCreateDynaset( query_string, ORADYN_DEFAULT )
269
                           '--- Render rows ---
327
                           '--- Render rows ---
270
                           Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
328
                           Do While (NOT rsQry.BOF) AND (NOT rsQry.EOF)
-
 
329
                            Dim rowClass
-
 
330
                            Dim rowData
-
 
331
                            ' root_file, if supplied, indicates a build failure log file exists
-
 
332
                            ' this should always prevail over the textual root_cause
-
 
333
                           
-
 
334
                            If IsNull(rsQry("root_file")) Then
-
 
335
                               rowClass = "rootCause"
-
 
336
                               rowData = rsQry("root_cause")
-
 
337
                            Else
-
 
338
                                rowClass = "rootFile"
-
 
339
                                rowData = "<a class=""txt_linked"" title=""" & rsQry("root_file") &_
-
 
340
                                          " Log file may have expired."" " &_
-
 
341
                                          "href=""" & shref_base & rsQry("root_file") & """>" &_
-
 
342
                                          "Build Failure Log File</a>"
-
 
343
                            End If
271
                           %>
344
                           %>
272
                              <tr>
345
                              <tr class="<%=rowClass%>">
273
                                 <td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
346
                                 <td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
274
                              </tr>
347
                              </tr>
275
                              <tr>
348
                              <tr class="<%=rowClass%>">
276
                                 <td nowrap width="1%">
349
                                 <td nowrap width="1%">
277
                                    <!-- The use of the isChecked() javascript function below, enables the submit button if any checkboxes are checked, -->
350
                                    <!-- The use of the isChecked() javascript function below, enables the submit button if any checkboxes are checked, -->
278
                                    <!-- else it will disable the submit button. The function is badly named, but nevertheless, that is what it does.   -->
351
                                    <!-- else it will disable the submit button. The function is badly named, but nevertheless, that is what it does.   -->
279
                                    <input type="checkbox" value="<%=rsQry("pv_id")%>" name="pv_id_list" id="pv_id_list" onClick="isChecked('pv_id_list','submit');">
352
                                    <input type="checkbox" value="<%=rsQry("pv_id")%>" name="pv_id_list" id="pv_id_list" onClick="isChecked('pv_id_list','submit');">
280
                                 </td>
353
                                 </td>
281
                                 <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>
354
                                 <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>
282
                                 <td nowrap class="body_rowg"><%=rsQry("pkg_version")%></td>
355
                                 <td nowrap class="body_rowg"><%=rsQry("pkg_version")%></td>
283
                                 <%
-
 
284
                                 ' root_file, if supplied, indicates a build failure log file exists
-
 
285
                                 ' this should always prevail over the textual root_cause
-
 
286
                                 If IsNull(rsQry("root_file")) Then%>
-
 
287
                                    <td nowrap class="body_rowg"><%=rsQry("root_cause")%></td>
356
                                 <td nowrap class="body_rowg"><%=rowData%></td>
288
                                 <%Else%>
-
 
289
                                    <td nowrap class="body_rowg">
-
 
290
                                       <a class="txt_linked" title="<%=rsQry("root_file")%> Log file may have expired." href="<%=shref_base & rsQry("root_file")%>">
-
 
291
                                          Build Failure Log File
-
 
292
                                       </a>
-
 
293
                                    </td>
-
 
294
                                 <%End If%>
-
 
295
                              </tr>
357
                              </tr>
296
                              <%
358
                           <%
297
                              rsQry.MoveNext
359
                            rsQry.MoveNext
298
                           Loop%>
360
                           Loop%>
299
                           <tr>
361
                           <tr>
300
                              <td background="images/bg_table_col.gif" class="err_alert"><b>Indirectly</b></td>
362
                              <td background="images/bg_table_col.gif" class="err_alert"><b>Indirectly</b></td>
301
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">PACKAGE NAME</td>
363
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">PACKAGE NAME</td>
302
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">PACKAGE VERSION</td>
364
                              <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">PACKAGE VERSION</td>