Subversion Repositories DevTools

Rev

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