root / hci / trunk / eneraptor-web-app / grails-app / views / statistics / graphs.gsp @ 50
History | View | Annotate | Download (2.41 KB)
1 | 42 | alexbesir | <html> |
---|---|---|---|
2 | |||
3 | <head> |
||
4 | <title>Statistics</title> |
||
5 | <meta name="layout" content="main" /> |
||
6 | </head> |
||
7 | |||
8 | <body> |
||
9 | |||
10 | <erptr:box title="Saved graphs"> |
||
11 | |||
12 | <table> |
||
13 | <thead> |
||
14 | <tr> |
||
15 | <th><p>Graph name (short description)</p></th> |
||
16 | <th><p>For device</p></th> |
||
17 | <th><p>Type</p></th> |
||
18 | 50 | alexbesir | <th style="width:78px;"><p>Options</p></th> |
19 | 42 | alexbesir | </tr> |
20 | </thead> |
||
21 | <tbody> |
||
22 | <g:each in="${savedGraphs}" var="savedGraph"> |
||
23 | <tr> |
||
24 | 50 | alexbesir | <td><p><erptr:icon w="chart_curve" /><g:link action="showGraph" id="${savedGraph.id}" >${savedGraph.name}</g:link></p></td> |
25 | 42 | alexbesir | <td><p>${savedGraph.deviceId}</p></td> |
26 | <td><p>${savedGraph.type}</p></td> |
||
27 | 50 | alexbesir | <td><p> |
28 | <g:link action="showGraph" id="${savedGraph.id}" title="View graph only" ><erptr:icon w="chart_line" /></g:link> |
||
29 | <g:link action="makeReport" id="${savedGraph.id}" title="Make report" ><erptr:icon w="report" /></g:link> |
||
30 | <g:link action="editGraph" id="${savedGraph.id}" title="Edit" ><erptr:icon w="pencil" /></g:link> |
||
31 | <g:link action="deleteGraph" id="${savedGraph.id}" title="Delete" ><erptr:icon w="delete" /></g:link> |
||
32 | </p></td> |
||
33 | 42 | alexbesir | </tr> |
34 | </g:each> |
||
35 | </tbody> |
||
36 | </table> |
||
37 | <g:if test="${savedGraphs.size == 0}"> |
||
38 | <center><p><i>There are no saved graphs.</i></p></center> |
||
39 | </g:if> |
||
40 | |||
41 | </erptr:box> |
||
42 | |||
43 | <erptr:box title="Create a new graph"> |
||
44 | <p>To create a new graph, select one of the graph types below:</p> |
||
45 | <table style="text-align:center;border:none;"> |
||
46 | <tr> |
||
47 | <td style="border:none;"><img src="${resource(dir:'img/',file:'min.png')}" /></td> |
||
48 | <td style="border:none;"><img src="${resource(dir:'img/',file:'max.png')}" /></td> |
||
49 | <td style="border:none;"><img src="${resource(dir:'img/',file:'avg.png')}" /></td> |
||
50 | <td style="border:none;"><img src="${resource(dir:'img/',file:'sum.png')}" /></td> |
||
51 | </tr> |
||
52 | <tr> |
||
53 | <td style="border:none;"><p><g:link action="newGraph" params="[graphType:'min']">Create a minimum value graph</g:link></p></td> |
||
54 | <td style="border:none;"><p><g:link action="newGraph" params="[graphType:'max']">Create a maximum value graph</g:link></p></td> |
||
55 | <td style="border:none;"><p><g:link action="newGraph" params="[graphType:'avg']">Create a average value graph</g:link></p></td> |
||
56 | <td style="border:none;"><p><g:link action="newGraph" params="[graphType:'sum']">Create a cumulative graph</g:link></p></td> |
||
57 | </tr> |
||
58 | </table> |
||
59 | </erptr:box> |
||
60 | |||
61 | </body> |
||
62 | |||
63 | </html> |