Subversion Repositories DevTools

Rev

Details | 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>
126
   <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
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 ---->
136
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
137
         <tr>
138
            <td width="10%" background="images/bg_home_orange.gif" valign="top"></td>
139
            <td width="85%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF">
140
               <table width="50%" border="0" cellspacing="0" cellpadding="0">
141
                  <tr>
142
                     <td width="1%"></td>
143
                     <td width="100%">
144
                        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
145
                           <tr>
146
                              <td nowrap class="body_txt"></td>
147
                           </tr>
148
                        </table>
149
                       <!-- Section Header ---->
150
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
151
                           <tr>
152
                              <td nowrap class="form_ttl">
153
                                  <%If parRtagId = "" Then %>
154
                                  <td nowrap class="form_ttl">SYSTEM BUILD LOG</td>
155
                                  <%Else%>
156
                                  <td nowrap class="form_ttl">RELEASE BUILD LOG</td>
157
                                  <%End If%>
158
                              </td>
159
                              <td align="right" valign="bottom"></td>
160
                           </tr>
161
                        </table>
162
                     </td>
163
                     <td width="1%"></td>
164
                  </tr>
165
                  <!-- Section Top Border ---->
166
                  <tr>
167
                     <td align="left" valign="top" background="images/lbox_bg_blue.gif"><img src="images/lbox_tl_cnr_b.gif" width="13" height="13"></td>
168
                     <td background="images/lbox_bg_blue.gif" class="lbox_ttl_w"><img src="images/h_trsp_dot.gif" width="60" height="15"></td>
169
                     <td align="right" valign="top"  background="images/lbox_bg_blue.gif"><img src="images/lbox_tr_cnr_b.gif" width="13" height="13"></td>
170
                  </tr>
171
                    <!-- Indef Pause Warning ---->
172
                    <td id="indefPause" colspan="3" style="display: none;">
173
                        <span class="err_alert">
174
                            <font size="2"><b>WARNING: Indefinite Pause, Build Daemons are all stopped - please contact an administrator</b></font>
175
                        </span>
176
                    </td>
177
                  </tr>
178
                 <!-- Section Body Header ---->
179
                  <tr><td colspan="3" class="form_ifilter">
180
                  <!-- Main Pane -->
181
                  <table id="table1" width=100%>
182
            	    <thead class="body_col">
183
            		    <tr>
184
                             <th>Project</th>
185
                             <th>Release</th>
186
                             <th>Package</th>
187
                             <th>Version</th>
188
                             <th>Time</th>
189
                             <th>Reason</th>
190
                             <th>Result</th>
191
                             <th>Tests</th>
192
            		    </tr>
193
            	    </thead>
194
                	<tbody>
195
            	    </tbody>
196
                  </table>
197
                  </td></tr>
198
            </td>
199
         </tr>
200
         <tr>
201
            <!-- Section Body Footer ---->
202
            <td background="images/bg_action_norm.gif" ></td>
203
            <td align="right" background="images/bg_action_norm.gif" ></td>
204
            <td background="images/bg_action_norm.gif" ><img src="images/h_trsp_dot.gif" width="5" height="13"></td>
205
         </tr>
206
         <tr>
207
            <td background="images/lbox_bg_blue.gif" valign="bottom"><img src="images/lbox_bl_cnr_b.gif" width="13" height="13"></td>
208
            <td background="images/lbox_bg_blue.gif"></td>
209
            <td background="images/lbox_bg_blue.gif" valign="bottom" align="right"><img src="images/lbox_br_cnr_b.gif" width="13" height="13"></td>
210
         </tr>
211
      </table>
212
  </tr>
213
  <tr>
214
    <td valign="bottom" align="center" background="images/bg_home_orange.gif"></td>
215
    <td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="500"></td>
216
  </tr>
217
</table>
218
<!-- FOOTER -->
219
<!--#include file="_footer.asp"-->
220
</body>
221
</html>
222
<%
223
Call Destroy_All_Objects
224
%>