Revision 69 hci/trunk/eneraptor-web-app/grails-app/views/statistics/showGraph.gsp

View differences:

showGraph.gsp
15 15
				lines: { show: true },
16 16
				points: { show: true },
17 17
				xaxis: { mode: "time", timeformat: "%y/%m/%d %H:%M" },
18
				legend: { container: '#legendHolder' }
18
				legend: { container: '#legendHolder' },
19
				grid: {
20
					markings: [
21
						<g:each in="${actionLog}" var="al">
22
							<g:if test="${al == actionLog[-1]}">
23
								{ color: 'red', lineWidth: 1, xaxis: { from: ${al.dateRecieved.time}, to: ${al.dateRecieved.time} } }
24
							</g:if>
25
							<g:else>
26
								{ color: 'red', lineWidth: 1, xaxis: { from: ${al.dateRecieved.time}, to: ${al.dateRecieved.time} } },
27
							</g:else>
28
						</g:each>
29
					]
30
				}
19 31
			};
20 32
		</g:javascript>
21 33
		<div class="chart">
......
24 36
		<br />
25 37
		<p>Legend:</p>
26 38
		<div id="legendHolder" name="legendHolder"></div>
39
		<br />
40
		<p>Display actions:</p>
41
		<g:form action="showGraph" method="GET">
42
			<g:hiddenField name="id" value="${params.id}" />
43
			<g:select name="outputDevice" from="${outputDevices}" optionKey="deviceId" optionValue="friendlyName" noSelection="['none':'- None -']" style="width:350px;" value="${params.outputDevice}" />
44
			&nbsp;&nbsp;&nbsp;
45
			<g:submitButton name="outputDeviceSubmit" value="Update" />
46
		</g:form>
47
		<br />
27 48
		
28 49
	</erptr:box>
29 50

  

Also available in: Unified diff