Subversion Repositories DevTools

Rev

Rev 6882 | Rev 6884 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5357 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|
5
'|      build_release_log.asp
6
'|      Display the build long
7
'|
8
'=====================================================
9
%>
10
<%
11
Option explicit
12
' Good idea to set when using redirect
13
Response.Expires = 0   ' always load the page, dont store
14
%>
15
<!--#include file="common/conf.asp"-->
16
<!--#include file="common/globals.asp"-->
17
<!--#include file="common/formating.asp"-->
18
<!--#include file="common/qstr.asp"-->
19
<!--#include file="common/common_subs.asp"-->
20
<!--#include file="common/_form_window_common.asp"-->
21
<!--#include file="_action_buttons.asp"-->
6175 dpurdie 22
<!--#include file="common/common_daemon.asp"-->
5357 dpurdie 23
<!--#include file="class/classActionButtonControl.asp"-->
24
<%
25
'------------ ACCESS CONTROL ------------------
26
%>
6181 dpurdie 27
<!--#include file="_access_control_login_optional.asp"-->
5357 dpurdie 28
<!--#include file="_access_control_general.asp"-->
29
<%
30
'------------ Variable Definition -------------
31
Dim parRtagId
32
'------------ Constants Declaration -----------
33
'------------ Variable Init -------------------
34
parRtagId = Request("rtag_id")
35
objPMod.PersistInQryString("rtag_id")
36
'----------------------------------------------
6879 dpurdie 37
Sub BuildLogOptions%>
6883 dpurdie 38
    <fieldset class='body_rowg nowrap' style='padding-right:5px'>
39
        <legend class="body_scol">Filters</legend>
40
    <fieldset class=body_rowg id=fsReason>
41
        <legend class="body_scol">Reason</legend>
42
        <div><input checked value='N' class='triggerRefresh' type=checkbox>New</div>
43
        <div><input checked value='R' class='triggerRefresh' type=checkbox>Ripple</div>
44
        <div><input checked value='T' class='triggerRefresh' type=checkbox>Test</div>
45
        <div><input checked value='P' class='triggerRefresh' type=checkbox>Restored</div>
6879 dpurdie 46
    </fieldset>
6883 dpurdie 47
    <fieldset class=body_rowg id=fsResult>
48
        <legend class="body_scol">Result</legend>
49
        <div><input checked value='C' class='triggerRefresh' type=checkbox>Complete</div>
50
        <div><input checked value='E' class='triggerRefresh' type=checkbox>Errors</div>
51
        <div><input checked value='O' class='triggerRefresh' type=checkbox>Other</div>
52
    </fieldset>
53
    </fieldset>
54
 
6880 dpurdie 55
<%End Sub
56
'
57
'----------------------------------------------
58
'
59
Sub InsertJavaScript%>
5357 dpurdie 60
        <script type="text/javascript" charset="utf-8">
61
        var table;
62
        var interval = null;
63
        var indefTimer = null;
