HWR-Info grey edition

This commit is contained in:
following 2013-04-28 00:08:53 +02:00
parent d0defcfc9b
commit a37a3ca4aa
4 changed files with 20 additions and 5 deletions

View File

@ -123,7 +123,7 @@
{htmlheaders}
</head>
<body>
<body style="{bodystyle}">
<div id="overall">
<div id="langstripe">
@ -173,8 +173,7 @@
</table>
</div>
<div class="page-container-1" style="position: relative;">
<div id="bg1">&nbsp;</div>
<div id="bg2">&nbsp;</div>
{backgroundimage}
<!-- HEADER -->
<?php echo isset($develwarning) ? $develwarning : '' ?>

View File

@ -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','<div style="color:grey; position:absolute; top:15px; right:-100px">HWR-Info-Grey<br />Edition</div>');
tpl_set_var('bodystyle','background:#ededed');
}
else
{
tpl_set_var('backgroundimage','<div id="bg1">&nbsp;</div><div id="bg2">&nbsp;</div>');
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')

View File

@ -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();

View File

@ -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}
<div id="overall">
<div id="langstripe">
@ -153,8 +153,12 @@
</div>
<div class="page-container-1" style="position: relative;">
{if $greybg}
<div style="color:grey; position:absolute; top:15px; right:-100px">HWR-Info-Grey<br />Edition</div>
{else}
<div id="bg1">&nbsp;</div>
<div id="bg2">&nbsp;</div>
{/if}
{* <!-- HEADER --> *}
{* <!-- Debugschalter hier wieder einsetzen --> *}