| 7536 |
dpurdie |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
'=====================================================
|
|
|
4 |
' View the snapshots associated with a Release
|
|
|
5 |
' form_view_snapshots.asp
|
|
|
6 |
'=====================================================
|
|
|
7 |
%>
|
|
|
8 |
<%
|
|
|
9 |
Option explicit
|
|
|
10 |
' Good idea to set when using redirect
|
|
|
11 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
12 |
%>
|
|
|
13 |
<!--#include file="common/conf.asp"-->
|
|
|
14 |
<!--#include file="common/globals.asp"-->
|
|
|
15 |
<!--#include file="common/formating.asp"-->
|
|
|
16 |
<!--#include file="common/qstr.asp"-->
|
|
|
17 |
<!--#include file="common/common_subs.asp"-->
|
|
|
18 |
<!--#include file="common/_form_window_common.asp"-->
|
|
|
19 |
<!--#include file="_action_buttons.asp"-->
|
|
|
20 |
|
|
|
21 |
<!--#include file="class/classActionButtonControl.asp"-->
|
|
|
22 |
<%
|
|
|
23 |
'------------ ACCESS CONTROL ------------------
|
|
|
24 |
%>
|
|
|
25 |
<!--#include file="_access_control_login_optional.asp"-->
|
|
|
26 |
<!--#include file="_access_control_general.asp"-->
|
|
|
27 |
<%
|
|
|
28 |
'------------ Variable Definition -------------
|
|
|
29 |
Dim parRtagId
|
|
|
30 |
Dim modifyState
|
|
|
31 |
Dim bReleaseSyncEnabled
|
|
|
32 |
|
|
|
33 |
'------------ Constants Declaration -----------
|
|
|
34 |
'------------ Variable Init -------------------
|
|
|
35 |
parRtagId = Request("rtag_id")
|
|
|
36 |
objPMod.PersistInQryString("rtag_id")
|
|
|
37 |
ReleaseMode = GetReleaseMode( Request("rtag_id") )
|
|
|
38 |
modifyState = "disabled"
|
|
|
39 |
bReleaseSyncEnabled = (releaseInfoHash("S3MANIFEST") = "Y")
|
|
|
40 |
|
|
|
41 |
If releaseIsWritable(ReleaseMode) Then
|
|
|
42 |
If canActionControlInProject("ConfigureRelease") OR canActionControlInProject("EditNonCriticalInfoForLockedPackage") Then modifyState = ""
|
|
|
43 |
End If
|
|
|
44 |
'----------------------------------------------
|
|
|
45 |
Sub ShowSidePanel
|
|
|
46 |
End Sub
|
|
|
47 |
'----------------------------------------------
|
|
|
48 |
Sub ShowMainPanel
|
|
|
49 |
%>
|
|
|
50 |
<table class="embedded_table" style="margin-bottom:10px; width:70%">
|
|
|
51 |
<tr>
|
|
|
52 |
<td>
|
|
|
53 |
<span nowrap class="form_ttl">View Release Snapshots</span>
|
|
|
54 |
<!-- Section Top Border ---->
|
|
|
55 |
<div class="rounded_box" style="background: white;">
|
|
|
56 |
<!-- Section Body Header ---->
|
|
|
57 |
<!-- Main Pane -->
|
|
|
58 |
<table id="snapshotTable" width="100%" class="stripe">
|
|
|
59 |
<thead class="body_col">
|
|
|
60 |
<tr>
|
|
|
61 |
<th class=tleft>PV_ID
|
|
|
62 |
<th class=tleft>Release Name
|
|
|
63 |
<th class=tleft>Created
|
|
|
64 |
<th class=tleft>Comments
|
|
|
65 |
<th class=tleft>Gen Manifest
|
|
|
66 |
<th class=tleft>Done
|
|
|
67 |
<th class=tleft>Name
|
|
|
68 |
</tr>
|
|
|
69 |
</thead>
|
|
|
70 |
<tbody>
|
|
|
71 |
</tbody>
|
|
|
72 |
</table>
|
|
|
73 |
<!-- Info / Ajax Progress bar -->
|
|
|
74 |
<div class='bg_dialog body_txt' style='position:relative;min-height:14px;' >
|
|
|
75 |
<div style='position: absolute;'><span id='ds_info'></span>
|
|
|
76 |
<%If not bReleaseSyncEnabled Then%>
|
|
|
77 |
<span class='err_alert'>This Release does not have S3 Manifest Generation Enabled</span>
|
|
|
78 |
<%End If%>
|
|
|
79 |
</div>
|
|
|
80 |
</div>
|
|
|
81 |
</div>
|
|
|
82 |
</td>
|
|
|
83 |
</tr>
|
|
|
84 |
</table>
|
|
|
85 |
<%
|
|
|
86 |
End Sub
|
|
|
87 |
'----------------------------------------------
|
|
|
88 |
%>
|
|
|
89 |
<html>
|
|
|
90 |
<head>
|
|
|
91 |
<title>Release Manager</title>
|
|
|
92 |
<link rel="shortcut icon" href="<%=FavIcon%>"/>
|
|
|
93 |
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
|
|
|
94 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
95 |
<link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
96 |
<link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
|
|
|
97 |
<script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
|
|
|
98 |
<%bJqueryDataTables = TRUE%>
|
|
|
99 |
<!--#include file="_jquery_includes.asp"-->
|
|
|
100 |
<!-- TIPS -->
|
|
|
101 |
<script language="JavaScript" src="images/tipster.js?ver=<%=VixVerNum%>"></script>
|
|
|
102 |
<script language="JavaScript" src="images/_help_tips.js?ver=<%=VixVerNum%>"></script>
|
|
|
103 |
<script language="JavaScript" type="text/javascript">
|
|
|
104 |
</script>
|
|
|
105 |
<script type="text/javascript" charset="utf-8">
|
|
|
106 |
var table;
|
|
|
107 |
$(document).ready(function() {
|
|
|
108 |
/* Init DataTables */
|
|
|
109 |
table = $("#snapshotTable").DataTable({
|
|
|
110 |
processing: true,
|
|
|
111 |
deferRender: true,
|
|
|
112 |
dom: "frtiS",
|
|
|
113 |
sScrollY: $( document ).height() - 45 - 200 - 15,
|
|
|
114 |
scrollCollapse: true,
|
|
|
115 |
retrieve:true,
|
|
|
116 |
serverSide: true,
|
|
|
117 |
ajax : {
|
|
|
118 |
url : "view_snapshots_json.asp",
|
|
|
119 |
data : function (o){
|
|
|
120 |
o.rtag_id = <%=parRtagId%>;
|
|
|
121 |
},
|
|
|
122 |
dataSrc : function (json){
|
|
|
123 |
// Process the raw Ajax data
|
|
|
124 |
// Create a checkbox for the state
|
|
|
125 |
// Add a data item to the entry - to allow traceback when saving
|
|
|
126 |
$.each(json.data, function(idx,row){
|
|
|
127 |
var checked = row[4] == "Y" ? 'checked' : '';
|
|
|
128 |
row[4] = '<input style="height:11px; margin:1px" type="checkbox" '+ checked + ' disabled>';
|
|
|
129 |
|
|
|
130 |
checked = row[5] == "Y" ? 'checked' : '';
|
|
|
131 |
row[5] = '<input style="height:11px; margin:1px" type="checkbox" '+ checked + ' disabled>';
|
|
|
132 |
|
|
|
133 |
row[1] = '<a href=dependencies.asp?rtag_id='+row[0]+'>'+row[1]+'</a>'
|
|
|
134 |
|
|
|
135 |
row[6] = '';
|
|
|
136 |
if ( checked != '' ) {
|
|
|
137 |
row[6] = 'manifest_<%=parRtagId%>_'+row[0]+'.json' + " <%=enum_imgClipBoard10%>"
|
|
|
138 |
}
|
|
|
139 |
|
|
|
140 |
});
|
|
|
141 |
return json.data;
|
|
|
142 |
}
|
|
|
143 |
},
|
|
|
144 |
ordering: true,
|
|
|
145 |
order: [[ 2, "desc" ]],
|
|
|
146 |
lengthChange : false,
|
|
|
147 |
|
|
|
148 |
scroller : {
|
|
|
149 |
loadingIndicator : true,
|
|
|
150 |
displayBuffer: 9,
|
|
|
151 |
},
|
|
|
152 |
columns: [
|
|
|
153 |
{ visible : false },
|
|
|
154 |
{ width: "10%", className: "dt-nowrap" },
|
|
|
155 |
{ width: "10%", className: "dt-nowrap" },
|
|
|
156 |
{ width: "70%",orderable: false },
|
|
|
157 |
{ width: "1%", className: "dt-nowrap" ,orderable: false },
|
|
|
158 |
{ width: "1%", className: "dt-nowrap" ,orderable: false },
|
|
|
159 |
{ width: "1%", className: "dt-nowrap clipThis" ,orderable: false },
|
|
|
160 |
//{ width: "10%",className: "dt-nowrap" },
|
|
|
161 |
]
|
|
|
162 |
});
|
|
|
163 |
});
|
|
|
164 |
|
|
|
165 |
// getAjaxData - with error processing
|
|
|
166 |
// url - url to fetch
|
|
|
167 |
// data - additional data to pass to ajax request
|
|
|
168 |
// success - function to call on success
|
|
|
169 |
// always - function to call at completion
|
|
|
170 |
function getAjaxData( url, data, success, always )
|
|
|
171 |
{
|
|
|
172 |
clearInfo();
|
|
|
173 |
$("#progressSpinner").css('visibility', 'visible');
|
|
|
174 |
$(document.body).css({ 'cursor': 'progress' })
|
|
|
175 |
$.ajax(
|
|
|
176 |
{
|
|
|
177 |
url : url,
|
|
|
178 |
type: "POST",
|
|
|
179 |
data : data,
|
|
|
180 |
dataType : "json",
|
|
|
181 |
cache: false,
|
|
|
182 |
success:function(data, textStatus, jqXHR) {
|
|
|
183 |
//data: return data from server
|
|
|
184 |
//console.log ("UpdateData", data);
|
|
|
185 |
if (data.result != 0) {
|
|
|
186 |
setInfo("Error:" + ((data.error != 0) ? data.emsgSummary : "Reason not given"));
|
|
|
187 |
return;
|
|
|
188 |
}
|
|
|
189 |
// call user success function
|
|
|
190 |
if (jQuery.isFunction(success)) {
|
|
|
191 |
success(data);
|
|
|
192 |
}
|
|
|
193 |
},
|
|
|
194 |
error: function(jqXHR, textStatus, errorThrown) {
|
|
|
195 |
setInfo("Error:" + errorThrown);
|
|
|
196 |
//if fails
|
|
|
197 |
},
|
|
|
198 |
complete : function() {
|
|
|
199 |
$("#progressSpinner").css('visibility', 'hidden');
|
|
|
200 |
$(document.body).css({ 'cursor': 'auto' });
|
|
|
201 |
// call user always function
|
|
|
202 |
if (jQuery.isFunction(always)) {
|
|
|
203 |
always();
|
|
|
204 |
}
|
|
|
205 |
}
|
|
|
206 |
});
|
|
|
207 |
|
|
|
208 |
function setInfo(txt) {
|
|
|
209 |
$("#ds_info").text( txt);
|
|
|
210 |
}
|
|
|
211 |
|
|
|
212 |
function clearInfo(txt) {
|
|
|
213 |
$("#ds_info").text(" ");
|
|
|
214 |
}
|
|
|
215 |
|
|
|
216 |
}
|
|
|
217 |
</script>
|
|
|
218 |
|
|
|
219 |
<!-- DROPDOWN MENUS -->
|
|
|
220 |
<!--#include file="_menu_def.asp"-->
|
|
|
221 |
<script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
|
|
|
222 |
</head>
|
|
|
223 |
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
|
|
|
224 |
<!-- HEADER -->
|
|
|
225 |
<!--#include file="_header.asp"-->
|
|
|
226 |
<!-- BODY ---->
|
|
|
227 |
<table class="full_table">
|
|
|
228 |
<tr>
|
|
|
229 |
<td class="bg_panel" valign="top" style="min-width:146px">
|
|
|
230 |
<%Call ShowSidePanel%>
|
|
|
231 |
</td>
|
|
|
232 |
<td width="100%" rowspan="2" align="center" valign="top" bgcolor="#EEEFEF">
|
|
|
233 |
<%Call ShowMainPanel%>
|
|
|
234 |
</td>
|
|
|
235 |
</tr>
|
|
|
236 |
<tr>
|
|
|
237 |
<td class="bg_panel_btm" height="350"></td>
|
|
|
238 |
</tr>
|
|
|
239 |
</table>
|
|
|
240 |
<!-- FOOTER -->
|
|
|
241 |
<!--#include file="_footer.asp"-->
|
|
|
242 |
</body>
|
|
|
243 |
</html>
|