From c78c5fad115d4a68d24a4cb9f8a237b1d0072c33 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 2 Sep 2009 17:51:32 +0000 Subject: [PATCH] smaller buttons --- lam/templates/config/confmain.php | 28 +++++++++++----------------- lam/templates/config/confmodules.php | 28 +++++++++++----------------- lam/templates/config/conftypes.php | 28 +++++++++++----------------- 3 files changed, 33 insertions(+), 51 deletions(-) diff --git a/lam/templates/config/confmain.php b/lam/templates/config/confmain.php index de1a0463..b47beedb 100644 --- a/lam/templates/config/confmain.php +++ b/lam/templates/config/confmain.php @@ -142,60 +142,54 @@ echo ""; echo "\n"; - $buttonWidth = 0; - $buttonTexts = array(_('General settings'), _('Account types'), _('Modules'), _('Save'), _('Cancel')); - for ($b = 0; $b < sizeof($buttonTexts); $b++) { - $tempWidth = round(0.8 * strlen(utf8_decode($buttonTexts[$b]))) + 2; - if ($buttonWidth < $tempWidth) $buttonWidth = $tempWidth; - } - $buttonSpace = '       '; + $buttonSpace = '         '; // general settings - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/bigTools.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/bigTools.png);'; echo "\n"; echo "
\n"; echo ''; // account types - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/gear.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/gear.png);'; echo "\n"; echo "
\n"; echo ''; // module selection - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/modules.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/modules.png);'; echo "\n"; echo "
\n"; echo ''; echo " "; // save button - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/pass.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/pass.png);'; echo "\n"; echo "
\n"; echo ''; // cancel button - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/fail.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/fail.png);'; echo "\n"; echo "
\n"; diff --git a/lam/templates/config/confmodules.php b/lam/templates/config/confmodules.php index 343c5849..5e1eacb5 100644 --- a/lam/templates/config/confmodules.php +++ b/lam/templates/config/confmodules.php @@ -108,60 +108,54 @@ echo ""; echo "\n"; - $buttonWidth = 0; - $buttonTexts = array(_('General settings'), _('Account types'), _('Modules'), _('Save'), _('Cancel')); - for ($b = 0; $b < sizeof($buttonTexts); $b++) { - $tempWidth = round(0.8 * strlen(utf8_decode($buttonTexts[$b]))) + 2; - if ($buttonWidth < $tempWidth) $buttonWidth = $tempWidth; - } - $buttonSpace = '       '; + $buttonSpace = '         '; // general settings - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/bigTools.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/bigTools.png);'; echo "\n"; echo "
\n"; echo ''; // account types - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/gear.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/gear.png);'; echo "\n"; echo "
\n"; echo ''; // module selection - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/modules.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/modules.png);'; echo "\n"; echo "
\n"; echo ''; echo " "; // save button - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/pass.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/pass.png);'; echo "\n"; echo "
\n"; echo ''; // cancel button - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/fail.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/fail.png);'; echo "\n"; echo "
\n"; diff --git a/lam/templates/config/conftypes.php b/lam/templates/config/conftypes.php index 132e7c3b..74686e8f 100644 --- a/lam/templates/config/conftypes.php +++ b/lam/templates/config/conftypes.php @@ -123,60 +123,54 @@ echo ""; echo "\n"; - $buttonWidth = 0; - $buttonTexts = array(_('General settings'), _('Account types'), _('Modules'), _('Save'), _('Cancel')); - for ($b = 0; $b < sizeof($buttonTexts); $b++) { - $tempWidth = round(0.8 * strlen(utf8_decode($buttonTexts[$b]))) + 2; - if ($buttonWidth < $tempWidth) $buttonWidth = $tempWidth; - } - $buttonSpace = '       '; + $buttonSpace = '         '; // general settings - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/bigTools.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/bigTools.png);'; echo "\n"; echo "
\n"; echo ''; // account types - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/gear.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/gear.png);'; echo "\n"; echo "
\n"; echo ''; // module selection - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/modules.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/modules.png);'; echo "\n"; echo "
\n"; echo ''; echo " "; // save button - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/pass.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/pass.png);'; echo "\n"; echo "
\n"; echo ''; // cancel button - echo "\n"; + echo "\n"; echo "\n"; echo "
\n"; - $buttonStyle = 'background-image: url(../../graphics/fail.png);width:' . $buttonWidth . 'em;'; + $buttonStyle = 'background-image: url(../../graphics/fail.png);'; echo "\n"; echo "
\n";