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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 104 - (hide annotations) (download)
Thu Nov 29 17:06:38 2007 UTC (16 years, 6 months ago) by torben
File size: 1576 byte(s)
Sync


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

  ViewVC Help
Powered by ViewVC 1.1.20