1 | <%-- $Id: view.jsp 4486 2008-09-08 06:58:19Z nicklas $ |
---|
2 | ------------------------------------------------------------------ |
---|
3 | Copyright (C) 2006 Jari Hakkinen, Nicklas Nordborg |
---|
4 | |
---|
5 | This file is part of BASE - BioArray Software Environment. |
---|
6 | Available at http://base.thep.lu.se/ |
---|
7 | |
---|
8 | BASE is free software; you can redistribute it and/or |
---|
9 | modify it under the terms of the GNU General Public License |
---|
10 | as published by the Free Software Foundation; either version 3 |
---|
11 | of the License, or (at your option) any later version. |
---|
12 | |
---|
13 | BASE is distributed in the hope that it will be useful, |
---|
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | GNU General Public License for more details. |
---|
17 | |
---|
18 | You should have received a copy of the GNU General Public License |
---|
19 | along with this program; if not, write to the Free Software |
---|
20 | Foundation, Inc., 59 Temple Place - Suite 330, |
---|
21 | Boston, MA 02111-1307, USA. |
---|
22 | ------------------------------------------------------------------ |
---|
23 | |
---|
24 | @author Nicklas |
---|
25 | @version 2.0 |
---|
26 | --%> |
---|
27 | <%@ page session="false" |
---|
28 | import="net.sf.basedb.core.SessionControl" |
---|
29 | import="net.sf.basedb.core.Item" |
---|
30 | import="net.sf.basedb.clients.web.Base" |
---|
31 | import="net.sf.basedb.clients.web.util.HTML" |
---|
32 | import="net.sf.basedb.util.Values" |
---|
33 | %> |
---|
34 | <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
---|
35 | <% |
---|
36 | final SessionControl sc = Base.getExistingSessionControl(pageContext, true); |
---|
37 | final String ID = sc.getId(); |
---|
38 | final String title = Values.getString(request.getParameter("title"), "View plot"); |
---|
39 | %> |
---|
40 | <base:page type="popup" title="<%=title%>"> |
---|
41 | <base:head> |
---|
42 | <script language="JavaScript"> |
---|
43 | // Initialise - set focus to filename field |
---|
44 | function view() |
---|
45 | { |
---|
46 | var url = window.opener.generatePlotUrl(true); |
---|
47 | var img = document.getElementById('plot'); |
---|
48 | img.realImg = new Image(); |
---|
49 | img.realImg.onload = switchImage; |
---|
50 | img.realImg.src = url; |
---|
51 | } |
---|
52 | function switchImage() |
---|
53 | { |
---|
54 | var img = document.getElementById('plot'); |
---|
55 | img.src = img.realImg.src; |
---|
56 | } |
---|
57 | </script> |
---|
58 | </base:head> |
---|
59 | <base:body onload="view()"> |
---|
60 | <p> |
---|
61 | |
---|
62 | <h3 class="docked"><%=title%></h3> |
---|
63 | <div class="boxed"> |
---|
64 | <img src="../../../images/plot_generating.gif" id="plot"> |
---|
65 | </div> |
---|
66 | |
---|
67 | <table align="center"> |
---|
68 | <tr> |
---|
69 | <td><base:button onclick="window.close();" title="Close" /></td> |
---|
70 | </tr> |
---|
71 | </table> |
---|
72 | |
---|
73 | |
---|
74 | </base:body> |
---|
75 | </base:page> |
---|