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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 68 by torben, Tue Nov 27 14:28:59 2007 UTC revision 187 by torben, Fri Dec 7 07:58:25 2007 UTC
# Line 1  Line 1 
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    
11  if (title.size() > 0)  if (title.size() > 0)
12  {  {
13          title = std::string(" - ") + title;          title = std::string(" - ") + title;
14  }  }
15    
16    //Cache control
17    reply.setHeader("Cache-Control", "no-cache, must-revalidate"); // Http/1.1
18    reply.setHeader("Expires",  "Mon, 26 Jul 1997 05:00:00 GMT"); //date in the past
19  }>  }>
20    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
21  <html>  <html>
22  <head>  <head>
23  <title>Serren boiler monitor system<$ title $>    <title>Serren furnace monitor system<$ title $> </title>
24      <link rel="stylesheet" type="text/css" href="/stylesheet.css">
 <style type="text/css">  
 .menublock {  
         margin-left: 10px;  
         color: #ffffff;  
         }  
   
 </style>  
25    
26      <meta name="description" value="Svendeprøve projekt, december 2007">
27      <meta name="authors" value="Gruppe 2: Kevin Dybdahl, Hedin Møller & Torben Nielsen">
28  </head>  </head>
29  <body bgcolor="white">  <body>
30    
31  <!-- Menu stuff -->  <!-- Menu stuff -->
32  <br>  <div id="menubg">
33  <table border=0 width='100%'>   <div id="menubox">
34  <tr>    <br><br><br>
35    <td width=120 bgcolor='red' valign="top">    <p style='font-size: 120%;'><b>Serren AB</b></p>
     <br><br><br>  
     <p class="menublock"><b>Serren AB</b></p>  
36        
37      <a class="menublock" href="index">Index</a><br>    <a class="menu" href="index">Index</a><br>
38      <a class="menublock" 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>
40      <br><br><br>    
41      <br>
42      <br><br><br><br><br>  
43    </td>  <{
44    <td valign="top">  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      <a class="menu" href="adm_send_config">Send configurations</a><br>
49      <a class="menu" href="adm_server_config">Server configuration</a><br>
50      <{
51      if (isAdmin) {
52      }>
53      <a class="menu" href="adm_user_list">User admin</a><br>
54      <{
55      } else {
56      }>
57      <div class="menu">User admin</div><br>
58      <{
59      } // end if/else isadmin
60      }>
61    
62      <br>
63      <a class="menu" href="logout">Logout</a><br>
64    
65    <{
66    } else {
67    }>
68      <a class="menu" href="login">Login</a>
69    <{
70    } //endif
71    }>
72    
73     </div>
74    </div>
75    
76    <!-- end of menu -->

Legend:
Removed from v.68  
changed lines
  Added in v.187

  ViewVC Help
Powered by ViewVC 1.1.20