diff --git a/ChangeLog b/ChangeLog index 7d842eaff..e6cab876d 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,7 +10,7 @@ $Source$ table width should be limited by template if necessary, thanks to Sebastian Mendel - cybot_tm * server_databases.php: patch #1249371, correct calculation of colspan, - thanks to Sebastian Mendel; + and patch #1249414, display improvements, thanks to Sebastian Mendel; also, $dbstats should contain 0 or 1, not the colspan 2005-08-01 Michal Čihař diff --git a/server_databases.php b/server_databases.php index bfd2d38fa..e2d402048 100644 --- a/server_databases.php +++ b/server_databases.php @@ -355,40 +355,86 @@ if (count($statistics) > 0) { unset($idx_unit); unset($tot_size); unset($tot_unit); - if ($is_superuser || $cfg['AllowUserDropDatabase']) { - echo ' ' . ($GLOBALS['cfg']['PropertiesIconic'] ? '
' : '
' . "\n"; + if ($is_superuser && empty($dbstats)) { + echo ' ' . "\n"; + } else if ($is_superuser && !empty($dbstats)) { + echo ' ' . "\n"; + } + echo ' ' . "\n" + . '
' . "\n" + . ' ' . "\n" + . ' ' . "\n" + . ' ' . "\n" + . ' ' . "\n" + . ' ' . "\n" + . ' ' . "\n" + . ' ' . $strDatabasesStatsEnable . "\n" + . ' ' . "\n" + . ' ' . "\n" + . '
 ' . "\n" + . ' ' . $strDatabasesStatsHeavyTraffic . "\n" + . '
 
' . "\n" + . ' ' . "\n" + . ' ' . "\n" + . ' ' . "\n" + . ' ' . "\n" + . ' ' . "\n" + . ' ' . "\n" + . ' ' . $strDatabasesStatsDisable . "\n" + . ' ' . "\n" + . ' ' . "\n" + . '
 
' . "\n" + . ' ' . "\n" + . ' ' . "\n" + . ' ' . "\n" + . ' ' . $strDropSelectedDatabases . "\n" + . ' ' . "\n" + . '
 ' . "\n" + . ' ' . "\n" + . '
 
' . "\n"; + } } - if ($is_superuser && empty($dbstats)) { - echo ' ' . ($GLOBALS['cfg']['PropertiesIconic'] ? '' : '
  • ') . "\n" - . ' ' . "\n" - . ' ' . "\n" - . ' ' . ($GLOBALS['cfg']['PropertiesIconic'] ? '' : '') . "\n" - . ' ' . $strDatabasesStatsEnable . "\n" - . ' ' . "\n" - . ' ' . "\n" - . ' ' . ($GLOBALS['cfg']['PropertiesIconic'] ? ' ' : '
    ') . "\n" - . ' ' . $strDatabasesStatsHeavyTraffic . "\n" - . ' ' . ($GLOBALS['cfg']['PropertiesIconic'] ? '
     ' : '
  • ') . "\n"; - } else if ($is_superuser && !empty($dbstats)) { - echo ' ' . ($GLOBALS['cfg']['PropertiesIconic'] ? '' : '
  • ') . "\n" - . ' ' . "\n" - . ' ' . "\n" - . ' ' . ($GLOBALS['cfg']['PropertiesIconic'] ? '' : '') . "\n" - . ' ' . $strDatabasesStatsDisable . "\n" - . ' ' . "\n" - . ' ' . "\n" - . ' ' . ($GLOBALS['cfg']['PropertiesIconic'] ? '
     ' : '
  • ') . "\n"; - } - if ($is_superuser || $cfg['AllowUserDropDatabase']) { - echo ' ' . ($GLOBALS['cfg']['PropertiesIconic'] ? '' : '
  • ') . "\n" - . ' ' . "\n" - . ' ' . ($GLOBALS['cfg']['PropertiesIconic'] ? '' : '') . "\n" - . ' ' . $strDropSelectedDatabases . "\n" - . ' ' . "\n" - . ' ' . ($GLOBALS['cfg']['PropertiesIconic'] ? ' ' : '
    ') . "\n" - . ' ' . "\n" - . ' ' . ($GLOBALS['cfg']['PropertiesIconic'] ? '
     ' : '
  • ') . "\n" - . ' ' . ($GLOBALS['cfg']['PropertiesIconic'] ? '' : '') . "\n"; + else + { + // classic view + if ($is_superuser || $cfg['AllowUserDropDatabase']) { + echo '
    ' . "\n"; + } } echo '' . "\n"; } else { @@ -398,8 +444,33 @@ if (count($statistics) > 0) { /** * Create new database. */ +if ( $GLOBALS['cfg']['PropertiesIconic'] ) +{ + echo '' . "\n"; + echo '' . "\n" + . ' ' . "\n" + . '
    ' . "\n" + . ' ' . "\n" + . ' ' . "\n"; +} +else +{ + echo '
      ' . "\n"; + echo '
    • ' . "\n"; +} + require('./libraries/display_create_database.lib.php'); +if ( $GLOBALS['cfg']['PropertiesIconic'] ) +{ + echo '
    ' . "\n"; +} +else +{ + echo ' ' . "\n"; + echo '' . "\n"; +} + /** * Sends the footer */