64
	$(document).ready(function() {
65
		/* Init DataTables */
66
        table = $("#table1").dataTable({
6579 dpurdie 67
            serverSide: true,
68
            deferRender : true,
69
            ajax : {
70
                url : "build_release_log_json.asp",
6879 dpurdie 71
                type : "POST",
6579 dpurdie 72
                data : function (o){
5357 dpurdie 73
<%If parRtagId <> "" Then %>
6579 dpurdie 74
                    o.rtag_id = "<%=parRtagId%>";
75
<%End If%>
6883 dpurdie 76
                    var fs = '';
77
                    jQuery.each($('#fsReason input:checked'),function(i,val){
78
                        fs += $(this).val();
79
                        });
80
                    o.freason=fs;
81
                    fs = '';
82
                    jQuery.each($('#fsResult input:checked'),function(i,val){
83
                        fs += $(this).val();
84
                        });
85
                    o.fresult=fs;
6579 dpurdie 86
                }
5357 dpurdie 87
            },
6579 dpurdie 88
            dom: "frtiS",
89
            scrollY: $( document ).height() 
5357 dpurdie 90
<%If parRtagId <> "" Then %>
91
            - 35
92
<%End If%>
93
            - 200,
6579 dpurdie 94
            scrollCollapse: true,
95
            scroller: {
96
			    loadingIndicator: true,
97
                displayBuffer: 3,
5357 dpurdie 98
		    },
6579 dpurdie 99
            order: [[ 4, "desc" ]],
100
            info: true,
101
            columnDefs : [ 
5357 dpurdie 102
<%If parRtagId <> "" Then %>
103
                {visible: false, targets : [0,1]},
104
<%End If%>
105
                {className : "dt-nowrap", targets: "_all" },
6538 dpurdie 106
                {orderable : false, targets : [8]},
5357 dpurdie 107
            ],
108
            // Refresh display IFF showing the head
6579 dpurdie 109
            fnInfoCallback: function( oSettings, iStart, iEnd, iMax, iTotal, sPre ) {
5357 dpurdie 110
                if (iStart <= 1) {
111
                    clearTimeout(interval);
112
                    interval = setTimeout( function () { table.api().ajax.reload(); }, 30000 );
113
                    sPre += " [AutoRefesh]"
114
                } else {
115
                    clearTimeout(interval);
116
                    interval = null;
117
                }
118
                return sPre;
119
            }
120
        });
121
 
122
    //  Dynamically maintain an indication of an indefinite pause
123
    //  Update at startup and every 30 seconds
124
    function updateIndefPause()
125
    {
126
        $.get('_json_daemon.asp', {opr : 'indefPause'},function(data){
127
            if(data.indefPause > 0){
128
                $('#indefPause').show();
129
            }else{
130
                $('#indefPause').hide();
131
            }
132
        },'json');
133
    }
134
 
6883 dpurdie 135
    // Force refresh when check box changes
136
    // Delay the refesh 1 second so that multiple checkboxes can be ticked
137
    // Restart the delay if another trigger is invoked.
138
    var pageTriggerDelay = 0;
6879 dpurdie 139
     $('.triggerRefresh').change(function() {
6883 dpurdie 140
         if ( pageTriggerDelay != 0 ) {
141
             clearTimeout(pageTriggerDelay);
142
             pageTriggerDelay = 0;
143
         }
144
 
145
 
146
         // Sanity test
147
         // If no check boxes are check - check all
148
         //
149
         if ($('#fsReason input:checked').length <= 0){
150
             jQuery.each($('#fsReason input'),function(i,val){
151
                        $(this).prop('checked', true);
152
                        });
153
         }
154
 
155
         if ($('#fsResult input:checked').length <= 0){
156
             jQuery.each($('#fsResult input'),function(i,val){
157
                        $(this).prop('checked', true);
158
                        });
159
         }
160
 
161
         pageTriggerDelay = setTimeout(function(){
162
             table.api().ajax.reload();
163
             }, 1000);
6879 dpurdie 164
    });
165
 
5357 dpurdie 166
    updateIndefPause();
167
    indefTimer = setInterval( updateIndefPause,30000 );
6879 dpurdie 168
 
169
 
5357 dpurdie 170
	} );
171
</script>
6880 dpurdie 172
<%End Sub%>
173
<html>
174
    <head>
175
        <title>Release Manager</title>
176
        <link rel="shortcut icon" href="<%=FavIcon%>"/>
177
        <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
178
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
179
        <link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
180
        <link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
181
        <script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
182
        <%bJqueryDataTables = TRUE%>
183
        <!--#include file="_jquery_includes.asp"-->
184
        <!-- DROPDOWN MENUS -->
185
        <!--#include file="_menu_def.asp"-->
186
        <script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
187
        <%Call InsertJavaScript%>
188
    </head>
189
    <body>
5357 dpurdie 190
      <!-- HEADER -->
191
      <!--#include file="_header.asp"-->
192
      <!-- BODY ---->
5860 dpurdie 193
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
194
            <tr>
6879 dpurdie 195
                <td width="146px" class="bg_panel" valign="top">
196
                    <%Call BuildMenuPane%>
197
                    <%Call BuildLogOptions%>
198
                </td>
6548 dpurdie 199
                <td width="100%" rowspan="2" valign="top" align="center"  bgcolor="#EEEFEF">
6883 dpurdie 200
                    <div class=panel style="min-width:50%">
6874 dpurdie 201
                        <div class=rounded_box_caption>
202
                         <%=IIf (parRtagId = "","SYSTEM BUILD LOG", "RELEASE BUILD LOG")%>
203
                        </div>
204
                        <div class="rounded_box rounded_box_pad" >
6879 dpurdie 205
                            <!-- Indef Pause Warning ---->
206
                            <div id="indefPause" style="display: none;" class="err_alert" style="font-size: small;">
207
                                <b>WARNING: Indefinite Pause, Build Daemons are all stopped - please contact an administrator</b>
208
                            </div>
209
                            <!-- Section Body Header ---->
210
                            <!-- Main Pane -->
211
                            <table id="table1" width=100% class="stripe">
212
                                <thead class="body_col">
213
                                    <th>Project</th>
214
                                    <th>Release</th>
215
                                    <th>Package</th>
216
                                    <th>Version</th>
217
                                    <th>Time</th>
218
                                    <th>Reason</th>
219
                                    <th>Duration</th>
220
                                    <th>Result</th>
221
                                    <th>Tests</th>
222
                                </thead>
223
                                <tbody>
224
                                </tbody>
225
                            </table>
6874 dpurdie 226
                        </div>
227
                    </div>
5860 dpurdie 228
                </td>
229
            </tr>
6548 dpurdie 230
            <tr>
6877 dpurdie 231
               <td class="bg_panel_btm" height="350">
6548 dpurdie 232
                   <img src="images/img_gears.png" vspace="20" hspace="30"></td>
233
            </tr>
5860 dpurdie 234
        </table>
235
        <!-- FOOTER -->
236
        <!--#include file="_footer.asp"-->
237
    </body>
5357 dpurdie 238
</html>