source: trunk/www/admin/extensions/frameset.jsp @ 5938

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

References #1655: GUI improvements

  • Trashcan and file manager
  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 2.4 KB
Line 
1<%-- $Id: frameset.jsp 5938 2012-01-27 14:17:51Z nicklas $
2  ------------------------------------------------------------------
3  Copyright (C) 2006 Jari Häkkinen, 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  @author Nicklas
23  @version 2.0
24--%>
25<%@ page pageEncoding="UTF-8" session="false"
26  import="net.sf.basedb.core.SessionControl"
27  import="net.sf.basedb.clients.web.Base"
28  import="net.sf.basedb.util.Values"
29%>
30<%@ taglib
31  prefix="base" uri="/WEB-INF/base.tld"
32%>
33<%
34SessionControl sc = Base.getExistingSessionControl(pageContext, true);
35String ID = sc.getId();
36%>
37
38<base:page type="frameset" title="">
39  <base:head scripts="dragdrop.js">
40  <script>
41 
42  function repositionX(deltaX, deltaY)
43  {
44    var f1 = document.getElementById('f1');
45    var d1 = document.getElementById('d1');
46    var f2 = document.getElementById('f2');
47
48    f1.style.width = (parseInt(f1.style.width) +deltaX) + 'px';
49    d1.style.left = (parseInt(d1.style.left) + deltaX) + 'px';
50    f2.style.left = (parseInt(f2.style.left) + deltaX) + 'px';
51  }
52  </script>
53  </base:head>
54  <base:body>
55    <div class="absolutefull" onmousemove="DragDrop.drag(event)" onmouseup="DragDrop.endDrag(event)">
56      <div id="f1" class="absolutefull" style="width: 294px;"><iframe name="tree" 
57          src="tree.jsp?ID=<%=ID%>" 
58          style="width: 100%; height: 100%;"
59        ></iframe></div>
60       
61      <div id="d1" class="absolutefull filled leftborder rightborder" 
62        style="left: 294px; width: 4px; cursor: col-resize; z-index: 99;"
63        onmousedown="DragDrop.beginDrag(event, true, false, repositionX)" 
64        ></div>
65     
66      <div id="f2" class="absolutefull" style="left: 300px;"><iframe name="details" 
67        src="details.jsp?ID=<%=ID%>"
68        style="width: 100%; height: 100%;"
69        ></iframe></div>
70      </div>
71    </div>
72  </base:body>
73</base:page>
74
Note: See TracBrowser for help on using the repository browser.