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