fixed layout

This commit is contained in:
Alexander M. Turek
2003-02-18 08:19:15 +00:00
parent 376f66a438
commit 5965d97e26

View File

@@ -306,6 +306,7 @@ if (count($statistics) > 0) {
. ' <th>&nbsp;</th>' . "\n" . ' <th>&nbsp;</th>' . "\n"
. ' </tr>' . "\n"; . ' </tr>' . "\n";
} }
if ($is_superuser || $cfg['AllowUserDropDatabase']) {
$common_url_query = PMA_generate_common_url() . '&amp;sort_by=' . $sort_by . '&amp;sort_order=' . $sort_order . '&amp;dbstats=' . (empty($dbstats) ? '10' : '3'); $common_url_query = PMA_generate_common_url() . '&amp;sort_by=' . $sort_by . '&amp;sort_order=' . $sort_order . '&amp;dbstats=' . (empty($dbstats) ? '10' : '3');
echo ' <tr>' . "\n" echo ' <tr>' . "\n"
. ' <td colspan="' . (empty($dbstats) ? '10' : '3') . '">' . "\n" . ' <td colspan="' . (empty($dbstats) ? '10' : '3') . '">' . "\n"
@@ -318,40 +319,46 @@ if (count($statistics) > 0) {
. ' ' . $strUncheckAll . ' ' . $strUncheckAll
. ' </a>' . "\n" . ' </a>' . "\n"
. ' </td>' . "\n" . ' </td>' . "\n"
. ' </tr>' . "\n" . ' </tr>' . "\n";
. ' </table>' . "\n" }
. ' <ul>' . "\n"; echo ' </table>' . "\n";
unset($data_size); unset($data_size);
unset($data_unit); unset($data_unit);
unset($idx_size); unset($idx_size);
unset($idx_unit); unset($idx_unit);
unset($tot_size); unset($tot_size);
unset($tot_unit); unset($tot_unit);
echo ' <li>' . "\n" if ($is_superuser || $cfg['AllowUserDropDatabase']) {
. ' <b>' . "\n"; echo ' <ul>' . "\n";
}
if ($is_superuser && empty($dbstats) && PMA_MYSQL_INT_VERSION >= 32303) { if ($is_superuser && empty($dbstats) && PMA_MYSQL_INT_VERSION >= 32303) {
echo ' <a href="./server_databases.php3?' . $url_query . '&amp;dbstats=1" title="' . $strDatabasesStatsEnable . '">' . "\n" echo ' <li>' . "\n"
. ' <b>' . "\n"
. ' <a href="./server_databases.php3?' . $url_query . '&amp;dbstats=1" title="' . $strDatabasesStatsEnable . '">' . "\n"
. ' ' . $strDatabasesStatsEnable . "\n" . ' ' . $strDatabasesStatsEnable . "\n"
. ' </a>' . "\n" . ' </a>' . "\n"
. ' </b><br />' . "\n" . ' </b>' . "\n"
. ' </li><br /><br />' . "\n"
. $strDatabasesStatsHeavyTraffic . "\n"; . $strDatabasesStatsHeavyTraffic . "\n";
} else if (!empty($dbstats)) { } else if ($is_superuser && !empty($dbstats)) {
echo ' <a href="./server_databases.php3?' . $url_query . '" title="' . $strDatabasesStatsDisable . '">'. "\n" echo ' <li>' . "\n"
. ' <b>' . "\n"
. ' <a href="./server_databases.php3?' . $url_query . '" title="' . $strDatabasesStatsDisable . '">'. "\n"
. ' ' . $strDatabasesStatsDisable . "\n" . ' ' . $strDatabasesStatsDisable . "\n"
. ' </a>' . "\n" . ' </a>' . "\n"
. ' </b>' . "\n"; . ' </b>' . "\n"
. ' </li><br /><br />' . "\n";
} }
if ($is_superuser || $cfg['AllowUserDropDatabase']) { if ($is_superuser || $cfg['AllowUserDropDatabase']) {
echo ' </li><br /><br />' . "\n" echo ' <li>' . "\n"
. ' <li>' . "\n"
. ' <b>' . "\n" . ' <b>' . "\n"
. ' ' . $strDropSelectedDatabases . "\n" . ' ' . $strDropSelectedDatabases . "\n"
. ' </b><br />' . "\n" . ' </b><br />' . "\n"
. ' <input type="submit" name="drop_selected_dbs" value="' . $strGo . '" />' . "\n" . ' <input type="submit" name="drop_selected_dbs" value="' . $strGo . '" />' . "\n"
. ' </li>' . "\n"; . ' </li>' . "\n"
. ' </ul>' . "\n";
} }
echo ' </ul>' . "\n" echo '</form>' . "\n";
. '</form>' . "\n";
} else { } else {
echo $strNoDatabases . "\n"; echo $strNoDatabases . "\n";
} }