1794 |
19 Jan 06 |
nicklas |
1 |
<%-- $Id$ |
1794 |
19 Jan 06 |
nicklas |
2 |
------------------------------------------------------------------ |
5425 |
23 Sep 10 |
nicklas |
Copyright (C) 2006 Jari Häkkinen, Nicklas Nordborg |
1794 |
19 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/ |
1794 |
19 Jan 06 |
nicklas |
7 |
|
1794 |
19 Jan 06 |
nicklas |
8 |
BASE is free software; you can redistribute it and/or |
1794 |
19 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 |
1794 |
19 Jan 06 |
nicklas |
11 |
of the License, or (at your option) any later version. |
1794 |
19 Jan 06 |
nicklas |
12 |
|
1794 |
19 Jan 06 |
nicklas |
13 |
BASE is distributed in the hope that it will be useful, |
1794 |
19 Jan 06 |
nicklas |
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
1794 |
19 Jan 06 |
nicklas |
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1794 |
19 Jan 06 |
nicklas |
16 |
GNU General Public License for more details. |
1794 |
19 Jan 06 |
nicklas |
17 |
|
1794 |
19 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/>. |
1794 |
19 Jan 06 |
nicklas |
20 |
------------------------------------------------------------------ |
1794 |
19 Jan 06 |
nicklas |
21 |
|
1794 |
19 Jan 06 |
nicklas |
22 |
@author Nicklas |
1794 |
19 Jan 06 |
nicklas |
23 |
@version 2.0 |
1794 |
19 Jan 06 |
nicklas |
24 |
--%> |
5426 |
24 Sep 10 |
nicklas |
25 |
<%@ page pageEncoding="UTF-8" session="false" |
1794 |
19 Jan 06 |
nicklas |
26 |
import="net.sf.basedb.core.SessionControl" |
2432 |
27 Jun 06 |
nicklas |
27 |
import="net.sf.basedb.core.DbControl" |
1794 |
19 Jan 06 |
nicklas |
28 |
import="net.sf.basedb.core.Permission" |
1794 |
19 Jan 06 |
nicklas |
29 |
import="net.sf.basedb.core.Item" |
2432 |
27 Jun 06 |
nicklas |
30 |
import="net.sf.basedb.core.File" |
2432 |
27 Jun 06 |
nicklas |
31 |
import="net.sf.basedb.core.SystemItems" |
2432 |
27 Jun 06 |
nicklas |
32 |
import="net.sf.basedb.core.Directory" |
1794 |
19 Jan 06 |
nicklas |
33 |
import="net.sf.basedb.clients.web.Base" |
2753 |
20 Oct 06 |
nicklas |
34 |
import="net.sf.basedb.util.Values" |
1794 |
19 Jan 06 |
nicklas |
35 |
%> |
1794 |
19 Jan 06 |
nicklas |
36 |
<%@ taglib |
1794 |
19 Jan 06 |
nicklas |
37 |
prefix="base" uri="/WEB-INF/base.tld" |
1794 |
19 Jan 06 |
nicklas |
38 |
%> |
1794 |
19 Jan 06 |
nicklas |
39 |
<% |
1794 |
19 Jan 06 |
nicklas |
40 |
SessionControl sc = Base.getExistingSessionControl(pageContext, Permission.DENIED, Item.FILE); |
1794 |
19 Jan 06 |
nicklas |
41 |
String ID = sc.getId(); |
1794 |
19 Jan 06 |
nicklas |
42 |
String mode = request.getParameter("mode"); |
2432 |
27 Jun 06 |
nicklas |
43 |
int fileId = Values.getInt(request.getParameter("file_id")); |
6137 |
19 Sep 12 |
nicklas |
44 |
String fileSrc = "wait.jsp"; |
5319 |
20 Apr 10 |
nicklas |
45 |
String syncWithDirectory = "1"; |
2432 |
27 Jun 06 |
nicklas |
46 |
if (fileId != 0) |
2432 |
27 Jun 06 |
nicklas |
47 |
{ |
4585 |
15 Oct 08 |
nicklas |
48 |
DbControl dc = null; |
2432 |
27 Jun 06 |
nicklas |
49 |
try |
2432 |
27 Jun 06 |
nicklas |
50 |
{ |
7954 |
12 May 21 |
nicklas |
51 |
dc = sc.newDbControl(":File manager"); |
2432 |
27 Jun 06 |
nicklas |
52 |
File f = File.getById(dc, fileId); |
2432 |
27 Jun 06 |
nicklas |
53 |
sc.getCurrentContext(Item.DIRECTORY).setId(f.getDirectory().getId()); |
6137 |
19 Sep 12 |
nicklas |
54 |
fileSrc = "files/index.jsp?ID="+ ID + "&cmd=ViewItem&item_id=" + fileId; |
5319 |
20 Apr 10 |
nicklas |
55 |
syncWithDirectory = "0"; |
2432 |
27 Jun 06 |
nicklas |
56 |
} |
2432 |
27 Jun 06 |
nicklas |
57 |
finally |
2432 |
27 Jun 06 |
nicklas |
58 |
{ |
2432 |
27 Jun 06 |
nicklas |
59 |
if (dc != null) dc.close(); |
2432 |
27 Jun 06 |
nicklas |
60 |
} |
2432 |
27 Jun 06 |
nicklas |
61 |
} |
2432 |
27 Jun 06 |
nicklas |
62 |
|
1794 |
19 Jan 06 |
nicklas |
63 |
%> |
1794 |
19 Jan 06 |
nicklas |
64 |
|
6137 |
19 Sep 12 |
nicklas |
65 |
<base:page type="iframe" title=""> |
6194 |
01 Nov 12 |
nicklas |
66 |
<base:head scripts="dragdrop.js,~frameset.js" /> |
5938 |
27 Jan 12 |
nicklas |
67 |
<base:body> |
6610 |
20 Nov 14 |
nicklas |
68 |
<div class="absolutefull auto-init" data-auto-init="drag-support"> |
6610 |
20 Nov 14 |
nicklas |
69 |
<div id="f1" class="absolutefull topborder" style="width: 245px;"><iframe name="directories" |
6137 |
19 Sep 12 |
nicklas |
70 |
class="absolutefull" |
6137 |
19 Sep 12 |
nicklas |
71 |
src="directories/list_directories.jsp?ID=<%=ID%>&mode=<%=mode%>&sync=<%=syncWithDirectory%>" |
5938 |
27 Jan 12 |
nicklas |
72 |
style="width: 100%; height: 100%;" |
5938 |
27 Jan 12 |
nicklas |
73 |
></iframe></div> |
5938 |
27 Jan 12 |
nicklas |
74 |
|
6610 |
20 Nov 14 |
nicklas |
75 |
<div id="d1" class="absolutefull bg-filled-100 leftborder rightborder topborder" |
6606 |
18 Nov 14 |
nicklas |
76 |
style="left: 245px; width: 5px; cursor: col-resize; z-index: 99;" |
5938 |
27 Jan 12 |
nicklas |
77 |
></div> |
5938 |
27 Jan 12 |
nicklas |
78 |
|
5938 |
27 Jan 12 |
nicklas |
79 |
<div id="f2" class="absolutefull" style="left: 250px;"><iframe name="files" |
6137 |
19 Sep 12 |
nicklas |
80 |
class="absolutefull" |
5938 |
27 Jan 12 |
nicklas |
81 |
src="<%=fileSrc%>" |
5938 |
27 Jan 12 |
nicklas |
82 |
style="width: 100%; height: 100%;" |
5938 |
27 Jan 12 |
nicklas |
83 |
></iframe></div> |
5938 |
27 Jan 12 |
nicklas |
84 |
</div> |
5938 |
27 Jan 12 |
nicklas |
85 |
</base:body> |
1794 |
19 Jan 06 |
nicklas |
86 |
</base:page> |
1794 |
19 Jan 06 |
nicklas |
87 |
|