<?php
// VarHorMag.php
/*structure des tableaux
[lundi heure matin debut,fin, lundi heure debut apres-midi,fin, mardi [...], dimanche heure fin apres midi, nom, adresse]
*/
//Boulangerie des Maillets
$B1 = array(0,0,0,0,7,12,12,20,7,12,12,20,7,12,12,20,7,12,12,20,7,12,12,20,7,13,15,19.50,"Boulangerie \"Les d&eacute;lices des Maillets\"","203, rue des Maillets<br> Le Mans");
//Boulangerie des Cerisiers
$B2 = array(7,13.25,15,19.50,7,13.25,15,19.50,0,0,0,0,7,13.25,15,19.50,7,13.25,15,19.50,7,13.25,15,19.50,7,13.25,0,0,"Boulangerie \"au bon pain\"","3, rue des cerisiers <br>Le Mans");
//Habitat et Humanisme 72
$HH = array(9,12,0,0,9,12,0,0,0,0,0,0,9,12,14,18,9,12,0,0,0,0,0,0,0,0,0,0,"Habitat et Humanisme","3, rue de la Halle aux Toiles<br> Le Mans");
//SG république
$SGREP = array(0,0,0,0,9,12.5,13.75,18,9,12.5,13.75,18,9,12.5,14.5,19,9,12.5,13.75,18,9,12.75,0,0,0,0,0,0,"Soci&eacute;t&eacute; g&eacute;n&eacute;rale r&eacute;publique","");
//ancien horaire SGREP 0,0,0,0,8.75,12.50,13.75,18,8.75,12.5,13.75,18,8.75,12.50,13.75,18,8.75,12.50,13.75,18,8.75,12.50,0,0,0,0,0,0
//La poste république
$LPREP = array(8.5,12,12,19,8.5,12,12,19,8.5,12,12,19,8.5,12,12,19,8.5,12,12,19,9,12.5,14,17,0,0,0,0,"La poste r&eacute;publique","");
//La poste maillets
$LPMA = array(9,12.5,14,18,9,12.5,14,18,9,12.5,14,18,9,12.5,14,18,9,12.5,14,18,9,12.5,0,0,0,0,0,0,"La poste des maillets","");
//Gardienne Le Mans habitat Maillets
$LMHM = array(8,12,14,17,8,12,14,18,8,12,14,17,8,12,14,18,8,12,14,17,0,0,0,0,0,0,0,0,"Agence Le Mans habitat des maillets","");
//Pole emploi Notre-Dame
$PEND = array(8.5,12.5,12.5,16.5,8.5,12.5,12.5,16.5,8.5,12.5,12.5,16.5,8.5,12.5,0,0,8.5,12.5,12.5,15.5,0,0,0,0,0,0,0,0,"Agence p&ocirc;le emploi Gare","18 rue pierre-felix delarue<br />CS 15811<br />72058 Le Mans Cedex 2<br /><a href=\"http://maps.google.fr/maps?f=q&hl=fr&geocode=&q=47.994081,0.186533\">carte</a>");
//Botanic
$BOT = array(9.5,12.5,14,19,9.5,12.5,14,19,9.5,12.5,14,19,9.5,12.5,14,19,9.5,12.5,14,19,9.5,12,12,19,10,12.5,14,18.5,"Botanic","ZAC de la Pointe<br />3, rue des fr&ecirc;nes<br />Sarg&eacute;-l&egraves-Le Mans<br /><a href=\"http://www.openstreetmap.org/?mlat=48.0257&mlon=0.23935#map=17/48.02575/0.23930\">carte</a>");
//Pharmacie Maillets
$PHARM = array(9,12.5,14,20,9,12.5,14,20,9,12.5,14,20,9,12.5,14,20,9,12.5,14,20,9,12.5,14,19.5,0,0,0,0,"Pharmacie Monfort","");
//Presse Maillets
$PRESSE = array(6.5,12.75,15,19,6.5,12.75,15,19,6.5,12.75,15,19,6.5,12.75,15,19,6.5,12.75,15,19,6.5,12.75,15,19,0,0,0,0,"Presse des Maillets","");
//objets trouvés Le Mans
$OBJTROUV = array(8.5,12,14,17,8.5,12,14,17,8.5,12,14,17,8.5,12,14,17,8.5,12,14,17,0,0,0,0,0,0,0,0,"Service des objets trouv&eacute;s","26, avenue De Gaulle<br />Le Mans<br /><a href=\"http://www.openstreetmap.org/?mlat=48.004263&mlon=0.200705#map=17/48.00429/0.20122\">carte</a>");
//Carrefour city croix de pierre
$CRFCTX2P = array(7,12,12,22,7,12,12,22,7,12,12,22,7,12,12,22,7,12,12,22,7,12,12,22,9,13,0,0,"Carrefour city","rue Maurice Loutreuil<br />Le Mans<br /><a href=\"http://www.openstreetmap.org/?mlat=48.012533&mlon=0.205878#map=17/48.01252/0.20637\">carte</a>");
//U express république
$UREP = array
(
8.5,12,12,21,8.5,12,12,21,8.5,12,12,21,8.5,12,12,21,8.5,12,12,21,8.5,12,12,21,8.5,13,0,0,"U express","40 place de la R&eacute;publique<br />Le Mans");
$BARAGON = array
(
0,0,0,0,10,12,12,18.5,10,12,12,18.5,13.5,14,14,18.5,10,12,12,18.50,10,12,12,17,0,0,0,0,"M&eacute;diath&egrave;que Louis-Aragon","54 rue du Port<br />Le Mans<br />t&eacute;l. 02 43 47 48 74");
$PERSON = array
(
0,0,0,0,9.25,12.5,13.75,19,9.25,12.5,13.75,19,9.25,12.5,13.75,19,9.25,12.5,13.75,19,9.25,12.5,13.75,19,0,0,0,0,"Quincaillerie Person-Taugourdeau","16 bis, rue Courthardy<br />Le Mans<br />");
$SGMAILLETS = array(0,0,0,0,8.75,12.5,13.75,18,8.75,12.5,13.75,18,8.75,12.5,14.5,18,8.75,12.5,13.75,18,9,12.75,0,0,0,0,0,0,"Soci&eacute;t&eacute; g&eacute;n&eacute;rale Maillets","rue de Bonnetable 72000 Le Mans</br><a href=\"tel:0243818470\">02.43.81.84.70</a><br /><a href=\"http://www.openstreetmap.org/?mlat=48.016694&mlon=0.218938#map=19/48.01663/0.21893\">carte</a>");
$PICARD = array(9,13,14.5,19.5,9,13,14.5,19.5,9,13,14.5,19.5,9,13,14.5,19.5,9,12,12,19.5,9,12,12,19.5,0,0,0,0,"Picard des Maillets","33 37 rue de Bonnetable 72000 LE MANS<br />
<a href=\"http://www.openstreetmap.org/?mlat=48.01805&mlon=0.21933#map=19/48.01805/0.21933\">carte</a>"
);
$PRESSING = array(8.5,12.5,14,18.5,8.5,12.5,14,18.5,8.5,12.5,14,18.5,8.5,12.5,14,18.5,8.5,12,12,18.5,0,0,0,0,0,0,0,0,"Retouche 2000 ","123, rue des Maillets 72000 LE MANS<br /><a href=\"http://www.openstreetmap.org/?mlat=48.01495&mlon=0.211#map=19/48.01495/0.211000\">carte</a>");
$LAVECO = array(0,0,0,0,9,12,0,0,16,19,0,0,9,12,0,0,16,19,0,0,0,0,0,0,0,0,0,0,"Pressing Laveco","191 rue des Maillets 72000 LE MANS<br /><a href=\"http://www.openstreetmap.org/?mlat=48.01605&mlon=0.2143#map=19/48.01605/0.2143\">carte</a>");

$HORAIRES = array($B1,$B2,$HH,$SGREP,$LPREP,$LPMA,$LMHM,$PEND,$BOT,$PHARM,$PRESSE,$OBJTROUV,$CRFCTX2P,$UREP,$BARAGON,$PERSON,$SGMAILLETS,$PICARD,$LAVECO,$PRESSING);

/*******************************/
/* convertion décimal en minute*/
/*******************************/
function DeciToMinute($input)
    {
    if (
$input!=0)
        {
        if ((
$input-(int)$input)*60==0)
            return((int)
$input." h ");
        else
            return((int)
$input." h ".(($input-(int)$input)*60));
        }
    else
        return(
"Ferm&eacute;e");
    }
?>