/[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 72 by torben, Tue Nov 27 21:59:04 2007 UTC revision 87 by torben, Wed Nov 28 21:02:21 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  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">
20  <html>  <html>
21  <head>  <head>
22  <title>Serren boiler monitor system<$ title $> </title>  <title>Serren furnace monitor system<$ title $> </title>
23    <link rel="stylesheet" type="text/css" href="/stylesheet.css">
 <style type="text/css">  
 .menublock {  
 /*      margin-left: 10px;*/  
         color: #ffffff;  
 }  
24    
25  .menucell {  </head>
26          padding-left: 10px;  <body>
 }  
27    
28  h1      {  <!-- Menu stuff -->
29          text-align: center;      <div id="menubg">
30  }         <div id="menubox">
31      <br><br><br>
32      <p style='font-size: 120%;'><b>Serren AB</b></p>
33      
34      <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      
38      <br>
39    
40  h2 {  <{
41          text-align: center;  if (userName.size() > 0) {
42  }  }>
43      <p class="menu">Logged in as <$ userName $></p>
44      <a class="menu" href="adm_customer_list">Customer admin</a><br>
45      <{
46      if (isAdmin) {
47      }>
48      <a class="menu" href="adm_users_list">User admin</a><br>
49      <{
50      } else {
51      }>
52      <div class="menu">User admin</div><br>
53      <{
54      } // end if/else isadmin
55      }>
56    
57  </style>    <br>
58      <a class="menu" href="logout">Logout</a><br>
59    
60  </head>  <{
61  <body bgcolor="white">  } else {
62    }>
63      <a class="menu" href="login">Login</a>
64    <{
65    } //endif
66    }>
67    
68  <!-- Menu stuff -->    <br><br><br><br><br>
69  <br>   </div>
70  <table border=0 width='100%'>  </div>
 <tr>  
   <td width=180 bgcolor='red' valign="top" class='menucell'>  
     <br><br><br>  
     <p class="menublock"><b>Serren AB</b></p>  
     
     <a class="menublock" href="index">Index</a><br>  
     <a class="menublock" href="critical">Critical systems</a><br>  
     <a class="menublock" href="customerlist">Customers & installations</a><br>  
       
     <br><br><br>  
   
     <br><br><br><br><br>  
   </td>  
   <td valign="top">  

Legend:
Removed from v.72  
changed lines
  Added in v.87

  ViewVC Help
Powered by ViewVC 1.1.20