From 36d839cf28a1f253398a55513d74c9819fb4a1b8 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 11 Jul 2013 16:34:14 -0700 Subject: [PATCH] Mark approximate number of selected rows --- adminer/select.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 2f467b7a..d00edede 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -493,7 +493,8 @@ if (!$columns && support("table")) { echo "

\n"; echo ($found_rows !== false ? "(" . ($exact_count ? "" : "~ ") . lang('%d row(s)', $found_rows) . ") " : ""); - echo checkbox("all", 1, 0, lang('whole result'), "var checked = formChecked(this, /check/); selectCount('selected', this.checked ? '$found_rows' : checked); selectCount('selected2', this.checked || !checked ? '$found_rows' : checked);") . "\n"; + $display_rows = ($exact_count ? "" : "~ ") . $found_rows; + echo checkbox("all", 1, 0, lang('whole result'), "var checked = formChecked(this, /check/); selectCount('selected', this.checked ? '$display_rows' : checked); selectCount('selected2', this.checked || !checked ? '$display_rows' : checked);") . "\n"; if ($adminer->selectCommandPrint()) { ?> @@ -503,7 +504,7 @@ if (!$columns && support("table")) {

- +