--- trunk/tntnet/dynamic/header.ecpp 2007/11/27 22:33:19 75 +++ trunk/tntnet/dynamic/header.ecpp 2007/11/29 17:06:38 104 @@ -1,61 +1,29 @@ <%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 furnace monitor system<$ title $> - - + @@ -69,9 +37,40 @@ Index
Critical systems
Customers & installations
- -


+ +
+ +<{ +if (userName.size() > 0) { +}> + + Customer admin
+ Send configurations
+ <{ + if (isAdmin) { + }> + User admin
+ <{ + } else { + }> +
+ <{ + } // end if/else isadmin + }> + +
+ Logout
+ +<{ +} else { +}> + Login +<{ +} //endif +}>




+ +