From c052b0fbaff56e37f342af101cbca0791315c77c Mon Sep 17 00:00:00 2001 From: jengo Date: Thu, 8 Mar 2001 23:00:20 +0000 Subject: [PATCH] Made the layout stretch all the way across the screen --- phpgwapi/templates/verdilak/head.inc.php | 44 +++++++++++++----------- preferences/setup/config.inc.php | 8 +---- 2 files changed, 25 insertions(+), 27 deletions(-) diff --git a/phpgwapi/templates/verdilak/head.inc.php b/phpgwapi/templates/verdilak/head.inc.php index 314b191ef4..5204a379d4 100644 --- a/phpgwapi/templates/verdilak/head.inc.php +++ b/phpgwapi/templates/verdilak/head.inc.php @@ -1,24 +1,28 @@ set_unknowns("remove"); - $tpl->set_file(array("head" => "head.tpl")); - $tpl->set_var("website_title", $phpgw_info["server"]["site_title"]); - $tpl->set_var("body_tags",$bodyheader); - echo $tpl->finish($tpl->parse("out","head")); + if (! $phpgw_info['server']['htmlcompliant']) + { + $bodyheader .= ' topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" leftmargin="0" rightmargin="0"'; + } + + $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); + $tpl->set_unknowns('remove'); + $tpl->set_file(array('head' => 'head.tpl')); + $tpl->set_var('website_title', $phpgw_info['server']['site_title']); + $tpl->set_var('body_tags',$bodyheader); + $tpl->pfp('out','head'); diff --git a/preferences/setup/config.inc.php b/preferences/setup/config.inc.php index 2545e74c81..7c0e7141af 100644 --- a/preferences/setup/config.inc.php +++ b/preferences/setup/config.inc.php @@ -52,15 +52,9 @@ - Use pure HTML compliant code (not fully working yet): - - - + >