https://bugzilla.novell.com/show_bug.cgi?id=284513#c4
Christian Boltz changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |ASSIGNED
Info Provider|suse-beta@cboltz.de |
--- Comment #4 from Christian Boltz 2007-07-16 17:59:14 MST ---
Short status info:
The mentioned bug on SF looks like a good candidate (and I'm afraid my customer
uses IE, but I still have to ask)
IE is known to handle path definitions in CSS files relative to the HTML page,
not relative to the CSS file. The best solution to avoid this is to put the CSS
file in the same directory as the HTML/PHP files or to use absolute paths. :-/
(some minutes later)
I have a reproducer:
- open phpMyAdmin in Internet Explorer 6.0 (using wine ;-)
- select a database
- select a table that does _not_ contain any data (or: create a new table)
The disabled "Anzeigen" (display) and "search" buttons at the top cause loading
of the /themes/.../error.ico file.
I just wanted to test the pathes from SF and then noticed that
a) the bugreport and the patches are from November 2005
b) the css/phpmyadmin.css is now css/phpmyadmin.css.php
Since there's already PHP code inside this style:
--------- css/phpmyadmin.css.php, line 368 --------------
/* disabled drop/empty tabs */
span.tab, span.tabcaution {
cursor: url(<?php echo $GLOBALS['cfg']['ThemePath'];
?>/original/img/error.ico), url(../<?php echo $GLOBALS['cfg']['ThemePath'];
?>/»original/img/error.ico), default;
}
----------------------------------------------------------
I propose to insert the path to the phpMyAdmin installation from $_SERVER to
have an absolute URL ("/phpMyAdmin/themes/original/img/error.ico"). You should
also drop the alternative location as second value of the cursor: option - it
will be superfluous after this change.
Proof of concept with "/phpMyAdmin/" hardcoded - this works with IE:
css/phpmyadmin.css:
/* disabled drop/empty tabs */
span.tab, span.tabcaution {
cursor: url(/phpMyAdmin/<?php echo $GLOBALS['cfg']['ThemePath'];
?>/original/img/error.ico), default;
}
themes/*/css/theme_right.css:
/* disabled drop/empty tabs */
span.tab,
span.tabcaution {
cursor: url(/phpMyAdmin/<?php echo
$_SESSION['PMA_Theme']->getImgPath(); ?>error.ico), default;
}
"/phpMyAdmin/" should of course be replaced by the location (from $_SERVER,
maybe phpMyAdmin already has a built-in function providing the path).
BTW: According to http://www.css4you.de/cursor.html, the url() should point to
a GIF or JPG file. I'm not sure if ICO is inside the specs...
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.