From 421d35fa35b72b0f013aeb21fdef9498c16600ed Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 8 Jan 2011 19:44:08 +0000 Subject: [PATCH] hover effect for tabs --- lam/style/500_layout.css | 2 +- lam/templates/config/confmain.php | 35 ++++++++++++++----------- lam/templates/config/confmodules.php | 32 +++++++++++----------- lam/templates/config/conftypes.php | 31 ++++++++++++---------- lam/templates/config/moduleSettings.php | 33 ++++++++++++----------- 5 files changed, 72 insertions(+), 61 deletions(-) diff --git a/lam/style/500_layout.css b/lam/style/500_layout.css index edadaedf..d531f8f0 100644 --- a/lam/style/500_layout.css +++ b/lam/style/500_layout.css @@ -238,7 +238,7 @@ tr.account { /* --- end of workaround for vertical tabs --- */ .tabs-hover { - background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; + background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x !important; } /* title bar */ diff --git a/lam/templates/config/confmain.php b/lam/templates/config/confmain.php index 2f1bfc50..33b79c5e 100644 --- a/lam/templates/config/confmain.php +++ b/lam/templates/config/confmain.php @@ -171,16 +171,6 @@ if (sizeof($errorsToDisplay) > 0) { // display formular echo ("
\n"); -$buttonContainer = new htmlTable(); -$saveButton = new htmlButton('saveSettings', _('Save')); -$saveButton->setIconClass('saveButton'); -$buttonContainer->addElement($saveButton); -$cancelButton = new htmlButton('cancelSettings', _('Cancel')); -$cancelButton->setIconClass('cancelButton'); -$buttonContainer->addElement($cancelButton, true); -$buttonContainer->addElement(new htmlSpacer(null, '10px')); -parseHtml(null, $buttonContainer, array(), false, $tabindex, 'user'); - // hidden submit buttons which are clicked by tabs echo "
\n"; echo ""; @@ -197,15 +187,15 @@ echo '
  • '; echo ' '; echo _('General settings') . ''; echo '
  • '; -echo '
  • '; +echo '
  • '; echo ' '; echo _('Account types') . ''; echo '
  • '; -echo '
  • '; +echo '
  • '; echo ' '; echo _('Modules') . ''; echo '
  • '; -echo '
  • '; +echo '
  • '; echo ' '; echo _('Module settings') . ''; echo '
  • '; @@ -375,9 +365,22 @@ $container->addElement(new htmlOutputText('*=' . _("required")), true); parseHtml(null, $container, array(), false, $tabindex, 'user'); -echo ("
    \n"); -echo ("\n"); -echo ("\n"); +echo ""; + +$buttonContainer = new htmlTable(); +$buttonContainer->addElement(new htmlSpacer(null, '10px'), true); +$saveButton = new htmlButton('saveSettings', _('Save')); +$saveButton->setIconClass('saveButton'); +$buttonContainer->addElement($saveButton); +$cancelButton = new htmlButton('cancelSettings', _('Cancel')); +$cancelButton->setIconClass('cancelButton'); +$buttonContainer->addElement($cancelButton, true); +$buttonContainer->addElement(new htmlSpacer(null, '10px'), true); +parseHtml(null, $buttonContainer, array(), false, $tabindex, 'user'); + +echo "\n"; +echo "\n"; +echo "\n"; /** diff --git a/lam/templates/config/confmodules.php b/lam/templates/config/confmodules.php index 647f2796..f8c195b5 100644 --- a/lam/templates/config/confmodules.php +++ b/lam/templates/config/confmodules.php @@ -138,16 +138,6 @@ for ($i = 0; $i < sizeof($errorsToDisplay); $i++) call_user_func_array('StatusMe echo ("
    \n"); -$buttonContainer = new htmlTable(); -$saveButton = new htmlButton('saveSettings', _('Save')); -$saveButton->setIconClass('saveButton'); -$buttonContainer->addElement($saveButton); -$cancelButton = new htmlButton('cancelSettings', _('Cancel')); -$cancelButton->setIconClass('cancelButton'); -$buttonContainer->addElement($cancelButton, true); -$buttonContainer->addElement(new htmlSpacer(null, '10px')); -parseHtml(null, $buttonContainer, array(), false, $tabindex, 'user'); - // hidden submit buttons which are clicked by tabs echo "
    \n"; echo ""; @@ -160,11 +150,11 @@ echo "
    \n"; echo '
    '; echo '
      '; -echo '
    • '; +echo '
    • '; echo ' '; echo _('General settings') . ''; echo '
    • '; -echo '
    • '; +echo '
    • '; echo ' '; echo _('Account types') . ''; echo '
    • '; @@ -172,7 +162,7 @@ echo '
    • '; echo ' '; echo _('Modules') . ''; echo '
    • '; -echo '
    • '; +echo '
    • '; echo ' '; echo _('Module settings') . ''; echo '
    • '; @@ -210,7 +200,6 @@ for ($i = 0; $i < sizeof($account_list); $i++) { } $legendContainer = new htmlTable(); -$legendContainer->addElement(new htmlSpacer(null, '10px'), true); $legendContainer->addElement(new htmlOutputText("(*) " . _("Base module"))); $legendContainer->addElement(new htmlHelpLink('237')); $container->addElement($legendContainer); @@ -219,7 +208,20 @@ $container->addElement(new htmlHiddenInput('postAvailable', 'yes')); $tabindex = 1; parseHtml(null, $container, array(), false, $tabindex, 'user'); -echo ("
    \n"); +echo ""; + +$buttonContainer = new htmlTable(); +$buttonContainer->addElement(new htmlSpacer(null, '10px'), true); +$saveButton = new htmlButton('saveSettings', _('Save')); +$saveButton->setIconClass('saveButton'); +$buttonContainer->addElement($saveButton); +$cancelButton = new htmlButton('cancelSettings', _('Cancel')); +$cancelButton->setIconClass('cancelButton'); +$buttonContainer->addElement($cancelButton, true); +$buttonContainer->addElement(new htmlSpacer(null, '10px'), true); +parseHtml(null, $buttonContainer, array(), false, $tabindex, 'user'); + +echo "\n"; echo "\n"; echo "\n"; diff --git a/lam/templates/config/conftypes.php b/lam/templates/config/conftypes.php index 03a8a204..a2f6ba21 100644 --- a/lam/templates/config/conftypes.php +++ b/lam/templates/config/conftypes.php @@ -156,16 +156,6 @@ for ($i = 0; $i < sizeof($errorsToDisplay); $i++) call_user_func_array('StatusMe echo ("
    \n"); -$buttonContainer = new htmlTable(); -$saveButton = new htmlButton('saveSettings', _('Save')); -$saveButton->setIconClass('saveButton'); -$buttonContainer->addElement($saveButton); -$cancelButton = new htmlButton('cancelSettings', _('Cancel')); -$cancelButton->setIconClass('cancelButton'); -$buttonContainer->addElement($cancelButton, true); -$buttonContainer->addElement(new htmlSpacer(null, '10px')); -parseHtml(null, $buttonContainer, array(), false, $tabindex, 'user'); - // hidden submit buttons which are clicked by tabs echo "
    \n"; echo ""; @@ -178,7 +168,7 @@ echo "
    \n"; echo '
    '; echo '
    \n"); +echo ""; + +$buttonContainer = new htmlTable(); +$buttonContainer->addElement(new htmlSpacer(null, '10px'), true); +$saveButton = new htmlButton('saveSettings', _('Save')); +$saveButton->setIconClass('saveButton'); +$buttonContainer->addElement($saveButton); +$cancelButton = new htmlButton('cancelSettings', _('Cancel')); +$cancelButton->setIconClass('cancelButton'); +$buttonContainer->addElement($cancelButton, true); +$buttonContainer->addElement(new htmlSpacer(null, '10px'), true); +parseHtml(null, $buttonContainer, array(), false, $tabindex, 'user'); + +echo "\n"; echo "\n"; echo "\n"; diff --git a/lam/templates/config/moduleSettings.php b/lam/templates/config/moduleSettings.php index d956d56e..2abf977a 100644 --- a/lam/templates/config/moduleSettings.php +++ b/lam/templates/config/moduleSettings.php @@ -137,16 +137,6 @@ for ($i = 0; $i < sizeof($errorsToDisplay); $i++) call_user_func_array('StatusMe echo ("
    \n"); -$buttonContainer = new htmlTable(); -$saveButton = new htmlButton('saveSettings', _('Save')); -$saveButton->setIconClass('saveButton'); -$buttonContainer->addElement($saveButton); -$cancelButton = new htmlButton('cancelSettings', _('Cancel')); -$cancelButton->setIconClass('cancelButton'); -$buttonContainer->addElement($cancelButton, true); -$buttonContainer->addElement(new htmlSpacer(null, '10px')); -parseHtml(null, $buttonContainer, array(), false, $tabindex, 'user'); - // hidden submit buttons which are clicked by tabs echo "
    \n"; echo ""; @@ -159,15 +149,15 @@ echo "
    \n"; echo '
    '; echo '
      '; -echo '
    • '; +echo '
    • '; echo ' '; echo _('General settings') . ''; echo '
    • '; -echo '
    • '; +echo '
    • '; echo ' '; echo _('Account types') . ''; echo '
    • '; -echo '
    • '; +echo '
    • '; echo ' '; echo _('Modules') . ''; echo '
    • '; @@ -220,7 +210,7 @@ for ($i = 0; $i < sizeof($modules); $i++) { if ($iconImage != null) { $icon = '' . $iconImage . ' '; } - echo "$icon" . getModuleAlias($modules[$i], "none") . "
      \n"; + echo "$icon" . getModuleAlias($modules[$i], "none") . "\n"; $configTypes = parseHtml($modules[$i], $options[$modules[$i]], $old_options, true, $tabindex, 'user'); $_SESSION['conf_types'] = array_merge($configTypes, $_SESSION['conf_types']); echo "\n"; @@ -229,7 +219,20 @@ for ($i = 0; $i < sizeof($modules); $i++) { echo "\n"; -echo ("
    \n"); +echo ""; + +$buttonContainer = new htmlTable(); +$buttonContainer->addElement(new htmlSpacer(null, '10px'), true); +$saveButton = new htmlButton('saveSettings', _('Save')); +$saveButton->setIconClass('saveButton'); +$buttonContainer->addElement($saveButton); +$cancelButton = new htmlButton('cancelSettings', _('Cancel')); +$cancelButton->setIconClass('cancelButton'); +$buttonContainer->addElement($cancelButton, true); +$buttonContainer->addElement(new htmlSpacer(null, '10px'), true); +parseHtml(null, $buttonContainer, array(), false, $tabindex, 'user'); + +echo "\n"; echo "\n"; echo "\n";