From 872cadf60d2c13e89d4e4db29d796066643639be Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Fri, 5 Oct 2007 14:06:27 +0000 Subject: [PATCH] make use of PMA_showHint() in more places --- db_search.php | 9 +++++---- db_structure.php | 11 +++-------- libraries/common.lib.php | 6 +++++- libraries/display_export.lib.php | 32 +++++++++++++++----------------- libraries/display_tbl.lib.php | 8 +------- libraries/tbl_properties.inc.php | 29 ++++++++++------------------- 6 files changed, 39 insertions(+), 56 deletions(-) diff --git a/db_search.php b/db_search.php index 0009c2939..c74610ba6 100644 --- a/db_search.php +++ b/db_search.php @@ -304,11 +304,13 @@ if (isset($_REQUEST['submit_search'])) { /> 1
+ +
/> 1
+ +
/>
-
- 1 + diff --git a/db_structure.php b/db_structure.php index 4733f008e..6000d2791 100644 --- a/db_structure.php +++ b/db_structure.php @@ -183,6 +183,8 @@ $odd_row = true; $at_least_one_view_exceeds_max_count = false; $sum_row_count_pre = ''; +$max_exact_count_note = PMA_showHint(PMA_sanitize(sprintf($strViewMaxExactCount, PMA_formatNumber($cfg['MaxExactCountViews'], 0), '[a@./Documentation.html#cfg_MaxExactCountViews@_blank]', '[/a]'))); + foreach ($tables as $keyname => $each_table) { if ($each_table['TABLE_ROWS'] === null || $each_table['TABLE_ROWS'] < $GLOBALS['cfg']['MaxExactCount']) { $each_table['TABLE_ROWS'] = PMA_Table::countRecords($db, @@ -352,7 +354,7 @@ foreach ($tables as $keyname => $each_table) { $at_least_one_view_exceeds_max_count = true; $row_count_pre = '~'; $sum_row_count_pre = '~'; - $show_superscript = '1'; + $show_superscript = $max_exact_count_note; } elseif($each_table['ENGINE'] == 'InnoDB') { // InnoDB table: Row count is not accurate $row_count_pre = '~'; @@ -490,13 +492,6 @@ echo '