Changeset 3980
- Timestamp:
- 09/20/10 11:52:17 (10 years ago)
- Location:
- plugins_spip/diogene_complements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins_spip/diogene_complements/diogene_geo/prive/inc-diogene_geo_map.html
r3715 r3980 24 24 return false; 25 25 } else { 26 $("#pays,#code_pays,#region,#ville,#code_postal").val(""); 27 CountryName = ''; 28 CountryNameCode = ''; 29 AdministrativeAreaName = ''; 30 LocalityName = ''; 31 PostalCodeNumber = ''; 26 32 place = response.Placemark[(#VAL{91}|chr)]0[(#VAL{93}|chr)]; 27 33 $("#map_adresse").val(place.address); 28 if (place.AddressDetails.Accuracy > 0) 29 $("#pays").val(place.AddressDetails.Country.CountryName); 30 if (place.AddressDetails.Accuracy > 0) 31 $("#code_pays").val(place.AddressDetails.Country.CountryNameCode); 32 if (place.AddressDetails.Accuracy > 1) 33 $("#region").val(place.AddressDetails.Country.AdministrativeArea.AdministrativeAreaName); 34 if (place.AddressDetails.Accuracy > 3) 35 $("#ville").val(place.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.LocalityName); 36 if (place.AddressDetails.Accuracy > 5) 37 $("#code_postal").val(place.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.PostalCode.PostalCodeNumber); 34 if (Country = place.AddressDetails.Country){ 35 if (CountryName = Country.CountryName) 36 $("#pays").val(CountryName); 37 if (CountryNameCode = Country.CountryNameCode) 38 $("#code_pays").val(CountryNameCode); 39 if (AdministrativeArea = Country.AdministrativeArea){ 40 if (AdministrativeAreaName = AdministrativeArea.AdministrativeAreaName) 41 $("#region").val(AdministrativeAreaName); 42 if ((SubAdministrativeArea = AdministrativeArea.SubAdministrativeArea) && (Locality = SubAdministrativeArea.Locality)){ 43 if (LocalityName = Locality.LocalityName) 44 $("#ville").val(LocalityName); 45 if ((PostalCode = Locality.PostalCode) && (PostalCodeNumber = PostalCode.PostalCodeNumber)) 46 $("#code_postal").val(PostalCodeNumber); 47 } 48 } 49 } 38 50 } 39 51 } -
plugins_spip/diogene_complements/diogene_mots/diogene_mots_pipelines.php
r3695 r3980 48 48 foreach($options_complements['mots_obligatoires'] as $groupe_obligatoire){ 49 49 $mots_groupe = _request('groupe_'.$groupe_obligatoire); 50 spip_log($mots_groupe,"bb");51 50 if(empty($mots_groupe)){ 52 51 $erreurs['groupe_'.$groupe_obligatoire] = _T('info_obligatoire');
Note: See TracChangeset
for help on using the changeset viewer.