--- trunk/tntnet/dynamic/header.ecpp 2007/11/27 14:28:59 68 +++ trunk/tntnet/dynamic/header.ecpp 2007/11/28 23:19:28 90 @@ -1,40 +1,73 @@ <%args> title; +<%session scope="global"> +std::string userName; +bool isAdmin; + <{ + +//reply.setContentType("text/html; charset=UTF-8"); + if (title.size() > 0) { title = std::string(" - ") + title; } + +//Cache control +reply.setHeader("Cache-Control", "no-cache, must-revalidate"); // Http/1.1 +reply.setHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT"); //date in the past }> + + -Serren boiler monitor system<$ title $> - -<style type="text/css"> -.menublock { - margin-left: 10px; - color: #ffffff; - } - -</style> +<title>Serren furnace monitor system<$ title $> + - + -
- - - -
-


- +
+ Index
+ Critical systems
+ Customers & installations
+ +
+ +<{ +if (userName.size() > 0) { +}> + + Customer admin
+ <{ + if (isAdmin) { + }> + User admin
+ <{ + } else { + }> +
+ <{ + } // end if/else isadmin + }> + +
+ Logout
+ +<{ +} else { +}> + Login +<{ +} //endif +}> + +




+ +