Subversion Repositories eFlore/Applications.coel

Compare Revisions

Ignore whitespace Rev 1703 → Rev 1704

/trunk/widget/modules/cartodepartement/CartoDepartement.php
38,6 → 38,7
extract($this->parametres);
$this->carte = (isset($carte) ? $carte : self::SERVICE_CARTO_ACTION_DEFAUT);
$this->departement = (isset($dept) ? $dept : '*');
$this->regions = (isset($regions) ? $regions : '*');
$this->pays = (isset($pays) ? $pays : '*');
}
52,6 → 53,7
$widget['donnees']['url_web_service'] = sprintf($this->config['chemins']['baseURLServicesTpl'], '');
$widget['donnees']['url_page_fiche'] = $this->config['carto']["urlPageFiche"];
$widget['donnees']['departement'] = $this->departement;
$widget['donnees']['regions'] = $this->regions;
$widget['donnees']['pays'] = $this->pays;
$widget['squelette'] = 'carto_departement';
return $widget;
/trunk/widget/modules/cartodepartement/squelettes/scripts/carto.js
37,7 → 37,7
$.ajax({
dataType: "json",
url: urlWebService + "CoelRecherche/Nombre/*/*/*/*/*/*/" + departement + "/*/*/",
data: { formatRetour: "text/plain", pays: pays },
data: { formatRetour: "text/plain", pays: pays, regions: regions },
async: false
}).complete(function(msg) {
if (! estStatutRequeteOK(msg.status)) {
97,7 → 97,7
$.ajax({
dataType: "json",
url: urlWebService + "CoelRecherche/ParDefaut/*/*/*/*/*/*/" + departement + "/*/*/",
data: { limit: nombreCollections, pays: pays },
data: { limit: nombreCollections, pays: pays, regions: regions },
async: true
}).complete(function(msg) {
if (!estStatutRequeteOK(msg.status)) {
/trunk/widget/modules/cartodepartement/squelettes/carto_departement.tpl.html
24,6 → 24,7
<script type="text/javascript">
//<![CDATA[
var departement = '<?= $departement ?>';
var regions = '<?= $regions ?>'; // parmi les codes de http://download.geonames.org/export/dump/admin1CodesASCII.txt
var pays = '<?= $pays ?>';
var urlWebService = '<?= $url_web_service ?>';
//]]>