1
+ <%@ taglib prefix =" c" uri =" http://java.sun.com/jsp/jstl/core" %>
2
+
3
+ <html >
4
+ <head >
5
+ <title >jFM - File Manager</title >
6
+ <link rel =" stylesheet" type =" text/css" href =" ${ url } /styles/jFM.css" />
7
+ </head >
8
+
9
+
10
+
11
+
12
+ <body bgcolor =" #FFFFFF" >
13
+ <h3 >jFM - File Manager </h3 >
14
+
15
+ <c:if test =" ${ ! principal} " >
16
+ <a href =" ${ self } ${ path } ?logout=t" title =" Log out" >log out ${ principal } </a >
17
+ </c:if >
18
+ <p >
19
+
20
+ <span style =" color : rgb (255 , 0 , 0 );" >${ actionresult } </span >
21
+
22
+ <c:if test =" ${ ! fatalerror} " >
23
+
24
+ <form name =" files" action =" ${ self } ${ path } " method =" get" >
25
+
26
+ <table border =" 1" cellpadding =" 3" cellspacing =" 0" >
27
+ <tbody >
28
+ <tr >
29
+ <td colspan =" 5" class =" title" >
30
+
31
+ <img src =" ${ url } /img/openfolder.gif" title =" current folder" width =" 24" height =" 24" alt =" DIR" border =" 0" >
32
+
33
+ <c:set var =" parentlink" value =" " scope =" request" />
34
+
35
+ <c:forEach var =" parent" items =" ${ folder. parents } " varStatus =" status" >
36
+
37
+ <c:choose >
38
+ <c:when test =" ${ parent. isActive } " >
39
+ <a href =" ${ self } ${ parent. link } " >${ parent. display } </a >
40
+ </c:when >
41
+ <c:otherwise >
42
+ ${ parent. display }
43
+ </c:otherwise >
44
+ </c:choose >
45
+
46
+ <c:if test =" ${ ! status. last} " >
47
+ > ;
48
+ <c:set var =" parentlink" value =" ${ self } ${ parent. link } " scope =" request" />
49
+ </c:if >
50
+
51
+ </c:forEach >
52
+
53
+   ;
54
+
55
+ <c:if test =" ${ parentlink != ' ' } " >
56
+ <a href =" ${ parentlink } " ><img src =" ${ url } /img/up-one-dir.gif" title =" to parent folder" width =" 16" height =" 16" alt =" UP" border =" 0" ></a >
57
+ </c:if >
58
+
59
+   ;
60
+
61
+ <a href =" ${ self } ${ path } " ><img src =" ${ url } /img/reload.gif" title =" reload folder" width =" 24" height =" 24" alt =" RELOAD" border =" 0" ></a >
62
+
63
+ </td >
64
+
65
+
66
+ </tr >
67
+ <tr >
68
+ <td class =" header-right" style =" width : 10% ;" >
69
+ <script >
70
+ function doChkAll (oChkBox ) {
71
+ var bChecked = oChkBox .checked ;
72
+ var docFrmChk = document .forms [' files' ].index ;
73
+ for (var i = 0 ; i < docFrmChk .length ; i++ ) {
74
+ docFrmChk[i].checked = bChecked;
75
+ }
76
+ }
77
+ </script >
78
+ <small >
79
+ Check all
80
+ <input type =" checkbox" name =" chkAll" onclick =" doChkAll(this);" >
81
+ </small >
82
+ </td >
83
+
84
+
85
+
86
+
87
+ <td class =" header-left" ><small >Filename</small >  ;
88
+ <a href =" ${ self } ${ path } ?sort=nd" >
89
+ <img src =" ${ url } /img/shift-down.gif" title =" sort by name ascending" width =" 16" height =" 16" alt =" SORTDN" border =" 0" ></a >
90
+
91
+   ;
92
+
93
+ <a href =" ${ self } ${ path } ?sort=nu" >
94
+ <img src =" ${ url } /img/shift-up.gif" title =" sort by name descending" width =" 16" height =" 16" alt =" SORTUP" border =" 0" ></a >
95
+
96
+ </td >
97
+ <td class =" header-left" ><small >Type</small ></td >
98
+ <td class =" header-center" ><small >Size</small >
99
+   ;
100
+ <a href =" ${ self } ${ path } ?sort=sd" >
101
+ <img src =" ${ url } /img/shift-down.gif" title =" sort by size ascending" width =" 16" height =" 16" alt =" SORTDN" border =" 0" ></a >
102
+
103
+   ;
104
+
105
+ <a href =" ${ self } ${ path } ?sort=su" >
106
+ <img src =" ${ url } /img/shift-up.gif" title =" sort by size descending" width =" 16" height =" 16" alt =" SORTUP" border =" 0" ></a >
107
+
108
+   ;
109
+
110
+ <a href =" ${ self } ${ path } ?sum=t" >
111
+ <img src =" ${ url } /img/sum.gif" title =" display folder tree size" width =" 16" height =" 16" alt =" SUM" border =" 0" ></a >
112
+
113
+ </td >
114
+ <td class =" header-center" ><small >Last Modification</small >  ;
115
+ <a href =" ${ self } ${ path } ?sort=dd" >
116
+ <img src =" ${ url } /img/shift-down.gif" title =" sort by date ascending" width =" 16" height =" 16" alt =" SORTDN" border =" 0" ></a >
117
+   ;
118
+
119
+ <a href =" ${ self } ${ path } ?sort=du" >
120
+ <img src =" ${ url } /img/shift-up.gif" title =" sort by date descending" width =" 16" height =" 16" alt =" SORTUP" border =" 0" ></a >
121
+
122
+ </td >
123
+ </tr >
124
+
125
+ <c:forEach var =" file" items =" ${ folder. files } " >
126
+
127
+
128
+ <tr >
129
+ <td class =" row-right" >
130
+
131
+ <c:if test =" ${ file. isZip } " >
132
+ <a href =" ${ self } ${ path } ?command=Unzip&index=${ file. id } " > <img src =" ${ url } /img/unpack.gif" title =" unzip ${ file. name } " width =" 16" height =" 16" alt =" UNZIP" border =" 0" ></a >
133
+ </c:if >
134
+ <c:if test =" ${ ! file. isDirectory} " >
135
+ <a href =" ${ self } ${ path } ?command=Delete&index=${ file. id } " > <img src =" ${ url } /img/delete.gif" title =" delete ${ file. name } " width =" 16" height =" 16" alt =" DEL" border =" 0" ></a >
136
+ </c:if >
137
+
138
+ <small ><input type =" checkbox" name =" index" value =" ${ file. id } " ></small ></td >
139
+
140
+ <td class =" row-left" ><small ><c:choose >
141
+ <c:when test =" ${ file. isDirectory } " >
142
+ <a href =" ${ self } ${ file. path } " ><img src =" ${ url } /img/folder.gif" title =" folder" width =" 16" height =" 16" alt =" DIR" border =" 0" ></a >
143
+ <a href =" ${ self } ${ file. path } " >${ file. name } </a >
144
+ </c:when >
145
+ <c:otherwise >
146
+ <a href =" ${ file. url } " ><img src =" ${ url } /img/file.gif" title =" file" width =" 16" height =" 16" alt =" FILE" border =" 0" ></a >
147
+ <a href =" ${ file. url } " >${ file. name } </a >
148
+ </c:otherwise >
149
+ </c:choose > </small ></td >
150
+ <td class =" row-center" >${ file. type } </td >
151
+
152
+ <td class =" row-center" >${ file. size } </td >
153
+
154
+ <td class =" row-center" >${ file. lastModified } </td >
155
+
156
+
157
+
158
+ </tr >
159
+
160
+ </c:forEach >
161
+
162
+
163
+ <tr >
164
+ <td colspan =" 5" class =" header-left" >Action on selected Files</td >
165
+ </tr >
166
+
167
+
168
+ <tr >
169
+ <td class =" row-right" > <input type =" submit" name =" command" value =" Rename" title =" Rename selected file" ></td >
170
+ <td class =" row-left" >to <input name =" renameto" type =" text" ></td >
171
+
172
+
173
+
174
+ <td class =" row-right" > <input type =" submit" name =" command" value =" Delete" title =" Delete selected files" ></td >
175
+
176
+
177
+ <td class =" row-left" > <input type =" submit" name =" command" value =" Join" title =" Append to first selected file other selected files" ></td >
178
+
179
+
180
+ </tr >
181
+
182
+ <tr >
183
+ <td class =" row-right" > <input type =" submit" name =" command" value =" Copy" title =" Copy selected files" ></td >
184
+ <td class =" row-left" >to <input name =" copyto" type =" text" ></td >
185
+
186
+
187
+ <td class =" row-right" > <input type =" submit" name =" command" value =" ZipDownload" title =" Zip download files" ></td >
188
+
189
+ <td class =" row-left" colspan =" 2" > <input type =" submit" name =" command" value =" FtpUpload" title =" ftp upload files" > to <input name =" ftpto" type =" text" size =" 60" value =" " title =" user:password@host/path" ></td >
190
+
191
+
192
+ </tr >
193
+
194
+ <tr >
195
+ <td class =" row-right" > <input type =" submit" name =" command" value =" Move" title =" Move selected files" ></td >
196
+ <td class =" row-left" >to <input name =" moveto" type =" text" ></td >
197
+
198
+ <td class =" row-right" > <input type =" submit" name =" command" value =" DeleteRecursively" title =" Delete selected folders recursively" ></td >
199
+ <td class =" row-left" >type YES <input name =" confirm" type =" text" size =" 3" title =" Confirm with YES" ></td >
200
+ </tr >
201
+
202
+
203
+
204
+
205
+ </tbody >
206
+ </table >
207
+
208
+ </form >
209
+
210
+
211
+ <table style =" width : 60% ; text-align : left ;" border =" 1" cellpadding =" 2"
212
+ cellspacing =" 2" >
213
+ <tbody >
214
+ <tr >
215
+
216
+ <td class =" row-center" >
217
+
218
+ <form action =" ${ self } ${ path } " method =" get" >
219
+
220
+ <input name =" newdir" type =" text" >
221
+ <input type =" submit" name =" command" value =" Mkdir" title =" make directory" >
222
+ </form >
223
+ </td >
224
+
225
+
226
+ </tr >
227
+ </tbody >
228
+ </table >
229
+
230
+
231
+
232
+
233
+ <form action =" ${ self } ${ path } "
234
+ method =" post" enctype =" multipart/form-data" >
235
+
236
+ <table border =" 1" cellpadding =" 3" cellspacing =" 0" >
237
+ <tbody >
238
+ <tr >
239
+
240
+ <td colspan =" 2" class =" title" >
241
+ File upload to current directory
242
+ </td >
243
+
244
+ <td colspan =" 2" class =" title" >
245
+ File upload and unzip to current directory
246
+ </td >
247
+
248
+ </tr >
249
+
250
+
251
+ <tr >
252
+ <td class =" row-right" >Choose file</td > <td class =" row-left" ><input type =" file" name =" file" ></td >
253
+
254
+ <td class =" row-right" >Choose zip file</td > <td class =" row-left" ><input type =" file" name =" unzip" ></td >
255
+
256
+ </tr >
257
+
258
+
259
+ <tr >
260
+ <td class =" row-right" >Choose file</td > <td class =" row-left" ><input type =" file" name =" myimage" ></td >
261
+
262
+ <td class =" row-right" ></td >
263
+
264
+
265
+ <td class =" row-left" ><input type =" submit" name =" command" value =" Upload and unzip" /></td >
266
+
267
+ </tr >
268
+
269
+
270
+
271
+ <tr >
272
+ <td ></td >
273
+ <td class =" row-left" ><input type =" submit" name =" command" value =" Upload" /></td >
274
+ </form >
275
+
276
+
277
+ <td class =" row-right" >Get file from URL</td >
278
+
279
+ <td class =" row-left" >
280
+
281
+ <form action =" ${ self } ${ path } " method =" get" >
282
+
283
+ <input name =" url" type =" text" title =" http or ftp" >
284
+
285
+ <input type =" submit" name =" command" value =" GetURL" title =" Upload from URL" >
286
+
287
+ </form >
288
+
289
+ </td >
290
+
291
+ </tr >
292
+
293
+ </tbody >
294
+ </table >
295
+
296
+ </c:if >
297
+
298
+ <table border =" 0" cellpadding =" 3" cellspacing =" 0" >
299
+ <tbody >
300
+ <tr >
301
+
302
+ <td class =" row-left" ><small ><a href =" http://jfm.dev.java.net/" title =" http://jfm.dev.java.net/" >jFM ${ version } </a > Copyright © ; 2004 Juergen Weber</small ></td >
303
+
304
+ <td class =" row-right" ><small >jFM running on ${ serverInfo } </small ></td >
305
+
306
+ </tr >
307
+
308
+ </tbody >
309
+ </table >
310
+ </body >
311
+ </html >
0 commit comments