Page 1 of 1

display bug under firefox

Posted: Mon Feb 02, 2009 10:21 pm
by viknet
hello there,
there is a small display issue under firefox which I am going to explain:
check the following html in ie and firefox.
With ie the background is yelow in firefox no background.

<table border=3><tr>
<td style="background-position: left center;" style="background-color: #FFEE22;">
a good php resident client</td>
</tr></table>

the reason is because IE merge the two style whereas firefox only take the first one.
______________________________________

So back to php-residence:
when viewing the monthly table if checkin hour is enabled a checkedin client disable all background color (under firefox of course ie have no issue)

the solution is simple and the code has been corrected below (I let marco merge the stuff in tabella.php)
line 533
-----------------
if ($checkin and !$checkout) $stile_checkin = " background-image:url(includes/icone/fr_sx_checkin.gif); background-repeat:no-repeat; background-position: left center;";
------------------

the "style" directive has been removed and the trailing \"


line 579 and after
-------------------------------
echo "<td style=\"$stile_checkin";
if ($colore) echo " background-color: $colore;";
echo "\"";
-------------------------------

the two style are merge in one if needed (if not needed an empty style directive might appear)


Good luck and best regards to all of you

Posted: Tue Feb 10, 2009 10:43 pm
by marco
Hello Vincent,
thank you for reporting this bug, it will be fixed in next version of php-residence.

Marco