2854 |
02 Nov 06 |
nicklas |
1 |
<%-- $Id$ |
2854 |
02 Nov 06 |
nicklas |
2 |
------------------------------------------------------------------ |
3675 |
16 Aug 07 |
jari |
Copyright (C) 2006, 2007 Nicklas Nordborg |
2854 |
02 Nov 06 |
nicklas |
4 |
|
2854 |
02 Nov 06 |
nicklas |
5 |
This file is part of BASE - BioArray Software Environment. |
2854 |
02 Nov 06 |
nicklas |
6 |
Available at http://base.thep.lu.se/ |
2854 |
02 Nov 06 |
nicklas |
7 |
|
2854 |
02 Nov 06 |
nicklas |
8 |
BASE is free software; you can redistribute it and/or |
2854 |
02 Nov 06 |
nicklas |
9 |
modify it under the terms of the GNU General Public License |
4476 |
05 Sep 08 |
jari |
10 |
as published by the Free Software Foundation; either version 3 |
2854 |
02 Nov 06 |
nicklas |
11 |
of the License, or (at your option) any later version. |
2854 |
02 Nov 06 |
nicklas |
12 |
|
2854 |
02 Nov 06 |
nicklas |
13 |
BASE is distributed in the hope that it will be useful, |
2854 |
02 Nov 06 |
nicklas |
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
2854 |
02 Nov 06 |
nicklas |
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2854 |
02 Nov 06 |
nicklas |
16 |
GNU General Public License for more details. |
2854 |
02 Nov 06 |
nicklas |
17 |
|
2854 |
02 Nov 06 |
nicklas |
18 |
You should have received a copy of the GNU General Public License |
4510 |
11 Sep 08 |
jari |
19 |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
2854 |
02 Nov 06 |
nicklas |
20 |
------------------------------------------------------------------ |
2854 |
02 Nov 06 |
nicklas |
21 |
|
2854 |
02 Nov 06 |
nicklas |
22 |
@author Nicklas |
2854 |
02 Nov 06 |
nicklas |
23 |
@version 2.0 |
2854 |
02 Nov 06 |
nicklas |
24 |
--%> |
5426 |
24 Sep 10 |
nicklas |
25 |
<%@ page pageEncoding="UTF-8" session="false" |
2854 |
02 Nov 06 |
nicklas |
26 |
import="net.sf.basedb.core.SessionControl" |
2854 |
02 Nov 06 |
nicklas |
27 |
import="net.sf.basedb.core.DbControl" |
2854 |
02 Nov 06 |
nicklas |
28 |
import="net.sf.basedb.core.PluginResponse" |
2854 |
02 Nov 06 |
nicklas |
29 |
import="net.sf.basedb.clients.web.Base" |
2854 |
02 Nov 06 |
nicklas |
30 |
import="net.sf.basedb.util.Values" |
2854 |
02 Nov 06 |
nicklas |
31 |
import="net.sf.basedb.clients.web.util.HTML" |
2854 |
02 Nov 06 |
nicklas |
32 |
%> |
2854 |
02 Nov 06 |
nicklas |
33 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
2854 |
02 Nov 06 |
nicklas |
34 |
<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %> |
2854 |
02 Nov 06 |
nicklas |
35 |
|
2854 |
02 Nov 06 |
nicklas |
36 |
<% |
2854 |
02 Nov 06 |
nicklas |
37 |
final SessionControl sc = Base.getExistingSessionControl(pageContext, true); |
2854 |
02 Nov 06 |
nicklas |
38 |
final String ID = sc.getId(); |
7954 |
12 May 21 |
nicklas |
39 |
final DbControl dc = sc.newDbControl(":Download immediately"); |
7605 |
26 Feb 19 |
nicklas |
40 |
PluginResponse pluginResponse = sc.getSessionSetting("plugin.configure.response"); |
2854 |
02 Nov 06 |
nicklas |
41 |
String title = pluginResponse.getMessage() == null ? |
2854 |
02 Nov 06 |
nicklas |
42 |
"Download export" : HTML.encodeTags(pluginResponse.getMessage()); |
2854 |
02 Nov 06 |
nicklas |
43 |
try |
2854 |
02 Nov 06 |
nicklas |
44 |
{ |
2854 |
02 Nov 06 |
nicklas |
45 |
%> |
2854 |
02 Nov 06 |
nicklas |
46 |
<base:page type="popup" title="<%=title%>"> |
6200 |
05 Nov 12 |
nicklas |
47 |
<base:head styles="progressbar.css" scripts="~download_immediately.js" /> |
6200 |
05 Nov 12 |
nicklas |
48 |
<base:body> |
5910 |
14 Dec 11 |
nicklas |
49 |
<h1>Export items</h1> |
5910 |
14 Dec 11 |
nicklas |
50 |
|
5910 |
14 Dec 11 |
nicklas |
51 |
<div class="content"> |
6607 |
19 Nov 14 |
nicklas |
52 |
<table class="fullcc bg-filled-50 bottomborder"><tr><td style="padding-left: 10em; padding-right: 10em;"> |
5975 |
20 Feb 12 |
nicklas |
53 |
<div id="beforeDownloadInfo" style="font-weight: bold;"> |
5910 |
14 Dec 11 |
nicklas |
54 |
The configuration has been successfully completed. |
5975 |
20 Feb 12 |
nicklas |
55 |
Click on the <code>Download</code> button to download the |
5910 |
14 Dec 11 |
nicklas |
56 |
exported data. |
5910 |
14 Dec 11 |
nicklas |
57 |
</div> |
5975 |
20 Feb 12 |
nicklas |
58 |
<div id="afterDownloadInfo" style="margin-top: 0.5em; font-weight: bold;"> |
5910 |
14 Dec 11 |
nicklas |
59 |
Do not close this window until the download has finished. |
5910 |
14 Dec 11 |
nicklas |
60 |
</div> |
5912 |
15 Dec 11 |
nicklas |
61 |
|
5975 |
20 Feb 12 |
nicklas |
62 |
<table id="download" style="margin: auto; margin-top: 1em;"><tr><td> |
6200 |
05 Nov 12 |
nicklas |
63 |
<base:button id="btnDownload" title="Download" image="download.png" /> |
5912 |
15 Dec 11 |
nicklas |
64 |
</td></tr></table> |
5912 |
15 Dec 11 |
nicklas |
65 |
|
5910 |
14 Dec 11 |
nicklas |
<!-- The progress bar --> |
6200 |
05 Nov 12 |
nicklas |
67 |
<div id="progress" style="align:center; margin-top: 2em; display: none;"> |
5910 |
14 Dec 11 |
nicklas |
68 |
<table class="progressbar" style="margin: auto;"> |
5910 |
14 Dec 11 |
nicklas |
69 |
<tr> |
5910 |
14 Dec 11 |
nicklas |
70 |
<td> |
6200 |
05 Nov 12 |
nicklas |
71 |
<table class="bar" style="width: 200px"> |
5910 |
14 Dec 11 |
nicklas |
72 |
<tr> |
6200 |
05 Nov 12 |
nicklas |
73 |
<td style="width: 0%;" id="percentDone" class="percentDone"> </td> |
6200 |
05 Nov 12 |
nicklas |
74 |
<td style="width: 100%;" id="percentRemain" class="percentRemain"> </td> |
5910 |
14 Dec 11 |
nicklas |
75 |
</tr> |
5910 |
14 Dec 11 |
nicklas |
76 |
</table> |
5910 |
14 Dec 11 |
nicklas |
77 |
</td> |
6200 |
05 Nov 12 |
nicklas |
78 |
<td id="percentText" class="percentText">0%</td> |
5910 |
14 Dec 11 |
nicklas |
79 |
</tr> |
5910 |
14 Dec 11 |
nicklas |
80 |
</table> |
6372 |
06 Dec 13 |
nicklas |
81 |
<div id="message" style="font-style: italic;">Working...</div> |
5910 |
14 Dec 11 |
nicklas |
82 |
</div> |
5910 |
14 Dec 11 |
nicklas |
83 |
|
5910 |
14 Dec 11 |
nicklas |
84 |
</td></tr></table> |
2868 |
07 Nov 06 |
nicklas |
85 |
</div> |
5910 |
14 Dec 11 |
nicklas |
86 |
|
2854 |
02 Nov 06 |
nicklas |
87 |
|
5910 |
14 Dec 11 |
nicklas |
88 |
<base:buttongroup subclass="dialogbuttons"> |
6200 |
05 Nov 12 |
nicklas |
89 |
<base:button id="btnCancel" title="Cancel" /> |
6200 |
05 Nov 12 |
nicklas |
90 |
<base:button id="close" title="Close" style="display: none; "/> |
5910 |
14 Dec 11 |
nicklas |
91 |
</base:buttongroup> |
5910 |
14 Dec 11 |
nicklas |
92 |
|
6139 |
19 Sep 12 |
nicklas |
93 |
<iframe id="downloadFrame" style="display: none;" ></iframe> |
2854 |
02 Nov 06 |
nicklas |
94 |
</base:body> |
2854 |
02 Nov 06 |
nicklas |
95 |
</base:page> |
2854 |
02 Nov 06 |
nicklas |
96 |
<% |
2854 |
02 Nov 06 |
nicklas |
97 |
} |
2854 |
02 Nov 06 |
nicklas |
98 |
finally |
2854 |
02 Nov 06 |
nicklas |
99 |
{ |
2854 |
02 Nov 06 |
nicklas |
100 |
if (dc != null) dc.close(); |
2854 |
02 Nov 06 |
nicklas |
101 |
} |
2854 |
02 Nov 06 |
nicklas |
102 |
%> |
2854 |
02 Nov 06 |
nicklas |
103 |
|