2463 |
02 Jun 14 |
olle |
1 |
<%@ page |
2463 |
02 Jun 14 |
olle |
2 |
pageEncoding="UTF-8" |
2463 |
02 Jun 14 |
olle |
3 |
session="false" |
2463 |
02 Jun 14 |
olle |
4 |
import="net.sf.basedb.core.User" |
2463 |
02 Jun 14 |
olle |
5 |
import="net.sf.basedb.core.DbControl" |
2463 |
02 Jun 14 |
olle |
6 |
import="net.sf.basedb.core.SessionControl" |
2463 |
02 Jun 14 |
olle |
7 |
import="net.sf.basedb.core.Application" |
2463 |
02 Jun 14 |
olle |
8 |
import="net.sf.basedb.clients.web.Base" |
2463 |
02 Jun 14 |
olle |
9 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
2463 |
02 Jun 14 |
olle |
10 |
%> |
2463 |
02 Jun 14 |
olle |
11 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
2463 |
02 Jun 14 |
olle |
12 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
2463 |
02 Jun 14 |
olle |
13 |
<% |
2463 |
02 Jun 14 |
olle |
14 |
final SessionControl sc = Base.getExistingSessionControl(request, true); |
2463 |
02 Jun 14 |
olle |
15 |
final String ID = sc.getId(); |
2463 |
02 Jun 14 |
olle |
16 |
final float scale = Base.getScale(sc); |
2481 |
04 Jun 14 |
olle |
17 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.labenv.service"); |
2463 |
02 Jun 14 |
olle |
18 |
DbControl dc = null; |
2463 |
02 Jun 14 |
olle |
19 |
try |
2463 |
02 Jun 14 |
olle |
20 |
{ |
2463 |
02 Jun 14 |
olle |
21 |
dc = sc.newDbControl(); |
2463 |
02 Jun 14 |
olle |
22 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
2463 |
02 Jun 14 |
olle |
23 |
%> |
2463 |
02 Jun 14 |
olle |
24 |
<base:page type="popup" title="LabEnv"> |
2989 |
02 Dec 14 |
olle |
25 |
<base:head |
3735 |
10 Feb 16 |
olle |
26 |
scripts="~../labenv.js,~labenvironmentdatabaseeventpopup.js,~boxplot.js" |
3735 |
10 Feb 16 |
olle |
27 |
styles="path.css,~../css/labenv.css,~../css/report.css" |
2989 |
02 Dec 14 |
olle |
28 |
> |
3735 |
10 Feb 16 |
olle |
29 |
<link rel="stylesheet" type="text/css" href="../css/labenv.css"> |
2463 |
02 Jun 14 |
olle |
30 |
|
2989 |
02 Dec 14 |
olle |
31 |
<style> |
2463 |
02 Jun 14 |
olle |
32 |
canvas |
2463 |
02 Jun 14 |
olle |
33 |
{ |
2463 |
02 Jun 14 |
olle |
34 |
width: 700px; |
2463 |
02 Jun 14 |
olle |
35 |
height: 550px; |
2463 |
02 Jun 14 |
olle |
36 |
} |
2989 |
02 Dec 14 |
olle |
37 |
.guide |
2989 |
02 Dec 14 |
olle |
38 |
{ |
2989 |
02 Dec 14 |
olle |
39 |
position: absolute; |
2989 |
02 Dec 14 |
olle |
40 |
z-index: 99; |
2989 |
02 Dec 14 |
olle |
41 |
display: none; |
2989 |
02 Dec 14 |
olle |
42 |
background-color: #224488; |
2989 |
02 Dec 14 |
olle |
43 |
} |
2463 |
02 Jun 14 |
olle |
44 |
</style> |
2989 |
02 Dec 14 |
olle |
45 |
</base:head> |
2989 |
02 Dec 14 |
olle |
46 |
<base:body> |
2463 |
02 Jun 14 |
olle |
47 |
<p:path><p:pathelement |
2463 |
02 Jun 14 |
olle |
48 |
title="" href="<%="./labenvironmentdatabaseeventpopup.jsp?ID="+ID%>" |
2463 |
02 Jun 14 |
olle |
49 |
/><p:pathelement id="pageTitleId" title="Lab environment event display" |
2463 |
02 Jun 14 |
olle |
50 |
/></p:path> |
2989 |
02 Dec 14 |
olle |
51 |
<div id="x-guide" class="guide" style="width: 1px;"></div> |
2989 |
02 Dec 14 |
olle |
52 |
<div id="y-guide" class="guide" style="height: 1px;"></div> |
4525 |
15 Jun 17 |
nicklas |
53 |
<div class="content bottomborder"> |
2463 |
02 Jun 14 |
olle |
54 |
|
2989 |
02 Dec 14 |
olle |
55 |
<form name="labenv" id="wizard" class="wizard"> |
2989 |
02 Dec 14 |
olle |
56 |
|
2463 |
02 Jun 14 |
olle |
57 |
<div id="reportSection" style="display:block;"> |
2463 |
02 Jun 14 |
olle |
58 |
<p></p> |
4525 |
15 Jun 17 |
nicklas |
59 |
<table style="width: 100%;"> |
2463 |
02 Jun 14 |
olle |
60 |
<tr> |
2481 |
04 Jun 14 |
olle |
61 |
<td id="reportcell"> |
2463 |
02 Jun 14 |
olle |
62 |
<div id="reportdiv" style="text-align: center;"> |
2463 |
02 Jun 14 |
olle |
63 |
<div class="loading" id="loading"> |
2463 |
02 Jun 14 |
olle |
64 |
<table> |
2463 |
02 Jun 14 |
olle |
65 |
<tr> |
2463 |
02 Jun 14 |
olle |
66 |
<td><img src="../images/loading.gif"></td> |
2463 |
02 Jun 14 |
olle |
67 |
<td id="loading.msg">Generating report...</td> |
2463 |
02 Jun 14 |
olle |
68 |
</tr> |
2463 |
02 Jun 14 |
olle |
69 |
</table> |
2463 |
02 Jun 14 |
olle |
70 |
</div> |
2463 |
02 Jun 14 |
olle |
71 |
</div> |
2463 |
02 Jun 14 |
olle |
72 |
</td> |
2463 |
02 Jun 14 |
olle |
73 |
</tr> |
2463 |
02 Jun 14 |
olle |
74 |
</table> |
2463 |
02 Jun 14 |
olle |
75 |
</div> |
2463 |
02 Jun 14 |
olle |
76 |
</form> |
2463 |
02 Jun 14 |
olle |
77 |
</div> |
2463 |
02 Jun 14 |
olle |
78 |
|
2989 |
02 Dec 14 |
olle |
79 |
<div id="wizard-status"></div> |
2989 |
02 Dec 14 |
olle |
80 |
|
2541 |
03 Jul 14 |
olle |
81 |
<div class="messagecontainer error" id="errorMessage" style="display: none; width: 950px; margin-left: 20px; margin-top: 80px; margin-bottom: 0px;"></div> |
2541 |
03 Jul 14 |
olle |
82 |
|
2463 |
02 Jun 14 |
olle |
83 |
<base:buttongroup subclass="dialogbuttons"> |
2989 |
02 Dec 14 |
olle |
84 |
<base:button id="goprint" image="<%=home+"/images/print.png"%>" title="Print…" /> |
4525 |
15 Jun 17 |
nicklas |
85 |
<base:button id="gocancel" title="Close" /> |
2463 |
02 Jun 14 |
olle |
86 |
</base:buttongroup> |
2463 |
02 Jun 14 |
olle |
87 |
|
2463 |
02 Jun 14 |
olle |
88 |
</base:body> |
2463 |
02 Jun 14 |
olle |
89 |
</base:page> |
2463 |
02 Jun 14 |
olle |
90 |
<% |
2463 |
02 Jun 14 |
olle |
91 |
} |
2463 |
02 Jun 14 |
olle |
92 |
finally |
2463 |
02 Jun 14 |
olle |
93 |
{ |
2463 |
02 Jun 14 |
olle |
94 |
if (dc != null) dc.close(); |
2463 |
02 Jun 14 |
olle |
95 |
} |
2463 |
02 Jun 14 |
olle |
96 |
%> |