--- trunk/tntnet/dynamic/header.ecpp 2007/11/27 22:33:19 75 +++ trunk/tntnet/dynamic/header.ecpp 2007/12/07 12:40:49 189 @@ -1,62 +1,30 @@ <%args> title; +<%session scope="global"> +std::string userName; +bool isAdmin; + <{ + + 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 $> - - + Serren furnace monitor system<$ title $> + + + @@ -69,9 +37,40 @@ Index
Critical systems
Customers & installations
- -


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




+ +