Statistics
| Revision:

root / hci / trunk / eneraptor-web-app / grails-app / views / layouts / main.gsp @ 6

History | View | Annotate | Download (2.45 KB)

1
<!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 &raquo; <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>&nbsp;</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}" chosen="${actionName}" />
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:if test="${flash.warnings}">
47
					<erptr:warningBox>
48
						${flash.warnings}
49
					</erptr:warningBox>
50
				</g:if>
51
       			<g:layoutBody />
52
       		</div><!-- /content -->
53
 		</div><!-- /wrapper -->
54
 		
55
   		<div id="footer">
56
   			<div id="credits">
57
				Copyright (c) 2011 by Eneraptor Team
58
   			</div>
59
   			<br />
60
		</div><!-- /footer -->
61
		
62
	</div><!-- /container -->
63
	
64
	<g:javascript>
65
	function onLoadDo() {
66
		<g:if test="${flash.confirms}">
67
			new Effect.Pulsate('confirmBox',{pulses:2, duration: 0.2, from: 0.5})
68
			new Effect.Fade('confirmBox', {duration: 3, delay: 3});		
69
		</g:if>
70
		<g:if test="${flash.errors}">
71
			new Effect.Shake('errorBox', {duration: 0.2, distance: 5})	
72
		</g:if>
73
		<g:if test="${flash.warnings}">
74
			new Effect.Pulsate('warningBox',{pulses:2, duration: 0.2, from: 0.5})
75
		</g:if>
76
	}
77
	</g:javascript>
78
	
79
</body>
80
</html>