/[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 73 by torben, Tue Nov 27 22:25:09 2007 UTC revision 80 by torben, Wed Nov 28 14:27:51 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    
24  <style type="text/css">  <style type="text/css">
25    
# Line 23  if (title.size() > 0) Line 31  if (title.size() > 0)
31          top: 0px;          top: 0px;
32          left: 0px;          left: 0px;
33          width: 170px;          width: 170px;
34          min-height: 420px;          min-height: 500px;
35          border-width: 1px;          border-width: 1px;
36          border-color: black;          border-color: black;
37          border-style: solid;          border-style: solid;
# Line 69  h2 { Line 77  h2 {
77    <a class="menu" href="index">Index</a><br>    <a class="menu" href="index">Index</a><br>
78    <a class="menu" href="critical">Critical systems</a><br>    <a class="menu" href="critical">Critical systems</a><br>
79    <a class="menu" href="customerlist">Customers & installations</a><br>    <a class="menu" href="customerlist">Customers & installations</a><br>
80          
81    <br><br><br>    <br>
82    
83    <{
84    if (userName.size() > 0) {
85    }>
86      <p class="menu">Logged in as <$ userName $></p>
87      <a class="menu" href="adm_custom">Customer admin</a><br>
88      <{
89      if (isAdmin) {
90      }>
91      <a class="menu" href="adm_users">User admin</a><br>
92      <{
93      } else {
94      }>
95      <div class="menu">User admin</div><br>
96      <{
97      } // end if/else isadmin
98      }>
99    
100      <br>
101      <a class="menu" href="logout">Logout</a><br>
102    
103    <{
104    } else {
105    }>
106      <a class="menu" href="login">Login</a>
107    <{
108    } //endif
109    }>
110    
111    <br><br><br><br><br>    <br><br><br><br><br>
112   </div>   </div>

Legend:
Removed from v.73  
changed lines
  Added in v.80

  ViewVC Help
Powered by ViewVC 1.1.20