1 |
<%args> |
<%args> |
2 |
title; |
title; |
3 |
</%args> |
</%args> |
4 |
|
<%session scope="global"> |
5 |
|
std::string userName; |
6 |
|
bool isAdmin; |
7 |
|
</%session> |
8 |
<{ |
<{ |
9 |
if (title.size() > 0) |
if (title.size() > 0) |
10 |
{ |
{ |
11 |
title = std::string(" - ") + title; |
title = std::string(" - ") + title; |
12 |
} |
} |
13 |
|
|
14 |
|
//Cache control |
15 |
|
reply.setHeader("Cache-Control", "no-cache, must-revalidate"); // Http/1.1 |
16 |
|
reply.setHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT"); //date in the past |
17 |
}> |
}> |
18 |
|
|
19 |
<!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"> |
77 |
<a class="menu" href="index">Index</a><br> |
<a class="menu" href="index">Index</a><br> |
78 |
<a class="menu" href="critical">Critical systems</a><br> |
<a class="menu" href="critical">Critical systems</a><br> |
79 |
<a class="menu" href="customerlist">Customers & installations</a><br> |
<a class="menu" href="customerlist">Customers & installations</a><br> |
80 |
|
|
81 |
<br><br><br> |
<br> |
82 |
|
|
83 |
|
<{ |
84 |
|
if (userName.size() > 0) { |
85 |
|
}> |
86 |
|
<p class="menu">Logged in as <$ userName $></p> |
87 |
|
<a class="menu" href="logout">Logout</a><br> |
88 |
|
|
89 |
|
<{ |
90 |
|
} else { |
91 |
|
}> |
92 |
|
<a class="menu" href="login">Login</a> |
93 |
|
<{ |
94 |
|
} //endif |
95 |
|
}> |
96 |
|
|
97 |
<br><br><br><br><br> |
<br><br><br><br><br> |
98 |
</div> |
</div> |