Mark disabled engines

This commit is contained in:
Alexander M. Turek
2005-02-16 16:45:20 +00:00
parent 3fb320ab49
commit 2964c58dfc
4 changed files with 6 additions and 3 deletions

View File

@@ -7,6 +7,9 @@ $Source$
2005-02-16 Alexander M. Turek <me@derrabus.de> 2005-02-16 Alexander M. Turek <me@derrabus.de>
* db_details_export.php: Views are not exportable yet. * db_details_export.php: Views are not exportable yet.
* themes/*/css/theme_right.css.php: Allow to mark a whole row as disabled.
* server_engines.php: Use new CSS class 'disabled' for unavailable
engines.
2005-02-14 Michal Čihař <michal@cihar.com> 2005-02-14 Michal Čihař <michal@cihar.com>
* tbl_printview.php, libraries/tbl_indexes.lib.php: Fix displaying * tbl_printview.php, libraries/tbl_indexes.lib.php: Fix displaying

View File

@@ -144,7 +144,7 @@ if (empty($engine) || empty($mysql_storage_engines[$engine])) {
$useBgcolorOne = TRUE; $useBgcolorOne = TRUE;
$common_url = './server_engines.php?' . PMA_generate_common_url() . '&amp;engine='; $common_url = './server_engines.php?' . PMA_generate_common_url() . '&amp;engine=';
foreach ($mysql_storage_engines as $engine => $details) { foreach ($mysql_storage_engines as $engine => $details) {
echo ' <tr>' . "\n" echo ' <tr' . ($details['Support'] == 'NO' || $details['Support'] == 'DISABLED' ? ' class="disabled"' : '') . '>' . "\n"
. ' <td bgcolor="' . ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '">' . "\n" . ' <td bgcolor="' . ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '">' . "\n"
. ' <a href="' . $common_url . $engine . '">' . "\n" . ' <a href="' . $common_url . $engine . '">' . "\n"
. ' ' . htmlspecialchars($details['Engine']) . "\n" . ' ' . htmlspecialchars($details['Engine']) . "\n"

View File

@@ -500,7 +500,7 @@ img, input, select, button {
color: #666666; color: #666666;
text-decoration: none; text-decoration: none;
} }
td.disabled { tr.disabled td, td.disabled {
background-color: #cccccc; background-color: #cccccc;
} }

View File

@@ -285,7 +285,7 @@ img, input, select, button {
.disabled a:hover { .disabled a:hover {
text-decoration: none; text-decoration: none;
} }
td.disabled { tr.disabled td, td.disabled {
background-color: #cccccc; background-color: #cccccc;
} }