root / hci / trunk / eneraptor-web-app / grails-app / views / layouts / main.gsp @ 66
History | View | Annotate | Download (3.25 KB)
1 | 3 | alexbesir | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|---|---|---|
2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
||
3 | <head> |
||
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
||
5 | <title>Eneraptor » <g:layoutTitle /></title> |
||
6 | <link rel="stylesheet" type="text/css" href="${g.resource(dir:'css/', file:'theme.css')}" /> |
||
7 | <link rel="stylesheet" type="text/css" href="${g.resource(dir:'css/', file:'style.css')}" /> |
||
8 | <!--[if IE]> |
||
9 | <link rel="stylesheet" type="text/css" href="${g.resource(dir:'css/', file:'ie-sucks.css')}" /> |
||
10 | <![endif]--> |
||
11 | <g:layoutHead /> |
||
12 | <g:javascript library="scriptaculous" /> |
||
13 | </head> |
||
14 | |||
15 | <body onload="onLoadDo();"> |
||
16 | <div id="container"> |
||
17 | <img style="position:absolute;top:-0px;" src="${g.resource(dir: 'img/', file: 'logo.jpg')}" /> |
||
18 | 42 | alexbesir | |
19 | <!-- Energy saved --> |
||
20 | <div style="position:absolute;top:10px;"> |
||
21 | 66 | alexbesir | <div style="position:relative;left:650px;top:15px;"> |
22 | <select style="width:310px;" onchange="location.href=escape(this.options[this.selectedIndex].value)"> |
||
23 | <g:each in="${com.eneraptor.hci.HardwareSet.list()}" var="hwSet"> |
||
24 | <g:if test="${hwSet.id == session.hwSet.id}"> |
||
25 | <option value="${createLink(controller:'chooseHwSet',action:'change',id:hwSet.id)}" selected="selected">${hwSet.name}</option> |
||
26 | </g:if> |
||
27 | <g:else> |
||
28 | <option value="${createLink(controller:'chooseHwSet',action:'change',id:hwSet.id)}">${hwSet.name}</option> |
||
29 | </g:else> |
||
30 | </g:each> |
||
31 | </select> |
||
32 | 42 | alexbesir | </div> |
33 | </div> |
||
34 | <!-- / Energy saved --> |
||
35 | |||
36 | 3 | alexbesir | <div id="header"> |
37 | <h2> </h2> |
||
38 | <div id="topmenu"> |
||
39 | <ul> |
||
40 | <erptr:menu chosen="${controllerName}" /> |
||
41 | </ul> |
||
42 | </div><!-- /topmenu --> |
||
43 | <div id="top-panel"> |
||
44 | <div id="panel"> |
||
45 | <ul> |
||
46 | 6 | alexbesir | <erptr:subMenu menu="${controllerName}" chosen="${actionName}" /> |
47 | 3 | alexbesir | </ul> |
48 | </div><!-- /panel --> |
||
49 | </div><!-- /top-pannel --> |
||
50 | </div><!-- /header --> |
||
51 | |||
52 | <div id="wrapper"> |
||
53 | <div id="content"> |
||
54 | <g:if test="${flash.errors}"> |
||
55 | <erptr:errorBox> |
||
56 | ${flash.errors} |
||
57 | </erptr:errorBox> |
||
58 | </g:if> |
||
59 | <g:if test="${flash.confirms}"> |
||
60 | <erptr:confirmBox> |
||
61 | ${flash.confirms} |
||
62 | </erptr:confirmBox> |
||
63 | </g:if> |
||
64 | 6 | alexbesir | <g:if test="${flash.warnings}"> |
65 | <erptr:warningBox> |
||
66 | ${flash.warnings} |
||
67 | </erptr:warningBox> |
||
68 | </g:if> |
||
69 | 3 | alexbesir | <g:layoutBody /> |
70 | </div><!-- /content --> |
||
71 | </div><!-- /wrapper --> |
||
72 | |||
73 | <div id="footer"> |
||
74 | <div id="credits"> |
||
75 | Copyright (c) 2011 by Eneraptor Team |
||
76 | </div> |
||
77 | <br /> |
||
78 | </div><!-- /footer --> |
||
79 | |||
80 | </div><!-- /container --> |
||
81 | |||
82 | <g:javascript> |
||
83 | function onLoadDo() { |
||
84 | <g:if test="${flash.confirms}"> |
||
85 | 58 | alexbesir | new Effect.Pulsate('confirmBox',{pulses:2, duration: 0.2, from: 0.5}); |
86 | 3 | alexbesir | new Effect.Fade('confirmBox', {duration: 3, delay: 3}); |
87 | </g:if> |
||
88 | <g:if test="${flash.errors}"> |
||
89 | 58 | alexbesir | new Effect.Shake('errorBox', {duration: 0.2, distance: 5}); |
90 | 3 | alexbesir | </g:if> |
91 | 6 | alexbesir | <g:if test="${flash.warnings}"> |
92 | 58 | alexbesir | new Effect.Pulsate('warningBox',{pulses:2, duration: 0.2, from: 0.5}); |
93 | 6 | alexbesir | </g:if> |
94 | 58 | alexbesir | <g:if test="${includeToOnLoadDo}"> |
95 | includeToOnLoadDo(); |
||
96 | </g:if> |
||
97 | 3 | alexbesir | } |
98 | </g:javascript> |
||
99 | |||
100 | </body> |
||
101 | </html> |