<?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]
*/


$carte_deb "<span class=\"external_link\"><a href=\"https://www.openstreetmap.org/?mlat=";
//48.01805
$carte_mid1 "&mlon=";
//0.21933
$carte_mid2 "#map=19/";
//48.01805
$carte_mid3 "/";
//0.21933
$carte_fin "\" onclick=\"window.open(this.href);return false\">carte</a></span>";

//$carte_deb."48.01805".$carte_mid1."0.21933".$carte_mid2."48.01805".$carte_mid3."0.21933".$carte_fin

$B1 = array(            -1,-1,-1,-1,        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<br />".                                                                $carte_deb."47.994081".    $carte_mid1."0.186533".    $carte_mid2."47.994081".$carte_mid3."0.186533".        $carte_fin);    
$B2 = array(            7,13.25,15,19.50,    7,13.25,15,19.50,            -1,-1,-1,-1,            7,13.25,15,19.50,    7,13.25,15,19.50,    7,13.25,15,19.50,    7,13.25,-1,-1,                "Boulangerie \"au bon pain\"","3, rue des cerisiers <br>Le Mans");
$HH = array(            9,12,-1,-1,        9,12,-1,-1,                -1,-1,-1,-1,            9,12,14,18,        9,12,-1,-1,        -1,-1,-1,-1,        -1,-1,-1,-1,                "Habitat et Humanisme","3, rue de la Halle aux Toiles<br> Le Mans");
$BANQUESGREP = array(        -1,-1,-1,-1,        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,-1,-1,        -1,-1,-1,-1,                "Banque Soci&eacute;t&eacute; g&eacute;n&eacute;rale r&eacute;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,        -1,-1,-1,-1,                "La poste r&eacute;publique","");
$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,-1,-1,        -1,-1,-1,-1,                "La poste des maillets","");
$LMHM = array(            8,12,14,17,        8,12,14,18,                8,12,14,17,            8,12,14,18,        8,12,14,17,        -1,-1,-1,-1,        -1,-1,-1,-1,                "Le Mans habitat des maillets","");
$APEND = 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,-1,-1,        8.5,12.5,12.5,15.5,    -1,-1,-1,-1,        -1,-1,-1,-1,                "P&ocirc;le emploi Gare","18 rue pierre-felix delarue<br />CS 15811<br />72058 Le Mans Cedex 2<br />".                                                            $carte_deb."47.994081".    $carte_mid1."0.186533".    $carte_mid2."47.994081".$carte_mid3."0.186533".        $carte_fin);
$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 />".                                                            $carte_deb."48.0257".    $carte_mid1."0.23935".    $carte_mid2."48.02575".    $carte_mid3."0.23930".        $carte_fin);
$PHARMMAILLETS = 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,18,        -1,-1,-1,-1,                "Pharmacie des Maillets - Montfort","186 rue des Maillets, 72000 Le Mans<br />".                                                                    $carte_deb."48.01613".    $carte_mid1."0.21568".    $carte_mid2."48.01612".    $carte_mid3."0.21566".        $carte_fin);
$OBJTROUV = array(        8.5,12.5,13.5,17.5,    8.5,12.5,13.5,17.5,            8.5,12.5,13.5,17.5,        8.5,12.5,13.5,17.5,    8.5,12.5,13.5,17.5,    -1,-1,-1,-1,        -1,-1,-1,-1,                "Service des objets trouv&eacute;s","40, place des Comtes du Maine<br />Le Mans<br />".                                                                    $carte_deb."48.00478".    $carte_mid1."0.20087".    $carte_mid2."48.00475".    $carte_mid3."0.20049".        $carte_fin."<br />Plus d'info <span class=\"external_link\"><a href=\"http://www.lemans.fr/facile/en-ville/les-objets-trouves\" onclick=\"window.open(this.href);return false\">ici</a></span>");
$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,-1,-1,                "Carrefour city de la croix de pierre","rue Maurice Loutreuil<br />Le Mans<br />".                                                                    $carte_deb."48.012533".    $carte_mid1."0.205878".    $carte_mid2."48.01252".    $carte_mid3."0.20637".        $carte_fin);
$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,-1,-1,                "U express","40 place de la R&eacute;publique<br />Le Mans");
$MARAGON = array(        -1,-1,-1,-1,        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,        -1,-1,-1,-1,                "M&eacute;diath&egrave;que Louis-Aragon","54 rue du Port<br />Le Mans<br />t&eacute;l. <a href=\"tel:02.43.47.48.74</a>");
$QPERSON = array(        -1,-1,-1,-1,        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,    -1,-1,-1,-1,                "Quincaillerie Person-Taugourdeau","16 bis, rue Courthardy<br />Le Mans<br />");
$BANQUESGMAILLETS = array(    -1,-1,-1,-1,        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,-1,-1,        -1,-1,-1,-1,                "Banque 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 />".                                $carte_deb."48.016694".    $carte_mid1."0.218938".    $carte_mid2."48.01663".    $carte_mid3."0.21893".        $carte_fin);
$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,        -1,-1,-1,-1,                "Picard des Maillets","33 37 rue de Bonnetable 72000 LE MANS<br />".                                                                            $carte_deb."48.01805".    $carte_mid1."0.21933".    $carte_mid2."48.01805".    $carte_mid3."0.21933".        $carte_fin);
$RETOUCH = 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,        -1,-1,-1,-1,        -1,-1,-1,-1,                "Retouche 2000 ","123, rue des Maillets 72000 LE MANS<br />".                                                                                $carte_deb."48.01495".    $carte_mid1."0.211".    $carte_mid2."48.01495".    $carte_mid3."0.211000".        $carte_fin);
$BCM = array(            -1,-1,-1,-1,        9,12,14,18,                9,12,14,18,            9,12,15.5,18,        9,12,14,18,        9,12.25,-1,-1,        -1,-1,-1,-1,                "Banque Credit mutuel","130, rue des Maillets 72000 LE MANS<br />".                                                                            $carte_deb."48.01473".    $carte_mid1."0.21104".    $carte_mid2."48.01473".    $carte_mid3."0.21104".        $carte_fin);
$SARTHE_AUTON = array(        9,12.5,13.5,17,        9,12.5,13.5,17,                9,12.5,13.5,17,            9,12.5,13.5,17,        9,12.5,13.5,17,        -1,-1,-1,-1,        -1,-1,-1,-1,                "Sarthe Autonomie","11 rue du Pied Sec CS 81906 72019 Le Mans Cedex 2<br />0800526272<br />".                                                                $carte_deb."47.98260".    $carte_mid1."0.20215".    $carte_mid2."47.98260".    $carte_mid3."0.20215".        $carte_fin);
$CINEP = array(            0,0.5,12.75,24,        0,0.5,12.75,24,                0,0.5,12.75,24,            0,0.5,12.75,24,        0,0.5,12.75,24,        0,0.5,12.75,24,        0,0.5,10.25,24,                "Cinema Pathe-Gaumont""3 Place des Jacobins 72000 LE MANS<br />".                                                                            $carte_deb."48.00815".    $carte_mid1."0.20023".    $carte_mid2."48.00815".    $carte_mid3."0.20023".        $carte_fin);
$COMP = array(            9,12.5,16,19,        9,12.5,16,19,                9,12.5,16,19,            9,12.5,16,19,        9,12.5,16,19,        9,12.5,16,18.5,        -1,-1,-1,-1,                "Le comptoir Prémartine : primeur, epicerie, pressing","26 Rue Pr&eacute;martine, 72000 Le Mans<br />".                                                            $carte_deb."48.00789".    $carte_mid1."0.20752".    $carte_mid2."48.00789".    $carte_mid3."0.20752".        $carte_fin);
$VETO = array(            9,12,14,19,        9,12,14,19,                9,12,14,19,            9,12,-1,-1,        9,12,14,19,        9,12,-1,-1,        -1,-1,-1,-1,                "Vétérinaire Dr Bruno Peugnet","45 bis rue des Maillets, 72000 Le Mans<br />t&eacute;l. <a href=\"tel:0243760015\">02.43.76.00.15</a><br />".                                        $carte_deb."48.0129".    $carte_mid1."0.20656".    $carte_mid2."48.01289".    $carte_mid3."0.2065666666".    $carte_fin);
$LMHEACV = array(        8,12,14,17,        -1,-1,14,18,                8,12,14,17,            -1,-1,14,18,        8,12,14,17,        -1,-1,-1,-1,        -1,-1,-1,-1,                "Le Mans Habitat, espace accueil centre ville","Av de Rostov sur le Don, 72000 Le Mans<br />t&eacute;l. <a href=\"tel:0243240522\">02.43.24.05.22</a><br />".                                $carte_deb."48.00586".    $carte_mid1."0.19631".    $carte_mid2."48.00586".    $carte_mid3."0.19631".        $carte_fin);
$DECHE = array(            -1,-1,-1,-1,        9,11.84,14,17.8416,            9,11.84,14,17.8416,        9,11.84,14,17.8416,    9,11.84,14,17.8416,    9,11.84,14,17.8416,    -1,-1,-1,-1,                "D&eacute;cheterie de Sarg&eacute;-l&egrave;s-le-Mans","");
$BOULX2P = array(        7.5,13.25,15,19.5,    -1,-1,-1,-1,                7.5,13.25,15,19.5,        7.5,13.25,15,19.5,    7.5,13.25,15,19.5,    7.5,13.25,15,19.5,    7.5,12,12,19,                "Boulangerie de la croix de pierre","12 rue des Maillets, 72000 Le Mans<br />".                                                                        $carte_deb."48.01223".    $carte_mid1."0.20595".    $carte_mid2."48.01223".    $carte_mid3."0.20595".        $carte_fin);
$FRANPRIX = array(        8,12,12,20.5,        8,12,12,20.5,                8,12,12,20.5,            8,12,12,20.5,        8,12,12,20.5,        8,12,12,20.5,        9,12,12,20.5,                "Franprix du jardin des plantes","26 rue Pr&eacute;martine, 72000 Le Mans<br />".                                                                    $carte_deb."47.98260".    $carte_mid1."0.20215".    $carte_mid2."48.00798".    $carte_mid3."0.20759".        $carte_fin);
$PHARMX2P = array(        9,12.5,14,19,        9,12.5,14,19,                9,12.5,14,19,            9,12.5,14,19,        9,12.5,14,19,        9,12.5,-1,-1,        -1,-1,-1,-1,                "Pharmacie de la croix de pierre","");
$BIOCSARGE = array(        9,12,12,19,        9,12,12,19,                9,12,12,19,            9,12,12,19,        9,12,12,19,        9,12,12,19,        -1,-1,-1,-1,                "Biocoop de Sarg&eacute;-l&egraves-Le Mans","2 rue des noisetiers<br />ZAC de la pointe<br />72190 Sarg&eacute;-l&egrave;s-le-Mans<br />".                                        $carte_deb."48.02543".    $carte_mid1."0.23791".    $carte_mid2."48.02543".    $carte_mid3."0.23791".        $carte_fin);
$DEPSOL = array(        9,12,14,17,        9,12,-1,-1,                9,12,14,17,            9,12,-1,-1,        9,12,14,17,        -1,-1,-1,-1,        -1,-1,-1,-1,                "Sarthe<br />Solidarit&eacute; d&eacute;partementale<br />Unit&eacute; Courboulay","32 rue Paul Courboulay<br />72000 Le Mans<br /><span class=\"external_link\"><a href=\"tel:0243525500\">02.43.52.55.00</a><br />".    $carte_deb."48.00121".    $carte_mid1."0.19074".    $carte_mid2."48.00121".    $carte_mid3."0.19074".        $carte_fin);
$PHOTOCOP = array(        9,12,12,18.5,        9,12,12,18.5,                9,12,12,18.5,            9,12,12,18.5,        9,12,12,18.5,        10,12,12,18,        -1,-1,-1,-1,                "Multicopy","16 Rue Gougeard<br />72000 Le Mans<br /><a href=\"tel:0243249456\">02.43.24.94.56</a><br />".                                                        $carte_deb."48.00475".    $carte_mid1."0.20209".    $carte_mid2."48.00475".    $carte_mid3."0.20209".        $carte_fin);
$SS = array(            8.25,12.25,13.5,17,    8.25,12.25,13.5,17,            8.25,12.25,13.5,17,        10,12.25,13.5,17,    8.25,12.25,13.5,17,    -1,-1,-1,-1,        -1,-1,-1,-1,                "S&eacute;curit&eacute; sociale","178 Avenue Boll&eacute;e<br />72048 LE MANS<br />tel. <a href=\"tel:3646\">36 46</a><br />".                                                $carte_deb."47.99649".    $carte_mid1."0.21987".    $carte_mid2."47.99649".    $carte_mid3."0.21987".        $carte_fin);
$HORAIRES = array($B1,$B2,$HH,$BANQUESGREP,$LPREP,$LPMA,$LMHM,$APEND,$BOT,$PHARMMAILLETS,$OBJTROUV,$CRFCTX2P,$UREP,$MARAGON,$QPERSON,$BANQUESGMAILLETS,$PICARD,$RETOUCH,$BCM,$SARTHE_AUTON,$CINEP,$COMP,$VETO,$LMHEACV,$DECHE,$BOULX2P,$FRANPRIX,$PHARMX2P,$BIOCSARGE,$DEPSOL,$PHOTOCOP,$SS);
$HORAIRES = array($BANQUESGMAILLETS,$BANQUESGREP,$BCM,$BIOCSARGE,$BOT,$B1,$B2,$BOULX2P,$CINEP,$COMP,$CRFCTX2P,$DECHE,$DEPSOL,$FRANPRIX,$HH,$LMHEACV,$LMHM,$LPMA,$LPREP,$MARAGON,$PHOTOCOP,$PHARMMAILLETS,$PHARMX2P,$PICARD,$APEND,$QPERSON,$RETOUCH,$SARTHE_AUTON,$SS,$OBJTROUV,$UREP,$VETO);

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