better pointer coding

This commit is contained in:
Loïc Chapeaux
2001-12-07 16:03:24 +00:00
parent 6a76b2ced4
commit a2a9392ecf

View File

@@ -626,9 +626,13 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
while ($row = mysql_fetch_array($dt_result)) { while ($row = mysql_fetch_array($dt_result)) {
$bgcolor = ($foo % 2) ? $GLOBALS['cfgBgcolorOne'] : $GLOBALS['cfgBgcolorTwo']; $bgcolor = ($foo % 2) ? $GLOBALS['cfgBgcolorOne'] : $GLOBALS['cfgBgcolorTwo'];
// loic1: pointer code part
$on_mouse = ($GLOBALS['cfgBrowsePointerColor'] == '')
? ''
: ' onmouseover="setPointer(this, \'' . $GLOBALS['cfgBrowsePointerColor'] . '\')" onmouseout="setPointer(this, \'' . $bgcolor . '\')"';
?> ?>
<tr onmouseover="setPointer(this, '<?php echo $GLOBALS['cfgBrowsePointerColor']; ?>')" onmouseout="setPointer(this, '<?php echo $bgcolor; ?>')"> <tr<?php echo $on_mouse; ?>>
<?php <?php
echo "\n"; echo "\n";