Projects ⇒ Bugs ⇒ #494: Administration $pagetitle Float Bug ⇒ CPG Dragonfly™ CMS
Bug #494 Administration $pagetitle Float Bug
Project: Dragonfly 9.0.3 -> 9.3 Category: Output Control
Submitted: Friday, May 06, 2005 (04:01:35) Modified: Monday, May 09, 2005 (04:48:54)
Status: Closed Assigned to:
PHP Version: 4.3.10 HTTPD Server: Apache 2.0

View/Vote Add Comment

by: darkgrue
Description:
------------
The $pagetitle for administration pages doesn't center/float properly. Reference post http://www.dragonflycms.com/Forums/viewtopic/t=9727.html for a screenshot.

The elements and float attributes are in the wrong order to attain the intended effect.

Reproduce code:
---------------
$Source: /home/cvs/html/header.php,v $
$Revision: 9.10 $

Replace Lines 138-140:
$pagetitle = '<span style="float:left;margin-right:50px"><a href="'.$adminindex.'"><input type="button" value="'._MENU.'" onclick="parent.location=\''.$adminindex.'\'" class="liteoption" /></a></span>'
.'<span style="margin:0px auto;">'.$pagetitle.'</span>'
.'<span style="margin-left:50px;"><a href="'.adminlink('logout').'"><input type="button" value="'._ADMINLOGOUT.'" onclick="parent.location=\''.adminlink('logout').'\'" class="liteoption" /></a></span>';

with:
$pagetitle = '<div><span style="float:left;margin-left:50px"><a href="'.$adminindex.'"><input type="button" value="'._MENU.'" onclick="parent.location=\''.$adminindex.'\'" class="liteoption" /></a></span>'
.'<span style="float:right;margin-right:50px"><a href="'.adminlink('logout').'"><input type="button" value="'._ADMINLOGOUT.'" onclick="parent.location=\''.adminlink('logout').'\'" class="liteoption" /></a></span></div>'
.'<span style="text-align:center">'.$pagetitle.'</span>';
by: DJMaze
This bug has been fixed in the CVS.

Snapshots of the sources are packaged every 6 hours; this change
will be in the next snapshot. You can grab the snapshot at the
Downloads section.

Thank you for the report, and for helping us to make CPG-Nuke 9.0.3 -> 9.1 better.
User Info

Welcome Anonymous



(Register)
Community

Support for DragonflyCMS in a other languages:

Deutsch
Español