source: trunk/www/admin/plugindefinitions/auto_install.jsp @ 3706

Last change on this file since 3706 was 3706, checked in by Martin Svensson, 14 years ago

References #364 Started updating the GUI to support auto installation of plugins

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1<%-- $Id: auto_install.jsp 3706 2007-08-30 13:59:49Z martin $
2  ------------------------------------------------------------------
3  Copyright (C) 2007 Johan Enell, 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 2
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
25  @author Martin
26  @version 2.5
27--%>
28<%@ page session="false"
29
30  import="net.sf.basedb.core.DbControl"
31  import="net.sf.basedb.core.Item"
32  import="net.sf.basedb.core.ItemContext"
33  import="net.sf.basedb.core.SessionControl"
34  import="net.sf.basedb.util.PluginInfo"
35  import="net.sf.basedb.clients.web.util.HTML"
36  import="net.sf.basedb.clients.web.Base"
37 
38  import="java.util.List"
39  import="java.util.ArrayList"
40%>
41<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
42<%@ taglib prefix="t" uri="/WEB-INF/tab.tld" %>
43<%
44final Item itemType = Item.PLUGINDEFINITION;
45final SessionControl sc = Base.getExistingSessionControl(pageContext, true);
46final ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, null, null);
47//final int itemId = cc.getId();
48final String ID = sc.getId();
49final float scale = Base.getScale(sc);
50final DbControl dc = sc.newDbControl();
51
52try
53{
54  String title = "Plugin Autoinstaller";
55  java.io.File pluginDir = new java.io.File(request.getParameter("plugin_path"));
56 
57  %>
58  <base:page type="popup" title="<%=title%>">
59  <base:head scripts="tabcontrol.js" styles="tabcontrol.css">
60    <script language="JavaScript">
61   
62    // Submit the form
63    function saveSettings(install)
64    {
65      var frm = document.forms['autoinstall'];
66      frm.submit();
67    }
68    </script>
69  </base:head>
70  <base:body>
71    <form name="autoinstall" action="index.jsp" method="get" onsubmit="return false;">
72    <input type="hidden" name="ID" value="<%=ID%>">
73    <input type="hidden" name="cmd" value="LoadPlugins">
74   
75    <table align="center">
76    <tr>
77      <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
78      <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
79    </tr>
80    </table>
81  </base:body> 
82  </base:page>
83  <% 
84}
85finally
86{
87  if (dc != null) dc.close();
88}
89%>
Note: See TracBrowser for help on using the repository browser.