From f0c322cbdd168d251a47ae7ed3200e4abde7cd8d Mon Sep 17 00:00:00 2001 From: Aris Feryanto Date: Thu, 30 Jun 2011 13:15:13 +0800 Subject: [PATCH] Modify the navigation bar to provide more intuitive UI --- libraries/display_tbl.lib.php | 90 ++++++++++++++----------- themes/original/css/theme_right.css.php | 40 +++++++++++ themes/pmahomme/css/theme_right.css.php | 61 +++++++++++++++++ 3 files changed, 151 insertions(+), 40 deletions(-) diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index 34d6967ddc..efd9a59e38 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -293,8 +293,9 @@ function PMA_displayTableNavigation($pos_next, $pos_prev, $sql_query, $id_for_di ?> - + + @@ -344,16 +344,16 @@ function PMA_displayTableNavigation($pos_next, $pos_prev, $sql_query, $id_for_di if ($GLOBALS['cfg']['ShowAll'] && ($num_rows < $unlim_num_rows)) { echo "\n"; ?> - + 1){ + echo ''; + } ?> - - -
-
- - - - value=" :" /> - - - - __('horizontal'), - 'horizontalflipped' => __('horizontal (rotated headers)'), - 'vertical' => __('vertical')); - $param1 = PMA_generate_html_dropdown('disp_direction', $choices, $_SESSION['tmp_user_values']['disp_direction'], $id_for_direction_dropdown); - unset($choices); + + + + + + value=" :" /> + + + + __('horizontal'), + 'horizontalflipped' => __('horizontal (rotated headers)'), + 'vertical' => __('vertical')); + $param1 = PMA_generate_html_dropdown('disp_direction', $choices, $_SESSION['tmp_user_values']['disp_direction'], $id_for_direction_dropdown); + unset($choices); + + $param2 = ' ' . "\n" + . ' '; + echo ' ' . sprintf(__('in %s mode and repeat headers after %s cells'), "\n" . $param1, "\n" . $param2) . "\n"; + ?> +
+ + + + - $param2 = ' ' . "\n" - . ' '; - echo ' ' . sprintf(__('in %s mode and repeat headers after %s cells'), "\n" . $param1, "\n" . $param2) . "\n"; - ?> - -
+} + +.navigation td { + margin: 0; + padding: 0; + vertical-align: middle; + white-space: nowrap; +} + +.navigation_separator { + color: #999; + display: inline-block; + font-size: 1.5em; + text-align: center; + height: 1.4em; + width: 1.2em; + text-shadow: 1px 0 #FFF; +} + +.navigation input[type=submit] { + background: none; + border: 0; + margin: 0; + padding: 0.8em 0.5em; + min-width: 2.5em; + + border-radius: 0; + -webkit-border-radius: 0; + -moz-border-radius: 0; +} + +.navigation input[type=submit]:hover { + color: white; + cursor: pointer; + text-shadow: none; + + background-image: url(./themes/svg_gradient.php?from=333333&to=555555); + background-size: 100% 100%; + background: -webkit-gradient(linear, left top, left bottom, from(#333333), to(#555555)); + background: -moz-linear-gradient(top, #333333, #555555); + background: -o-linear-gradient(top, #333333, #555555); +} + +.navigation select { + margin: 0 0.8em; +}