diff --git a/ChangeLog b/ChangeLog index f16ea9a54..339005563 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-05-08 Korakot Chaovavanich + * In edit page, replace dropdown with radio if short enough + 2001-05-08 Loïc Chapeaux * db_readdump.php3, line 14 and sql.php3, line 112: two warnings were displayed with the phpMyBookmark path if the error reporting level diff --git a/tbl_change.php3 b/tbl_change.php3 index af3a14095..d387bc9d4 100755 --- a/tbl_change.php3 +++ b/tbl_change.php3 @@ -92,16 +92,31 @@ for($i=0;$i"; + // show dropdown or radio depend on length + if (strlen($row_table_def["Type"]) > 20) { + echo ""; + } + else { + echo "\n"; + for($j=0; $j".htmlspecialchars(substr($set[$j], 1, -1))."\n"; + } + echo ""; + } } elseif(strstr($row_table_def["Type"], "set"))