source: extensions/net.sf.basedb.reggie/trunk/resources/admin/grid/list-clusters.jsp @ 2298

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

References #533: Add secondary analysis section to Reggie

Reorganize a few files.

File size: 2.2 KB
Line 
1<%@ page
2  pageEncoding="UTF-8"
3  session="false"
4  import="net.sf.basedb.core.Application"
5  import="net.sf.basedb.core.User"
6  import="net.sf.basedb.core.DbControl"
7  import="net.sf.basedb.core.SessionControl"
8  import="net.sf.basedb.clients.web.Base"
9  import="net.sf.basedb.clients.web.util.HTML"
10  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
11  import="net.sf.basedb.util.Values"
12%>
13<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
14<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
15<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %>
16<%
17final SessionControl sc = Base.getExistingSessionControl(request, true);
18final String ID = sc.getId();
19final float scale = Base.getScale(sc);
20final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie");
21DbControl dc = null;
22try
23{
24  dc = sc.newDbControl();
25  final User user = User.getById(dc, sc.getLoggedInUserId());
26%>
27<base:page type="default" >
28<base:head 
29  scripts="~../../reggie.js,~list-clusters.js" 
30  styles="path.css,table.css,toolbar.css,~../../css/reggie.css">
31<style>
32.ogs-status
33{
34  width: 24px;
35  text-align: center;
36}
37</style>
38</base:head>
39<base:body>
40
41  <p:path><p:pathelement 
42    title="Reggie" href="<%="../../index.jsp?ID="+ID%>" 
43    /><p:pathelement title="Open Grid Scheduler" 
44    /></p:path>
45
46  <div class="content">
47
48    <tbl:table 
49      id="ogs"
50      style="margin: 1em; width: auto;" 
51      >
52      <tbl:columndef 
53        id="status"
54        title=""
55      />
56      <tbl:columndef 
57        id="name"
58        title="Name"
59      />
60      <tbl:columndef 
61        id="ip"
62        title="IP address"
63      />
64      <tbl:columndef 
65        id="info"
66        title="Info"
67      />
68     
69      <tbl:toolbar
70        subclass="topborder leftborder rightborder"
71        >
72        <tbl:button 
73          id="btnReload"
74          image="refresh.png" 
75          title="Reload configuration" 
76          tooltip="Reload Open Grid Scheduler configuration file" 
77        />
78      </tbl:toolbar>
79      <tbl:data>
80        <tbl:headers>
81          <tbl:headerrow id="row-template">
82            <tbl:columnheaders />
83          </tbl:headerrow>
84        </tbl:headers>
85        <tbl:rows id="all-rows">         
86        </tbl:rows>
87      </tbl:data>
88    </tbl:table>
89  </div>
90 
91</base:body>
92</base:page>
93<%
94}
95finally
96{
97  if (dc != null) dc.close();
98}
99%>
Note: See TracBrowser for help on using the repository browser.