/[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 78 by torben, Wed Nov 28 14:00:17 2007 UTC revision 104 by torben, Thu Nov 29 17:06:38 2007 UTC
# Line 6  std::string userName; Line 6  std::string userName;
6  bool isAdmin;  bool isAdmin;
7  </%session>  </%session>
8  <{  <{
9    
10    //reply.setContentType("text/html; charset=UTF-8");
11    
12  if (title.size() > 0)  if (title.size() > 0)
13  {  {
14          title = std::string(" - ") + title;          title = std::string(" - ") + title;
# Line 20  reply.setHeader("Expires",  "Mon, 26 Jul Line 23  reply.setHeader("Expires",  "Mon, 26 Jul
23  <html>  <html>
24  <head>  <head>
25  <title>Serren furnace monitor system<$ title $> </title>  <title>Serren furnace monitor system<$ title $> </title>
26    <link rel="stylesheet" type="text/css" href="/stylesheet.css">
 <style type="text/css">  
   
 #menubg {  
         background: #ff0000;  
         color: #ffffff;  
         margin: 8px;  
         position: absolute;  
         top: 0px;  
         left: 0px;  
         width: 170px;  
         min-height: 420px;  
         border-width: 1px;  
         border-color: black;  
         border-style: solid;  
 }  
   
   
 #menubox{  
         margin:8px;  
         margin-top:20px;  
 }  
   
 .menu {  
         color: #ffffff;  
 }  
   
 body {  
         margin-left: 190px;  
         margin-right: 100px;  
         color: #000000;  
         background: #ffffff;  
 }  
   
   
 h1      {  
         text-align: center;      
 }        
   
 h2 {  
         text-align: center;  
 }  
   
 </style>  
27    
28  </head>  </head>
29  <body>  <body>
# Line 84  h2 { Line 44  h2 {
44  if (userName.size() > 0) {  if (userName.size() > 0) {
45  }>  }>
46    <p class="menu">Logged in as <$ userName $></p>    <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      <{
50      if (isAdmin) {
51      }>
52      <a class="menu" href="adm_user_list">User admin</a><br>
53      <{
54      } else {
55      }>
56      <div class="menu">User admin</div><br>
57      <{
58      } // end if/else isadmin
59      }>
60    
61      <br>
62    <a class="menu" href="logout">Logout</a><br>    <a class="menu" href="logout">Logout</a><br>
63    
64  <{  <{
# Line 97  if (userName.size() > 0) { Line 72  if (userName.size() > 0) {
72    <br><br><br><br><br>    <br><br><br><br><br>
73   </div>   </div>
74  </div>  </div>
75    
76    <!-- end of menu -->

Legend:
Removed from v.78  
changed lines
  Added in v.104

  ViewVC Help
Powered by ViewVC 1.1.20