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