/[H9]/trunk/tntnet/dynamic/header.ecpp
ViewVC logotype

Annotation of /trunk/tntnet/dynamic/header.ecpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 87 - (hide annotations) (download)
Wed Nov 28 21:02:21 2007 UTC (16 years, 6 months ago) by torben
File size: 1432 byte(s)
Moved the stylesheet to a seperate file

1 torben 68 <%args>
2     title;
3     </%args>
4 torben 78 <%session scope="global">
5     std::string userName;
6     bool isAdmin;
7     </%session>
8 torben 68 <{
9     if (title.size() > 0)
10     {
11     title = std::string(" - ") + title;
12     }
13 torben 78
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 torben 68 }>
18 torben 72
19     <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
20 torben 68 <html>
21     <head>
22 torben 75 <title>Serren furnace monitor system<$ title $> </title>
23 torben 87 <link rel="stylesheet" type="text/css" href="/stylesheet.css">
24 torben 68
25     </head>
26 torben 73 <body>
27 torben 68
28     <!-- Menu stuff -->
29 torben 73 <div id="menubg">
30     <div id="menubox">
31     <br><br><br>
32     <p style='font-size: 120%;'><b>Serren AB</b></p>
33 torben 68
34 torben 73 <a class="menu" href="index">Index</a><br>
35     <a class="menu" href="critical">Critical systems</a><br>
36     <a class="menu" href="customerlist">Customers & installations</a><br>
37 torben 78
38     <br>
39 torben 68
40 torben 78 <{
41     if (userName.size() > 0) {
42     }>
43     <p class="menu">Logged in as <$ userName $></p>
44 torben 83 <a class="menu" href="adm_customer_list">Customer admin</a><br>
45 torben 80 <{
46     if (isAdmin) {
47     }>
48 torben 83 <a class="menu" href="adm_users_list">User admin</a><br>
49 torben 80 <{
50     } else {
51     }>
52     <div class="menu">User admin</div><br>
53     <{
54     } // end if/else isadmin
55     }>
56    
57     <br>
58 torben 78 <a class="menu" href="logout">Logout</a><br>
59    
60     <{
61     } else {
62     }>
63     <a class="menu" href="login">Login</a>
64     <{
65     } //endif
66     }>
67    
68 torben 73 <br><br><br><br><br>
69     </div>
70     </div>

  ViewVC Help
Powered by ViewVC 1.1.20