Subversion Repositories DevTools

Rev

Rev 6916 | Rev 7250 | 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 */
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%>
6886 dpurdie 76
                    if ($("#fsReason input:checkbox:not(:checked)").length > 0){
77
                        jQuery.each($('#fsReason input:checked'),function(i,val){
78
                             o.freason += $(this).val();
79
                            });
80
                    }
81
                    if($("#fsResult input:checkbox:not(:checked)").length > 0){
82
                        jQuery.each($('#fsResult input:checked'),function(i,val){
83
                            o.fresult += $(this).val();
84
                            });
85
                    }
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 ) {
6884 dpurdie 110
                $('#cbPending').hide();
5357 dpurdie 111
                if (iStart <= 1) {
112
                    clearTimeout(interval);
113
                    interval = setTimeout( function () { table.api().ajax.reload(); }, 30000 );
114
                    sPre += " [AutoRefesh]"
115
                } else {
116
                    clearTimeout(interval);
117
                    interval = null;
118
                }
119
                return sPre;
120
            }
121
        });
122
 
6883 dpurdie 123
    // Force refresh when check box changes
124
    // Delay the refesh 1 second so that multiple checkboxes can be ticked
125
    // Restart the delay if another trigger is invoked.
126
    var pageTriggerDelay = 0;
7063 dpurdie 127
        $('.triggerRefresh').change(function() {
6884 dpurdie 128
 
7063 dpurdie 129
            $('#cbPending').show();
6884 dpurdie 130
 
7063 dpurdie 131
            if ( pageTriggerDelay != 0 ) {
132
                clearTimeout(pageTriggerDelay);
133
                pageTriggerDelay = 0;
134
            }
6883 dpurdie 135
 
136
 
7063 dpurdie 137
            // Sanity test
138
            // If no check boxes are check - check all
139
            //
140
            if ($('#fsReason input:checked').length <= 0){
141
                jQuery.each($('#fsReason input'),function(i,val){
6883 dpurdie 142
                        $(this).prop('checked', true);
143
                        });
7063 dpurdie 144
            }
6883 dpurdie 145
 
7063 dpurdie 146
            pageTriggerDelay = setTimeout(function(){
147
                table.api().ajax.reload();
148
                }, 1000);
149
        });
150
	});
5357 dpurdie 151
</script>
6880 dpurdie 152
<%End Sub%>
153
<html>
154
    <head>
155
        <title>Release Manager</title>
156
        <link rel="shortcut icon" href="<%=FavIcon%>"/>
157
        <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
158
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
159
        <link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
160
        <link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
161
        <script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
162
        <%bJqueryDataTables = TRUE%>
163
        <!--#include file="_jquery_includes.asp"-->
164
        <!-- DROPDOWN MENUS -->
165
        <!--#include file="_menu_def.asp"-->
166
        <script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
167
        <%Call InsertJavaScript%>
168
    </head>
169
    <body>
5357 dpurdie 170
      <!-- HEADER -->
171
      <!--#include file="_header.asp"-->
172
      <!-- BODY ---->
5860 dpurdie 173
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
174
            <tr>
6879 dpurdie 175
                <td width="146px" class="bg_panel" valign="top">
176
                    <%Call BuildMenuPane%>
177
                    <%Call BuildLogOptions%>
178
                </td>
6548 dpurdie 179
                <td width="100%" rowspan="2" valign="top" align="center"  bgcolor="#EEEFEF">
6883 dpurdie 180
                    <div class=panel style="min-width:50%">
6874 dpurdie 181
                        <div class=rounded_box_caption>
182
                         <%=IIf (parRtagId = "","SYSTEM BUILD LOG", "RELEASE BUILD LOG")%>
183
                        </div>
184
                        <div class="rounded_box rounded_box_pad" >
6879 dpurdie 185
                            <!-- Section Body Header ---->
186
                            <!-- Main Pane -->
187
                            <table id="table1" width=100% class="stripe">
188
                                <thead class="body_col">
189
                                    <th>Project</th>
190
                                    <th>Release</th>
191
                                    <th>Package</th>
192
                                    <th>Version</th>
193
                                    <th>Time</th>
194
                                    <th>Reason</th>
195
                                    <th>Duration</th>
196
                                    <th>Result</th>
197
                                    <th>Tests</th>
198
                                </thead>
199
                                <tbody>
200
                                </tbody>
201
                            </table>
6874 dpurdie 202
                        </div>
203
                    </div>
5860 dpurdie 204
                </td>
205
            </tr>
6548 dpurdie 206
            <tr>
6877 dpurdie 207
               <td class="bg_panel_btm" height="350">
6548 dpurdie 208
                   <img src="images/img_gears.png" vspace="20" hspace="30"></td>
209
            </tr>
5860 dpurdie 210
        </table>
211
        <!-- FOOTER -->
212
        <!--#include file="_footer.asp"-->
213
    </body>
5357 dpurdie 214
</html>