source: trunk/www/common/overview/frameset.jsp @ 5919

Last change on this file since 5919 was 5919, checked in by Nicklas Nordborg, 10 years ago

References #1655: GUI improvements

Fixes image alignment in several places.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 3.7 KB
Line 
1<%-- $Id: frameset.jsp 5919 2012-01-09 13:51:06Z nicklas $
2  ------------------------------------------------------------------
3  Copyright (C) 2009 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 BASE. If not, see <http://www.gnu.org/licenses/>.
20  ------------------------------------------------------------------
21--%>
22<%@ page pageEncoding="UTF-8" session="false"
23  import="net.sf.basedb.core.SessionControl"
24  import="net.sf.basedb.core.DbControl"
25  import="net.sf.basedb.core.Permission"
26  import="net.sf.basedb.core.Item"
27  import="net.sf.basedb.core.SystemItems"
28  import="net.sf.basedb.clients.web.Base"
29  import="net.sf.basedb.util.Values"
30%>
31<%@ taglib
32  prefix="base" uri="/WEB-INF/base.tld"
33%>
34<%
35final SessionControl sc = Base.getExistingSessionControl(pageContext, true);
36final String ID = sc.getId();
37final String showFailures = request.getParameter("show_failures");
38final String root = request.getContextPath();
39%>
40<base:page type="popup" title="">
41  <base:head scripts="dragdrop.js">
42  <script>
43 
44  function repositionX(deltaX, deltaY)
45  {
46    var f1 = document.getElementById('f1');
47    var d1 = document.getElementById('d1');
48    var f2 = document.getElementById('f2');
49
50    f1.style.width = (parseInt(f1.style.width) +deltaX) + 'px';
51    d1.style.left = (parseInt(d1.style.left) + deltaX) + 'px';
52    f2.style.left = (parseInt(f2.style.left) + deltaX) + 'px';
53  }
54  function repositionY(deltaX, deltaY)
55  {
56    var f3 = document.getElementById('f3');
57    var d2 = document.getElementById('d2');
58    var f4 = document.getElementById('f4');
59
60    f3.style.bottom = (parseInt(f3.style.bottom) + deltaY) + 'px';
61    d2.style.bottom = (parseInt(d2.style.bottom) + deltaY) + 'px';
62    f4.style.height = (parseInt(f4.style.height) + deltaY) + 'px';
63  }
64  </script>
65  </base:head>
66  <base:body>
67    <div class="absolutefull" onmousemove="DragDrop.drag(event)" onmouseup="DragDrop.endDrag(event)">
68      <div id="f1" class="absolutefull" style="width: 394px;"><iframe name="tree" 
69          src="<%=root %>/common/overview/tree.jsp?ID=<%=ID%>&show_failures=<%=showFailures%>" 
70          style="width: 100%; height: 100%;"
71        ></iframe></div>
72       
73      <div id="d1" class="absolutefull filled leftborder rightborder" 
74        style="left: 394px; width: 4px; cursor: col-resize; z-index: 99;"
75        onmousedown="DragDrop.beginDrag(event, true, false, repositionX)" 
76        ></div>
77     
78      <div id="f2" class="absolutefull" style="left: 400px;">
79       
80        <div id="f3" class="absolutefull" style="bottom: 250px;"><iframe name="info" 
81            src="<%=root %>/common/overview/info.jsp?ID=<%=ID%>&show_failures=<%=showFailures%>"
82            style="width: 100%; height: 100%;"
83          ></iframe></div>
84         
85        <div id="d2" class="absolutefull filled topborder bottomborder" 
86          style="bottom: 244px; height: 4px; top: auto; cursor: row-resize; z-index: 99;"
87          onmousedown="DragDrop.beginDrag(event, false, true, repositionY)" 
88          ></div>
89
90        <div id="f4" class="absolutefull" style="height: 244px; bottom: 0px; top: auto;"><iframe name="failures"
91            src="<%=root %>/common/overview/failures.jsp?ID=<%=ID%>&show_failures=<%=showFailures%>"
92            style="width: 100%; height: 100%;"
93          ></iframe></div>
94      </div>
95    </div>
96  </base:body>
97</base:page>
98
Note: See TracBrowser for help on using the repository browser.