2406 |
07 May 14 |
nicklas |
1 |
<%@ page |
2406 |
07 May 14 |
nicklas |
2 |
pageEncoding="UTF-8" |
2406 |
07 May 14 |
nicklas |
3 |
session="false" |
2406 |
07 May 14 |
nicklas |
4 |
import="net.sf.basedb.core.User" |
2406 |
07 May 14 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
2406 |
07 May 14 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
2406 |
07 May 14 |
nicklas |
7 |
import="net.sf.basedb.core.Application" |
2417 |
12 May 14 |
nicklas |
8 |
import="net.sf.basedb.util.Values" |
2406 |
07 May 14 |
nicklas |
9 |
import="net.sf.basedb.clients.web.Base" |
2417 |
12 May 14 |
nicklas |
10 |
import="net.sf.basedb.clients.web.util.HTML" |
2406 |
07 May 14 |
nicklas |
11 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
2406 |
07 May 14 |
nicklas |
12 |
%> |
2406 |
07 May 14 |
nicklas |
13 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
2406 |
07 May 14 |
nicklas |
14 |
<% |
3976 |
26 May 16 |
nicklas |
15 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
2406 |
07 May 14 |
nicklas |
16 |
final String ID = sc.getId(); |
2406 |
07 May 14 |
nicklas |
17 |
final float scale = Base.getScale(sc); |
2406 |
07 May 14 |
nicklas |
18 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
2406 |
07 May 14 |
nicklas |
19 |
DbControl dc = null; |
2406 |
07 May 14 |
nicklas |
20 |
try |
2406 |
07 May 14 |
nicklas |
21 |
{ |
2406 |
07 May 14 |
nicklas |
22 |
dc = sc.newDbControl(); |
2406 |
07 May 14 |
nicklas |
23 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
2406 |
07 May 14 |
nicklas |
24 |
|
3837 |
12 Apr 16 |
nicklas |
25 |
String clusterId = Values.getStringOrNull(request.getParameter("clusterId")); |
2406 |
07 May 14 |
nicklas |
26 |
String path = request.getParameter("path"); |
3605 |
16 Nov 15 |
nicklas |
27 |
String archive = Values.getStringOrNull(request.getParameter("archive")); |
2417 |
12 May 14 |
nicklas |
28 |
String itemType = Values.getStringOrNull(request.getParameter("itemType")); |
2417 |
12 May 14 |
nicklas |
29 |
int itemId = Values.getInt(request.getParameter("itemId")); |
3837 |
12 Apr 16 |
nicklas |
30 |
int fileServerId = Values.getInt(request.getParameter("fileserver")); |
2406 |
07 May 14 |
nicklas |
31 |
%> |
2406 |
07 May 14 |
nicklas |
32 |
<base:page type="popup" title="View remote files"> |
2644 |
09 Sep 14 |
nicklas |
33 |
<base:head scripts="~view_remote_files.js,~../reggie-2.js" styles="path.css,~../css/reggie-2.css"> |
2406 |
07 May 14 |
nicklas |
34 |
|
2406 |
07 May 14 |
nicklas |
35 |
<style> |
2406 |
07 May 14 |
nicklas |
36 |
#file-list |
2406 |
07 May 14 |
nicklas |
37 |
{ |
2406 |
07 May 14 |
nicklas |
38 |
width: 100%; |
2406 |
07 May 14 |
nicklas |
39 |
border-collapse: collapse; |
2407 |
08 May 14 |
nicklas |
40 |
border-bottom: 1px solid #A8A8A8; |
2406 |
07 May 14 |
nicklas |
41 |
} |
2406 |
07 May 14 |
nicklas |
42 |
|
2406 |
07 May 14 |
nicklas |
43 |
#file-list th |
2406 |
07 May 14 |
nicklas |
44 |
{ |
2406 |
07 May 14 |
nicklas |
45 |
background-color: #E8E8E8; |
2406 |
07 May 14 |
nicklas |
46 |
text-align: left; |
2406 |
07 May 14 |
nicklas |
47 |
padding: 2px; |
2406 |
07 May 14 |
nicklas |
48 |
border-bottom: 1px solid #A8A8A8; |
2406 |
07 May 14 |
nicklas |
49 |
} |
2406 |
07 May 14 |
nicklas |
50 |
|
2406 |
07 May 14 |
nicklas |
51 |
#file-list td |
2406 |
07 May 14 |
nicklas |
52 |
{ |
2406 |
07 May 14 |
nicklas |
53 |
padding: 2px; |
2406 |
07 May 14 |
nicklas |
54 |
} |
2406 |
07 May 14 |
nicklas |
55 |
|
2406 |
07 May 14 |
nicklas |
56 |
#file-list .file-size |
2406 |
07 May 14 |
nicklas |
57 |
{ |
2406 |
07 May 14 |
nicklas |
58 |
text-align: left; |
2406 |
07 May 14 |
nicklas |
59 |
} |
2406 |
07 May 14 |
nicklas |
60 |
|
2406 |
07 May 14 |
nicklas |
61 |
#file-list .folder |
2406 |
07 May 14 |
nicklas |
62 |
{ |
2406 |
07 May 14 |
nicklas |
63 |
font-weight: bold; |
2406 |
07 May 14 |
nicklas |
64 |
font-style: italic; |
2406 |
07 May 14 |
nicklas |
65 |
border-bottom: 1px solid #A8A8A8; |
2406 |
07 May 14 |
nicklas |
66 |
} |
2406 |
07 May 14 |
nicklas |
67 |
|
2406 |
07 May 14 |
nicklas |
68 |
#file-list .folder td |
2406 |
07 May 14 |
nicklas |
69 |
{ |
2578 |
15 Aug 14 |
nicklas |
70 |
padding-top: 0.5em; |
2406 |
07 May 14 |
nicklas |
71 |
} |
2406 |
07 May 14 |
nicklas |
72 |
|
2406 |
07 May 14 |
nicklas |
73 |
#file-list .file |
2406 |
07 May 14 |
nicklas |
74 |
{ |
2406 |
07 May 14 |
nicklas |
75 |
border-bottom: 1px dotted #A8A8A8; |
2406 |
07 May 14 |
nicklas |
76 |
} |
2406 |
07 May 14 |
nicklas |
77 |
|
2407 |
08 May 14 |
nicklas |
78 |
#file-list td:first-child |
2406 |
07 May 14 |
nicklas |
79 |
{ |
2407 |
08 May 14 |
nicklas |
80 |
width: 25px; |
2407 |
08 May 14 |
nicklas |
81 |
text-align: center; |
2407 |
08 May 14 |
nicklas |
82 |
} |
2407 |
08 May 14 |
nicklas |
83 |
|
2407 |
08 May 14 |
nicklas |
84 |
#file-list .file td.file-name |
2407 |
08 May 14 |
nicklas |
85 |
{ |
2578 |
15 Aug 14 |
nicklas |
86 |
|
2406 |
07 May 14 |
nicklas |
87 |
} |
2406 |
07 May 14 |
nicklas |
88 |
|
2406 |
07 May 14 |
nicklas |
89 |
</style> |
2406 |
07 May 14 |
nicklas |
90 |
|
2406 |
07 May 14 |
nicklas |
91 |
</base:head> |
2578 |
15 Aug 14 |
nicklas |
92 |
<base:body data-read-only="1"> |
2406 |
07 May 14 |
nicklas |
93 |
<h1><%=HTML.encodeTags(path) %></h1> |
2406 |
07 May 14 |
nicklas |
94 |
|
2406 |
07 May 14 |
nicklas |
95 |
<div id="page-data" class="datacontainer" |
2406 |
07 May 14 |
nicklas |
96 |
data-cluster-id="<%=HTML.encodeTags(clusterId) %>" |
2406 |
07 May 14 |
nicklas |
97 |
data-path="<%=HTML.encodeTags(path)%>" |
3605 |
16 Nov 15 |
nicklas |
98 |
data-archive="<%=HTML.encodeTags(archive) %>" |
2417 |
12 May 14 |
nicklas |
99 |
data-item-type="<%=itemType == null ? "" : itemType%>" |
2417 |
12 May 14 |
nicklas |
100 |
data-item-id="<%=itemId%>" |
3837 |
12 Apr 16 |
nicklas |
101 |
data-fileserver-id="<%=fileServerId%>" |
2406 |
07 May 14 |
nicklas |
102 |
></div> |
2407 |
08 May 14 |
nicklas |
103 |
|
2644 |
09 Sep 14 |
nicklas |
104 |
<form name="reggie" id="wizard" class="wizard"> |
2406 |
07 May 14 |
nicklas |
105 |
<div class="content bottomborder"> |
2644 |
09 Sep 14 |
nicklas |
106 |
<div id="wizard-status"></div> |
2406 |
07 May 14 |
nicklas |
107 |
<div id="files"></div> |
2406 |
07 May 14 |
nicklas |
108 |
</div> |
2407 |
08 May 14 |
nicklas |
109 |
</form> |
2406 |
07 May 14 |
nicklas |
110 |
|
2406 |
07 May 14 |
nicklas |
111 |
<base:buttongroup subclass="dialogbuttons" id="dialogbuttons"> |
2406 |
07 May 14 |
nicklas |
112 |
<base:button id="close" title="Close" /> |
2406 |
07 May 14 |
nicklas |
113 |
</base:buttongroup> |
2406 |
07 May 14 |
nicklas |
114 |
|
2406 |
07 May 14 |
nicklas |
115 |
</base:body> |
2406 |
07 May 14 |
nicklas |
116 |
</base:page> |
2406 |
07 May 14 |
nicklas |
117 |
<% |
2406 |
07 May 14 |
nicklas |
118 |
} |
2406 |
07 May 14 |
nicklas |
119 |
finally |
2406 |
07 May 14 |
nicklas |
120 |
{ |
2406 |
07 May 14 |
nicklas |
121 |
if (dc != null) dc.close(); |
2406 |
07 May 14 |
nicklas |
122 |
} |
2406 |
07 May 14 |
nicklas |
123 |
%> |