1 |
<%args> |
<%args> |
2 |
title; |
title; |
3 |
</%args> |
</%args> |
4 |
|
<%session scope="global"> |
5 |
|
std::string userName; |
6 |
|
bool isAdmin; |
7 |
|
</%session> |
8 |
<{ |
<{ |
9 |
|
|
10 |
|
//reply.setContentType("text/html; charset=UTF-8"); |
11 |
|
|
12 |
if (title.size() > 0) |
if (title.size() > 0) |
13 |
{ |
{ |
14 |
title = std::string(" - ") + title; |
title = std::string(" - ") + title; |
15 |
} |
} |
16 |
|
|
17 |
|
//Cache control |
18 |
|
reply.setHeader("Cache-Control", "no-cache, must-revalidate"); // Http/1.1 |
19 |
|
reply.setHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT"); //date in the past |
20 |
}> |
}> |
21 |
|
|
22 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> |
23 |
<html> |
<html> |
24 |
<head> |
<head> |
25 |
<title>Serren boiler monitor system<$ title $> </title> |
<title>Serren furnace monitor system<$ title $> </title> |
26 |
|
<link rel="stylesheet" type="text/css" href="/stylesheet.css"> |
|
<style type="text/css"> |
|
|
|
|
|
#menubg { |
|
|
background: #ff0000; |
|
|
color: #ffffff; |
|
|
margin: 8px; |
|
|
position: absolute; |
|
|
top: 0px; |
|
|
left: 0px; |
|
|
width: 170px; |
|
|
min-height: 420px; |
|
|
border-width: 1px; |
|
|
border-color: black; |
|
|
border-style: solid; |
|
|
} |
|
|
|
|
|
|
|
|
#menubox{ |
|
|
margin:8px; |
|
|
margin-top:20px; |
|
|
} |
|
|
|
|
|
.menu { |
|
|
color: #ffffff; |
|
|
} |
|
|
|
|
|
body { |
|
|
margin-left: 190px; |
|
|
margin-right: 100px; |
|
|
color: #000000; |
|
|
background: #ffffff; |
|
|
} |
|
|
|
|
|
|
|
|
h1 { |
|
|
text-align: center; |
|
|
} |
|
|
|
|
|
h2 { |
|
|
text-align: center; |
|
|
} |
|
|
|
|
|
</style> |
|
27 |
|
|
28 |
</head> |
</head> |
29 |
<body> |
<body> |
37 |
<a class="menu" href="index">Index</a><br> |
<a class="menu" href="index">Index</a><br> |
38 |
<a class="menu" href="critical">Critical systems</a><br> |
<a class="menu" href="critical">Critical systems</a><br> |
39 |
<a class="menu" href="customerlist">Customers & installations</a><br> |
<a class="menu" href="customerlist">Customers & installations</a><br> |
40 |
|
|
41 |
<br><br><br> |
<br> |
42 |
|
|
43 |
|
<{ |
44 |
|
if (userName.size() > 0) { |
45 |
|
}> |
46 |
|
<p class="menu">Logged in as <$ userName $></p> |
47 |
|
<a class="menu" href="adm_customer_list">Customer admin</a><br> |
48 |
|
<{ |
49 |
|
if (isAdmin) { |
50 |
|
}> |
51 |
|
<a class="menu" href="adm_users_list">User admin</a><br> |
52 |
|
<{ |
53 |
|
} else { |
54 |
|
}> |
55 |
|
<div class="menu">User admin</div><br> |
56 |
|
<{ |
57 |
|
} // end if/else isadmin |
58 |
|
}> |
59 |
|
|
60 |
|
<br> |
61 |
|
<a class="menu" href="logout">Logout</a><br> |
62 |
|
|
63 |
|
<{ |
64 |
|
} else { |
65 |
|
}> |
66 |
|
<a class="menu" href="login">Login</a> |
67 |
|
<{ |
68 |
|
} //endif |
69 |
|
}> |
70 |
|
|
71 |
<br><br><br><br><br> |
<br><br><br><br><br> |
72 |
</div> |
</div> |