216 |
22 Mar 05 |
nicklas |
1 |
<%-- $Id$ |
216 |
22 Mar 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 |
216 |
22 Mar 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/ |
216 |
22 Mar 05 |
nicklas |
8 |
|
216 |
22 Mar 05 |
nicklas |
9 |
BASE is free software; you can redistribute it and/or |
216 |
22 Mar 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 |
216 |
22 Mar 05 |
nicklas |
12 |
of the License, or (at your option) any later version. |
216 |
22 Mar 05 |
nicklas |
13 |
|
216 |
22 Mar 05 |
nicklas |
14 |
BASE is distributed in the hope that it will be useful, |
216 |
22 Mar 05 |
nicklas |
15 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
216 |
22 Mar 05 |
nicklas |
16 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
216 |
22 Mar 05 |
nicklas |
17 |
GNU General Public License for more details. |
216 |
22 Mar 05 |
nicklas |
18 |
|
216 |
22 Mar 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/>. |
216 |
22 Mar 05 |
nicklas |
21 |
------------------------------------------------------------------ |
216 |
22 Mar 05 |
nicklas |
22 |
|
216 |
22 Mar 05 |
nicklas |
23 |
Closes a popup window. |
216 |
22 Mar 05 |
nicklas |
24 |
|
216 |
22 Mar 05 |
nicklas |
25 |
@param message |
216 |
22 Mar 05 |
nicklas |
26 |
A message to display before the popup is closed. If not |
216 |
22 Mar 05 |
nicklas |
27 |
specified the value "Settings saved" are used. |
216 |
22 Mar 05 |
nicklas |
28 |
|
216 |
22 Mar 05 |
nicklas |
29 |
@param title |
367 |
05 Apr 05 |
nicklas |
30 |
The title of the page. |
216 |
22 Mar 05 |
nicklas |
31 |
|
216 |
22 Mar 05 |
nicklas |
32 |
@param wait |
216 |
22 Mar 05 |
nicklas |
33 |
Milliseconds to wait before the popup is closed. If not |
216 |
22 Mar 05 |
nicklas |
34 |
specified 1200 is used. |
216 |
22 Mar 05 |
nicklas |
35 |
|
216 |
22 Mar 05 |
nicklas |
36 |
@param redirect_opener |
216 |
22 Mar 05 |
nicklas |
37 |
If specified the window that opened the popup will be redirected |
6203 |
13 Nov 12 |
nicklas |
38 |
to this URL. |
216 |
22 Mar 05 |
nicklas |
39 |
|
216 |
22 Mar 05 |
nicklas |
40 |
@param refresh_opener |
216 |
22 Mar 05 |
nicklas |
41 |
If specified with a non-zero value the window that opened |
6203 |
13 Nov 12 |
nicklas |
42 |
the popup will be reloaded. Ignored if redirect_opener is |
6203 |
13 Nov 12 |
nicklas |
43 |
specified. |
6218 |
19 Dec 12 |
nicklas |
44 |
|
6218 |
19 Dec 12 |
nicklas |
45 |
@param notify_opener |
6218 |
19 Dec 12 |
nicklas |
46 |
If specified an custom event is sent to the opener window. |
216 |
22 Mar 05 |
nicklas |
47 |
|
216 |
22 Mar 05 |
nicklas |
48 |
@author Nicklas |
216 |
22 Mar 05 |
nicklas |
49 |
@version 2.0 |
216 |
22 Mar 05 |
nicklas |
50 |
--%> |
5426 |
24 Sep 10 |
nicklas |
51 |
<%@ page pageEncoding="UTF-8" session="false" |
2753 |
20 Oct 06 |
nicklas |
52 |
import="net.sf.basedb.util.Values" |
6203 |
13 Nov 12 |
nicklas |
53 |
import="net.sf.basedb.clients.web.util.HTML" |
216 |
22 Mar 05 |
nicklas |
54 |
%> |
216 |
22 Mar 05 |
nicklas |
55 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
216 |
22 Mar 05 |
nicklas |
56 |
<% |
216 |
22 Mar 05 |
nicklas |
57 |
String message = Values.getString(request.getParameter("message"),""); |
216 |
22 Mar 05 |
nicklas |
58 |
String title = Values.getString(request.getParameter("title"), message); |
216 |
22 Mar 05 |
nicklas |
59 |
int millisecondsToWait = Values.getInt(request.getParameter("wait"), 1200); |
216 |
22 Mar 05 |
nicklas |
60 |
String redirectOpener = request.getParameter("redirect_opener"); |
6203 |
13 Nov 12 |
nicklas |
61 |
boolean refreshOpener = Values.getBoolean(request.getParameter("refresh_opener")); |
6218 |
19 Dec 12 |
nicklas |
62 |
String notifyOpener = request.getParameter("notify_opener"); |
216 |
22 Mar 05 |
nicklas |
63 |
%> |
415 |
18 Apr 05 |
nicklas |
64 |
<base:page type="popup" title="<%=title%>"> |
6203 |
13 Nov 12 |
nicklas |
65 |
<base:head scripts="~close_popup.js" /> |
6540 |
26 Sep 14 |
nicklas |
66 |
<base:body data-no-dialog-position="1"> |
6387 |
18 Dec 13 |
nicklas |
67 |
<div id="page-data" class="datacontainer" |
6218 |
19 Dec 12 |
nicklas |
68 |
data-wait="<%=millisecondsToWait%>" |
6218 |
19 Dec 12 |
nicklas |
69 |
data-refresh-opener="<%=refreshOpener ? "1" : "0" %>" |
6203 |
13 Nov 12 |
nicklas |
70 |
data-redirect-opener="<%=HTML.encodeTags(redirectOpener)%>" |
6218 |
19 Dec 12 |
nicklas |
71 |
data-notify-opener="<%=HTML.encodeTags(notifyOpener)%>" |
6203 |
13 Nov 12 |
nicklas |
72 |
></div> |
5907 |
13 Dec 11 |
nicklas |
73 |
<h1><%=title%></h1> |
5907 |
13 Dec 11 |
nicklas |
74 |
<div class="content"> |
6607 |
19 Nov 14 |
nicklas |
75 |
<table class="fullcc bg-filled-50 bottomborder"><tr><td> |
5907 |
13 Dec 11 |
nicklas |
76 |
<b><%=message%></b> |
5907 |
13 Dec 11 |
nicklas |
77 |
</td></tr></table> |
5907 |
13 Dec 11 |
nicklas |
78 |
</div> |
415 |
18 Apr 05 |
nicklas |
79 |
</base:body> |
216 |
22 Mar 05 |
nicklas |
80 |
</base:page> |