addParam(count($selected));
} else {
$message->addParam(0);
}
}
}
}
/**
* Displays the links
*/
require './libraries/server_links.inc.php';
/**
* Displays the sub-page heading
*/
echo '
' . "\n"
. ($GLOBALS['cfg']['MainPageIconic']
? '
'
: '')
. ($dbstats ? __('Databases statistics') : __('Databases')) . "\n"
.'
' . "\n";
/**
* Gets the databases list
*/
if ($server > 0) {
$databases = PMA_DBI_get_databases_full(null, $dbstats, null, $sort_by,
$sort_order, $pos, true);
$databases_count = count($GLOBALS['pma']->databases);
} else {
$databases_count = 0;
}
/**
* Displays the page
*/
if ($databases_count > 0) {
reset($databases);
$first_database = current($databases);
// table col order
$column_order = PMA_getColumnOrder();
$_url_params = array(
'pos' => $pos,
'dbstats' => $dbstats,
'sort_by' => $sort_by,
'sort_order' => $sort_order,
);
PMA_listNavigator($databases_count, $pos, $_url_params, 'server_databases.php', 'frame_content', $GLOBALS['cfg']['MaxDbList']);
$_url_params['pos'] = $pos;
echo '';
} else {
echo __('No databases');
}
unset($databases_count);
/**
* Create new database.
*/
if ($cfg['ShowCreateDb']) {
echo '- ' . "\n";
require './libraries/display_create_database.lib.php';
echo '
' . "\n";
echo '
' . "\n";
}
/**
* Sends the footer
*/
require './libraries/footer.inc.php';
?>