From 6f943e9d3e14c5402df73cf916bf0aa1ade59d69 Mon Sep 17 00:00:00 2001 From: Korakot Chaovavanich Date: Tue, 8 May 2001 09:34:25 +0000 Subject: [PATCH] replace dropdown with radio, if short --- ChangeLog | 3 +++ tbl_change.php3 | 35 +++++++++++++++++++++++++---------- 2 files changed, 28 insertions(+), 10 deletions(-) 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"))