From 4c214a105bbdc91168e2404601e9cf961aab52ed Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 19 Mar 2011 15:28:23 -0400 Subject: [PATCH] - In Browse mode, move the Show dialog on its own line - Put the Next and End buttons are the very right side of the line of buttons --- libraries/display_tbl.lib.php | 134 +++++++++++++++++++----------------------- 1 file changed, 59 insertions(+), 75 deletions(-) diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php index 9c98f6199c..d8e29e1019 100644 --- a/libraries/display_tbl.lib.php +++ b/libraries/display_tbl.lib.php @@ -289,74 +289,6 @@ function PMA_displayTableNavigation($pos_next, $pos_prev, $sql_query, $id_for_di PMA_displayTableNavigationOneButton('<', __('Previous'), $pos_prev, $html_sql_query); } // end move back - ?> - -     - - - -
- - - - 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"; - ?> -
- - -     - - = $_SESSION['tmp_user_values']['max_rows'] - && $_SESSION['tmp_user_values']['max_rows'] != 'all') { - - // display the Next button - PMA_displayTableNavigationOneButton('>', - __('Next'), - $pos_next, - $html_sql_query); - - // prepare some options for the End button - if ($is_innodb && $unlim_num_rows > $GLOBALS['cfg']['MaxExactCount']) { - $input_for_real_end = ''; - // no backquote around this message - $onclick = ''; - } else { - $input_for_real_end = $onclick = ''; - } - - // display the End button - PMA_displayTableNavigationOneButton('>>', - __('End'), - @((ceil($unlim_num_rows / $_SESSION['tmp_user_values']['max_rows'])- 1) * $_SESSION['tmp_user_values']['max_rows']), - $html_sql_query, - 'onsubmit="return ' . (($_SESSION['tmp_user_values']['pos'] + $_SESSION['tmp_user_values']['max_rows'] < $unlim_num_rows && $num_rows >= $_SESSION['tmp_user_values']['max_rows']) ? 'true' : 'false') . '"', - $input_for_real_end, - $onclick - ); - } // end move toward - //page redirection // (unless we are showing all records) @@ -367,9 +299,6 @@ onsubmit="return (checkFormElementInRange(this, 'session_max_rows', ' 1){ //if2 ?> -     - - $db, @@ -403,9 +332,6 @@ onsubmit="return (checkFormElementInRange(this, 'session_max_rows', ' -     - -
@@ -417,11 +343,69 @@ onsubmit="return (checkFormElementInRange(this, 'session_max_rows', ' = $_SESSION['tmp_user_values']['max_rows'] + && $_SESSION['tmp_user_values']['max_rows'] != 'all') { + + // display the Next button + PMA_displayTableNavigationOneButton('>', + __('Next'), + $pos_next, + $html_sql_query); + + // prepare some options for the End button + if ($is_innodb && $unlim_num_rows > $GLOBALS['cfg']['MaxExactCount']) { + $input_for_real_end = ''; + // no backquote around this message + $onclick = ''; + } else { + $input_for_real_end = $onclick = ''; + } + + // display the End button + PMA_displayTableNavigationOneButton('>>', + __('End'), + @((ceil($unlim_num_rows / $_SESSION['tmp_user_values']['max_rows'])- 1) * $_SESSION['tmp_user_values']['max_rows']), + $html_sql_query, + 'onsubmit="return ' . (($_SESSION['tmp_user_values']['pos'] + $_SESSION['tmp_user_values']['max_rows'] < $unlim_num_rows && $num_rows >= $_SESSION['tmp_user_values']['max_rows']) ? 'true' : 'false') . '"', + $input_for_real_end, + $onclick + ); + } // end move toward ?> + +
+ + + + + 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"; + ?> + +