Fix: Restore the picto title in gif format because the png transparency is not supported on IE6 (54% of users).

This commit is contained in:
Laurent Destailleur 2009-06-14 12:38:45 +00:00
parent de4809286f
commit 25b608c9f6
3 changed files with 7 additions and 10 deletions

View File

@ -702,13 +702,6 @@ if (sizeof($boxarray))
}
}
// Juste pour éviter bug IE qui réorganise mal div précédents si celui-ci absent
/*if (empty($conf->browser->firefox))
{
print '<div class="tabsAction">&nbsp;</div>';
}*/
$db->close();
llxFooter('$Date$ - $Revision$');

View File

@ -1866,8 +1866,11 @@ function print_titre($titre)
* \param picto Icon to use before title (should be a 32x32 transparent png file)
* \param pictoisfullpath 1=Icon name is a full absolute url of image
*/
function print_fiche_titre($titre, $mesg='', $picto='title.gif', $pictoisfullpath=0)
function print_fiche_titre($titre, $mesg='', $picto='title.png', $pictoisfullpath=0)
{
global $conf;
if (empty($conf->browser->firefox) && $picto=='title.png') $picto='title.gif';
print "\n";
print '<table width="100%" border="0" class="notopnoleftnoright" style="margin-bottom: 2px;"><tr>';
if ($picto && $titre) print '<td class="nobordernopadding" width="40" align="left" valign="middle">'.img_picto('',$picto, '', $pictoisfullpath).'</td>';
@ -1898,6 +1901,7 @@ function print_fiche_titre($titre, $mesg='', $picto='title.gif', $pictoisfullpat
function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $sortorder='', $center='', $num=-1, $totalnboflines=0, $picto='title.png', $pictoisfullpath=0)
{
global $conf,$langs;
if (empty($conf->browser->firefox) && $picto=='title.png') $picto='title.gif';
if ($num > $conf->liste_limit or $num == -1)
{

View File

@ -640,8 +640,8 @@ $bc[1]="class=\"pair\"";
$yesno[0]="no";
$yesno[1]="yes";
// Constantes utilisees pour definir le nombre de lignes des textarea
if (! eregi("firefox",$_SERVER["HTTP_USER_AGENT"]))
// Constants used to defined number of lines in textarea
if (empty($conf->browser->firefox))
{
define('ROWS_1',1);
define('ROWS_2',2);