2978 |
25 Nov 14 |
nicklas |
1 |
<%-- |
2978 |
25 Nov 14 |
nicklas |
Copyright (C) 2011 Nicklas Nordborg |
2978 |
25 Nov 14 |
nicklas |
3 |
|
2978 |
25 Nov 14 |
nicklas |
4 |
This file is part of the Example Code Package for BASE. |
2978 |
25 Nov 14 |
nicklas |
5 |
Available at http://baseplugins.thep.lu.se/ |
2978 |
25 Nov 14 |
nicklas |
6 |
BASE main site: http://base.thep.lu.se/ |
2978 |
25 Nov 14 |
nicklas |
7 |
|
2978 |
25 Nov 14 |
nicklas |
8 |
This is free software; you can redistribute it and/or |
2978 |
25 Nov 14 |
nicklas |
9 |
modify it under the terms of the GNU General Public License |
2978 |
25 Nov 14 |
nicklas |
10 |
as published by the Free Software Foundation; either version 3 |
2978 |
25 Nov 14 |
nicklas |
11 |
of the License, or (at your option) any later version. |
2978 |
25 Nov 14 |
nicklas |
12 |
|
2978 |
25 Nov 14 |
nicklas |
13 |
The software is distributed in the hope that it will be useful, |
2978 |
25 Nov 14 |
nicklas |
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
2978 |
25 Nov 14 |
nicklas |
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2978 |
25 Nov 14 |
nicklas |
16 |
GNU General Public License for more details. |
2978 |
25 Nov 14 |
nicklas |
17 |
|
2978 |
25 Nov 14 |
nicklas |
18 |
You should have received a copy of the GNU General Public License |
2978 |
25 Nov 14 |
nicklas |
19 |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
2978 |
25 Nov 14 |
nicklas |
20 |
--%> |
2978 |
25 Nov 14 |
nicklas |
21 |
<%@ page |
2978 |
25 Nov 14 |
nicklas |
22 |
pageEncoding="UTF-8" |
2978 |
25 Nov 14 |
nicklas |
23 |
session="false" |
2978 |
25 Nov 14 |
nicklas |
24 |
import="net.sf.basedb.core.Application" |
2978 |
25 Nov 14 |
nicklas |
25 |
import="net.sf.basedb.core.SessionControl" |
2978 |
25 Nov 14 |
nicklas |
26 |
import="net.sf.basedb.core.DbControl" |
2978 |
25 Nov 14 |
nicklas |
27 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
2978 |
25 Nov 14 |
nicklas |
28 |
import="net.sf.basedb.clients.web.Base" |
2978 |
25 Nov 14 |
nicklas |
29 |
import="net.sf.basedb.clients.web.util.HTML" |
2978 |
25 Nov 14 |
nicklas |
30 |
%> |
2978 |
25 Nov 14 |
nicklas |
31 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
2978 |
25 Nov 14 |
nicklas |
32 |
<% |
2978 |
25 Nov 14 |
nicklas |
33 |
final SessionControl sc = Base.getExistingSessionControl(pageContext, true); |
2978 |
25 Nov 14 |
nicklas |
34 |
final String ID = sc.getId(); |
2978 |
25 Nov 14 |
nicklas |
35 |
|
2978 |
25 Nov 14 |
nicklas |
36 |
ExtensionsControl ec = ExtensionsControl.get(null); |
2978 |
25 Nov 14 |
nicklas |
37 |
String serverIdText = ec.getSetting("net.sf.basedb.skincollection.server-id", "data-text"); |
2978 |
25 Nov 14 |
nicklas |
38 |
%> |
2978 |
25 Nov 14 |
nicklas |
39 |
<base:page type="popup" title="Skin options"> |
2978 |
25 Nov 14 |
nicklas |
40 |
<base:head scripts="~options.js" /> |
2978 |
25 Nov 14 |
nicklas |
41 |
<base:body> |
2978 |
25 Nov 14 |
nicklas |
42 |
<h1>Skin options</h1> |
2978 |
25 Nov 14 |
nicklas |
43 |
<form name="options" action="submit.jsp?ID=<%=ID%>" method="POST"> |
2978 |
25 Nov 14 |
nicklas |
44 |
<input type="hidden" name="cmd" value="SaveOptions"> |
2978 |
25 Nov 14 |
nicklas |
45 |
|
2978 |
25 Nov 14 |
nicklas |
46 |
<div class="content bottomborder"> |
2978 |
25 Nov 14 |
nicklas |
47 |
<table class="fullform input100"> |
2978 |
25 Nov 14 |
nicklas |
48 |
<tr> |
2978 |
25 Nov 14 |
nicklas |
49 |
<th>Server ID</th> |
2978 |
25 Nov 14 |
nicklas |
50 |
<td><input type="text" name="server-id-text" id="server-id-text" class="auto-init" data-auto-init="focus" |
2978 |
25 Nov 14 |
nicklas |
51 |
value="<%=HTML.encodeTags(serverIdText)%>"></td> |
2978 |
25 Nov 14 |
nicklas |
52 |
</tr> |
2978 |
25 Nov 14 |
nicklas |
53 |
<tr class="dynamic"> |
2978 |
25 Nov 14 |
nicklas |
54 |
<th></th> |
2978 |
25 Nov 14 |
nicklas |
55 |
<td> |
2978 |
25 Nov 14 |
nicklas |
56 |
<div class="messagecontainer note"> |
2978 |
25 Nov 14 |
nicklas |
57 |
Set the "Server ID" text in the above text field or leave it |
2978 |
25 Nov 14 |
nicklas |
58 |
empty to automatically use the server name and first part of |
2978 |
25 Nov 14 |
nicklas |
59 |
the URL. HTML is allowed so be careful! |
2978 |
25 Nov 14 |
nicklas |
60 |
</div> |
2978 |
25 Nov 14 |
nicklas |
61 |
</td> |
2978 |
25 Nov 14 |
nicklas |
62 |
</tr> |
2978 |
25 Nov 14 |
nicklas |
63 |
</table> |
2978 |
25 Nov 14 |
nicklas |
64 |
</div> |
2978 |
25 Nov 14 |
nicklas |
65 |
</form> |
2978 |
25 Nov 14 |
nicklas |
66 |
|
2978 |
25 Nov 14 |
nicklas |
67 |
<base:buttongroup subclass="dialogbuttons"> |
2978 |
25 Nov 14 |
nicklas |
68 |
<base:button id="btnSave" title="Save" /> |
2978 |
25 Nov 14 |
nicklas |
69 |
<base:button id="close" title="Cancel" /> |
2978 |
25 Nov 14 |
nicklas |
70 |
</base:buttongroup> |
2978 |
25 Nov 14 |
nicklas |
71 |
|
2978 |
25 Nov 14 |
nicklas |
72 |
</base:body> |
2978 |
25 Nov 14 |
nicklas |
73 |
</base:page> |
2978 |
25 Nov 14 |
nicklas |
74 |
|