1803 |
23 Jan 06 |
nicklas |
1 |
<%-- $Id$ |
1803 |
23 Jan 06 |
nicklas |
2 |
------------------------------------------------------------------ |
5425 |
23 Sep 10 |
nicklas |
Copyright (C) 2006 Jari Häkkinen, Nicklas Nordborg |
1803 |
23 Jan 06 |
nicklas |
4 |
|
2304 |
22 May 06 |
jari |
5 |
This file is part of BASE - BioArray Software Environment. |
2304 |
22 May 06 |
jari |
6 |
Available at http://base.thep.lu.se/ |
1803 |
23 Jan 06 |
nicklas |
7 |
|
1803 |
23 Jan 06 |
nicklas |
8 |
BASE is free software; you can redistribute it and/or |
1803 |
23 Jan 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 |
1803 |
23 Jan 06 |
nicklas |
11 |
of the License, or (at your option) any later version. |
1803 |
23 Jan 06 |
nicklas |
12 |
|
1803 |
23 Jan 06 |
nicklas |
13 |
BASE is distributed in the hope that it will be useful, |
1803 |
23 Jan 06 |
nicklas |
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
1803 |
23 Jan 06 |
nicklas |
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1803 |
23 Jan 06 |
nicklas |
16 |
GNU General Public License for more details. |
1803 |
23 Jan 06 |
nicklas |
17 |
|
1803 |
23 Jan 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/>. |
1803 |
23 Jan 06 |
nicklas |
20 |
------------------------------------------------------------------ |
1803 |
23 Jan 06 |
nicklas |
21 |
|
1803 |
23 Jan 06 |
nicklas |
22 |
@author Nicklas |
1803 |
23 Jan 06 |
nicklas |
23 |
@version 2.0 |
1803 |
23 Jan 06 |
nicklas |
24 |
--%> |
5426 |
24 Sep 10 |
nicklas |
25 |
<%@ page pageEncoding="UTF-8" session="false" |
1803 |
23 Jan 06 |
nicklas |
26 |
import="net.sf.basedb.core.*" |
1803 |
23 Jan 06 |
nicklas |
27 |
import="net.sf.basedb.clients.web.*" |
1803 |
23 Jan 06 |
nicklas |
28 |
%> |
1803 |
23 Jan 06 |
nicklas |
29 |
<%@ taglib |
1803 |
23 Jan 06 |
nicklas |
30 |
prefix="base" uri="/WEB-INF/base.tld" |
1803 |
23 Jan 06 |
nicklas |
31 |
%> |
1803 |
23 Jan 06 |
nicklas |
32 |
<% |
1803 |
23 Jan 06 |
nicklas |
33 |
SessionControl sc = Base.getExistingSessionControl(pageContext, Permission.DENIED, Item.FILE); |
1803 |
23 Jan 06 |
nicklas |
34 |
String ID = sc.getId(); |
1803 |
23 Jan 06 |
nicklas |
35 |
String requestTitle = request.getParameter("title"); |
1803 |
23 Jan 06 |
nicklas |
36 |
String callback = request.getParameter("callback"); |
5713 |
02 Sep 11 |
nicklas |
37 |
final ModeInfo mode = ModeInfo.get(request.getParameter("mode")); |
5713 |
02 Sep 11 |
nicklas |
38 |
final String title = mode.generateTitle("file", "files"); |
7703 |
11 Apr 19 |
nicklas |
39 |
sc.getCurrentContext(Item.FILE).setId(0); // Clear the currently selected file |
1803 |
23 Jan 06 |
nicklas |
40 |
%> |
5713 |
02 Sep 11 |
nicklas |
41 |
<base:page title="<%=requestTitle == null ? title : requestTitle%>" type="popup"> |
6308 |
20 Aug 13 |
nicklas |
42 |
<base:head scripts="~select_file.js" /> |
6308 |
20 Aug 13 |
nicklas |
43 |
|
5953 |
10 Feb 12 |
nicklas |
44 |
<base:body> |
6684 |
14 Jan 15 |
nicklas |
45 |
<h1 style="border-bottom-width: 0;"><%=requestTitle == null ? title : requestTitle%></h1> |
5953 |
10 Feb 12 |
nicklas |
46 |
<div class="content bottomborder"> |
6308 |
20 Aug 13 |
nicklas |
47 |
<div id="page-data" class="datacontainer" |
6308 |
20 Aug 13 |
nicklas |
48 |
data-callback="<%=callback %>" |
6308 |
20 Aug 13 |
nicklas |
49 |
></div> |
6308 |
20 Aug 13 |
nicklas |
50 |
|
6540 |
26 Sep 14 |
nicklas |
51 |
<div id="f1" class="absolutefull" style="bottom: 5em; overflow: hidden;"><iframe |
6137 |
19 Sep 12 |
nicklas |
52 |
name="manager" id="idManager" src="frameset.jsp?ID=<%=ID%>&mode=<%=mode.getName()%>" |
5953 |
10 Feb 12 |
nicklas |
53 |
style="width: 100%; height: 100%;"></iframe></div> |
1803 |
23 Jan 06 |
nicklas |
54 |
|
5953 |
10 Feb 12 |
nicklas |
55 |
<div class="absolutefull topborder" style="top: auto; height: 5em;" id="controls"> |
5953 |
10 Feb 12 |
nicklas |
56 |
<table class="fullform"> |
5953 |
10 Feb 12 |
nicklas |
57 |
<tr class="dynamic"> |
5953 |
10 Feb 12 |
nicklas |
58 |
<th>Selected file(s)</th> |
5953 |
10 Feb 12 |
nicklas |
59 |
<td id="files"></td> |
5953 |
10 Feb 12 |
nicklas |
60 |
</tr> |
5953 |
10 Feb 12 |
nicklas |
61 |
</table> |
5953 |
10 Feb 12 |
nicklas |
62 |
</div> |
5953 |
10 Feb 12 |
nicklas |
63 |
</div> |
1803 |
23 Jan 06 |
nicklas |
64 |
|
5953 |
10 Feb 12 |
nicklas |
65 |
<base:buttongroup subclass="dialogbuttons"> |
6308 |
20 Aug 13 |
nicklas |
66 |
<base:button id="btnOk" title="Ok" /> |
6308 |
20 Aug 13 |
nicklas |
67 |
<base:button id="close" title="Cancel" /> |
5953 |
10 Feb 12 |
nicklas |
68 |
</base:buttongroup> |
1803 |
23 Jan 06 |
nicklas |
69 |
</base:body> |
1803 |
23 Jan 06 |
nicklas |
70 |
</base:page> |