| Line 38... |
Line 38... |
| 38 |
parDview = QStrPar("Dview")
|
38 |
parDview = QStrPar("Dview")
|
| 39 |
hasPview = hasPersonalViews()
|
39 |
hasPview = hasPersonalViews()
|
| 40 |
If NOT hasPview Then parPview = "disable"
|
40 |
If NOT hasPview Then parPview = "disable"
|
| 41 |
'----------------------------------------------
|
41 |
'----------------------------------------------
|
| 42 |
%>
|
42 |
%>
|
| 43 |
|
- |
|
| 44 |
<script language="JavaScript" type="text/javascript">
|
43 |
<script language="JavaScript" type="text/javascript">
|
| 45 |
<!--
|
44 |
<!--
|
| 46 |
var is_ie = (navigator.userAgent.indexOf('MSIE') >= 0) ? 1 : 0;
|
45 |
var is_ie = (navigator.userAgent.indexOf('MSIE') >= 0) ? 1 : 0;
|
| 47 |
var is_ie5 = (navigator.appVersion.indexOf("MSIE 5.5")!=-1) ? 1 : 0;
|
46 |
var is_ie5 = (navigator.appVersion.indexOf("MSIE 5.5")!=-1) ? 1 : 0;
|
| 48 |
var is_opera = ((navigator.userAgent.indexOf("Opera6")!=-1)||(navigator.userAgent.indexOf("Opera/6")!=-1)) ? 1 : 0;
|
47 |
var is_opera = ((navigator.userAgent.indexOf("Opera6")!=-1)||(navigator.userAgent.indexOf("Opera/6")!=-1)) ? 1 : 0;
|
| 49 |
//netscape, safari, mozilla behave the same???
|
48 |
//netscape, safari, mozilla behave the same???
|
| 50 |
var is_netscape = (navigator.userAgent.indexOf('Netscape') >= 0) ? 1 : 0;
|
49 |
var is_netscape = (navigator.userAgent.indexOf('Netscape') >= 0) ? 1 : 0;
|
| 51 |
|
50 |
|
| 52 |
///////////////////////////////////////////////
|
51 |
///////////////////////////////////////////////
|
| - |
|
52 |
// Function: destroyPackageVersion
|
| - |
|
53 |
// Description: This function will display a conformation dialog before
|
| - |
|
54 |
// destroying the spacified package-version
|
| - |
|
55 |
//
|
| - |
|
56 |
function destroyPackageVersion()
|
| - |
|
57 |
{
|
| - |
|
58 |
var message = 'You are about to destroy [<%=pkgInfoHash.Item("pkg_name")%> <%=pkgInfoHash.Item("pkg_version")%>].<p>You cannot undo this operation.<br>Do you want to proceed?';
|
| - |
|
59 |
var url = '_destroy_package.asp?rtag_id=<%=Request("rtag_id")%>&bfile=<%=ScriptName%>&pkg_id=<%=pkgInfoHash.Item("pkg_id")%>&pv_id=<%=Request("pv_id")%>';
|
| - |
|
60 |
vixConfirm( message, {title:'Destroy Package Version', 'button' : 'Destroy', url : url, icon : 'images/i_critical.gif'});
|
| - |
|
61 |
return false;
|
| - |
|
62 |
}
|
| - |
|
63 |
|
| - |
|
64 |
///////////////////////////////////////////////
|
| 53 |
// Function: toggletick
|
65 |
// Function: toggletick
|
| 54 |
// Description: This function will toggle all visible (pending) tick boxes
|
66 |
// Description: This function will toggle all visible (pending) tick boxes
|
| 55 |
// Input: te - Controlling element
|
67 |
// Input: te - Controlling element
|
| 56 |
//
|
68 |
//
|
| 57 |
function toggletick(te)
|
69 |
function toggletick(te)
|
| 58 |
{
|
70 |
{
|
| 59 |
// Get the form containing all of the pending items
|
71 |
// Get the form containing all of the pending items
|
| 60 |
var f = document.getElementById('pending_PVID_List');
|
72 |
var f = document.getElementById('pending_PVID_List');
|
| 61 |
if (f == null) {
|
73 |
if (f == null ) {
|
| 62 |
alert('Failed To Get pending_PVID_List'); // should never happen unless a coding/rendering mistake is made?
|
74 |
vixAlert('Internal<p>Failed To Get pending_PVID_List'); // should never happen unless a coding/rendering mistake is made?
|
| 63 |
} else {
|
75 |
} else {
|
| 64 |
if (f.pv_id_list != null) {
|
76 |
if (f.pv_id_list != null) {
|
| 65 |
if (f.length == 1 || typeof f.pv_id_list.length == "undefined") {
|
77 |
if (f.length == 1 || typeof f.pv_id_list.length == "undefined") {
|
| 66 |
if (false == f.pv_id_list.disabled) {
|
78 |
if (false == f.pv_id_list.disabled) {
|
| 67 |
f.pv_id_list.checked = te.checked;
|
79 |
f.pv_id_list.checked = te.checked;
|
| Line 126... |
Line 138... |
| 126 |
// client side checks and then if all is well, it will use the make_bulk_release.asp to initiate
|
138 |
// client side checks and then if all is well, it will use the make_bulk_release.asp to initiate
|
| 127 |
// the bulk release process on the server side.
|
139 |
// the bulk release process on the server side.
|
| 128 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
140 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
| 129 |
function makeBulkRelease()
|
141 |
function makeBulkRelease()
|
| 130 |
{
|
142 |
{
|
| 131 |
// Get the form containing all of the pending items
|
143 |
// Get the form containing all of the pending items
|
| 132 |
var f = document.getElementById('pending_PVID_List');
|
144 |
var f = document.getElementById('pending_PVID_List');
|
| 133 |
if (f == null)
|
145 |
if (f == null)
|
| - |
|
146 |
{
|
| 134 |
alert('Failed To Get pending_PVID_List'); // should never happen unless a coding/rendering mistake is made?
|
147 |
vixAlert('Internal<p>Failed To Get pending_PVID_List'); // should never happen unless a coding/rendering mistake is made?
|
| 135 |
else
|
148 |
return;
|
| 136 |
{
|
149 |
}
|
| 137 |
// When no items exist in the pending tab, the pending_PVID_List form will not contain any
|
150 |
// When no items exist in the pending tab, the pending_PVID_List form will not contain any
|
| 138 |
// element called pv_id_list, so it will be null. Check for that and issue an alert as appropriate.
|
151 |
// element called pv_id_list, so it will be null. Check for that and issue an alert as appropriate.
|
| 139 |
if (f.pv_id_list == null)
|
152 |
if (f.pv_id_list == null)
|
| 140 |
{
|
153 |
{
|
| 141 |
alert('There are no items pending that can be considered for bulk release.\n\n' +
|
154 |
vixAlert('There are no items pending that can be considered for bulk release.' +
|
| 142 |
'Use the Bulk Release button when items with checkboxes are present in the Pending Tab.');
|
155 |
'<p>Use the Bulk Release button when items with checkboxes are present in the Pending Tab.');
|
| 143 |
}
|
- |
|
| 144 |
else
|
- |
|
| 145 |
{
|
- |
|
| 146 |
var doBulkRelease = true;
|
- |
|
| 147 |
var numCheckedAndEnabled = countBulkItems(f);
|
- |
|
| 148 |
if (numCheckedAndEnabled == 0)
|
- |
|
| 149 |
{
|
156 |
return;
|
| 150 |
alert('Currently, there are no items that can be bulk released.\n\n' +
|
- |
|
| 151 |
'Select items to be released before using the Bulk Release button');
|
- |
|
| 152 |
doBulkRelease = false;
|
- |
|
| 153 |
}
|
157 |
}
|
| 154 |
else
|
- |
|
| 155 |
{
|
- |
|
| 156 |
doBulkRelease = confirm('Release all ('+numCheckedAndEnabled+') checked items from the Pending List.\n\n' +
|
- |
|
| 157 |
'\tPress OK to Bulk Release all outstanding items.\n' +
|
- |
|
| 158 |
'\tPress CANCEL to abort Bulk Release.\n\n' );
|
- |
|
| 159 |
}
|
- |
|
| 160 |
|
158 |
|
| - |
|
159 |
var numCheckedAndEnabled = countBulkItems(f);
|
| 161 |
if (doBulkRelease == true)
|
160 |
if (numCheckedAndEnabled == 0)
|
| - |
|
161 |
{
|
| - |
|
162 |
vixAlert('Currently, there are no items that can be bulk released.' +
|
| - |
|
163 |
'<p>Select items to be released before using the Bulk Release button');
|
| 162 |
{
|
164 |
return;
|
| - |
|
165 |
}
|
| - |
|
166 |
|
| - |
|
167 |
vixConfirm('Release all ('+numCheckedAndEnabled+') checked items from the Pending List.', {
|
| - |
|
168 |
title : 'Confirm Bulk Release',
|
| - |
|
169 |
button : 'Release',
|
| - |
|
170 |
ok : function(){
|
| 163 |
// Initiate the bulk release by redirecting the browser to the make_bulk_release.asp page
|
171 |
// Initiate the bulk release by redirecting the browser to the make_bulk_release.asp page
|
| 164 |
// which holds the server side VBScript code that actually carries out the release operations.
|
172 |
// which holds the server side VBScript code that actually carries out the release operations.
|
| 165 |
// Once complete, that code will redirect the browser back to the dependencies.asp page of which
|
173 |
// Once complete, that code will redirect the browser back to the dependencies.asp page of which
|
| 166 |
// this _environment.asp file is a part (by direct inclusion)
|
174 |
// this _environment.asp file is a part (by direct inclusion)
|
| 167 |
<%If Request("pv_id") Then%>
|
175 |
<%If Request("pv_id") Then%>
|
| Line 169... |
Line 177... |
| 169 |
<%Else%>
|
177 |
<%Else%>
|
| 170 |
f.action = "make_bulk_release.asp?rtag_id=<%=parRtag_id%>";
|
178 |
f.action = "make_bulk_release.asp?rtag_id=<%=parRtag_id%>";
|
| 171 |
<%End If%>
|
179 |
<%End If%>
|
| 172 |
f.submit();
|
180 |
f.submit();
|
| 173 |
// TODO : I would like to show progress? Is that even possible? If so, how?
|
181 |
// TODO : I would like to show progress? Is that even possible? If so, how?
|
| 174 |
}
|
182 |
}
|
| 175 |
}
|
183 |
});
|
| 176 |
}
|
- |
|
| 177 |
}
|
184 |
}
|
| 178 |
|
185 |
|
| 179 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
186 |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
| 180 |
// This function is executed when the Bulk Remove action button is pressed. It will do some local
|
187 |
// This function is executed when the Bulk Remove action button is pressed. It will do some local
|
| 181 |
// client side checks and then if all is well, it will use the make_bulk_remove.asp to initiate
|
188 |
// client side checks and then if all is well, it will use the make_bulk_remove.asp to initiate
|
| Line 184... |
Line 191... |
| 184 |
function makeBulkReject()
|
191 |
function makeBulkReject()
|
| 185 |
{
|
192 |
{
|
| 186 |
// Get the form containing all of the pending items
|
193 |
// Get the form containing all of the pending items
|
| 187 |
var f = document.getElementById('pending_PVID_List');
|
194 |
var f = document.getElementById('pending_PVID_List');
|
| 188 |
if (f == null)
|
195 |
if (f == null)
|
| 189 |
alert('Failed To Get pending_PVID_List'); // should never happen unless a coding/rendering mistake is made?
|
- |
|
| 190 |
else
|
- |
|
| 191 |
{
|
196 |
{
|
| 192 |
// When no items exist in the pending tab, the pending_PVID_List form will not contain any
|
- |
|
| 193 |
// element called pv_id_list, so it will be null. Check for that and issue an alert as appropriate.
|
- |
|
| 194 |
if (f.pv_id_list == null)
|
- |
|
| 195 |
{
|
- |
|
| 196 |
alert('There are no items pending that can be considered for Bulk Rejection.\n\n' +
|
197 |
vixAlert('Internal<p>Failed To Get pending_PVID_List'); // should never happen unless a coding/rendering mistake is made?
|
| 197 |
'Use the Bulk Reject button when items with checkboxes are present in the Pending Tab.');
|
- |
|
| 198 |
}
|
- |
|
| 199 |
else
|
- |
|
| 200 |
{
|
- |
|
| 201 |
var doBulkReject = true;
|
- |
|
| 202 |
var numCheckedAndEnabled = countBulkItems(f);
|
- |
|
| 203 |
if (numCheckedAndEnabled == 0)
|
- |
|
| 204 |
{
|
- |
|
| 205 |
alert('Currently, there are no items that can be Bulk Reject.\n\n' +
|
- |
|
| 206 |
'Select items to be released before using the Bulk Reject button');
|
- |
|
| 207 |
doBulkReject = false;
|
- |
|
| 208 |
}
|
- |
|
| 209 |
else
|
198 |
return;
|
| 210 |
{
|
- |
|
| 211 |
doBulkReject = confirm('Reject all ('+numCheckedAndEnabled+') checked items from the Pending List.\n\n' +
|
- |
|
| 212 |
'\tPress OK to Bulk Reject all outstanding items.\n' +
|
- |
|
| 213 |
'\tPress CANCEL to abort Bulk Reject.\n\n' );
|
- |
|
| 214 |
}
|
- |
|
| 215 |
|
- |
|
| 216 |
if (doBulkReject == true)
|
- |
|
| 217 |
{
|
- |
|
| 218 |
// Initiate the bulk remove by redirecting the browser to the make_bulk_remove.asp page
|
- |
|
| 219 |
// which holds the server side VBScript code that actually carries out the remove operations.
|
- |
|
| 220 |
// Once complete, that code will redirect the browser back to the dependencies.asp page of which
|
- |
|
| 221 |
// this _environment.asp file is a part (by direct inclusion)
|
- |
|
| 222 |
<%If Request("pv_id") Then%>
|
- |
|
| 223 |
f.action = "make_bulk_reject.asp?pv_id=<%=Request("pv_id")%>&rtag_id=<%=parRtag_id%>";
|
- |
|
| 224 |
<%Else%>
|
- |
|
| 225 |
f.action = "make_bulk_reject.asp?rtag_id=<%=parRtag_id%>";
|
- |
|
| 226 |
<%End If%>
|
- |
|
| 227 |
f.submit();
|
- |
|
| 228 |
// TODO : I would like to show progress? Is that even possible? If so, how?
|
- |
|
| 229 |
}
|
- |
|
| 230 |
}
|
- |
|
| 231 |
}
|
199 |
}
|
| - |
|
200 |
// When no items exist in the pending tab, the pending_PVID_List form will not contain any
|
| - |
|
201 |
// element called pv_id_list, so it will be null. Check for that and issue an alert as appropriate.
|
| - |
|
202 |
if (f.pv_id_list == null)
|
| - |
|
203 |
{
|
| - |
|
204 |
vixAlert('There are no items pending that can be considered for Bulk Rejection.' +
|
| - |
|
205 |
'<p>Use the Bulk Reject button when items with checkboxes are present in the Pending Tab.');
|
| - |
|
206 |
return;
|
| - |
|
207 |
}
|
| - |
|
208 |
var numCheckedAndEnabled = countBulkItems(f);
|
| - |
|
209 |
if (numCheckedAndEnabled == 0)
|
| - |
|
210 |
{
|
| - |
|
211 |
vixAlert('Currently, there are no items that can be Bulk Rejected.' +
|
| - |
|
212 |
'<p>Select items to be released before using the Bulk Reject button');
|
| - |
|
213 |
return;
|
| - |
|
214 |
}
|
| - |
|
215 |
|
| - |
|
216 |
vixConfirm('Reject all ('+numCheckedAndEnabled+') checked items from the Pending List.',{
|
| - |
|
217 |
title : 'Confirm Bulk Reject',
|
| - |
|
218 |
button : 'Reject',
|
| - |
|
219 |
ok : function(){
|
| - |
|
220 |
// Initiate the bulk remove by redirecting the browser to the make_bulk_remove.asp page
|
| - |
|
221 |
// which holds the server side VBScript code that actually carries out the remove operations.
|
| - |
|
222 |
// Once complete, that code will redirect the browser back to the dependencies.asp page of which
|
| - |
|
223 |
// this _environment.asp file is a part (by direct inclusion)
|
| - |
|
224 |
<%If Request("pv_id") Then%>
|
| - |
|
225 |
f.action = "make_bulk_reject.asp?pv_id=<%=Request("pv_id")%>&rtag_id=<%=parRtag_id%>";
|
| - |
|
226 |
<%Else%>
|
| - |
|
227 |
f.action = "make_bulk_reject.asp?rtag_id=<%=parRtag_id%>";
|
| - |
|
228 |
<%End If%>
|
| - |
|
229 |
f.submit();
|
| - |
|
230 |
// TODO : I would like to show progress? Is that even possible? If so, how?
|
| - |
|
231 |
}
|
| - |
|
232 |
});
|
| 232 |
}
|
233 |
}
|
| 233 |
|
234 |
|
| 234 |
///////////////////////////////////////////////
|
235 |
///////////////////////////////////////////////
|
| 235 |
// Function: openAllViews
|
236 |
// Function: openAllViews
|
| 236 |
// Description: Open and Populate all Views
|
237 |
// Description: Open and Populate all Views
|
| Line 571... |
Line 572... |
| 571 |
}
|
572 |
}
|
| 572 |
|
573 |
|
| 573 |
// Store to cookie
|
574 |
// Store to cookie
|
| 574 |
document.cookie = '<%=COOKIE_RELMGR_SHOW_VIEW%>' + '=' + us;
|
575 |
document.cookie = '<%=COOKIE_RELMGR_SHOW_VIEW%>' + '=' + us;
|
| 575 |
}
|
576 |
}
|
| - |
|
577 |
<%If parRtag_id <> "" Then %>
|
| 576 |
// Load dialog to add an SDK to the Release
|
578 |
// Load dialog to add an SDK to the Release
|
| 577 |
function addSdk()
|
579 |
function addSdk()
|
| 578 |
{
|
580 |
{
|
| 579 |
$('#popmenu').load('_wform_reference_sdk.asp', {rtag_id : <%=parRtag_id%>});
|
581 |
$('#popmenu').load('_wform_reference_sdk.asp', {rtag_id : <%=parRtag_id%>});
|
| 580 |
}
|
582 |
}
|
| - |
|
583 |
<%End If %>
|
| 581 |
|
584 |
|
| 582 |
//-->
|
585 |
//-->
|
| 583 |
</script>
|
586 |
</script>
|
| 584 |
|
587 |
|
| 585 |
<%
|
588 |
<%
|
| Line 951... |
Line 954... |
| 951 |
Response.write "<td width='1'><img src='images/abtn_add_pkg_off.gif' alt='Add package to this release' width='26' height='26' hspace='1' border='0'></td>"
|
954 |
Response.write "<td width='1'><img src='images/abtn_add_pkg_off.gif' alt='Add package to this release' width='26' height='26' hspace='1' border='0'></td>"
|
| 952 |
End If
|
955 |
End If
|
| 953 |
|
956 |
|
| 954 |
If (pkgInfoHash.Item("dlocked") <> "Y") AND (Request("pv_id") <> "") Then
|
957 |
If (pkgInfoHash.Item("dlocked") <> "Y") AND (Request("pv_id") <> "") Then
|
| 955 |
If (objAccessControl.UserLogedIn) AND ( (objAccessControl.UserName = pkgInfoHash.Item("creator")) OR (canActionControlInProject("DestroyPackageFromRelease")) ) Then
|
958 |
If (objAccessControl.UserLogedIn) AND ( (objAccessControl.UserName = pkgInfoHash.Item("creator")) OR (canActionControlInProject("DestroyPackageFromRelease")) ) Then
|
| 956 |
Response.write "<td width='1'><a href='_destroy_package.asp?rtag_id="& Request("rtag_id") &"&bfile="& ScriptName &"&pkg_id="& pkgInfoHash.Item("pkg_id") &"&pv_id="& Request("pv_id") &"' title='Destroy the selected Package Version' onClick='return confirmAction(""You are about to destroy ["& pkgInfoHash.Item("pkg_name") &" "& pkgInfoHash.Item("pkg_version") &"]. You cannot undo this operation.\nDo you want to proceed?"");'><img src='icons/i_destroy_package.gif' alt='Destroy the selected Package Version' width='26' height='26' hspace='1' border='0'></td>"
|
959 |
Response.write "<td width='1'><a href='javascript:;' title='Destroy the selected Package Version' onClick='destroyPackageVersion();'><img src='icons/i_destroy_package.gif' alt='Destroy the selected Package Version' width='26' height='26' hspace='1' border='0'></td>"
|
| 957 |
Else
|
960 |
Else
|
| 958 |
Response.write "<td width='1'><img title='Destroy the selected Package Version' src='icons/i_destroy_package_off.gif' alt='Destroy the selected Package Version' width='26' height='26' hspace='1' border='0'></td>"
|
961 |
Response.write "<td width='1'><img title='Destroy the selected Package Version' src='icons/i_destroy_package_off.gif' alt='Destroy the selected Package Version' width='26' height='26' hspace='1' border='0'></td>"
|
| 959 |
End If
|
962 |
End If
|
| 960 |
End If
|
963 |
End If
|
| 961 |
|
964 |
|