display bug under firefox

Post here if you think you have found a bug in hoteldruid or error in its documentation.

Moderator: marco

Post Reply
viknet
Posts: 27
Joined: Sat Jan 24, 2009 3:08 pm

display bug under firefox

Post 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
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Post by marco »

Hello Vincent,
thank you for reporting this bug, it will be fixed in next version of php-residence.

Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
Post Reply