obey MaxTableList in navi also (Light mode only); move the navigator near the database list

This commit is contained in:
Marc Delisle
2007-07-09 16:30:39 +00:00
parent 6b8aabaae8
commit ae603822a5
4 changed files with 29 additions and 12 deletions

View File

@@ -717,7 +717,7 @@ function PMA_sendHeaderLocation($uri)
}
/**
* returns array with tables of given db with extended infomation and grouped
* returns array with tables of given db with extended information and grouped
*
* @uses $cfg['LeftFrameTableSeparator']
* @uses $cfg['LeftFrameTableLevel']
@@ -730,14 +730,15 @@ function PMA_sendHeaderLocation($uri)
* @uses strstr()
* @uses explode()
* @param string $db name of db
* return array (rekursive) grouped table list
* @param string $tables name of tables
* return array (recursive) grouped table list
*/
function PMA_getTableList($db, $tables = null)
function PMA_getTableList($db, $tables = null, $limit_offset = 0, $limit_count = false)
{
$sep = $GLOBALS['cfg']['LeftFrameTableSeparator'];
if (null === $tables) {
$tables = PMA_DBI_get_tables_full($db);
$tables = PMA_DBI_get_tables_full($db, false, false, null, $limit_offset, $limit_count);
if ($GLOBALS['cfg']['NaturalOrder']) {
uksort($tables, 'strnatcasecmp');
}