Subversion Repositories DevTools

Rev

Rev 5860 | Rev 6048 | 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"-->
22
 
23
<!--#include file="class/classActionButtonControl.asp"-->
24
<%
25
'------------ ACCESS CONTROL ------------------
26
'Let users view the build configuration without being logged in, but as soon as they try and submit the form, check
27
'their login status.
28
%>
29
<!--#include file="_access_control_general.asp"-->
30
<%
31
'------------ Variable Definition -------------
32
Dim parRtagId
33
'------------ Constants Declaration -----------
34
'------------ Variable Init -------------------
35
parRtagId = Request("rtag_id")
36
objPMod.PersistInQryString("rtag_id")
37
'----------------------------------------------
38
%>
39
<html>
40
   <head>
41
        <title>Release Manager</title>
42
        <link rel="shortcut icon" href="<%=FavIcon%>"/>
43
        <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
44
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
45
        <link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
46
        <link rel="stylesheet" href="images/navigation.css" type="text/css">
47
        <script language="JavaScript" src="images/common.js"></script>
48
        <%bJqueryDataTables = TRUE%>
49
        <!--#include file="_jquery_includes.asp"-->
50
        <script type="text/javascript" charset="utf-8">
51
        var table;
52
        var interval = null;
53
        var indefTimer = null;
54
	$(document).ready(function() {
55
		/* Init DataTables */
56
        table = $("#table1").dataTable({
57
            "processing": true,
58
            "retrieve":true,
59
            "serverSide": true,
60
            "ajaxSource": "build_release_log_json.asp",
61
<%If parRtagId <> "" Then %>
62
            "fnServerParams": function ( aoData ) {
63
                aoData.push( { "name": "rtag_id", "value": "<%=parRtagId%>" } );
64
            },
65
<%End If%>
66
            "bLengthChange":false,
67
            "sDom": "frtiS",
68
            "sScrollY": $( document ).height() 
69
<%If parRtagId <> "" Then %>
70
            - 35
71
<%End If%>
72
            - 200,
73
            "bDeferRender": true,
74
            "sScrollX": "100%",
75
            "bScrollCollapse": true,
76
            "iScrollLoadGap": 5,
77
            "oScroller": {
78
			    "loadingIndicator": true,
79
                "displayBuffer": 3,
80
		    },
81
            "order": [[ 4, "desc" ]],
82
            "info": true,
83
            "columnDefs" : [ 
84
<%If parRtagId <> "" Then %>
85
                {visible: false, targets : [0,1]},
86
<%End If%>
87
                {className : "dt-nowrap", targets: "_all" },
88
                {orderable : false, targets : [7]},
89
            ],
90
            // Refresh display IFF showing the head
91
            "fnInfoCallback": function( oSettings, iStart, iEnd, iMax, iTotal, sPre ) {
92
                if (iStart <= 1) {
93
                    clearTimeout(interval);
94
                    interval = setTimeout( function () { table.api().ajax.reload(); }, 30000 );
95
                    sPre += " [AutoRefesh]"
96
                } else {
97
                    clearTimeout(interval);
98
                    interval = null;
99
                }
100
                return sPre;
101
            }
102
        });
103
 
104
    //  Dynamically maintain an indication of an indefinite pause
105
    //  Update at startup and every 30 seconds
106
    function updateIndefPause()
107
    {
108
        $.get('_json_daemon.asp', {opr : 'indefPause'},function(data){
109
            if(data.indefPause > 0){
110
                $('#indefPause').show();
111
            }else{
112
                $('#indefPause').hide();
113
            }
114
        },'json');
115
    }
116
 
117
    updateIndefPause();
118
    indefTimer = setInterval( updateIndefPause,30000 );
119
	} );
120
</script>
121
 
122
      <!-- DROPDOWN MENUS -->
123
      <!--#include file="_menu_def.asp"-->
124
      <script language="JavaScript1.2" src="images/popup_menu.js"></script>
125
   </head>
5860 dpurdie 126
   <body>
5357 dpurdie 127
      <!-- MENU LAYERS -------------------------------------->
128
      <div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)">
129
      </div>
130
      <!-- TIPS LAYERS -------------------------------------->
131
      <div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
132
      <!----------------------------------------------------->
133
      <!-- HEADER -->
134
      <!--#include file="_header.asp"-->
135
      <!-- BODY ---->
5860 dpurdie 136
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
137
            <tr>
138
                <td width="146px" class="panel_bg" valign="top">&nbsp;</td>
139
                <td width="100%" valign="top" align="center"  bgcolor="#EEEFEF">
140
                    <table width="50%" border="0" cellspacing="0" cellpadding="0">
141
                        <tr>
142
                            <td width="1%"></td>
143
                            <td width="100%">
144
                                <%If parRtagId = "" Then %>
145
                                <span nowrap class="form_ttl">SYSTEM BUILD LOG</span>
146
                                <%Else%>
147
                                <span nowrap class="form_ttl">RELEASE BUILD LOG</span>
148
                                <%End If%>
149
                                <!-- Section Top Border ---->
150
                                <div class="rounded_box" style="background: white;">
151
                                    <!-- Indef Pause Warning ---->
152
                                    <div id="indefPause" style="display: none;" class="err_alert" style="font-size: small;">
153
                                        <b>WARNING: Indefinite Pause, Build Daemons are all stopped - please contact an administrator</b>
154
                                    </div>
155
                                    <!-- Section Body Header ---->
156
                                    <!-- Main Pane -->
157
                                    <table id="table1" width=100% class="stripe">
158
                                        <thead class="body_col">
159
                                            <tr>
160
                                                 <th>Project</th>
161
                                                 <th>Release</th>
162
                                                 <th>Package</th>
163
                                                 <th>Version</th>
164
                                                 <th>Time</th>
165
                                                 <th>Reason</th>
166
                                                 <th>Result</th>
167
                                                 <th>Tests</th>
168
                                            </tr>
169
                                        </thead>
170
                                        <tbody>
171
                                        </tbody>
172
                                    </table>
173
                                </div>
174
                            </td>
175
                        </tr>
176
                    </table>
177
                </td>
178
            </tr>
179
        </table>
180
        <!-- FOOTER -->
181
        <!--#include file="_footer.asp"-->
182
    </body>
5357 dpurdie 183
</html>