From c4fe12a14cf43db1ca52d5cdf78457b3a55e4433 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Sat, 26 Sep 2009 16:52:32 +0000 Subject: [PATCH] Clickable labels in IE6 git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1151 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/dump.inc.php | 2 +- adminer/include/functions.inc.php | 6 ++++-- todo.txt | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/adminer/dump.inc.php b/adminer/dump.inc.php index c36bfdcf..0ae8f52f 100644 --- a/adminer/dump.inc.php +++ b/adminer/dump.inc.php @@ -170,7 +170,7 @@ if (strlen(DB)) { echo "\n"; $views = ""; foreach (table_status() as $row) { - $checked = (strlen($TABLE) && $row["Name"] != $TABLE); + $checked = !strlen($TABLE) || $row["Name"] == $TABLE; $print = "" . checkbox("tables[]", $row["Name"], $checked, $row["Name"], "form_uncheck('check-tables');"); if (!$row["Engine"]) { $views .= "$print\n"; diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 14eef590..516b6364 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -68,8 +68,10 @@ function nbsp($string) { * @return string */ function checkbox($name, $value, $checked, $label = "", $onclick = "") { - $return = ""; - return (strlen($label) ? "" : $return); + static $id = 0; + $id++; + $return = ""; + return (strlen($label) ? "" : $return); } /** Generate list of HTML options diff --git a/todo.txt b/todo.txt index b5099835..8b37111d 100644 --- a/todo.txt +++ b/todo.txt @@ -7,7 +7,6 @@ Create view and routine options Function to fix database encoding - http://php.vrana.cz/prevod-kodovani-mysql.php Highlight SQL textarea - may use external CodePress Mass editation of individual rows -IE6 -