19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: inscription.class.php,v 1.23 2007-06-26 09:32:33 neiluj Exp $ |
// CVS : $Id: inscription.class.php,v 1.24 2007-08-27 13:08:37 alexandre_tb Exp $ |
/** |
* Inscription |
* |
31,7 → 31,7 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.23 $ $Date: 2007-06-26 09:32:33 $ |
*@version $Revision: 1.24 $ $Date: 2007-08-27 13:08:37 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
206,22 → 206,30 |
});' ; |
|
if($_REQUEST['action'] == 'modifier') { |
if ($this->getElementValue ('latitude') != '' && $this->getElementValue('longitude') != '') { |
$requete_defaut = 'select a_longitude, a_latitude from annuaire where a_id='.$GLOBALS['AUTH']->getAuthData(INS_CHAMPS_ID); |
$resultat_defaut = $GLOBALS['ins_db']->query($requete_defaut); |
$ligne = $resultat_defaut->fetchRow(DB_FETCHMODE_OBJECT) ; |
if ($ligne->a_latitude != '' && $ligne->a_longitude != '') { |
$script .= ' |
point = new GLatLng('.$this->getElementValue('latitude').', '.$this->getElementValue('longitude').'); |
point = new GLatLng('.$ligne->a_latitude.', '.$ligne->a_longitude.'); |
marker = new GMarker(point, {draggable: true}); |
map.addOverlay(marker);' ; |
} |
} |
$script .= 'geocoder = new GClientGeocoder(); |
}; |
};' . |
'} |
function showAddress() { |
var adress_1 = document.getElementById("a_adresse1").value ; |
var adress_2 = document.getElementById("a_adresse2").value ; |
var ville = document.getElementById("a_ville").value ; |
var cp = document.getElementById("a_code_postal").value ; |
var selectIndex = document.getElementById("a_ce_pays").selectedIndex; |
var pays = document.getElementById("a_ce_pays").options[selectIndex].text ; |
if (document.getElementById("a_ce_pays").type == "select-one") { |
var selectIndex = document.getElementById("a_ce_pays").selectedIndex; |
var pays = document.getElementById("a_ce_pays").options[selectIndex].text ; |
} else { |
var pays = document.getElementById("a_ce_pays").value; |
} |
|
var address = adress_1 + \' \' + adress_2 + \' \' + \' \' + cp + \' \' + ville + \' \' +pays ; |
if (geocoder) { |
275,7 → 283,7 |
} |
elseif ( $tableau[$i]['type']=='texte' || $tableau[$i]['type']=='textelong' || |
$tableau[$i]['type']=='listedatedeb' || $tableau[$i]['type']=='listedatefin' || |
$tableau[$i]['type']=='champs_mail') { |
$tableau[$i]['type']=='champs_mail' || $tableau[$i]['type']=='champs_cache') { |
$def=$tableau[$i]['nom_bdd']; |
} elseif ($tableau[$i]['type']=='carte_google') { |
$def = 'carte_google'; |