2933 |
14 Nov 14 |
olle |
1 |
<%@ page |
2933 |
14 Nov 14 |
olle |
2 |
pageEncoding="UTF-8" |
2933 |
14 Nov 14 |
olle |
3 |
session="false" |
2933 |
14 Nov 14 |
olle |
4 |
import="net.sf.basedb.core.Application" |
2933 |
14 Nov 14 |
olle |
5 |
import="net.sf.basedb.core.User" |
2933 |
14 Nov 14 |
olle |
6 |
import="net.sf.basedb.core.DbControl" |
2933 |
14 Nov 14 |
olle |
7 |
import="net.sf.basedb.core.SessionControl" |
2933 |
14 Nov 14 |
olle |
8 |
import="net.sf.basedb.clients.web.Base" |
2933 |
14 Nov 14 |
olle |
9 |
import="net.sf.basedb.clients.web.util.HTML" |
2933 |
14 Nov 14 |
olle |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
2933 |
14 Nov 14 |
olle |
11 |
import="net.sf.basedb.util.Values" |
2933 |
14 Nov 14 |
olle |
12 |
%> |
2933 |
14 Nov 14 |
olle |
13 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
2933 |
14 Nov 14 |
olle |
14 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
2933 |
14 Nov 14 |
olle |
15 |
<% |
2933 |
14 Nov 14 |
olle |
16 |
final SessionControl sc = Base.getExistingSessionControl(request, true); |
2933 |
14 Nov 14 |
olle |
17 |
final String ID = sc.getId(); |
2933 |
14 Nov 14 |
olle |
18 |
final float scale = Base.getScale(sc); |
2933 |
14 Nov 14 |
olle |
19 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.meludi"); |
2933 |
14 Nov 14 |
olle |
20 |
DbControl dc = null; |
2933 |
14 Nov 14 |
olle |
21 |
try |
2933 |
14 Nov 14 |
olle |
22 |
{ |
2933 |
14 Nov 14 |
olle |
23 |
dc = sc.newDbControl(); |
2933 |
14 Nov 14 |
olle |
24 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
2933 |
14 Nov 14 |
olle |
25 |
%> |
2933 |
14 Nov 14 |
olle |
26 |
<base:page type="default" > |
2933 |
14 Nov 14 |
olle |
27 |
<base:head |
2933 |
14 Nov 14 |
olle |
28 |
scripts="~../meludi-2.js,~install.js" |
2933 |
14 Nov 14 |
olle |
29 |
styles="path.css,table.css,~../css/meludi-2.css" |
2933 |
14 Nov 14 |
olle |
30 |
> |
2933 |
14 Nov 14 |
olle |
31 |
|
2933 |
14 Nov 14 |
olle |
32 |
<style> |
2933 |
14 Nov 14 |
olle |
33 |
.report |
2933 |
14 Nov 14 |
olle |
34 |
{ |
2933 |
14 Nov 14 |
olle |
35 |
width: 100%; |
2933 |
14 Nov 14 |
olle |
36 |
border-collapse: collapse; |
2933 |
14 Nov 14 |
olle |
37 |
} |
2933 |
14 Nov 14 |
olle |
38 |
|
2933 |
14 Nov 14 |
olle |
39 |
.report .itemTypeCol |
2933 |
14 Nov 14 |
olle |
40 |
{ |
2933 |
14 Nov 14 |
olle |
41 |
width: 18em; |
2933 |
14 Nov 14 |
olle |
42 |
overflow: hidden; |
2933 |
14 Nov 14 |
olle |
43 |
text-overflow: ellipsis; |
2933 |
14 Nov 14 |
olle |
44 |
} |
2933 |
14 Nov 14 |
olle |
45 |
|
2933 |
14 Nov 14 |
olle |
46 |
.report .iconCol |
2933 |
14 Nov 14 |
olle |
47 |
{ |
2933 |
14 Nov 14 |
olle |
48 |
width: 20px; |
2933 |
14 Nov 14 |
olle |
49 |
} |
2933 |
14 Nov 14 |
olle |
50 |
.report .statusCol |
2933 |
14 Nov 14 |
olle |
51 |
{} |
2933 |
14 Nov 14 |
olle |
52 |
|
2933 |
14 Nov 14 |
olle |
53 |
|
2933 |
14 Nov 14 |
olle |
54 |
.report th |
2933 |
14 Nov 14 |
olle |
55 |
{ |
2933 |
14 Nov 14 |
olle |
56 |
font-weight: bold; |
2933 |
14 Nov 14 |
olle |
57 |
text-align: left; |
2933 |
14 Nov 14 |
olle |
58 |
background: #E8E8E8; |
2933 |
14 Nov 14 |
olle |
59 |
padding: 2px 4px 2px 4px; |
2933 |
14 Nov 14 |
olle |
60 |
} |
2933 |
14 Nov 14 |
olle |
61 |
|
2933 |
14 Nov 14 |
olle |
62 |
.report td |
2933 |
14 Nov 14 |
olle |
63 |
{ |
2933 |
14 Nov 14 |
olle |
64 |
padding: 2px; |
2933 |
14 Nov 14 |
olle |
65 |
} |
2933 |
14 Nov 14 |
olle |
66 |
|
2933 |
14 Nov 14 |
olle |
67 |
.report .newitemtype |
2933 |
14 Nov 14 |
olle |
68 |
{ |
2933 |
14 Nov 14 |
olle |
69 |
border-top: 1px solid #A0A0A0; |
2933 |
14 Nov 14 |
olle |
70 |
border-bottom: 1px solid #A0A0A0; |
2933 |
14 Nov 14 |
olle |
71 |
font-weight: bold; |
2933 |
14 Nov 14 |
olle |
72 |
background-color: #E8E8E8; |
2933 |
14 Nov 14 |
olle |
73 |
} |
2933 |
14 Nov 14 |
olle |
74 |
|
2933 |
14 Nov 14 |
olle |
75 |
.report tbody:first-child .newitemtype |
2933 |
14 Nov 14 |
olle |
76 |
{ |
2933 |
14 Nov 14 |
olle |
77 |
border-top: 0; |
2933 |
14 Nov 14 |
olle |
78 |
} |
2933 |
14 Nov 14 |
olle |
79 |
|
2933 |
14 Nov 14 |
olle |
80 |
.report .sameitemtype |
2933 |
14 Nov 14 |
olle |
81 |
{ |
2933 |
14 Nov 14 |
olle |
82 |
border-top: 1px dotted #A0A0A0; |
2933 |
14 Nov 14 |
olle |
83 |
border-bottom: 1px dotted #A0A0A0; |
2933 |
14 Nov 14 |
olle |
84 |
} |
2933 |
14 Nov 14 |
olle |
85 |
|
2933 |
14 Nov 14 |
olle |
86 |
.report .sameitemtype > td:first-child |
2933 |
14 Nov 14 |
olle |
87 |
{ |
2933 |
14 Nov 14 |
olle |
88 |
padding-left: 1em; |
2933 |
14 Nov 14 |
olle |
89 |
} |
2933 |
14 Nov 14 |
olle |
90 |
|
2933 |
14 Nov 14 |
olle |
91 |
.report .check-not-ok |
2933 |
14 Nov 14 |
olle |
92 |
{ |
2933 |
14 Nov 14 |
olle |
93 |
font-weight: bold; |
2933 |
14 Nov 14 |
olle |
94 |
} |
2933 |
14 Nov 14 |
olle |
95 |
|
2933 |
14 Nov 14 |
olle |
96 |
.report .sameitemtype.PLUGINCONFIGURATION > td:first-child |
2933 |
14 Nov 14 |
olle |
97 |
{ |
2933 |
14 Nov 14 |
olle |
98 |
padding-left: 2.5em; |
2933 |
14 Nov 14 |
olle |
99 |
font-style: italic; |
2933 |
14 Nov 14 |
olle |
100 |
} |
2933 |
14 Nov 14 |
olle |
101 |
|
2933 |
14 Nov 14 |
olle |
102 |
.report td |
2933 |
14 Nov 14 |
olle |
103 |
{ |
2933 |
14 Nov 14 |
olle |
104 |
white-space: nowrap; |
2933 |
14 Nov 14 |
olle |
105 |
overflow: hidden; |
2933 |
14 Nov 14 |
olle |
106 |
text-overflow: ellipsis; |
2933 |
14 Nov 14 |
olle |
107 |
} |
2933 |
14 Nov 14 |
olle |
108 |
|
2933 |
14 Nov 14 |
olle |
109 |
#workInProgress |
2933 |
14 Nov 14 |
olle |
110 |
{ |
2933 |
14 Nov 14 |
olle |
111 |
top: auto; |
2933 |
14 Nov 14 |
olle |
112 |
height: 8em; |
2933 |
14 Nov 14 |
olle |
113 |
left: 1em; |
2933 |
14 Nov 14 |
olle |
114 |
right: 1em; |
2933 |
14 Nov 14 |
olle |
115 |
} |
2933 |
14 Nov 14 |
olle |
116 |
|
2933 |
14 Nov 14 |
olle |
117 |
#workInProgress.working |
2933 |
14 Nov 14 |
olle |
118 |
{ |
2933 |
14 Nov 14 |
olle |
119 |
top: 0; |
2933 |
14 Nov 14 |
olle |
120 |
bottom: 0; |
2933 |
14 Nov 14 |
olle |
121 |
} |
2933 |
14 Nov 14 |
olle |
122 |
</style> |
2933 |
14 Nov 14 |
olle |
123 |
</base:head> |
2933 |
14 Nov 14 |
olle |
124 |
<base:body> |
2933 |
14 Nov 14 |
olle |
125 |
|
2933 |
14 Nov 14 |
olle |
126 |
<p:path><p:pathelement |
2933 |
14 Nov 14 |
olle |
127 |
title="" href="<%="../index.jsp?ID="+ID%>" |
2933 |
14 Nov 14 |
olle |
128 |
/><p:pathelement title="Installation wizard" |
2933 |
14 Nov 14 |
olle |
129 |
/></p:path> |
2933 |
14 Nov 14 |
olle |
130 |
|
2933 |
14 Nov 14 |
olle |
131 |
<div class="content" id="wizard"> |
2933 |
14 Nov 14 |
olle |
132 |
|
2933 |
14 Nov 14 |
olle |
133 |
<div class="absolutefull" style="width: 33%; bottom: 8em;"> |
2933 |
14 Nov 14 |
olle |
134 |
<div id="validationResult0" class="absolutefull topborder rightborder bottomborder" |
2933 |
14 Nov 14 |
olle |
135 |
style="right: 0.5em; display: none;"> |
2933 |
14 Nov 14 |
olle |
136 |
</div> |
2933 |
14 Nov 14 |
olle |
137 |
</div> |
2933 |
14 Nov 14 |
olle |
138 |
|
2933 |
14 Nov 14 |
olle |
139 |
<div class="absolutefull" style="width: 33%; bottom: 8em; left: 33%;"> |
2933 |
14 Nov 14 |
olle |
140 |
<div id="validationResult1" class="absolutefull fullborder" |
2933 |
14 Nov 14 |
olle |
141 |
style="left: 0.5em; right: 0.5em; display: none;"> |
2933 |
14 Nov 14 |
olle |
142 |
</div> |
2933 |
14 Nov 14 |
olle |
143 |
</div> |
2933 |
14 Nov 14 |
olle |
144 |
|
2933 |
14 Nov 14 |
olle |
145 |
<div class="absolutefull" style="width: 34%; bottom: 8em; left: auto;"> |
2933 |
14 Nov 14 |
olle |
146 |
<div id="validationResult2" class="absolutefull topborder bottomborder leftborder" |
2933 |
14 Nov 14 |
olle |
147 |
style="left: 0.5em; display: none;"> |
2933 |
14 Nov 14 |
olle |
148 |
</div> |
2933 |
14 Nov 14 |
olle |
149 |
</div> |
2933 |
14 Nov 14 |
olle |
150 |
|
2933 |
14 Nov 14 |
olle |
151 |
<div class="absolutefull" id="workInProgress"> |
2933 |
14 Nov 14 |
olle |
152 |
<div id="createMissingItems" style="display:none; margin-top: 1em;"> |
2933 |
14 Nov 14 |
olle |
153 |
<base:buttongroup> |
2933 |
14 Nov 14 |
olle |
154 |
<base:button id="btnCreateMissingItems" title="Create missing items" image="add.png" /> |
2933 |
14 Nov 14 |
olle |
155 |
</base:buttongroup> |
2933 |
14 Nov 14 |
olle |
156 |
</div> |
2933 |
14 Nov 14 |
olle |
157 |
|
2933 |
14 Nov 14 |
olle |
158 |
<div id="fixIncompleteItems" style="display:none; margin-top: 1em;"> |
2933 |
14 Nov 14 |
olle |
159 |
<base:buttongroup> |
2933 |
14 Nov 14 |
olle |
160 |
<base:button id="btnFixItems" title="Fix items" image="fixit.png" /> |
2933 |
14 Nov 14 |
olle |
161 |
</base:buttongroup> |
2933 |
14 Nov 14 |
olle |
162 |
</div> |
2933 |
14 Nov 14 |
olle |
163 |
|
2933 |
14 Nov 14 |
olle |
164 |
<div id="wizard-status"></div> |
2933 |
14 Nov 14 |
olle |
165 |
</div> |
2933 |
14 Nov 14 |
olle |
166 |
|
2933 |
14 Nov 14 |
olle |
167 |
</div> |
2933 |
14 Nov 14 |
olle |
168 |
|
2933 |
14 Nov 14 |
olle |
169 |
</base:body> |
2933 |
14 Nov 14 |
olle |
170 |
</base:page> |
2933 |
14 Nov 14 |
olle |
171 |
<% |
2933 |
14 Nov 14 |
olle |
172 |
} |
2933 |
14 Nov 14 |
olle |
173 |
finally |
2933 |
14 Nov 14 |
olle |
174 |
{ |
2933 |
14 Nov 14 |
olle |
175 |
if (dc != null) dc.close(); |
2933 |
14 Nov 14 |
olle |
176 |
} |
2933 |
14 Nov 14 |
olle |
177 |
%> |