echo "<td>\n"; echo "<table class='icone'>\n"; echo "<tr><td colspan='2' class='th'>{$txt}</td>\n"; echo "</tr><tr><td ><img src={$moonimg} ALT='moon' style='height:100px;vertical-align:bottom;'/></td>\n"; echo "<td style='font-size:13px;'>phase:{$moonpercent}% <span style='font-size:18px;'> {$arrow} </span><br>lumen:{$lumen}%</td>\n"; echo "</tr>\n"; /* Moon info */ $tinfo = tr("Autres informations"); $moonphase = new MoonPhase(); $txt0 = tr('Nouvelle lune'); $txt1 = tr('Premier quartier'); $txt2 = tr('Pleine lune'); $txt3 = tr('Dernier quartier'); $txt0 = tr('Nouvelle lune'); $date0 = date("d/m/Y H:i", $moonphase->new_moon()); $date1 = date("d/m/Y H:i", $moonphase->first_quarter()); $date2 = date("d/m/Y H:i", $moonphase->full_moon()); $date3 = date("d/m/Y H:i", $moonphase->last_quarter()); $date4 = date("d/m/Y H:i", $moonphase->next_new_moon()); echo "\n\t<tr><td class='hl'> </td>\n\t <td class='tooltip' >\n\t\t<a href='#' class='tooltip'>\n \t\t{$tinfo}:\t\t\n <div >\n <table class='info'>\n <tr><td style='width:90px;'>{$txt0}</td><td style='text-align:center;'>{$date0}</td></tr>\n <tr><td style='width:90px;'>{$txt1}</td><td style='text-align:center;'>{$date1}</td></tr>\n <tr><td style='width:90px;'>{$txt2}</td><td style='text-align:center;'>{$date2}</td></tr>\n <tr><td style='width:90px;'>{$txt3}</td><td style='text-align:center;'>{$date3}</td></tr>\n <tr><td style='width:90px;'>{$txt0}</td><td style='text-align:center;'>{$date4}</td></tr>\n </table>\n </div></a>\n</td></tr></table>\n"; echo "</td>\n"; // Tracé des icones for ($i = 0; $i < $numStations; $i++) { echo "<td>"; fill($i, $devicelist["devices"][$i], $mydevices[$i], $dashboard[$i]); echo "</td>"; } echo "</tr></table>"; ?> <!-- trace des menus et de la Google map -->