| 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> 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%>
|
| 6883 |
dpurdie |
76 |
var fs = '';
|
|
|
77 |
jQuery.each($('#fsReason input:checked'),function(i,val){
|
|
|
78 |
fs += $(this).val();
|
|
|
79 |
});
|
|
|
80 |
o.freason=fs;
|
|
|
81 |
fs = '';
|
|
|
82 |
jQuery.each($('#fsResult input:checked'),function(i,val){
|
|
|
83 |
fs += $(this).val();
|
|
|
84 |
});
|
|
|
85 |
o.fresult=fs;
|
| 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 |
|
|
|
123 |
// Dynamically maintain an indication of an indefinite pause
|
|
|
124 |
// Update at startup and every 30 seconds
|
|
|
125 |
function updateIndefPause()
|
|
|
126 |
{
|
|
|
127 |
$.get('_json_daemon.asp', {opr : 'indefPause'},function(data){
|
|
|
128 |
if(data.indefPause > 0){
|
|
|
129 |
$('#indefPause').show();
|
|
|
130 |
}else{
|
|
|
131 |
$('#indefPause').hide();
|
|
|
132 |
}
|
|
|
133 |
},'json');
|
|
|
134 |
}
|
|
|
135 |
|
| 6883 |
dpurdie |
136 |
// Force refresh when check box changes
|
|
|
137 |
// Delay the refesh 1 second so that multiple checkboxes can be ticked
|
|
|
138 |
// Restart the delay if another trigger is invoked.
|
|
|
139 |
var pageTriggerDelay = 0;
|
| 6879 |
dpurdie |
140 |
$('.triggerRefresh').change(function() {
|
| 6884 |
dpurdie |
141 |
|
|
|
142 |
$('#cbPending').show();
|
|
|
143 |
|
| 6883 |
dpurdie |
144 |
if ( pageTriggerDelay != 0 ) {
|
|
|
145 |
clearTimeout(pageTriggerDelay);
|
|
|
146 |
pageTriggerDelay = 0;
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
// Sanity test
|
|
|
151 |
// If no check boxes are check - check all
|
|
|
152 |
//
|
|
|
153 |
if ($('#fsReason input:checked').length <= 0){
|
|
|
154 |
jQuery.each($('#fsReason input'),function(i,val){
|
|
|
155 |
$(this).prop('checked', true);
|
|
|
156 |
});
|
|
|
157 |
}
|
|
|
158 |
|
|
|
159 |
if ($('#fsResult input:checked').length <= 0){
|
|
|
160 |
jQuery.each($('#fsResult input'),function(i,val){
|
|
|
161 |
$(this).prop('checked', true);
|
|
|
162 |
});
|
|
|
163 |
}
|
|
|
164 |
|
|
|
165 |
pageTriggerDelay = setTimeout(function(){
|
|
|
166 |
table.api().ajax.reload();
|
|
|
167 |
}, 1000);
|
| 6879 |
dpurdie |
168 |
});
|
|
|
169 |
|
| 5357 |
dpurdie |
170 |
updateIndefPause();
|
|
|
171 |
indefTimer = setInterval( updateIndefPause,30000 );
|
| 6879 |
dpurdie |
172 |
|
|
|
173 |
|
| 5357 |
dpurdie |
174 |
} );
|
|
|
175 |
</script>
|
| 6880 |
dpurdie |
176 |
<%End Sub%>
|
|
|
177 |
<html>
|
|
|
178 |
<head>
|
|
|
179 |
<title>Release Manager</title>
|
|
|
180 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
181 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
182 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
183 |
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
184 |
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
185 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
|
|
186 |
<%bJqueryDataTables = TRUE%>
|
|
|
187 |
<!--#include file="_jquery_includes.asp"-->
|
|
|
188 |
<!-- DROPDOWN MENUS -->
|
|
|
189 |
<!--#include file="_menu_def.asp"-->
|
|
|
190 |
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
|
|
|
191 |
<%Call InsertJavaScript%>
|
|
|
192 |
</head>
|
|
|
193 |
<body>
|
| 5357 |
dpurdie |
194 |
<!-- HEADER -->
|
|
|
195 |
<!--#include file="_header.asp"-->
|
|
|
196 |
<!-- BODY ---->
|
| 5860 |
dpurdie |
197 |
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
|
|
|
198 |
<tr>
|
| 6879 |
dpurdie |
199 |
<td width="146px" class="bg_panel" valign="top">
|
|
|
200 |
<%Call BuildMenuPane%>
|
|
|
201 |
<%Call BuildLogOptions%>
|
|
|
202 |
</td>
|
| 6548 |
dpurdie |
203 |
<td width="100%" rowspan="2" valign="top" align="center" bgcolor="#EEEFEF">
|
| 6883 |
dpurdie |
204 |
<div class=panel style="min-width:50%">
|
| 6874 |
dpurdie |
205 |
<div class=rounded_box_caption>
|
|
|
206 |
<%=IIf (parRtagId = "","SYSTEM BUILD LOG", "RELEASE BUILD LOG")%>
|
|
|
207 |
</div>
|
|
|
208 |
<div class="rounded_box rounded_box_pad" >
|
| 6879 |
dpurdie |
209 |
<!-- Indef Pause Warning ---->
|
|
|
210 |
<div id="indefPause" style="display: none;" class="err_alert" style="font-size: small;">
|
|
|
211 |
<b>WARNING: Indefinite Pause, Build Daemons are all stopped - please contact an administrator</b>
|
|
|
212 |
</div>
|
|
|
213 |
<!-- Section Body Header ---->
|
|
|
214 |
<!-- Main Pane -->
|
|
|
215 |
<table id="table1" width=100% class="stripe">
|
|
|
216 |
<thead class="body_col">
|
|
|
217 |
<th>Project</th>
|
|
|
218 |
<th>Release</th>
|
|
|
219 |
<th>Package</th>
|
|
|
220 |
<th>Version</th>
|
|
|
221 |
<th>Time</th>
|
|
|
222 |
<th>Reason</th>
|
|
|
223 |
<th>Duration</th>
|
|
|
224 |
<th>Result</th>
|
|
|
225 |
<th>Tests</th>
|
|
|
226 |
</thead>
|
|
|
227 |
<tbody>
|
|
|
228 |
</tbody>
|
|
|
229 |
</table>
|
| 6874 |
dpurdie |
230 |
</div>
|
|
|
231 |
</div>
|
| 5860 |
dpurdie |
232 |
</td>
|
|
|
233 |
</tr>
|
| 6548 |
dpurdie |
234 |
<tr>
|
| 6877 |
dpurdie |
235 |
<td class="bg_panel_btm" height="350">
|
| 6548 |
dpurdie |
236 |
<img src="images/img_gears.png" vspace="20" hspace="30"></td>
|
|
|
237 |
</tr>
|
| 5860 |
dpurdie |
238 |
</table>
|
|
|
239 |
<!-- FOOTER -->
|
|
|
240 |
<!--#include file="_footer.asp"-->
|
|
|
241 |
</body>
|
| 5357 |
dpurdie |
242 |
</html>
|