root / hci / trunk / eneraptor-web-app / grails-app / views / layouts / main.gsp @ 5
History | View | Annotate | Download (2.18 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 | <div id="header"> |
||
19 | <h2> </h2> |
||
20 | <div id="topmenu"> |
||
21 | <ul> |
||
22 | <erptr:menu chosen="${controllerName}" /> |
||
23 | </ul> |
||
24 | </div><!-- /topmenu --> |
||
25 | <div id="top-panel"> |
||
26 | <div id="panel"> |
||
27 | <ul> |
||
28 | <erptr:subMenu menu="${controllerName}" /> |
||
29 | </ul> |
||
30 | </div><!-- /panel --> |
||
31 | </div><!-- /top-pannel --> |
||
32 | </div><!-- /header --> |
||
33 | |||
34 | <div id="wrapper"> |
||
35 | <div id="content"> |
||
36 | <g:if test="${flash.errors}"> |
||
37 | <erptr:errorBox> |
||
38 | ${flash.errors} |
||
39 | </erptr:errorBox> |
||
40 | </g:if> |
||
41 | <g:if test="${flash.confirms}"> |
||
42 | <erptr:confirmBox> |
||
43 | ${flash.confirms} |
||
44 | </erptr:confirmBox> |
||
45 | </g:if> |
||
46 | <g:layoutBody /> |
||
47 | </div><!-- /content --> |
||
48 | </div><!-- /wrapper --> |
||
49 | |||
50 | <div id="footer"> |
||
51 | <div id="credits"> |
||
52 | Copyright (c) 2011 by Eneraptor Team |
||
53 | </div> |
||
54 | <br /> |
||
55 | </div><!-- /footer --> |
||
56 | |||
57 | </div><!-- /container --> |
||
58 | |||
59 | <g:javascript> |
||
60 | function onLoadDo() { |
||
61 | <g:if test="${flash.confirms}"> |
||
62 | new Effect.Pulsate('confirmBox',{pulses:2, duration: 0.2, from: 0.5}) |
||
63 | new Effect.Fade('confirmBox', {duration: 3, delay: 3}); |
||
64 | </g:if> |
||
65 | <g:if test="${flash.errors}"> |
||
66 | new Effect.Shake('errorBox', {duration: 0.2, distance: 5}) |
||
67 | </g:if> |
||
68 | } |
||
69 | </g:javascript> |
||
70 | |||
71 | </body> |
||
72 | </html> |