Enabled new icons for privileges administration.

This commit is contained in:
Alexander M. Turek
2004-06-07 08:07:53 +00:00
parent 8c2512b3ba
commit b7c84e4247
4 changed files with 35 additions and 22 deletions

View File

@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2004-06-07 Alexander M. Turek <me@derrabus.de>
* css/phpmyadmin.css.php: beautifications.
* server_databases.php, server_privileges.php, css/phpmyadmin.css.php:
Enabled new icons for privileges administration (patch #947190).
2004-06-06 Garvin Hicking <me@supergarv.de> 2004-06-06 Garvin Hicking <me@supergarv.de>
* libraries/display_tbl.lib.php, libraries/functions.js, * libraries/display_tbl.lib.php, libraries/functions.js,
css/phpmyadmin.css.php: Further fixing of broken vertical css/phpmyadmin.css.php: Further fixing of broken vertical

View File

@@ -312,55 +312,63 @@ ul.mainLeft li {
<?php if ($cfg['MainPageIconic']) { ?> <?php if ($cfg['MainPageIconic']) { ?>
.lstPhpInfo { li.lstPhpInfo {
list-style: url(../images/php_sym.png); list-style: url(../images/php_sym.png);
} }
.lstPmaDocs { li.lstPmaDocs {
list-style: url(../images/b_docs.png); list-style: url(../images/b_docs.png);
} }
.lstPmaPage { li.lstPmaPage {
list-style: url(../images/b_home.png); list-style: url(../images/b_home.png);
} }
.lstPmaLang { li.lstPmaLang {
list-style: url(../images/s_lang.png); list-style: url(../images/s_lang.png);
} }
.lstPmaChar { li.lstPmaChar {
list-style: url(../images/s_rights.png); list-style: url(../images/s_rights.png);
} }
.lstNewdb { li.lstNewdb {
list-style: url(../images/b_newdb.png); list-style: url(../images/b_newdb.png);
} }
.lstStatus { li.lstStatus {
list-style: url(../images/s_status.png); list-style: url(../images/s_status.png);
} }
.lstVars { li.lstVars {
list-style: url(../images/s_vars.png); list-style: url(../images/s_vars.png);
} }
.lstProcess { li.lstProcess {
list-style: url(../images/s_process.png); list-style: url(../images/s_process.png);
} }
.lstPrivileges { li.lstPrivileges {
list-style: url(../images/s_rights.png); list-style: url(../images/s_rights.png);
} }
.lstCollations { li.lstCollations {
list-style: url(../images/s_asci.png); list-style: url(../images/s_asci.png);
} }
.lstReload { li.lstReload {
list-style: url(../images/s_reload.png); list-style: url(../images/s_reload.png);
} }
.lstDatabases { li.lstDatabases {
list-style: url(../images/s_db.png); list-style: url(../images/s_db.png);
} }
.lstExport { li.lstExport {
list-style: url(../images/b_export.png); list-style: url(../images/b_export.png);
} }
.lstLogoff { li.lstLogoff {
list-style: url(../images/s_loggoff.png); list-style: url(../images/s_loggoff.png);
} }
.lstPasswd { li.lstPasswd {
list-style: url(../images/s_passwd.png); list-style: url(../images/s_passwd.png);
} }
<?php } ?> <?php } ?>
<?php if ($cfg['MainPageIconic']) { ?>
li.lstUsradd {
list-style: url(../images/b_usradd.png);
}
li.lstUsrdrop {
list-style: url(../images/b_usrdrop.png);
}
<?php } ?>
hr{ color: #666699; background-color: #6666cc; border: 0; height: 1px; } hr{ color: #666699; background-color: #6666cc; border: 0; height: 1px; }

View File

@@ -210,7 +210,7 @@ if (count($statistics) > 0) {
} }
if ($is_superuser) { if ($is_superuser) {
echo ' <th>' . "\n" echo ' <th>' . "\n"
. ' &nbsp;' . $strAction . '&nbsp;' . "\n" . ' &nbsp;' . ($cfg['PropertiesIconic'] ? '' : $strAction . '&nbsp;') . "\n"
. ' </th>' . "\n"; . ' </th>' . "\n";
} }
echo ' </tr>' . "\n"; echo ' </tr>' . "\n";
@@ -272,7 +272,7 @@ if (count($statistics) > 0) {
if ($is_superuser) { if ($is_superuser) {
echo ' <td bgcolor="' . ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '">' . "\n" echo ' <td bgcolor="' . ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '">' . "\n"
. ' <a onclick="reload_window(\'' . urlencode($current['db_name']) . '\'); return true;" href="./server_privileges.php?' . $url_query . '&amp;checkprivs=' . urlencode($current['db_name']) . '" title="' . sprintf($strCheckPrivsLong, htmlspecialchars($current['db_name'])) . '">'. "\n" . ' <a onclick="reload_window(\'' . urlencode($current['db_name']) . '\'); return true;" href="./server_privileges.php?' . $url_query . '&amp;checkprivs=' . urlencode($current['db_name']) . '" title="' . sprintf($strCheckPrivsLong, htmlspecialchars($current['db_name'])) . '">'. "\n"
. ' ' . $strCheckPrivs . "\n" . ' ' . ($cfg['PropertiesIconic'] ? '<img src="./images/b_usrcheck.png" alt="' . $strCheckPrivs . '" border="0" width="16" height="16" />' : $strCheckPrivs) . "\n"
. ' </a>' . "\n" . ' </a>' . "\n"
. ' </td>' . "\n"; . ' </td>' . "\n";
} }

View File

@@ -949,7 +949,7 @@ if (empty($adduser) && empty($checkprivs)) {
. ' <th>&nbsp;' . $strPassword . '&nbsp;</th>' . "\n" . ' <th>&nbsp;' . $strPassword . '&nbsp;</th>' . "\n"
. ' <th>&nbsp;' . $strGlobalPrivileges . '&nbsp;</th>' . "\n" . ' <th>&nbsp;' . $strGlobalPrivileges . '&nbsp;</th>' . "\n"
. ' <th>&nbsp;' . $strGrantOption . '&nbsp;</th>' . "\n" . ' <th>&nbsp;' . $strGrantOption . '&nbsp;</th>' . "\n"
. ' <th>&nbsp;' . $strAction . '&nbsp;</th>' . "\n"; . ' <th>&nbsp;' . ($cfg['PropertiesIconic'] ? '' : $strAction . '&nbsp;') . '</th>' . "\n";
echo ' </tr>' . "\n"; echo ' </tr>' . "\n";
$useBgcolorOne = TRUE; $useBgcolorOne = TRUE;
for ($i = 0; $row = PMA_DBI_fetch_assoc($res); $i++) { for ($i = 0; $row = PMA_DBI_fetch_assoc($res); $i++) {
@@ -963,7 +963,7 @@ if (empty($adduser) && empty($checkprivs)) {
. ' ' . join(',' . "\n" . ' ', $privs) . "\n" . ' ' . join(',' . "\n" . ' ', $privs) . "\n"
. ' </tt></td>' . "\n" . ' </tt></td>' . "\n"
. ' <td bgcolor="' . ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '">' . ($row['Grant_priv'] == 'Y' ? $strYes : $strNo) . '</td>' . "\n" . ' <td bgcolor="' . ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '">' . ($row['Grant_priv'] == 'Y' ? $strYes : $strNo) . '</td>' . "\n"
. ' <td bgcolor="' . ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '"><a href="server_privileges.php?' . $url_query . '&amp;username=' . urlencode($row['User']) . '&amp;hostname=' . urlencode($row['Host']) . '">' . $strEdit . '</a></td>' . "\n" . ' <td bgcolor="' . ($useBgcolorOne ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']) . '"><a href="server_privileges.php?' . $url_query . '&amp;username=' . urlencode($row['User']) . '&amp;hostname=' . urlencode($row['Host']) . '" title="' . $strEdit . '">' . ($cfg['PropertiesIconic'] ? '<img src="./images/b_usredit.png" alt="' . $strEdit . '" border="0" width="16" height="16" />' : $strEdit) . '</a></td>' . "\n"
. ' </tr>' . "\n"; . ' </tr>' . "\n";
$useBgcolorOne = !$useBgcolorOne; $useBgcolorOne = !$useBgcolorOne;
} }
@@ -986,11 +986,11 @@ if (empty($adduser) && empty($checkprivs)) {
. ' </tr>' . "\n" . ' </tr>' . "\n"
. ' </table>' . "\n" . ' </table>' . "\n"
. ' <ul>' . "\n" . ' <ul>' . "\n"
. ' <li>' . "\n" . ' <li class="lstUsradd">' . "\n"
. ' <b><a href="server_privileges.php?' . $url_query . '&amp;adduser=1">' . $strAddUser . '</a></b><br />' . "\n" . ' <b><a href="server_privileges.php?' . $url_query . '&amp;adduser=1">' . $strAddUser . '</a></b><br />' . "\n"
. ' <br /><br />' . "\n" . ' <br /><br />' . "\n"
. ' </li>' . "\n" . ' </li>' . "\n"
. ' <li>' . "\n" . ' <li class="lstUsrdrop">' . "\n"
. ' <b>' . $strRemoveSelectedUsers . '</b><br />' . "\n" . ' <b>' . $strRemoveSelectedUsers . '</b><br />' . "\n"
. ' <input type="radio" title="' . $strJustDelete . ' ' . $strJustDeleteDescr . '" name="mode" id="radio_mode_1" value="1" checked="checked" />' . "\n" . ' <input type="radio" title="' . $strJustDelete . ' ' . $strJustDeleteDescr . '" name="mode" id="radio_mode_1" value="1" checked="checked" />' . "\n"
. ' <label for="radio_mode_1" title="' . $strJustDelete . ' ' . $strJustDeleteDescr . '">' . "\n" . ' <label for="radio_mode_1" title="' . $strJustDelete . ' ' . $strJustDeleteDescr . '">' . "\n"