Subversion Repositories DevTools

Rev

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