390 |
12 Apr 05 |
nicklas |
1 |
<%-- $Id$ |
390 |
12 Apr 05 |
nicklas |
2 |
------------------------------------------------------------------ |
3675 |
16 Aug 07 |
jari |
Copyright (C) 2005 Nicklas Nordborg |
5425 |
23 Sep 10 |
nicklas |
Copyright (C) 2006 Jari Häkkinen, Nicklas Nordborg, Martin Svensson |
390 |
12 Apr 05 |
nicklas |
5 |
|
2304 |
22 May 06 |
jari |
6 |
This file is part of BASE - BioArray Software Environment. |
2304 |
22 May 06 |
jari |
7 |
Available at http://base.thep.lu.se/ |
390 |
12 Apr 05 |
nicklas |
8 |
|
390 |
12 Apr 05 |
nicklas |
9 |
BASE is free software; you can redistribute it and/or |
390 |
12 Apr 05 |
nicklas |
10 |
modify it under the terms of the GNU General Public License |
4476 |
05 Sep 08 |
jari |
11 |
as published by the Free Software Foundation; either version 3 |
390 |
12 Apr 05 |
nicklas |
12 |
of the License, or (at your option) any later version. |
390 |
12 Apr 05 |
nicklas |
13 |
|
390 |
12 Apr 05 |
nicklas |
14 |
BASE is distributed in the hope that it will be useful, |
390 |
12 Apr 05 |
nicklas |
15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
390 |
12 Apr 05 |
nicklas |
16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
390 |
12 Apr 05 |
nicklas |
17 |
GNU General Public License for more details. |
390 |
12 Apr 05 |
nicklas |
18 |
|
390 |
12 Apr 05 |
nicklas |
19 |
You should have received a copy of the GNU General Public License |
4510 |
11 Sep 08 |
jari |
20 |
along with BASE. If not, see <http://www.gnu.org/licenses/>. |
390 |
12 Apr 05 |
nicklas |
21 |
------------------------------------------------------------------ |
390 |
12 Apr 05 |
nicklas |
22 |
|
390 |
12 Apr 05 |
nicklas |
23 |
Ask for confirmation to delete a preset. |
390 |
12 Apr 05 |
nicklas |
24 |
|
390 |
12 Apr 05 |
nicklas |
25 |
|
390 |
12 Apr 05 |
nicklas |
26 |
@author Nicklas |
390 |
12 Apr 05 |
nicklas |
27 |
@version 2.0 |
390 |
12 Apr 05 |
nicklas |
28 |
--%> |
5426 |
24 Sep 10 |
nicklas |
29 |
<%@ page pageEncoding="UTF-8" session="false" |
395 |
14 Apr 05 |
nicklas |
30 |
import="net.sf.basedb.core.SessionControl" |
395 |
14 Apr 05 |
nicklas |
31 |
import="net.sf.basedb.core.Item" |
390 |
12 Apr 05 |
nicklas |
32 |
import="net.sf.basedb.clients.web.Base" |
390 |
12 Apr 05 |
nicklas |
33 |
import="net.sf.basedb.clients.web.util.HTML" |
2753 |
20 Oct 06 |
nicklas |
34 |
import="net.sf.basedb.util.Values" |
390 |
12 Apr 05 |
nicklas |
35 |
%> |
390 |
12 Apr 05 |
nicklas |
36 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
390 |
12 Apr 05 |
nicklas |
37 |
<% |
522 |
04 May 05 |
nicklas |
38 |
final SessionControl sc = Base.getExistingSessionControl(pageContext, true); |
522 |
04 May 05 |
nicklas |
39 |
final String ID = sc.getId(); |
522 |
04 May 05 |
nicklas |
40 |
final Item itemType = Item.valueOf(request.getParameter("item_type")); |
2017 |
17 Feb 06 |
nicklas |
41 |
final String subContext = Values.getString(request.getParameter("subcontext"), ""); |
522 |
04 May 05 |
nicklas |
42 |
final String columns = request.getParameter("columns"); |
5111 |
30 Sep 09 |
nicklas |
43 |
final String settingName = Values.getString(request.getParameter("settingName"), "columns"); |
7982 |
14 Jun 21 |
nicklas |
44 |
final String stickyColumn = Values.getStringOrNull(request.getParameter("stickyColumn")); |
390 |
12 Apr 05 |
nicklas |
45 |
%> |
415 |
18 Apr 05 |
nicklas |
46 |
<base:page type="popup" title="Save preset"> |
6186 |
29 Oct 12 |
nicklas |
47 |
<base:head scripts="~save_preset.js" /> |
6186 |
29 Oct 12 |
nicklas |
48 |
<base:body> |
5907 |
13 Dec 11 |
nicklas |
49 |
<h1>Save preset <base:help helpid="columns.configure.saveas" /></h1> |
5907 |
13 Dec 11 |
nicklas |
50 |
|
6162 |
10 Oct 12 |
nicklas |
51 |
<form name="preset" action="submit_preset.jsp" method="post"> |
2017 |
17 Feb 06 |
nicklas |
52 |
<input type="hidden" name="ID" value="<%=ID%>"> |
2017 |
17 Feb 06 |
nicklas |
53 |
<input type="hidden" name="cmd" value="Save"> |
2017 |
17 Feb 06 |
nicklas |
54 |
<input type="hidden" name="columns" value="<%=HTML.encodeTags(columns)%>"> |
2017 |
17 Feb 06 |
nicklas |
55 |
<input type="hidden" name="item_type" value="<%=itemType.name()%>"> |
2017 |
17 Feb 06 |
nicklas |
56 |
<input type="hidden" name="subcontext" value="<%=subContext%>"> |
5111 |
30 Sep 09 |
nicklas |
57 |
<input type="hidden" name="settingName" value="<%=settingName%>"> |
7982 |
14 Jun 21 |
nicklas |
58 |
<% |
7982 |
14 Jun 21 |
nicklas |
59 |
if (stickyColumn != null) |
7982 |
14 Jun 21 |
nicklas |
60 |
{ |
7982 |
14 Jun 21 |
nicklas |
61 |
%> |
7982 |
14 Jun 21 |
nicklas |
62 |
<input type="hidden" name="stickyColumn" value="<%=HTML.encodeTags(stickyColumn)%>"> |
7982 |
14 Jun 21 |
nicklas |
63 |
<% |
7982 |
14 Jun 21 |
nicklas |
64 |
} |
7982 |
14 Jun 21 |
nicklas |
65 |
%> |
6607 |
19 Nov 14 |
nicklas |
66 |
<div class="content"> |
6607 |
19 Nov 14 |
nicklas |
67 |
<table class="fullform input100 smaller bottomborder"> |
390 |
12 Apr 05 |
nicklas |
68 |
<tr> |
5907 |
13 Dec 11 |
nicklas |
69 |
<th>Name</th> |
6186 |
29 Oct 12 |
nicklas |
70 |
<td><input class="text required auto-init" data-auto-init="focus" |
6186 |
29 Oct 12 |
nicklas |
71 |
type="text" name="name" value="" maxlength="40"></td> |
390 |
12 Apr 05 |
nicklas |
72 |
</tr> |
5907 |
13 Dec 11 |
nicklas |
73 |
<tr class="dynamic"> |
5907 |
13 Dec 11 |
nicklas |
74 |
<th></th> |
5971 |
17 Feb 12 |
nicklas |
75 |
<td></td> |
390 |
12 Apr 05 |
nicklas |
76 |
</tr> |
390 |
12 Apr 05 |
nicklas |
77 |
</table> |
390 |
12 Apr 05 |
nicklas |
78 |
</div> |
390 |
12 Apr 05 |
nicklas |
79 |
</form> |
522 |
04 May 05 |
nicklas |
80 |
|
5971 |
17 Feb 12 |
nicklas |
81 |
<div class="legend"> |
5971 |
17 Feb 12 |
nicklas |
82 |
<base:icon image="required.png" />= required information |
5971 |
17 Feb 12 |
nicklas |
83 |
</div> |
5971 |
17 Feb 12 |
nicklas |
84 |
|
5907 |
13 Dec 11 |
nicklas |
85 |
<base:buttongroup subclass="dialogbuttons"> |
6186 |
29 Oct 12 |
nicklas |
86 |
<base:button id="btnSave" title="Ok" /> |
6186 |
29 Oct 12 |
nicklas |
87 |
<base:button id="close" title="Cancel" /> |
5907 |
13 Dec 11 |
nicklas |
88 |
</base:buttongroup> |
522 |
04 May 05 |
nicklas |
89 |
|
415 |
18 Apr 05 |
nicklas |
90 |
</base:body> |
390 |
12 Apr 05 |
nicklas |
91 |
</base:page> |