3837 |
12 Apr 16 |
nicklas |
1 |
<%@ page |
3837 |
12 Apr 16 |
nicklas |
2 |
pageEncoding="UTF-8" |
3837 |
12 Apr 16 |
nicklas |
3 |
session="false" |
3837 |
12 Apr 16 |
nicklas |
4 |
import="net.sf.basedb.core.User" |
3837 |
12 Apr 16 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
3837 |
12 Apr 16 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
3837 |
12 Apr 16 |
nicklas |
7 |
import="net.sf.basedb.core.Application" |
3837 |
12 Apr 16 |
nicklas |
8 |
import="net.sf.basedb.clients.web.Base" |
3837 |
12 Apr 16 |
nicklas |
9 |
import="net.sf.basedb.clients.web.util.HTML" |
3837 |
12 Apr 16 |
nicklas |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
3837 |
12 Apr 16 |
nicklas |
11 |
%> |
3837 |
12 Apr 16 |
nicklas |
12 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
3838 |
13 Apr 16 |
nicklas |
13 |
<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %> |
3837 |
12 Apr 16 |
nicklas |
14 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
3837 |
12 Apr 16 |
nicklas |
15 |
<% |
3976 |
26 May 16 |
nicklas |
16 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
3837 |
12 Apr 16 |
nicklas |
17 |
final String ID = sc.getId(); |
3837 |
12 Apr 16 |
nicklas |
18 |
final float scale = Base.getScale(sc); |
3837 |
12 Apr 16 |
nicklas |
19 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
3837 |
12 Apr 16 |
nicklas |
20 |
DbControl dc = null; |
3837 |
12 Apr 16 |
nicklas |
21 |
try |
3837 |
12 Apr 16 |
nicklas |
22 |
{ |
3837 |
12 Apr 16 |
nicklas |
23 |
dc = sc.newDbControl(); |
3837 |
12 Apr 16 |
nicklas |
24 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
3837 |
12 Apr 16 |
nicklas |
25 |
%> |
3837 |
12 Apr 16 |
nicklas |
26 |
<base:page type="default" > |
3837 |
12 Apr 16 |
nicklas |
27 |
<base:head |
3837 |
12 Apr 16 |
nicklas |
28 |
scripts="~../reggie-2.js,~stray-files.js" |
3838 |
13 Apr 16 |
nicklas |
29 |
styles="path.css,toolbar.css,~../css/reggie-2.css" |
3837 |
12 Apr 16 |
nicklas |
30 |
> |
3837 |
12 Apr 16 |
nicklas |
31 |
<style> |
3837 |
12 Apr 16 |
nicklas |
32 |
tr.highlight |
3837 |
12 Apr 16 |
nicklas |
33 |
{ |
3837 |
12 Apr 16 |
nicklas |
34 |
border-top-width: 1px; |
3837 |
12 Apr 16 |
nicklas |
35 |
border-top-style: dotted; |
3837 |
12 Apr 16 |
nicklas |
36 |
} |
3837 |
12 Apr 16 |
nicklas |
37 |
|
3837 |
12 Apr 16 |
nicklas |
38 |
#strayFilesTable |
3837 |
12 Apr 16 |
nicklas |
39 |
{ |
3837 |
12 Apr 16 |
nicklas |
40 |
width: 100%; |
3837 |
12 Apr 16 |
nicklas |
41 |
border-collapse: collapse; |
3837 |
12 Apr 16 |
nicklas |
42 |
} |
3837 |
12 Apr 16 |
nicklas |
43 |
|
3837 |
12 Apr 16 |
nicklas |
44 |
#strayFilesTable thead |
3837 |
12 Apr 16 |
nicklas |
45 |
{ |
3837 |
12 Apr 16 |
nicklas |
46 |
text-align: left; |
3837 |
12 Apr 16 |
nicklas |
47 |
border-bottom-width: 1px; |
3837 |
12 Apr 16 |
nicklas |
48 |
border-top-width: 1px; |
3837 |
12 Apr 16 |
nicklas |
49 |
} |
3837 |
12 Apr 16 |
nicklas |
50 |
|
3837 |
12 Apr 16 |
nicklas |
51 |
#strayFilesTable td, #strayFilesTable th |
3837 |
12 Apr 16 |
nicklas |
52 |
{ |
3837 |
12 Apr 16 |
nicklas |
53 |
padding: 2px 4px; |
3837 |
12 Apr 16 |
nicklas |
54 |
} |
3837 |
12 Apr 16 |
nicklas |
55 |
|
3837 |
12 Apr 16 |
nicklas |
56 |
#strayFilesTable img |
3837 |
12 Apr 16 |
nicklas |
57 |
{ |
3837 |
12 Apr 16 |
nicklas |
58 |
margin-right: 4px; |
3837 |
12 Apr 16 |
nicklas |
59 |
} |
3837 |
12 Apr 16 |
nicklas |
60 |
|
3838 |
13 Apr 16 |
nicklas |
61 |
#strayFilesTable tr td:first-child, #strayFilesTable tr th:first-child |
3838 |
13 Apr 16 |
nicklas |
62 |
{ |
3838 |
13 Apr 16 |
nicklas |
63 |
width: 6em; |
3838 |
13 Apr 16 |
nicklas |
64 |
text-align: right; |
3838 |
13 Apr 16 |
nicklas |
65 |
padding-right: 3px; |
3838 |
13 Apr 16 |
nicklas |
66 |
white-space: nowrap; |
3838 |
13 Apr 16 |
nicklas |
67 |
font-weight: bold; |
3838 |
13 Apr 16 |
nicklas |
68 |
} |
3837 |
12 Apr 16 |
nicklas |
69 |
|
3838 |
13 Apr 16 |
nicklas |
70 |
#strayFilesTable input[type="text"], #strayFilesTable select |
3838 |
13 Apr 16 |
nicklas |
71 |
{ |
3838 |
13 Apr 16 |
nicklas |
72 |
width: calc(100% - 10px); |
3838 |
13 Apr 16 |
nicklas |
73 |
} |
3838 |
13 Apr 16 |
nicklas |
74 |
|
3838 |
13 Apr 16 |
nicklas |
75 |
|
3837 |
12 Apr 16 |
nicklas |
76 |
</style> |
3837 |
12 Apr 16 |
nicklas |
77 |
</base:head> |
3837 |
12 Apr 16 |
nicklas |
78 |
<base:body> |
3837 |
12 Apr 16 |
nicklas |
79 |
|
3837 |
12 Apr 16 |
nicklas |
80 |
<p:path><p:pathelement |
3837 |
12 Apr 16 |
nicklas |
81 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
3837 |
12 Apr 16 |
nicklas |
82 |
/><p:pathelement title="Stray files wizard" |
3837 |
12 Apr 16 |
nicklas |
83 |
/></p:path> |
3837 |
12 Apr 16 |
nicklas |
84 |
|
3837 |
12 Apr 16 |
nicklas |
85 |
<div class="content"> |
3837 |
12 Apr 16 |
nicklas |
86 |
<form name="reggie" id="wizard" class="wizard"> |
3837 |
12 Apr 16 |
nicklas |
87 |
|
3837 |
12 Apr 16 |
nicklas |
88 |
<div class="step auto-hide" id="step-1"> |
3837 |
12 Apr 16 |
nicklas |
89 |
<div class="step-no">1</div> |
3838 |
13 Apr 16 |
nicklas |
90 |
<div class="step-title">Found <span id="num-stray">?</span> stray folders among <span id="num-total">?</span> folders checked</div> |
3837 |
12 Apr 16 |
nicklas |
91 |
<div class="step-content"> |
3838 |
13 Apr 16 |
nicklas |
92 |
|
3838 |
13 Apr 16 |
nicklas |
93 |
<tbl:toolbar subclass="bg-filled-50"> |
3838 |
13 Apr 16 |
nicklas |
94 |
<tbl:button |
3838 |
13 Apr 16 |
nicklas |
95 |
id="btnDeleteStrayFolders" |
3838 |
13 Apr 16 |
nicklas |
96 |
image="<%=home + "/images/delete.png"%>" |
3838 |
13 Apr 16 |
nicklas |
97 |
title="Delete stray folders…" |
3838 |
13 Apr 16 |
nicklas |
98 |
/> |
3838 |
13 Apr 16 |
nicklas |
99 |
</tbl:toolbar> |
3837 |
12 Apr 16 |
nicklas |
100 |
|
3837 |
12 Apr 16 |
nicklas |
101 |
<table id="strayFilesTable"> |
3837 |
12 Apr 16 |
nicklas |
102 |
<thead class="bg-filled-100"> |
3837 |
12 Apr 16 |
nicklas |
103 |
<tr> |
3838 |
13 Apr 16 |
nicklas |
104 |
<th></th> |
3838 |
13 Apr 16 |
nicklas |
105 |
<th>Path</th> |
3837 |
12 Apr 16 |
nicklas |
106 |
<th>File server</th> |
3837 |
12 Apr 16 |
nicklas |
107 |
<th>Last modified</th> |
3839 |
13 Apr 16 |
nicklas |
108 |
<th>Owner</th> |
3837 |
12 Apr 16 |
nicklas |
109 |
</tr> |
3838 |
13 Apr 16 |
nicklas |
110 |
<tr> |
3838 |
13 Apr 16 |
nicklas |
111 |
<th><base:icon image="check_uncheck.png" id="check_uncheck" /></th> |
3838 |
13 Apr 16 |
nicklas |
112 |
<th><input type="text" name="pathFilter" id="pathFilter"></th> |
3838 |
13 Apr 16 |
nicklas |
113 |
<th> |
3838 |
13 Apr 16 |
nicklas |
114 |
<select name="serverFilter" id="serverFilter"> |
3838 |
13 Apr 16 |
nicklas |
115 |
<option value=""> |
3838 |
13 Apr 16 |
nicklas |
116 |
</select> |
3838 |
13 Apr 16 |
nicklas |
117 |
</th> |
3838 |
13 Apr 16 |
nicklas |
118 |
<th><input type="text" name="dateFilter" id="dateFilter"></th> |
3839 |
13 Apr 16 |
nicklas |
119 |
<th><input type="text" name="ownerFilter" id="ownerFilter"></th> |
3838 |
13 Apr 16 |
nicklas |
120 |
</tr> |
3837 |
12 Apr 16 |
nicklas |
121 |
</thead> |
3837 |
12 Apr 16 |
nicklas |
122 |
|
3837 |
12 Apr 16 |
nicklas |
123 |
<tbody id="strayFilesSection"></tbody> |
3838 |
13 Apr 16 |
nicklas |
124 |
|
3838 |
13 Apr 16 |
nicklas |
125 |
<tbody id="no-stray-files" style="display: none;"> |
3838 |
13 Apr 16 |
nicklas |
126 |
<tr> |
3838 |
13 Apr 16 |
nicklas |
127 |
<th></th> |
3839 |
13 Apr 16 |
nicklas |
128 |
<td colspan="4" style="text-align: left; font-weight: bold; padding: 1em;"> |
3843 |
13 Apr 16 |
nicklas |
129 |
Could not find any stray folders. |
3838 |
13 Apr 16 |
nicklas |
130 |
</td> |
3838 |
13 Apr 16 |
nicklas |
131 |
</tr> |
3838 |
13 Apr 16 |
nicklas |
132 |
</tbody> |
3838 |
13 Apr 16 |
nicklas |
133 |
|
3837 |
12 Apr 16 |
nicklas |
134 |
</table> |
3837 |
12 Apr 16 |
nicklas |
135 |
|
3837 |
12 Apr 16 |
nicklas |
136 |
</div> |
3837 |
12 Apr 16 |
nicklas |
137 |
</div> |
3837 |
12 Apr 16 |
nicklas |
138 |
|
3837 |
12 Apr 16 |
nicklas |
139 |
<div id="wizard-status"></div> |
3912 |
02 May 16 |
nicklas |
140 |
<div id="wizard-progress"></div> |
3837 |
12 Apr 16 |
nicklas |
141 |
|
3837 |
12 Apr 16 |
nicklas |
142 |
<table class="navigation" id="navigation"> |
3837 |
12 Apr 16 |
nicklas |
143 |
<tr> |
3837 |
12 Apr 16 |
nicklas |
144 |
<td><base:button id="gocancel" title="Cancel" /></td> |
3837 |
12 Apr 16 |
nicklas |
145 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
3837 |
12 Apr 16 |
nicklas |
146 |
<td><base:button id="goregister" title="Register" image="<%=home+"/images/import.png"%>" /></td> |
3837 |
12 Apr 16 |
nicklas |
147 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
3837 |
12 Apr 16 |
nicklas |
148 |
<td id="gonext-message" class="message"></td> |
3837 |
12 Apr 16 |
nicklas |
149 |
</tr> |
3837 |
12 Apr 16 |
nicklas |
150 |
</table> |
3837 |
12 Apr 16 |
nicklas |
151 |
|
3837 |
12 Apr 16 |
nicklas |
152 |
</form> |
3837 |
12 Apr 16 |
nicklas |
153 |
</div> |
3837 |
12 Apr 16 |
nicklas |
154 |
|
3837 |
12 Apr 16 |
nicklas |
155 |
</base:body> |
3837 |
12 Apr 16 |
nicklas |
156 |
</base:page> |
3837 |
12 Apr 16 |
nicklas |
157 |
<% |
3837 |
12 Apr 16 |
nicklas |
158 |
} |
3837 |
12 Apr 16 |
nicklas |
159 |
finally |
3837 |
12 Apr 16 |
nicklas |
160 |
{ |
3837 |
12 Apr 16 |
nicklas |
161 |
if (dc != null) dc.close(); |
3837 |
12 Apr 16 |
nicklas |
162 |
} |
3837 |
12 Apr 16 |
nicklas |
163 |
%> |