2415 |
09 May 14 |
olle |
1 |
<%@ page |
2415 |
09 May 14 |
olle |
2 |
pageEncoding="UTF-8" |
2415 |
09 May 14 |
olle |
3 |
session="false" |
2415 |
09 May 14 |
olle |
4 |
import="net.sf.basedb.core.User" |
2415 |
09 May 14 |
olle |
5 |
import="net.sf.basedb.core.DbControl" |
2415 |
09 May 14 |
olle |
6 |
import="net.sf.basedb.core.SessionControl" |
2415 |
09 May 14 |
olle |
7 |
import="net.sf.basedb.core.Application" |
2415 |
09 May 14 |
olle |
8 |
import="net.sf.basedb.clients.web.Base" |
2415 |
09 May 14 |
olle |
9 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
2415 |
09 May 14 |
olle |
10 |
%> |
2415 |
09 May 14 |
olle |
11 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
2415 |
09 May 14 |
olle |
12 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
4527 |
20 Jun 17 |
nicklas |
13 |
<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %> |
2415 |
09 May 14 |
olle |
14 |
<% |
2415 |
09 May 14 |
olle |
15 |
final SessionControl sc = Base.getExistingSessionControl(request, true); |
2415 |
09 May 14 |
olle |
16 |
final String ID = sc.getId(); |
2415 |
09 May 14 |
olle |
17 |
final float scale = Base.getScale(sc); |
4527 |
20 Jun 17 |
nicklas |
18 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.labenv.menu"); |
2415 |
09 May 14 |
olle |
19 |
DbControl dc = null; |
2415 |
09 May 14 |
olle |
20 |
try |
2415 |
09 May 14 |
olle |
21 |
{ |
2415 |
09 May 14 |
olle |
22 |
dc = sc.newDbControl(); |
2415 |
09 May 14 |
olle |
23 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
2415 |
09 May 14 |
olle |
24 |
%> |
2415 |
09 May 14 |
olle |
25 |
<base:page type="default" > |
2989 |
02 Dec 14 |
olle |
26 |
<base:head |
3735 |
10 Feb 16 |
olle |
27 |
scripts="~../labenv.js,~labenvironmentalarms.js" |
4527 |
20 Jun 17 |
nicklas |
28 |
styles="path.css,table.css,~../css/labenv.css" |
2989 |
02 Dec 14 |
olle |
29 |
> |
4527 |
20 Jun 17 |
nicklas |
30 |
<style> |
4527 |
20 Jun 17 |
nicklas |
31 |
#alarms div.data > table |
4527 |
20 Jun 17 |
nicklas |
32 |
{ |
4527 |
20 Jun 17 |
nicklas |
33 |
border-left: 0; |
4527 |
20 Jun 17 |
nicklas |
34 |
border-right: 0; |
4527 |
20 Jun 17 |
nicklas |
35 |
} |
4527 |
20 Jun 17 |
nicklas |
36 |
#alarms div.data > table td |
4527 |
20 Jun 17 |
nicklas |
37 |
{ |
4527 |
20 Jun 17 |
nicklas |
38 |
padding: 3px; |
4527 |
20 Jun 17 |
nicklas |
39 |
} |
2989 |
02 Dec 14 |
olle |
40 |
|
4527 |
20 Jun 17 |
nicklas |
41 |
#alarms div.data > table td.id-col, #alarms div.data > table th.id-col |
4527 |
20 Jun 17 |
nicklas |
42 |
{ |
4527 |
20 Jun 17 |
nicklas |
43 |
text-align: right; |
4527 |
20 Jun 17 |
nicklas |
44 |
width: 3em; |
4527 |
20 Jun 17 |
nicklas |
45 |
padding-right: 0.5em; |
4527 |
20 Jun 17 |
nicklas |
46 |
} |
4527 |
20 Jun 17 |
nicklas |
47 |
</style> |
4527 |
20 Jun 17 |
nicklas |
48 |
</base:head> |
4527 |
20 Jun 17 |
nicklas |
49 |
<base:body> |
4527 |
20 Jun 17 |
nicklas |
50 |
|
4527 |
20 Jun 17 |
nicklas |
51 |
<p:path><p:pathelement title="Lab sensor alarms" /></p:path> |
4527 |
20 Jun 17 |
nicklas |
52 |
|
4527 |
20 Jun 17 |
nicklas |
53 |
<div class="content wizard" id="wizard"> |
4527 |
20 Jun 17 |
nicklas |
54 |
|
4527 |
20 Jun 17 |
nicklas |
55 |
<tbl:table id="alarms" style="display: none;"> |
4527 |
20 Jun 17 |
nicklas |
56 |
<tbl:columndef |
4527 |
20 Jun 17 |
nicklas |
57 |
id="alarmId" |
4527 |
20 Jun 17 |
nicklas |
58 |
title="##" |
4527 |
20 Jun 17 |
nicklas |
59 |
subclass="id-col" |
4527 |
20 Jun 17 |
nicklas |
60 |
/> |
4527 |
20 Jun 17 |
nicklas |
61 |
<tbl:columndef |
4527 |
20 Jun 17 |
nicklas |
62 |
id="sensorName" |
4527 |
20 Jun 17 |
nicklas |
63 |
title="Sensor" |
4527 |
20 Jun 17 |
nicklas |
64 |
/> |
4527 |
20 Jun 17 |
nicklas |
65 |
<tbl:columndef |
4527 |
20 Jun 17 |
nicklas |
66 |
id="url" |
4527 |
20 Jun 17 |
nicklas |
67 |
title="URL" |
4527 |
20 Jun 17 |
nicklas |
68 |
/> |
4527 |
20 Jun 17 |
nicklas |
69 |
<tbl:columndef |
4527 |
20 Jun 17 |
nicklas |
70 |
id="startTime" |
4527 |
20 Jun 17 |
nicklas |
71 |
title="Start time" |
4527 |
20 Jun 17 |
nicklas |
72 |
/> |
4527 |
20 Jun 17 |
nicklas |
73 |
<tbl:columndef |
4527 |
20 Jun 17 |
nicklas |
74 |
id="endTime" |
4527 |
20 Jun 17 |
nicklas |
75 |
title="End time" |
4527 |
20 Jun 17 |
nicklas |
76 |
/> |
4527 |
20 Jun 17 |
nicklas |
77 |
<tbl:columndef |
4527 |
20 Jun 17 |
nicklas |
78 |
id="weekdayFilter" |
4534 |
21 Jun 17 |
nicklas |
79 |
title="Weekday" |
4527 |
20 Jun 17 |
nicklas |
80 |
/> |
4527 |
20 Jun 17 |
nicklas |
81 |
<tbl:columndef |
4527 |
20 Jun 17 |
nicklas |
82 |
id="minTemp" |
4534 |
21 Jun 17 |
nicklas |
83 |
title="Min" |
4527 |
20 Jun 17 |
nicklas |
84 |
/> |
4527 |
20 Jun 17 |
nicklas |
85 |
<tbl:columndef |
4527 |
20 Jun 17 |
nicklas |
86 |
id="maxTemp" |
4534 |
21 Jun 17 |
nicklas |
87 |
title="Max" |
4527 |
20 Jun 17 |
nicklas |
88 |
/> |
4527 |
20 Jun 17 |
nicklas |
89 |
<tbl:columndef |
4527 |
20 Jun 17 |
nicklas |
90 |
id="minHumidity" |
4534 |
21 Jun 17 |
nicklas |
91 |
title="Min" |
4527 |
20 Jun 17 |
nicklas |
92 |
/> |
4527 |
20 Jun 17 |
nicklas |
93 |
<tbl:columndef |
4527 |
20 Jun 17 |
nicklas |
94 |
id="maxHumidity" |
4534 |
21 Jun 17 |
nicklas |
95 |
title="Max" |
4527 |
20 Jun 17 |
nicklas |
96 |
/> |
4527 |
20 Jun 17 |
nicklas |
97 |
<tbl:columndef |
4527 |
20 Jun 17 |
nicklas |
98 |
id="blocked" |
4527 |
20 Jun 17 |
nicklas |
99 |
title="Blocked" |
4527 |
20 Jun 17 |
nicklas |
100 |
/> |
4527 |
20 Jun 17 |
nicklas |
101 |
<tbl:columndef |
4527 |
20 Jun 17 |
nicklas |
102 |
id="alarmText" |
4527 |
20 Jun 17 |
nicklas |
103 |
title="Alarm" |
4527 |
20 Jun 17 |
nicklas |
104 |
/> |
4527 |
20 Jun 17 |
nicklas |
105 |
<tbl:data style="border-right: 0; border-left: 0;"> |
4527 |
20 Jun 17 |
nicklas |
106 |
<tbl:headers> |
4534 |
21 Jun 17 |
nicklas |
107 |
<tbl:headerrow> |
4534 |
21 Jun 17 |
nicklas |
108 |
<th></th> |
4534 |
21 Jun 17 |
nicklas |
109 |
<th></th> |
4534 |
21 Jun 17 |
nicklas |
110 |
<th></th> |
4534 |
21 Jun 17 |
nicklas |
111 |
<th colspan="3">Filter</th> |
4534 |
21 Jun 17 |
nicklas |
112 |
<th colspan="2">Temperature</th> |
4534 |
21 Jun 17 |
nicklas |
113 |
<th colspan="2">Humidity</th> |
4534 |
21 Jun 17 |
nicklas |
114 |
<th></th> |
4534 |
21 Jun 17 |
nicklas |
115 |
<th></th> |
4534 |
21 Jun 17 |
nicklas |
116 |
</tbl:headerrow> |
4527 |
20 Jun 17 |
nicklas |
117 |
<tbl:headerrow id="row-template"> |
4527 |
20 Jun 17 |
nicklas |
118 |
<tbl:columnheaders /> |
4527 |
20 Jun 17 |
nicklas |
119 |
</tbl:headerrow> |
4527 |
20 Jun 17 |
nicklas |
120 |
</tbl:headers> |
4527 |
20 Jun 17 |
nicklas |
121 |
<tbl:rows id="all-rows"> |
4527 |
20 Jun 17 |
nicklas |
122 |
</tbl:rows> |
4527 |
20 Jun 17 |
nicklas |
123 |
</tbl:data> |
4527 |
20 Jun 17 |
nicklas |
124 |
</tbl:table> |
4527 |
20 Jun 17 |
nicklas |
125 |
|
4527 |
20 Jun 17 |
nicklas |
126 |
<div id="wizard-status"></div> |
4527 |
20 Jun 17 |
nicklas |
127 |
|
4527 |
20 Jun 17 |
nicklas |
128 |
<table class="navigation" id="navigation"> |
4527 |
20 Jun 17 |
nicklas |
129 |
<tr> |
4527 |
20 Jun 17 |
nicklas |
130 |
<td><base:button id="gosetalarmblocker" title="Set alarm blocker" image="<%=home + "/images/gonext.png"%>" /></td> |
4527 |
20 Jun 17 |
nicklas |
131 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
4527 |
20 Jun 17 |
nicklas |
132 |
</tr> |
4527 |
20 Jun 17 |
nicklas |
133 |
</table> |
4527 |
20 Jun 17 |
nicklas |
134 |
|
4527 |
20 Jun 17 |
nicklas |
135 |
</div> |
4527 |
20 Jun 17 |
nicklas |
136 |
|
2415 |
09 May 14 |
olle |
137 |
</base:body> |
2415 |
09 May 14 |
olle |
138 |
</base:page> |
2415 |
09 May 14 |
olle |
139 |
<% |
2415 |
09 May 14 |
olle |
140 |
} |
2415 |
09 May 14 |
olle |
141 |
finally |
2415 |
09 May 14 |
olle |
142 |
{ |
2415 |
09 May 14 |
olle |
143 |
if (dc != null) dc.close(); |
2415 |
09 May 14 |
olle |
144 |
} |
2415 |
09 May 14 |
olle |
145 |
%> |