-
-
+ {backgroundimage}
diff --git a/htdocs/lib/common.inc.php b/htdocs/lib/common.inc.php
index fa155a48..5c178972 100644
--- a/htdocs/lib/common.inc.php
+++ b/htdocs/lib/common.inc.php
@@ -437,7 +437,7 @@ function __autoload($class_name)
function tpl_BuildTemplate($dbdisconnect=true)
{
//template handling vars
- global $style, $stylepath, $tplname, $vars, $langpath, $locale, $opt, $oc_nodeid, $translate;
+ global $style, $stylepath, $tplname, $vars, $langpath, $locale, $opt, $oc_nodeid, $translate, $usr;
//language specific expression
global $error_pagenotexist;
//only for debbuging
@@ -532,6 +532,17 @@ function __autoload($class_name)
include $langpath . '/expressions.inc.php';
//load main template
+ if ($usr['username'] == 'HWR-Info')
+ {
+ tpl_set_var('backgroundimage','
HWR-Info-Grey
Edition
');
+ tpl_set_var('bodystyle','background:#ededed');
+ }
+ else
+ {
+ tpl_set_var('backgroundimage','
');
+ tpl_set_var('bodystyle','');
+ }
+
if (isset($_REQUEST['print']) && $_REQUEST['print'] == 'y')
$sCode = read_file($stylepath . '/main_print.tpl.php');
else if (isset($_REQUEST['popup']) && $_REQUEST['popup'] == 'y')
diff --git a/htdocs/lib2/OcSmarty.class.php b/htdocs/lib2/OcSmarty.class.php
index 38744cfa..2811ef0c 100644
--- a/htdocs/lib2/OcSmarty.class.php
+++ b/htdocs/lib2/OcSmarty.class.php
@@ -219,6 +219,7 @@ class OcSmarty extends Smarty
$this->assign('breadcrumb', $menu->getBreadcrumb());
$this->assign('menucolor', $menu->getMenuColor());
$this->assign('helplink', helppagelink($this->name));
+ $this->assign('greybg', $loginn['username'] == 'HWR-Info');
if ($this->title == '')
$optn['template']['title'] = $menu->GetMenuTitle();
diff --git a/htdocs/templates2/ocstyle/sys_main.tpl b/htdocs/templates2/ocstyle/sys_main.tpl
index f4c941f8..612d3ae9 100644
--- a/htdocs/templates2/ocstyle/sys_main.tpl
+++ b/htdocs/templates2/ocstyle/sys_main.tpl
@@ -93,7 +93,7 @@
{if $garmin==true} onload="load('{$cache.latitude}','{$cache.longitude}','{$cache.cacheid}','{$opt.lib.garmin.url}','{$opt.lib.garmin.key}','{$opt.template.locale}')"{/if}
{foreach from=$opt.page.body_load item=loadItem name=bodyload}{if $smarty.foreach.bodyload.first} onload="{/if}{$loadItem};{if $smarty.foreach.bodyload.last}"{/if}{/foreach}
{foreach from=$opt.page.body_unload item=unloadItem name=bodyunload}{if $smarty.foreach.bodyunload.first} onunload="{/if}{$unloadItem};{if $smarty.foreach.bodyunload.last}"{/if}{/foreach}
-{if $opt.template.popup!=false} class="popup"{/if}>
+{if $opt.template.popup!=false} class="popup"{/if} {if $greybg}style="background:#ededed"{/if}>
{if $opt.template.popup!=true}
@@ -153,8 +153,12 @@
+ {if $greybg}
+
HWR-Info-Grey
Edition
+ {else}
+ {/if}
{* *}
{* *}