--- trunk/tntnet/dynamic/header.ecpp 2007/11/27 22:33:19 75 +++ trunk/tntnet/dynamic/header.ecpp 2007/11/28 14:27:51 80 @@ -1,11 +1,19 @@ <%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 }> @@ -23,7 +31,7 @@ top: 0px; left: 0px; width: 170px; - min-height: 420px; + min-height: 500px; border-width: 1px; border-color: black; border-style: solid; @@ -69,8 +77,36 @@ Index
Critical systems
Customers & installations
- -


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