echo $req; echo "<h1>Recuperation des coordonnées de latitudes et longitudes</h1>"; $paramsGoogleMap = array('googleMapKey' => $config->googleMapKey); $googleMap = new googleMap($paramsGoogleMap); echo $googleMap->getJsFunctions(); // recuperation des adresses des arrets $res = $config->connexionBdd->requete($req); $str = new stringObject(); echo "\n\t\t<script language='javascript'>\n\t\tgeocoder = new GClientGeocoder();\n\t\t</script>\n"; echo "\n<div id='debug' style='background-color:blue;color:white;'>\n</div>\n<form action='?ajout=1' name='formAdresses' id=formAdresses method='POST' enctype='multipart/form-data'>\n<input type='text' value='{$idSuivant}' name='idATraiter'>\n"; $a = new archiAdresse(); $i = 0; while ($fetch = mysql_fetch_assoc($res)) { if ($typeTable != 'ville') { $adresse = $a->getIntituleAdresseFrom($fetch['idAdresse'], 'idAdresse', array("noQuartier" => true, "noSousQuartier" => true)); if (!$str->isUTF8($adresse)) { $adresse = utf8_encode($adresse); } } else { $adresse = $fetch['libelleAdresse']; } echo "\n\t{$adresse}\n\t<input type='text' name='latitude_arret[" . $fetch[$identifiant] . "]' id='latitude_arret_" . $fetch[$identifiant] . "' value=''>\n\t<input type='text' name='longitude_arret[" . $fetch[$identifiant] . "]' id='longitude_arret_" . $fetch[$identifiant] . "' value=''><br>\n\t"; } $res = $config->connexionBdd->requete($req); while ($fetch = mysql_fetch_assoc($res)) { if ($typeTable != 'ville') { $adresse = $a->getIntituleAdresseFrom($fetch['idAdresse'], 'idAdresse', array("noQuartier" => true, "noSousQuartier" => true)); if (!$str->isUTF8($adresse)) { $adresse = utf8_encode($adresse); } } else {