root / hci / trunk / eneraptor-web-app / grails-app / views / statistics / graphs.gsp @ 67
History | View | Annotate | Download (3.7 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 | 63 | alexbesir | <p>Single device graphs:</p> |
13 | |||
14 | 42 | alexbesir | <table> |
15 | <thead> |
||
16 | <tr> |
||
17 | <th><p>Graph name (short description)</p></th> |
||
18 | <th><p>For device</p></th> |
||
19 | <th><p>Type</p></th> |
||
20 | 50 | alexbesir | <th style="width:78px;"><p>Options</p></th> |
21 | 42 | alexbesir | </tr> |
22 | </thead> |
||
23 | <tbody> |
||
24 | <g:each in="${savedGraphs}" var="savedGraph"> |
||
25 | <tr> |
||
26 | 63 | alexbesir | <td><p><erptr:icon w="chart_curve_single" /><g:link action="showGraph" id="${savedGraph.id}" >${savedGraph.name}</g:link></p></td> |
27 | 42 | alexbesir | <td><p>${savedGraph.deviceId}</p></td> |
28 | <td><p>${savedGraph.type}</p></td> |
||
29 | 50 | alexbesir | <td><p> |
30 | 63 | alexbesir | <g:link action="showGraph" id="${savedGraph.id}" title="View graph only" ><erptr:icon w="magnifier" /></g:link> |
31 | 50 | alexbesir | <g:link action="makeReport" id="${savedGraph.id}" title="Make report" ><erptr:icon w="report" /></g:link> |
32 | <g:link action="editGraph" id="${savedGraph.id}" title="Edit" ><erptr:icon w="pencil" /></g:link> |
||
33 | <g:link action="deleteGraph" id="${savedGraph.id}" title="Delete" ><erptr:icon w="delete" /></g:link> |
||
34 | </p></td> |
||
35 | 42 | alexbesir | </tr> |
36 | </g:each> |
||
37 | </tbody> |
||
38 | </table> |
||
39 | <g:if test="${savedGraphs.size == 0}"> |
||
40 | <center><p><i>There are no saved graphs.</i></p></center> |
||
41 | </g:if> |
||
42 | 63 | alexbesir | |
43 | <p>Combined graphs:</p> |
||
44 | |||
45 | <table> |
||
46 | <thead> |
||
47 | <tr> |
||
48 | <th><p>Graph name (short description)</p></th> |
||
49 | <th style="width:78px;"><p>Options</p></th> |
||
50 | </tr> |
||
51 | </thead> |
||
52 | <tbody> |
||
53 | <g:each in="${combinedGraphs}" var="combGraph"> |
||
54 | <tr> |
||
55 | <td><p><erptr:icon w="chart_curve" /><g:link action="showCombGraph" id="${combGraph.id}" >${combGraph.name}</g:link></p></td> |
||
56 | <td><p> |
||
57 | <g:link action="showCombGraph" id="${combGraph.id}" title="View graph only" ><erptr:icon w="magnifier" /></g:link> |
||
58 | <a><erptr:icon w="blank" /></a> |
||
59 | <g:link action="editCombGraph" id="${combGraph.id}" title="Edit" ><erptr:icon w="pencil" /></g:link> |
||
60 | <g:link action="deleteCombGraph" id="${combGraph.id}" title="Delete" ><erptr:icon w="delete" /></g:link> |
||
61 | </p></td> |
||
62 | </tr> |
||
63 | </g:each> |
||
64 | </tbody> |
||
65 | </table> |
||
66 | <g:if test="${combinedGraphs.size == 0}"> |
||
67 | <center><p><i>There are no saved graphs.</i></p></center> |
||
68 | </g:if> |
||
69 | 42 | alexbesir | |
70 | </erptr:box> |
||
71 | |||
72 | 63 | alexbesir | <erptr:box title="Create a new single device graph"> |
73 | 42 | alexbesir | <p>To create a new graph, select one of the graph types below:</p> |
74 | <table style="text-align:center;border:none;"> |
||
75 | <tr> |
||
76 | <td style="border:none;"><img src="${resource(dir:'img/',file:'min.png')}" /></td> |
||
77 | <td style="border:none;"><img src="${resource(dir:'img/',file:'max.png')}" /></td> |
||
78 | <td style="border:none;"><img src="${resource(dir:'img/',file:'avg.png')}" /></td> |
||
79 | <td style="border:none;"><img src="${resource(dir:'img/',file:'sum.png')}" /></td> |
||
80 | </tr> |
||
81 | <tr> |
||
82 | <td style="border:none;"><p><g:link action="newGraph" params="[graphType:'min']">Create a minimum value graph</g:link></p></td> |
||
83 | <td style="border:none;"><p><g:link action="newGraph" params="[graphType:'max']">Create a maximum value graph</g:link></p></td> |
||
84 | <td style="border:none;"><p><g:link action="newGraph" params="[graphType:'avg']">Create a average value graph</g:link></p></td> |
||
85 | <td style="border:none;"><p><g:link action="newGraph" params="[graphType:'sum']">Create a cumulative graph</g:link></p></td> |
||
86 | </tr> |
||
87 | </table> |
||
88 | </erptr:box> |
||
89 | 63 | alexbesir | |
90 | <erptr:box title="Create a new combined graph"> |
||
91 | <p>Combined graph is simply a set of single device graphs displayed as a single one.</p> |
||
92 | <p><g:link action="newCombGraph"><erptr:icon w="chart_curve_add" />Create a new combined graph</g:link></p> |
||
93 | </erptr:box> |
||
94 | 42 | alexbesir | |
95 | </body> |
||
96 | |||
97 | </html> |