/trunk/widget/modules/cartopoint/squelettes/carte_defaut.tpl.html |
---|
55,6 → 55,7 |
urlsLimitesCommunales = '<?= $url_limites_communales; ?>', |
nt = '<?=$num_nom_ret?>', |
filtreCommun = |
'&standard=<?=rawurlencode($standard)?>'+ |
'&taxon=<?=rawurlencode($taxon)?>'+ |
'&utilisateur=<?=$utilisateur?>'+ |
'&projet=<?=rawurlencode($projet)?>'+ |
150,35 → 151,6 |
</h1> |
</div> |
<?php endif; ?> |
<? if ($num_taxon == '*') : ?> |
<div id="panneau-lateral" class="element-overlay <?= ($titre != 0) ? 'carte_titree"': 'carte_non_titree"'; ?>> |
<div id="pl-ouverture" title="Filtrer les observations par espèce"> |
<span>Panneau >></span> |
<div id="pl-indication-filtre"> Filtrer |
</div> |
</div> |
<div id="pl-fermeture" title="Fermer le panneau latéral"><span><< Fermer [x]</span></div> |
<div id="pl-contenu"> |
<div id="pl-entete"> |
<h2>Filtre sur <span class="plantes-nbre"> </span> plantes</h2> |
<p> |
Cliquez sur un nom de plante pour filtrer les observations sur la carte.<br /> |
Pour revenir à l'état initial, cliquez à nouveau sur le nom sélectionné. |
</p> |
</div> |
<hr class="nettoyage" /> |
<div id="pl-corps" onMouseOver="map.setOptions({'scrollwheel':false});" onMouseOut="map.setOptions({'scrollwheel':true});"> |
<hr class="nettoyage" /> |
<!-- Insertion des lignes à partir du squelette tpl-taxons-liste --> |
<span class="raz-filtre-taxons taxon-actif" title="Voir tous les taxons"> |
Voir tous les taxons |
</span> |
<ol id="taxons"> |
</ol> |
</div> |
</div> |
</div> |
<? endif ?> |
<div id="carte" <?= ($titre != 0) ? 'class="carte_titree"': 'class="carte_non_titree"'; ?>></div> |
<div id="lien_plein_ecran" class="element-overlay"> |
<a href="#" title="Voir en plein écran (s'ouvre dans une nouvelle fenêtre)"> |
381,18 → 353,7 |
</li> |
</script> |
<!-- Squelette de la liste des taxons --> |
<script id="tpl-taxons-liste" type="text/x-jquery-tmpl"> |
{{each(index, taxon) taxons}} |
<li id="taxon-${taxon.nt}"> |
<span class="taxon" title="Numéro taxonomique : ${taxon.nt} - Famille : ${taxon.famille}"> |
${taxon.nom} <span class="nt" title="Numéro taxonomique">${taxon.nt}</span> |
</span> |
</li> |
{{/each}} |
</ol> |
</script> |
<!-- Squelette du formulaire de contact --> |
<div id="tpl-form-contact" style="display:none;"> |
<form id="form-contact" method="post" action=""> |
/trunk/widget/modules/cartopoint/squelettes/scripts/carto.js |
---|
1167,7 → 1167,6 |
$('#carte').width('100%'); |
} |
attribuerListenersFiltreUtilisateur(); |
chargerTaxons(0, 0); |
} |
function attribuerListenersFiltreUtilisateur() { |
1221,43 → 1220,10 |
taxonsUrl = taxonsUrl.replace(utilisateurCourant, "utilisateur="+utilisateurFiltre); |
observationsUrl = observationsUrl.replace(utilisateurCourant, "utilisateur="+utilisateurFiltre); |
filtreCommun = filtreCommun.replace(utilisateurCourant, "utilisateur="+utilisateurFiltre); |
$("#taxons").html(''); |
chargerTaxons(0,0); |
programmerRafraichissementCarte(); |
} |
function chargerTaxons(depart, total) { |
if (depart == 0 || depart < total) { |
if(depart == 0) { |
nbTaxons = 0; |
taxonsCarte = new Array(); |
} |
var limite = 2000; |
//console.log("Chargement des taxons de "+depart+" à "+(depart+limite)); |
var urlTax = taxonsUrl+'&start={start}&limit='+limite; |
urlTax = urlTax.replace(/\{start\}/g, depart); |
//console.log(urlTax); |
$.getJSON(urlTax, function(infos) { |
nbTaxons += infos.taxons.length; |
$('.plantes-nbre').text(nbTaxons); |
$('#tpl-taxons-liste').tmpl({'taxons': infos.taxons}).appendTo('#taxons'); |
taxonsCarte = taxonsCarte.concat(infos.taxons); |
//console.log("Nbre taxons :"+taxonsCarte.length); |
chargerTaxons(depart+limite, infos.total); |
}); |
} else { |
if (nt == '*') { |
afficherTaxons(); |
} |
afficherTitreCarteEtStats(); |
} |
} |
function afficherTaxons() { |
$('.taxon').live('click', filtrerParTaxon); |
$('.raz-filtre-taxons').live('click', viderFiltreTaxon); |
} |
var largeurPanneauLateralFerme = null; |
function afficherPanneauLateral() { |
/trunk/widget/modules/cartopoint/CartoPoint.php |
---|
97,6 → 97,7 |
$this->projet = (isset($projet) ? $projet : '*'); |
$this->tag = (isset($tag) ? $tag : '*'); |
$this->tag = (isset($motcle) ? $motcle : $this->tag); |
$this->standard = (isset($standard)) ? $standard : '1'; |
$this->dept = (isset($dept) ? $dept : '*'); |
$this->commune = (isset($commune) ? $commune : '*'); |
$this->pays = (isset($pays) ? $pays : '*'); |
137,6 → 138,7 |
$widget['donnees']['url_base'] = $url_base; |
$widget['donnees']['utilisateur'] = $this->utilisateur; |
$widget['donnees']['projet'] = $this->projet; |
$widget['donnees']['standard'] = $this->standard; |
$widget['donnees']['tag'] = $this->tag; |
$widget['donnees']['dept'] = $this->dept; |
$widget['donnees']['commune'] = $this->commune; |
176,7 → 178,7 |
$url .= "/$action"; |
$parametres_retenus = array(); |
$parametres_a_tester = array('station', 'utilisateur', 'projet', 'tag', 'dept', 'commune', |
$parametres_a_tester = array('station', 'standard', 'utilisateur', 'projet', 'tag', 'dept', 'commune', |
'num_nom_ret', 'taxon', 'date', 'commentaire', 'nbjours', 'referentiel','pays', 'groupe_zones_geo', |
'start', 'limit'); |
foreach ($parametres_a_tester as $param) { |
/trunk/jrest/services/CelWidgetMapPoint.php |
---|
35,6 → 35,8 |
const MARQUEUR_GROUPE = 'GROUPE'; |
const MARQUEUR_COMMUNE = 'COMMUNE'; |
const MARQUEUR_STATION = 'STATION'; |
private $standard = "AND donnees_standard = 1"; |
/** |
* Méthode appelée avec une requête de type GET. |
*/ |
45,6 → 47,9 |
} |
extract($this->parametres); |
//Chronometre::chrono("Avant groupage"); |
if (isset($this->parametres['standard']) && $this->parametres['standard'] = 0) { |
$this->standard = ""; |
} |
$action = array_shift($ressources); |
if (isset($action)) { |
114,6 → 119,7 |
' LEFT JOIN cel_zones_geo AS zg '. |
' ON (zg.nom = co.zone_geo AND zg.id_zone_geo = co.ce_zone_geo) '. |
"WHERE transmission = '1' ". |
$this->standard. |
" AND (". |
$this->construireWhereRectangleStationOR()." OR ". |
$this->construireWhereRectangleCommuneOR().") ". |
154,6 → 160,7 |
' LEFT JOIN cel_zones_geo AS zg '. |
' ON (zg.nom = co.zone_geo AND zg.id_zone_geo = co.ce_zone_geo) '. |
"WHERE transmission = '1' ". |
$this->standard. |
" AND (". |
$this->construireWhereRectangleStationOR()." OR ". |
$this->construireWhereRectangleCommuneOR().") ". |
346,6 → 353,7 |
' LEFT JOIN cel_zones_geo AS zg '. |
" ON (zg.nom = co.zone_geo AND zg.id_zone_geo = co.ce_zone_geo) ". |
"WHERE transmission = '1' ". |
$this->standard. |
(($this->communeEstDemandee()) ? $this->construireWhereCommuneSansCoordonneesAvecSensibles() : $this->construireWhereCoordonneesSansSensibles()). |
$this->construireWhereDept(). |
$this->construireWherePays(). |
494,6 → 502,7 |
' LEFT JOIN cel_zones_geo AS zg '. |
' ON (zg.nom = co.zone_geo AND zg.id_zone_geo = co.ce_zone_geo) '. |
"WHERE transmission = '1' ". |
$this->standard. |
" AND nom_ret != '' ". |
$this->construireWhereDept(). |
$this->construireWhereCommune(). |
575,7 → 584,7 |
$sql = " AND (latitude LIKE $lat AND longitude LIKE $lng) "; |
} |
} |
$sql .= ' AND (mots_cles_texte IS NULL OR mots_cles_texte NOT LIKE "%sensible%" ) '; |
$sql .= ' AND (localite_floutage IS NULL OR localite_floutage = "précise" ) '; |
return $sql; |
} |
754,7 → 763,8 |
'FROM cel_export_total AS co '. |
' LEFT JOIN cel_zones_geo AS zg '. |
' ON (zg.nom = co.zone_geo AND zg.id_zone_geo = co.ce_zone_geo) '. |
"WHERE co.transmission = '1' and co.images != null". |
"WHERE co.transmission = '1' and co.images != null". |
$this->standard. |
($type == 'date.creation' ? " AND co.date_creation LIKE $param " : ''). |
($type == 'commentaire.obs' ? " AND co.commentaire LIKE $param " : ''). |
($type == 'commentaire.*' ? " AND co.commentaire LIKE $param " : ''). |
1143,6 → 1153,7 |
' LEFT JOIN cel_zones_geo AS zg '. |
" ON (zg.nom = co.zone_geo AND zg.id_zone_geo = co.ce_zone_geo) ". |
"WHERE co.transmission = '1' ". |
$this->standard. |
$this->construireWhereCoordonnees(). |
$this->construireWhereUtilisateur(). |
$this->construireWhereNumTaxon(). |