From 1690c6fa3258aa21127ea4c6a016a561b112fb81 Mon Sep 17 00:00:00 2001 From: Marvin Wegener Date: Fri, 2 May 2014 07:55:50 -0400 Subject: [PATCH 1/2] Fix number field size and remove incorrect attributes Signed-off-by: Marc Delisle --- libraries/display_create_table.lib.php | 2 +- libraries/index.lib.php | 2 +- libraries/server_privileges.lib.php | 3 +-- libraries/structure.lib.php | 4 ++-- themes/pmahomme/css/common.css.php | 4 ++++ 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/libraries/display_create_table.lib.php b/libraries/display_create_table.lib.php index 4ebbec9db380..219b6bc1270b 100644 --- a/libraries/display_create_table.lib.php +++ b/libraries/display_create_table.lib.php @@ -63,7 +63,7 @@ function PMA_getHtmlForCreateTable($db) $html .= ' '; $html .= '
'; $html .= __('Number of columns') . ":"; - $html .= ' '; + $html .= ' '; $html .= '
'; $html .= '
'; $html .= ''; diff --git a/libraries/index.lib.php b/libraries/index.lib.php index 4572d00543e4..6137c9d3280d 100644 --- a/libraries/index.lib.php +++ b/libraries/index.lib.php @@ -32,7 +32,7 @@ function PMA_getHtmlForDisplayIndexes() ); $html_output .= sprintf( __('Create an index on  %s columns'), - '' ); $html_output .= '' diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index 0ca07f9d4006..1badae4f5d9c 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -716,8 +716,7 @@ function PMA_getHtmlForResourceLimits($row) . 'MAX QUERIES PER HOUR' . '' . "\n" . ''; $html_output .= sprintf(__('Add %s column(s)'), $num_fields); diff --git a/themes/pmahomme/css/common.css.php b/themes/pmahomme/css/common.css.php index 63a5a25905c5..438c8839ec53 100644 --- a/themes/pmahomme/css/common.css.php +++ b/themes/pmahomme/css/common.css.php @@ -201,6 +201,10 @@ margin: 6px; } +input[type=number] { + width: 50px; +} + input[type=text], input[type=password], input[type=number], From 45d6f47c849e0f7dee4cb8b7de7593a8b9548b0e Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 2 May 2014 08:04:17 -0400 Subject: [PATCH 2/2] Incorrect attributes for number fields Signed-off-by: Marc Delisle --- ChangeLog | 1 + libraries/TableSearch.class.php | 4 ++-- libraries/config/FormDisplay.tpl.php | 2 +- libraries/index.lib.php | 2 +- libraries/server_privileges.lib.php | 6 +++--- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 50c0d1a68dfb..ae9a0f82f21f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ phpMyAdmin - ChangeLog - bug Correctly fetch length of user and host fields in MySQL tables - bug #4364 examples/signon.php does not support the SessionSavePath directive - bug #4382 Missing source for OpenLayers library +- bug Incorrect attributes for number fields 4.2.0.0 (not yet released) + rfe #1403 Export only triggers diff --git a/libraries/TableSearch.class.php b/libraries/TableSearch.class.php index 1f47cd3eeb3f..bbc233c0a79d 100644 --- a/libraries/TableSearch.class.php +++ b/libraries/TableSearch.class.php @@ -829,7 +829,7 @@ private function _getOptions() */ $html_output .= '
' . '' . __('Number of rows per page') . '' - . '' . '
'; @@ -901,7 +901,7 @@ private function _getOptionsZoom($dataLabel) . __("Maximum rows to plot") . ''; $html_output .= ''; $html_output .= ''; break; case 'number_text': - echo ''; break; case 'checkbox': diff --git a/libraries/index.lib.php b/libraries/index.lib.php index 6137c9d3280d..e60aab4e44a6 100644 --- a/libraries/index.lib.php +++ b/libraries/index.lib.php @@ -33,7 +33,7 @@ function PMA_getHtmlForDisplayIndexes() $html_output .= sprintf( __('Create an index on  %s columns'), '' + . 'min="1" required="required" />' ); $html_output .= '' . '' . "\n" . '' . "\n"