source: branches/2.8-stable/www/common/columns/confirm_delete.jsp @ 4506

Last change on this file since 4506 was 4506, checked in by Nicklas Nordborg, 14 years ago

References #118: Change problematic forms to use POST instead of GET

I have changed most of the forms I could find to use POST instead of GET. Many of them are probably not problematic, but I found some:

  • Form for JEP extra value calculator plug-in
  • Form for JEP intensity transformer plug-in
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1<%-- $Id: confirm_delete.jsp 4506 2008-09-11 09:29:40Z nicklas $
2  ------------------------------------------------------------------
3  Copyright (C) 2005 Nicklas Nordborg
4  Copyright (C) 2006 Jari Hakkinen, Nicklas Nordborg
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 this program; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place - Suite 330,
22  Boston, MA  02111-1307, USA.
23  ------------------------------------------------------------------
24
25  Ask for confirmation to delete a preset.
26
27  @author Nicklas
28  @version 2.0
29--%>
30<%@ page session="false"
31  import="net.sf.basedb.core.SessionControl"
32  import="net.sf.basedb.core.Item"
33  import="net.sf.basedb.clients.web.Base"
34  import="net.sf.basedb.clients.web.util.HTML"
35%>
36<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
37<%
38final SessionControl sc = Base.getExistingSessionControl(pageContext, true);
39final String ID = sc.getId();
40final Item itemType = Item.valueOf(request.getParameter("item_type"));
41final String name = request.getParameter("name");
42final String selectedIndex = request.getParameter("selected_index");
43%>
44<base:page type="popup" title="Delete preset?">
45<base:head />
46<base:body>
47  <p>
48  <base:note type="question" title="Delete preset?">
49    Are you sure you want to delete the preset <span class="parameter"><%=HTML.encodeTags(name)%></span>?
50  </base:note>
51  <p>
52  <form action="submit_preset.jsp" method="post" name="confirm">
53    <input type=hidden name="ID" value="<%=ID%>">
54    <input type=hidden name="cmd" value="Delete">
55    <input type=hidden name="name" value="<%=HTML.encodeTags(name)%>">
56    <input type=hidden name="item_type" value="<%=itemType.name()%>">
57    <input type=hidden name="selected_index" value="<%=selectedIndex%>">
58  </form>
59
60  <table align="center">
61  <tr>
62    <td width="50%"><base:button onclick="document.forms['confirm'].submit();" title="Yes" /></td>
63    <td width="50%"><base:button onclick="window.close();" title="No" /></td>
64  </tr>
65  </table>
66</base:body>
67</base:page>
Note: See TracBrowser for help on using the repository browser.