Tooltips on icons

This commit is contained in:
Loïc Chapeaux
2002-04-13 17:56:22 +00:00
parent 09a4631e80
commit 021df73c21
4 changed files with 14 additions and 12 deletions

View File

@@ -13,8 +13,9 @@ $Source$
Mike Eheler <meheler @ users.sourceforge.net>. Mike Eheler <meheler @ users.sourceforge.net>.
* tbl_alter.php3, lines 109-112: fixed bug #543365 - Can't change field * tbl_alter.php3, lines 109-112: fixed bug #543365 - Can't change field
properties when name contains localized characters. properties when name contains localized characters.
* left.php3, lines 271, 298 & 415; libraries/display_tbl.lib.php3, line 460: the valid xhtml attribute * db_stats.php3; left.php3; tbl_properties.php3;
to display the "tool tip" of an image is "title" and not "alt". libraries/display_tbl.lib.php3: the valid xhtml attribute to display
the "tool tip" of an image is "title" and not "alt".
2002-04-12 Lo<4C>c Chapeaux <lolo@phpheaven.net> 2002-04-12 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* libraries/display_tbl.lib.php3, lines 957-991: expended cosmetic changes * libraries/display_tbl.lib.php3, lines 957-991: expended cosmetic changes

View File

@@ -138,8 +138,9 @@ if ($num_dbs > 0) {
} }
$img_tag = '&nbsp;' . "\n" $img_tag = '&nbsp;' . "\n"
. ' ' . ' '
. '<img src="./images/' . $sort_order . '_order.gif" border="0" width="7" height="7" alt="' . '<img src="./images/' . $sort_order . '_order.gif" border="0" width="7" height="7"'
. (($sort_order == 'asc') ? $strAscending : $strDescending) . '" />'; . ' alt="' . (($sort_order == 'asc') ? $strAscending : $strDescending) . '"'
. ' title="' . (($sort_order == 'asc') ? $strAscending : $strDescending) . '" />';
// Default order is ascending for db name, descending for sizes // Default order is ascending for db name, descending for sizes
for ($i = 0; $i < 5; $i++) { for ($i = 0; $i < 5; $i++) {
$url_sort[$i]['order'] = (($i == 0) ? 'asc' : 'desc'); $url_sort[$i]['order'] = (($i == 0) ? 'asc' : 'desc');

View File

@@ -470,7 +470,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
<tr> <tr>
<td colspan="<?php echo $num_rows + floor($num_rows/$repeat_cells) + 1; ?>" align="center"> <td colspan="<?php echo $num_rows + floor($num_rows/$repeat_cells) + 1; ?>" align="center">
<a href="<?php echo $text_url; ?>"> <a href="<?php echo $text_url; ?>">
<img src="./images/<?php echo (($dontlimitchars) ? 'partialtext' : 'fulltext'); ?>.png" border="0" width="50" height="20" alt="<?php echo (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']); ?>" /></a> <img src="./images/<?php echo (($dontlimitchars) ? 'partialtext' : 'fulltext'); ?>.png" border="0" width="50" height="20" alt="<?php echo (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']); ?>" title="<?php echo (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']); ?>" /></a>
</td> </td>
</tr> </tr>
<?php <?php
@@ -486,14 +486,14 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
?> ?>
<td<?php echo $colspan; ?> align="center"> <td<?php echo $colspan; ?> align="center">
<a href="<?php echo $text_url; ?>"> <a href="<?php echo $text_url; ?>">
<img src="./images/<?php echo (($dontlimitchars) ? 'partialtext' : 'fulltext'); ?>.png" border="0" width="50" height="20" alt="<?php echo (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']); ?>" /></a> <img src="./images/<?php echo (($dontlimitchars) ? 'partialtext' : 'fulltext'); ?>.png" border="0" width="50" height="20" alt="<?php echo (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']); ?>" title="<?php echo (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']); ?>" /></a>
</td> </td>
<?php <?php
} // end horizontal mode } // end horizontal mode
else { else {
$vertical_display['textbtn'] = ' <td' . $rowspan . ' align="center" valign="middle">' . "\n" $vertical_display['textbtn'] = ' <td' . $rowspan . ' align="center" valign="middle">' . "\n"
. ' <a href="' . $text_url . '">' . "\n" . ' <a href="' . $text_url . '">' . "\n"
. ' <img src="./images/' . (($dontlimitchars) ? 'partialtext' : 'fulltext') . '.png" border="0" width="50" height="20" alt="' . (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']) . '" /></a>' . "\n" . ' <img src="./images/' . (($dontlimitchars) ? 'partialtext' : 'fulltext') . '.png" border="0" width="50" height="20" alt="' . (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']) . '" title="' . (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']) . '" /></a>' . "\n"
. ' </td>' . "\n"; . ' </td>' . "\n";
} // end vertical mode } // end vertical mode
} }
@@ -571,11 +571,11 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
} }
else if (substr($sql_order, -3) == 'ASC' && $is_in_sort) { else if (substr($sql_order, -3) == 'ASC' && $is_in_sort) {
$sort_order = ' ORDER BY ' . $sort_tbl . PMA_backquote($fields_meta[$i]->name) . ' DESC'; $sort_order = ' ORDER BY ' . $sort_tbl . PMA_backquote($fields_meta[$i]->name) . ' DESC';
$order_img = '&nbsp;<img src="./images/asc_order.gif" border="0" width="7" height="7" alt="ASC" />'; $order_img = '&nbsp;<img src="./images/asc_order.gif" border="0" width="7" height="7" alt="ASC" title="ASC" />';
} }
else if (substr($sql_order, -4) == 'DESC' && $is_in_sort) { else if (substr($sql_order, -4) == 'DESC' && $is_in_sort) {
$sort_order = ' ORDER BY ' . $sort_tbl . PMA_backquote($fields_meta[$i]->name) . ' ASC'; $sort_order = ' ORDER BY ' . $sort_tbl . PMA_backquote($fields_meta[$i]->name) . ' ASC';
$order_img = '&nbsp;<img src="./images/desc_order.gif" border="0" width="7" height="7" alt="DESC" />'; $order_img = '&nbsp;<img src="./images/desc_order.gif" border="0" width="7" height="7" alt="DESC" title="DESC" />';
} }
if (eregi('(.*)( LIMIT (.*)| PROCEDURE (.*)| FOR UPDATE| LOCK IN SHARE MODE)', $unsorted_sql_query, $regs3)) { if (eregi('(.*)( LIMIT (.*)| PROCEDURE (.*)| FOR UPDATE| LOCK IN SHARE MODE)', $unsorted_sql_query, $regs3)) {
$sorted_sql_query = $regs3[1] . $sort_order . $regs3[2]; $sorted_sql_query = $regs3[1] . $sort_order . $regs3[2];
@@ -636,14 +636,14 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
?> ?>
<td<?php echo $colspan; ?> align="center"> <td<?php echo $colspan; ?> align="center">
<a href="<?php echo $text_url; ?>"> <a href="<?php echo $text_url; ?>">
<img src="./images/<?php echo (($dontlimitchars) ? 'partialtext' : 'fulltext'); ?>.png" border="0" width="50" height="20" alt="<?php echo (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']); ?>" /></a> <img src="./images/<?php echo (($dontlimitchars) ? 'partialtext' : 'fulltext'); ?>.png" border="0" width="50" height="20" alt="<?php echo (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']); ?>" title="<?php echo (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']); ?>" /></a>
</td> </td>
<?php <?php
} // end horizontal mode } // end horizontal mode
else { else {
$vertical_display['textbtn'] = ' <td' . $rowspan . ' align="center" valign="middle">' . "\n" $vertical_display['textbtn'] = ' <td' . $rowspan . ' align="center" valign="middle">' . "\n"
. ' <a href="' . $text_url . '">' . "\n" . ' <a href="' . $text_url . '">' . "\n"
. ' <img src="./images/' . (($dontlimitchars) ? 'partialtext' : 'fulltext') . '.png" border="0" width="50" height="20" alt="' . (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']) . '" /></a>' . "\n" . ' <img src="./images/' . (($dontlimitchars) ? 'partialtext' : 'fulltext') . '.png" border="0" width="50" height="20" alt="' . (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']) . '" title="' . (($dontlimitchars) ? $GLOBALS['strPartialText'] : $GLOBALS['strFullText']) . '" /></a>' . "\n"
. ' </td>' . "\n"; . ' </td>' . "\n";
} // end vertical mode } // end vertical mode
} }

View File

@@ -398,7 +398,7 @@ echo "\n";
<tr> <tr>
<td colspan="<?php echo((PMA_MYSQL_INT_VERSION >= 32323) ? '13' : '12'); ?>"> <td colspan="<?php echo((PMA_MYSQL_INT_VERSION >= 32323) ? '13' : '12'); ?>">
<img src="./images/arrow_<?php echo $text_dir; ?>.gif" border="0" width="38" height="22" alt="<?php echo $strWithChecked; ?>" /> <img src="./images/arrow_<?php echo $text_dir; ?>.gif" border="0" width="38" height="22" alt="<?php echo $strWithChecked; ?>" title="<?php echo $strWithChecked; ?>" />
<i><?php echo $strWithChecked; ?></i>&nbsp;&nbsp; <i><?php echo $strWithChecked; ?></i>&nbsp;&nbsp;
<input type="submit" name="submit_mult" value="<?php echo $strChange; ?>" /> <input type="submit" name="submit_mult" value="<?php echo $strChange; ?>" />
<?php <?php