patch 1328902 (adapted), format row count in the Browse header

This commit is contained in:
Marc Delisle
2005-10-29 19:06:28 +00:00
parent aca6e0fbf6
commit 52795b74fa
2 changed files with 3 additions and 1 deletions

View File

@@ -13,6 +13,8 @@ $Source$
2005-10-29 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html: clarification on FAQ 6.20
* server_privileges.php: respect the chosen initial
* libraries/display_tbl.lib.php: patch 1328902 (adapted), format row count
in the Browse header, thanks to Cal Henderson
2005-10-28 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* server_privilegs.php, libraries/common.lib.php,

View File

@@ -1767,7 +1767,7 @@ function PMA_displayTable(&$dt_result, &$the_disp_mode, $analyzed_sql)
$last_shown_rec = ($GLOBALS['session_max_rows'] == 'all' || $pos_next > $total)
? $total - 1
: $pos_next - 1;
PMA_showMessage($GLOBALS['strShowingRecords'] . " $pos - $last_shown_rec ($total " . $GLOBALS['strTotal'] . $selectstring . ', ' . sprintf($GLOBALS['strQueryTime'], $GLOBALS['querytime']) . ')');
PMA_showMessage($GLOBALS['strShowingRecords'] . " $pos - $last_shown_rec (" . PMA_formatNumber( $total, 0 ) . ' ' . $GLOBALS['strTotal'] . $selectstring . ', ' . sprintf($GLOBALS['strQueryTime'], $GLOBALS['querytime']) . ')');
} else if (!isset($GLOBALS['printview']) || $GLOBALS['printview'] != '1') {
PMA_showMessage($GLOBALS['strSQLQuery']);
}