5344 |
02 Apr 19 |
nicklas |
1 |
<%@ page |
5344 |
02 Apr 19 |
nicklas |
2 |
pageEncoding="UTF-8" |
5344 |
02 Apr 19 |
nicklas |
3 |
session="false" |
5344 |
02 Apr 19 |
nicklas |
4 |
import="net.sf.basedb.core.Application" |
5344 |
02 Apr 19 |
nicklas |
5 |
import="net.sf.basedb.core.User" |
5344 |
02 Apr 19 |
nicklas |
6 |
import="net.sf.basedb.core.DbControl" |
5344 |
02 Apr 19 |
nicklas |
7 |
import="net.sf.basedb.core.SessionControl" |
5344 |
02 Apr 19 |
nicklas |
8 |
import="net.sf.basedb.clients.web.Base" |
5344 |
02 Apr 19 |
nicklas |
9 |
import="net.sf.basedb.clients.web.util.HTML" |
5344 |
02 Apr 19 |
nicklas |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
5344 |
02 Apr 19 |
nicklas |
11 |
import="net.sf.basedb.util.Values" |
5344 |
02 Apr 19 |
nicklas |
12 |
%> |
5344 |
02 Apr 19 |
nicklas |
13 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
5344 |
02 Apr 19 |
nicklas |
14 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
5344 |
02 Apr 19 |
nicklas |
15 |
<% |
5344 |
02 Apr 19 |
nicklas |
16 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
5344 |
02 Apr 19 |
nicklas |
17 |
final String ID = sc.getId(); |
5344 |
02 Apr 19 |
nicklas |
18 |
final float scale = Base.getScale(sc); |
5344 |
02 Apr 19 |
nicklas |
19 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
5344 |
02 Apr 19 |
nicklas |
20 |
DbControl dc = null; |
5344 |
02 Apr 19 |
nicklas |
21 |
try |
5344 |
02 Apr 19 |
nicklas |
22 |
{ |
5344 |
02 Apr 19 |
nicklas |
23 |
dc = sc.newDbControl(); |
5344 |
02 Apr 19 |
nicklas |
24 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
5344 |
02 Apr 19 |
nicklas |
25 |
final String title = "Pause settings"; |
5344 |
02 Apr 19 |
nicklas |
26 |
%> |
5344 |
02 Apr 19 |
nicklas |
27 |
<base:page type="popup" title="<%=title%>"> |
5344 |
02 Apr 19 |
nicklas |
28 |
<base:head |
5344 |
02 Apr 19 |
nicklas |
29 |
scripts="~pause-settings.js,~../reggie-2.js" |
5344 |
02 Apr 19 |
nicklas |
30 |
styles="~../css/reggie-2.css" |
5344 |
02 Apr 19 |
nicklas |
31 |
> |
5344 |
02 Apr 19 |
nicklas |
32 |
<style> |
5344 |
02 Apr 19 |
nicklas |
33 |
.site |
5344 |
02 Apr 19 |
nicklas |
34 |
{ |
5344 |
02 Apr 19 |
nicklas |
35 |
padding: 2px; |
5344 |
02 Apr 19 |
nicklas |
36 |
} |
5344 |
02 Apr 19 |
nicklas |
37 |
.site input |
5344 |
02 Apr 19 |
nicklas |
38 |
{ |
5344 |
02 Apr 19 |
nicklas |
39 |
margin-right: 0.5em; |
5344 |
02 Apr 19 |
nicklas |
40 |
} |
5344 |
02 Apr 19 |
nicklas |
41 |
|
5344 |
02 Apr 19 |
nicklas |
42 |
.site :checked + label |
5344 |
02 Apr 19 |
nicklas |
43 |
{ |
5344 |
02 Apr 19 |
nicklas |
44 |
font-weight: bold; |
5344 |
02 Apr 19 |
nicklas |
45 |
color: #A0A0A0; |
5344 |
02 Apr 19 |
nicklas |
46 |
} |
5344 |
02 Apr 19 |
nicklas |
47 |
|
5344 |
02 Apr 19 |
nicklas |
48 |
</style> |
5344 |
02 Apr 19 |
nicklas |
49 |
|
5344 |
02 Apr 19 |
nicklas |
50 |
</base:head> |
5344 |
02 Apr 19 |
nicklas |
51 |
<base:body> |
5344 |
02 Apr 19 |
nicklas |
52 |
<h1><%=title %></h1> |
5344 |
02 Apr 19 |
nicklas |
53 |
|
5344 |
02 Apr 19 |
nicklas |
54 |
<form name="reggie" id="wizard"> |
5344 |
02 Apr 19 |
nicklas |
55 |
<div class="content bottomborder"> |
5344 |
02 Apr 19 |
nicklas |
56 |
<table class="fullform input100 step-form"> |
5344 |
02 Apr 19 |
nicklas |
57 |
<tr class="big"> |
5344 |
02 Apr 19 |
nicklas |
58 |
<th>Sites</th> |
5344 |
02 Apr 19 |
nicklas |
59 |
<td> |
5344 |
02 Apr 19 |
nicklas |
60 |
<div id="siteList"></div> |
5344 |
02 Apr 19 |
nicklas |
61 |
</td> |
5344 |
02 Apr 19 |
nicklas |
62 |
</tr> |
5344 |
02 Apr 19 |
nicklas |
63 |
<tr class="dynamic"> |
5344 |
02 Apr 19 |
nicklas |
64 |
<th></th> |
5344 |
02 Apr 19 |
nicklas |
65 |
<td> |
5344 |
02 Apr 19 |
nicklas |
66 |
<div id="wizard-status"></div> |
5344 |
02 Apr 19 |
nicklas |
67 |
</td> |
5344 |
02 Apr 19 |
nicklas |
68 |
</tr> |
5344 |
02 Apr 19 |
nicklas |
69 |
</table> |
5344 |
02 Apr 19 |
nicklas |
70 |
</div> |
5344 |
02 Apr 19 |
nicklas |
71 |
</form> |
5344 |
02 Apr 19 |
nicklas |
72 |
|
5344 |
02 Apr 19 |
nicklas |
73 |
<base:buttongroup subclass="dialogbuttons" id="dialogbuttons"> |
5344 |
02 Apr 19 |
nicklas |
74 |
<base:button id="btnSave" title="Save" /> |
5344 |
02 Apr 19 |
nicklas |
75 |
<base:button id="close" title="Cancel" /> |
5344 |
02 Apr 19 |
nicklas |
76 |
</base:buttongroup> |
5344 |
02 Apr 19 |
nicklas |
77 |
</base:body> |
5344 |
02 Apr 19 |
nicklas |
78 |
</base:page> |
5344 |
02 Apr 19 |
nicklas |
79 |
<% |
5344 |
02 Apr 19 |
nicklas |
80 |
} |
5344 |
02 Apr 19 |
nicklas |
81 |
finally |
5344 |
02 Apr 19 |
nicklas |
82 |
{ |
5344 |
02 Apr 19 |
nicklas |
83 |
if (dc != null) dc.close(); |
5344 |
02 Apr 19 |
nicklas |
84 |
} |
5344 |
02 Apr 19 |
nicklas |
85 |
%> |