'); print (''); //pour L-V $Normal["L-V"] = array(5.52,6.07,6.21,6.35,6.47,6.57,7.03,7.09,7.15,7.22,7.28,7.34,7.40,7.46,7.52,7.58,8.04,8.10,8.16,8.22,8.28,8.34,8.40,8.46,8.52,8.58,9.03,9.09,9.15,9.21,9.28,9.35,9.42,9.50,9.57,10.05,10.12,10.20,10.27,10.35,10.42,10.50,10.57,11.05,11.12,11.20,11.27,11.35,11.42,11.50,11.57,12.05,12.12,12.20,12.27,12.35,12.42,12.50,12.57,13.05,13.12,13.20,13.27,13.35,13.42,13.50,13.57,14.05,14.12,14.20,14.27,14.35,14.42,14.50,14.57,15.05,15.12,15.20,15.27,15.35,15.42,15.49,15.56,16.04,16.11,16.17,16.23,16.29,16.35,16.41,16.47,16.53,16.59,17.05,17.11,17.17,17.23,17.29,17.35,17.41,17.47,17.53,17.59,18.05,18.11,18.17,18.23,18.29,18.35,18.41,18.47,18.53,18.59,19.06,19.13,19.21,19.31,19.41,19.51,20.01,20.11,20.22,20.37,20.52,21.07,21.22,21.37,21.57,22.17,22.37,22.57,23.17,23.37,23.57); //pour S $Normal["S"] = array(5.54,6.09,6.24,6.39,6.54,7.09,7.24,7.39,7.54,8.09,8.24,8.39,8.54,9.07,9.19,9.32,9.45,9.58,10.11,10.24,10.37,10.50,11.03,11.16,11.29,11.42,11.55,12.03,12.11,12.19,12.27,12.35,12.43,12.51,12.59,13.07,13.15,13.23,13.31,13.39,13.47,13.55,14.03,14.11,14.19,14.27,14.35,14.43,14.51,14.59,15.07,15.15,15.23,15.31,15.39,15.47,15.55,16.03,16.11,16.19,16.27,16.35,16.43,16.51,16.59,17.07,17.15,17.23,17.31,17.39,17.47,17.55,18.03,18.11,18.19,18.27,18.35,18.43,18.51,18.58,19.06,19.14,19.22,19.37,19.52,20.07,20.22,20.37,20.52,21.07,21.22,21.37,21.57,22.17,22.37,22.57,23.17,23.37,23.57); //pour L-V $Vacances["L-V"] = array(5.52,6.07,6.21,6.35,6.47,6.57,7.07,7.17,7.24,7.31,7.39,7.46,7.54,8.01,8.09,8.16,8.24,8.31,8.38,8.45,8.52,8.59,9.07,9.15,9.25,9.35,9.45,9.55,10.05,10.15,10.25,10.35,10.45,10.55,11.05,11.15,11.25,11.35,11.42,11.50,11.57,12.05,12.12,12.20,12.27,12.35,12.42,12.50,12.57,13.05,13.12,13.20,13.27,13.35,13.42,13.50,13.57,14.05,14.12,14.20,14.27,14.35,14.42,14.50,14.57,15.05,15.12,15.20,15.27,15.35,15.42,15.49,15.55,16.03,16.10,16.17,16.24,16.32,16.39,16.46,16.54,17.01,17.09,17.16,17.24,17.31,17.39,17.46,17.54,18.01,18.09,18.16,18.24,18.31,18.39,18.46,18.53,18.59,19.06,19.13,19.21,19.31,19.41,19.51,20.01,20.11,20.22,20.37,20.52,21.07,21.22,21.37,21.57,22.17,22.37,22.57,23.17,23.37,23.57); //pour S $Vacances["S"] = array(5.54,6.09,6.24,6.39,6.54,7.09,7.24,7.39,7.54,8.09,8.24,8.39,8.54,9.07,9.19,9.32,9.45,9.58,10.11,10.24,10.37,10.50,11.03,11.16,11.29,11.42,11.52,12.02,12.12,12.22,12.32,12.42,12.52,13.02,13.12,13.22,13.32,13.42,13.52,14.02,14.12,14.22,14.32,14.42,14.52,15.02,15.12,15.22,15.32,15.42,15.52,16.02,16.12,16.22,16.32,16.42,16.52,17.02,17.12,17.22,17.32,17.42,17.52,18.02,18.12,18.22,18.32,18.42,18.52,19.02,19.12,19.22,19.37,19.52,20.07,20.22,20.37,20.52,21.07,21.22,21.37,21.57,22.17,22.37,22.57,23.17,23.37,23.57); $Dimanche=array(5.54,6.13,6.33,6.53,7.13,7.33,7.53,8.13,8.33,8.53,9.13,9.33,9.53,10.11,10.26,10.41,10.56,11.11,11.26,11.41,11.56,12.11,12.26,12.41,12.56,13.11,13.26,13.39,13.52,14.04,14.17,14.29,14.42,14.54,15.07,15.19,15.32,15.44,15.57,16.09,16.22,16.34,16.47,16.59,17.12,17.24,17.37,17.49,18.02,18.14,18.27,18.40,18.52,19.06,19.22,19.37,19.52,20.07,20.22,20.37,20.52,21.07,21.22,21.37,21.57,22.17,22.37,22.57,23.17,23.37,23.57); //recuperer la date dans un tableau $date_time_array = getdate(time()); //recuperer la date, l'heure .... $wday= $date_time_array['wday']; $month= $date_time_array['mon']; $mday= $date_time_array['mday']; $hours= $date_time_array['hours']; $minutes= $date_time_array['minutes']; //liste des vaiables pouvant etre récupérées //"seconds" seconds //"minutes" minutes //"hours" hours //"mday" day of the month //"wday" day of the week as a number //"mon" month as a number //"year" year //"yday" day of the year as a number //"month" full month name //calculer l'heure actuelle $now=$hours+ $minutes/100; //Trouver le temps en minutes qui reste jusqu'au prochain bus //avec la suposition que dimanche=0, lundi=1,....samedi=6 if($wday == 0) { // on est dimanche for ($i=0; $i= 20) || ($month==7 & $mday <= 21)) { //pour simplifier on considere les vacances du 20 juin au 21 aout //on est en vacances; if($wday == 6) { //samedi for ($i=0; $i7) { $fillcolor1 = $noir; $fillcolor2 = $noir; $fillcolor3 = $noir; $fillcolor4 = $noir; $fillcolor5 = $noir; $fillcolor6 = $noir; $fillcolor7 = $noir; } else if($time<=7 & $time>6) { $fillcolor1 = $vert; $fillcolor2 = $noir; $fillcolor3 = $noir; $fillcolor4 = $noir; $fillcolor5 = $noir; $fillcolor6 = $noir; $fillcolor7 = $vert; }else if($time<=6 & $time>5) { $fillcolor1 = $vert; $fillcolor2 = $noir; $fillcolor3 = $noir; $fillcolor4 = $noir; $fillcolor5 = $noir; $fillcolor6 = $noir; $fillcolor7 = $noir; }else if($time<=5 & $time>4) { $fillcolor1 = $noir; $fillcolor2 = $orange; $fillcolor3 = $orange; $fillcolor4 = $orange; $fillcolor5 = $orange; $fillcolor6 = $orange; $fillcolor7 = $noir; }else if($time<5 & $time>=4) { $fillcolor1 = $noir; $fillcolor2 = $orange; $fillcolor3 = $orange; $fillcolor4 = $orange; $fillcolor5 = $orange; $fillcolor6 = $noir; $fillcolor7 = $noir; } else if($time<4 & $time>=3) { $fillcolor1 = $noir; $fillcolor2 = $noir; $fillcolor3 = $rouge; $fillcolor4 = $rouge; $fillcolor5 = $rouge; $fillcolor6 = $noir; $fillcolor7 = $noir; }else if($time<3 && $time>=2) { $fillcolor1 = $noir; $fillcolor2 = $noir; $fillcolor3 = $rouge; $fillcolor4 = $rouge; $fillcolor5 = $noir; $fillcolor6 = $noir; $fillcolor7 = $noir; }else if($time<2 && $time>=1) { $fillcolor1 = $noir; $fillcolor2 = $noir; $fillcolor3 = $rouge; $fillcolor4 = $noir; $fillcolor5 = $noir; $fillcolor6 = $noir; $fillcolor7 = $noir; } else if($time<1 && $time>=0) { $fillcolor1 = $noir; $fillcolor2 = $jaune; $fillcolor3 = $jaune; $fillcolor4 = $jaune; $fillcolor5 = $jaune; $fillcolor6 = $noir; $fillcolor7 = $noir; } ?> Prochain bus id="rect613" /> id="rect614" /> id="rect615" /> id="rect620" /> id="rect622" /> id="rect626" /> id="rect628" /> id="rect630" /> id="rect632" /> id="rect633" /> id="rect634" /> id="rect635" />