view icon for views

This commit is contained in:
Sebastian Mendel
2005-10-20 09:08:08 +00:00
parent 0b477e9c03
commit f0b1d9adc0
2 changed files with 8 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2005-10-19 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* sql.php, footer.inc.php: refresh left frame on view creation
* left.php: view icon for views
2005-10-19 Alexander M. Turek <me@derrabus.de>
* lang/*.inc.php, libraries/mysql_charsets.lib.php: Correct description

View File

@@ -457,8 +457,13 @@ function PMA_displayTableList( $tables, $visible = false,
.'&amp;sql_query=' . urlencode('SELECT * FROM `'
. $table['Name'] . '`') . '" '
.' >'
.'<img class="icon" src="' . $GLOBALS['pmaThemeImage'] . 'b_sbrowse.png"'
.' id="icon_' . htmlspecialchars( $table_db . '.' . $table['Name'] ) . '"'
.'<img class="icon"';
if ( 'VIEW' === strtoupper( $table['Comment'] ) ) {
echo ' src="' . $GLOBALS['pmaThemeImage'] . 's_views.png"';
} else {
echo ' src="' . $GLOBALS['pmaThemeImage'] . 'b_sbrowse.png"';
}
echo ' id="icon_' . htmlspecialchars( $table_db . '.' . $table['Name'] ) . '"'
.' width="10" height="10" alt="' . $GLOBALS['strBrowse'] . '" /></a>' . "\n"
.'<a href="' . $href . '" title="' . $table['Comment']
.' (' . $table['Rows'] . ' ' . $GLOBALS['strRows'] . ')"'