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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 78 - (hide annotations) (download)
Wed Nov 28 14:00:17 2007 UTC (16 years, 6 months ago) by torben
File size: 1594 byte(s)
Finished with login system

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 68
24     <style type="text/css">
25 torben 73
26     #menubg {
27     background: #ff0000;
28     color: #ffffff;
29     margin: 8px;
30     position: absolute;
31     top: 0px;
32     left: 0px;
33     width: 170px;
34     min-height: 420px;
35     border-width: 1px;
36     border-color: black;
37     border-style: solid;
38     }
39    
40    
41     #menubox{
42     margin:8px;
43     margin-top:20px;
44     }
45    
46     .menu {
47 torben 68 color: #ffffff;
48 torben 71 }
49 torben 68
50 torben 73 body {
51     margin-left: 190px;
52     margin-right: 100px;
53     color: #000000;
54     background: #ffffff;
55 torben 72 }
56    
57 torben 73
58 torben 71 h1 {
59     text-align: center;
60     }
61    
62     h2 {
63     text-align: center;
64     }
65    
66 torben 68 </style>
67    
68     </head>
69 torben 73 <body>
70 torben 68
71     <!-- Menu stuff -->
72 torben 73 <div id="menubg">
73     <div id="menubox">
74     <br><br><br>
75     <p style='font-size: 120%;'><b>Serren AB</b></p>
76 torben 68
77 torben 73 <a class="menu" href="index">Index</a><br>
78     <a class="menu" href="critical">Critical systems</a><br>
79     <a class="menu" href="customerlist">Customers & installations</a><br>
80 torben 78
81     <br>
82 torben 68
83 torben 78 <{
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 torben 73 <br><br><br><br><br>
98     </div>
99     </div>

  ViewVC Help
Powered by ViewVC 1.1.20