/trunk/modules/fiche/formateurs/Ecologie.php |
---|
15,9 → 15,13 |
*/ |
class Ecologie extends aControleur { |
private $referentiel = 'bdtfx'; |
private $donnees = array(); |
public function __construct(Conteneur $conteneur) { |
$this->conteneur = $conteneur; |
$this->nomCourant = $this->conteneur->getNomCourant(); |
$this->referentiel = $this->conteneur->getParametre('referentiel'); |
$this->informations = $this->conteneur->getApiInformations(); |
$this->meta = $this->conteneur->getApiMetaDonnees(); |
$this->wikini = $this->conteneur->getApiWikini(); |
30,28 → 34,28 |
public function obtenirDonnees() { |
$donnees = array(); |
$donnees['wikini'] = $this->getWikini(); |
$donnees['baseflor'] = $this->getBaseflor(); |
$donnees['baseveg'] = $this->getBaseveg(); |
$donnees['urls'] = $this->appUrls; |
return $donnees; |
$this->getWikini(); |
$this->getBaseflor(); |
$this->getBaseveg(); |
$this->donnees['urls'] = $this->appUrls; |
return $this->donnees; |
} |
public function obtenirDonneesExport() { |
$donnees = array(); |
$donnees['wikini'] = $this->getWikini(); |
$donnees['baseflor'] = $this->getBaseflorExport(); |
$donnees['baseveg'] = $this->getBaseveg(); |
return $donnees; |
$this->getWikini(); |
$this->getBaseflorExport(); |
$this->getBaseveg(); |
return $this->donnees; |
} |
public function getBaseflorCatminat($depart, $limite) { |
$baseflorCatminat = array(); |
$this->informations ->setProjet('baseflor'); |
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel')); |
$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom')); |
$this->informations ->setDepart($depart); |
$this->informations ->setLimite($limite); |
$this->informations->setProjet('baseflor'); |
$this->informations->setBdnt($this->conteneur->getParametre('referentiel')); |
$this->informations->setNum_nom($this->conteneur->getParametre('num_nom')); |
$this->informations->setDepart($depart); |
$this->informations->setLimite($limite); |
$informations = $this->informations->getInformationsRelationCatminat(); |
if($informations != ""){ |
$baseflorCatminat['catminat'] = $informations['resultat'][0]['catminat_code']; |
63,34 → 67,36 |
} |
private function getBaseveg() { |
$baseveg = array(); |
$baseflor = $this->getBaseflorCatminat(0,500); |
$baseveg['baseflor'] = $baseflor; |
if (isset($baseflor['catminat'])) { |
$this->syntaxons->setProjet('baseveg'); |
$catminat = str_replace('/','-',$baseflor['catminat']); |
$this->syntaxons->setCatminat($catminat); |
$syntaxonsSup = $this->syntaxons->getSyntaxonsSuperieurs(); |
$baseveg['syntaxons-sup'] = $syntaxonsSup['resultat']; |
$syntaxonsCourant = $this->syntaxons->getSyntaxonsCatminat(); |
$baseveg['syntaxon-courant'] = $syntaxonsCourant['resultat']; |
foreach ($baseveg['syntaxons-sup'] as $cle => $valeurs) { |
$catminat_sup = str_replace('/','-',$valeurs['code_catminat']); |
$baseveg['synonymes']['lien-liste-fancy'][$valeurs['code_catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_synonymes',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat_sup); |
$baseveg['ref']['lien-liste-fancy'][$valeurs['code_catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_ref',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat_sup); |
$baseveg['taxons']['lien-liste-fancy'][$valeurs['code_catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_taxons_sup',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat_sup); |
if (Config::get($this->referentiel.'.basePhytosocio') != "") { |
$baseveg = array(); |
$baseflor = $this->getBaseflorCatminat(0,500); |
$baseveg['baseflor'] = $baseflor; |
if (isset($baseflor['catminat'])) { |
$this->syntaxons->setProjet('baseveg'); |
$catminat = str_replace('/','-',$baseflor['catminat']); |
$this->syntaxons->setCatminat($catminat); |
$syntaxonsSup = $this->syntaxons->getSyntaxonsSuperieurs(); |
$baseveg['syntaxons-sup'] = $syntaxonsSup['resultat']; |
$syntaxonsCourant = $this->syntaxons->getSyntaxonsCatminat(); |
$baseveg['syntaxon-courant'] = $syntaxonsCourant['resultat']; |
foreach ($baseveg['syntaxons-sup'] as $cle => $valeurs) { |
$catminat_sup = str_replace('/','-',$valeurs['code_catminat']); |
$baseveg['synonymes']['lien-liste-fancy'][$valeurs['code_catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_synonymes',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat_sup); |
$baseveg['ref']['lien-liste-fancy'][$valeurs['code_catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_ref',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat_sup); |
$baseveg['taxons']['lien-liste-fancy'][$valeurs['code_catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_taxons_sup',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat_sup); |
} |
$baseveg['synonymes']['lien-liste-fancy'][$baseflor['catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_synonymes',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat); |
$baseveg['ref']['lien-liste-fancy'][$baseflor['catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_ref',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat); |
$this->meta->setProjet('baseveg'); |
$meta = $this->meta->getMetaDonnees(); |
$citation = $meta[0]['citation']; |
$baseveg['meta']['citation'] = $citation; |
$baseveg['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseveg'); |
}else { |
$baseveg['aucune'] = 'Aucunes données'; |
} |
$baseveg['synonymes']['lien-liste-fancy'][$baseflor['catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_synonymes',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat); |
$baseveg['ref']['lien-liste-fancy'][$baseflor['catminat']] = $this->appUrls->obtenirUrlListeFancyBoxPhytosocio('catminat_ref',$this->conteneur->getParametre('referentiel'),$this->conteneur->getParametre('num_nom'),$catminat); |
$this->meta->setProjet('baseveg'); |
$meta = $this->meta->getMetaDonnees(); |
$citation = $meta[0]['citation']; |
$baseveg['meta']['citation'] = $citation; |
$baseveg['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseveg'); |
}else { |
$baseveg['aucune'] = 'Aucunes données'; |
$this->donnees['baseveg'] = $baseveg; |
} |
return $baseveg; |
} |
private function getBasevegSyntaxonCourant() { |
105,9 → 111,7 |
} |
return $baseveg; |
} |
private function getWikini() { |
$wikini = array(); |
$wikini['titre'] = 'Wikini'; |
115,15 → 119,17 |
$num_tax = $this->nomCourant->getNomSelectionne()->get('num_taxonomique'); |
$page_wiki = $this->wikini->getPageWikiPourRefEtNumTax($referentiel, $num_tax); |
$wikini['ecologie'] = $this->wikini->getTexteFormate($page_wiki, 'ecologie'); |
return $wikini; |
$this->donnees['wikini'] = $wikini; |
} |
public function getBloc() { |
$donnees = array(); |
$donnees['graph'] = $this->getBaseflor(false); |
$donnees['graph']['titre'] = 'Optimum écologique'; |
$donnees['phytosocio'] = $this->getBasevegSyntaxonCourant(); |
return $donnees; |
$this->getBaseflor(false); |
$this->donnees['graph'] = $this->donnees['baseflor']; |
$this->donnees['graph']['titre'] = 'Optimum écologique'; |
$this->donnees['phytosocio'] = $this->getBasevegSyntaxonCourant(); |
return $this->donnees; |
} |
private function getBaseflorExport() { |
150,51 → 156,53 |
} |
private function getBaseflor($inclure_legende = true) { |
$num_nom = $this->nomCourant->getNns(); |
$cache = $this->obtenirCache('baseflor_graphique_'.$num_nom); |
if($cache != null) { |
$baseflor = $cache; |
$this->graphique ->setProjet('baseflor'); |
$graphique = $this->graphique->getLegendeGraphique(); |
$baseflor['legende'] = $graphique ; |
} else { |
$baseflor = array(); |
$this->informations ->setProjet('baseflor'); |
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel')); |
$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom')); |
$informations = $this->informations->getInformationsEcologie(); |
if(is_array($informations)){ |
if (isset($informations['graphique_climat'])) { |
$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500"; |
$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png"; |
$baseflor['description']['climat_url'] = $informations['graphique_climat']['href']."?retour.format=420"; |
$baseflor['description']['climat_url_png'] = $informations['graphique_climat']['href']."?retour.format=420&retour=image/png"; |
if (Config::get($this->referentiel.'.baseEcologie') != "") { |
$num_nom = $this->nomCourant->getNns(); |
$cache = $this->obtenirCache('baseflor_graphique_'.$num_nom); |
if($cache != null) { |
$baseflor = $cache; |
$this->graphique ->setProjet('baseflor'); |
$graphique = $this->graphique->getLegendeGraphique(); |
$baseflor['legende'] = $graphique ; |
} else { |
$baseflor = array(); |
$this->informations ->setProjet('baseflor'); |
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel')); |
$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom')); |
$informations = $this->informations->getInformationsEcologie(); |
if(is_array($informations)){ |
if (isset($informations['graphique_climat'])) { |
$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500"; |
$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png"; |
$baseflor['description']['climat_url'] = $informations['graphique_climat']['href']."?retour.format=420"; |
$baseflor['description']['climat_url_png'] = $informations['graphique_climat']['href']."?retour.format=420&retour=image/png"; |
} |
if (isset($informations['graphique_sol'])) { |
$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500"; |
$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png"; |
$baseflor['description']['sol_url'] = $informations['graphique_sol']['href']."?retour.format=420"; |
$baseflor['description']['sol_url_png'] = $informations['graphique_sol']['href']."?retour.format=420&retour=image/png"; |
} |
if($inclure_legende) { |
$this->graphique ->setProjet('baseflor'); |
$graphique = $this->graphique->getLegendeGraphique(); |
$baseflor['legende'] = $graphique ; |
} |
$this->meta->setProjet('baseflor'); |
$meta = $this->meta->getMetaDonnees(); |
$citation = $meta[0]['citation']; |
$baseflor['meta']['citation'] = $citation; |
$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor'); |
$this->mettreEnCache('baseflor_graphique_'.$num_nom, $baseflor); |
} else { |
$baseflor['aucune'] = 'Aucunes données'; |
} |
if (isset($informations['graphique_sol'])) { |
$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500"; |
$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png"; |
$baseflor['description']['sol_url'] = $informations['graphique_sol']['href']."?retour.format=420"; |
$baseflor['description']['sol_url_png'] = $informations['graphique_sol']['href']."?retour.format=420&retour=image/png"; |
} |
if($inclure_legende) { |
$this->graphique ->setProjet('baseflor'); |
$graphique = $this->graphique->getLegendeGraphique(); |
$baseflor['legende'] = $graphique ; |
} |
$this->meta->setProjet('baseflor'); |
$meta = $this->meta->getMetaDonnees(); |
$citation = $meta[0]['citation']; |
$baseflor['meta']['citation'] = $citation; |
$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor'); |
$this->mettreEnCache('baseflor_graphique_'.$num_nom, $baseflor); |
} else { |
$baseflor['aucune'] = 'Aucunes données'; |
} |
$this->donnees['baseflor'] = $baseflor; |
} |
return $baseflor; |
} |
} |
?> |
/trunk/modules/fiche/formateurs/Description.php |
---|
69,6 → 69,34 |
private function aMethodeDescription($base) { |
return method_exists($this, 'get'.$base); |
} |
public function getBloc() { |
// prend la première description disponible dans l'ordre indiqué dans le fichier |
// de config, et prend la description wiki sinon |
if(Config::get($this->referentiel.'.baseDescription') != "") { |
$bases_descriptions = Config::get($this->referentiel.'.baseDescription'); |
$bases_descriptions = explode(',',$bases_descriptions); |
foreach($bases_descriptions as $base) { |
if($this->aMethodeDescription($base)) { |
$fonction = 'get'.ucfirst($base); |
$this->$fonction(); |
if(!empty($this->donnees[$base]['description'])) { |
$this->donnees['titre'] = "Description de ".ucfirst($base); |
$this->donnees['description'] = $this->donnees[$base]['description']; |
break; |
} |
} |
} |
} |
if (empty($this->donnees['description'])) { |
$description = $this->getWikini(); |
$this->donnees['description'] = $description['description']; |
$this->donnees['titre'] = "Description collaborative"; |
} |
return $this->donnees; |
} |
private function getBaseflor() { |
$baseflor = array(); |
113,22 → 141,6 |
return $chaine; |
} |
public function getBloc() { |
$description = $this->getCoste(); |
$donnees['titre'] = "Description de Coste"; |
if (empty($description['description'])) { |
$description = $this->getBaseflor(false); |
$donnees['titre'] = "Description Baseflor"; |
} |
if (empty($description['description'])) { |
$description = $this->getWikini(); |
$donnees['titre'] = "Description collaborative"; |
} |
$donnees['description'] = $description['description']; |
return $donnees; |
} |
public function getWikipedia() { |
$wp = array(); |
$this->textes->setProjet('wikipedia'); |
245,7 → 257,5 |
} |
} |
} |
} |
?> |
/trunk/modules/fiche/squelettes/fiche_ecologie.tpl.html |
---|
1,28 → 1,88 |
<div id="ecologie"> |
<h2>Optimum écologique</h2> |
<? if (!isset($baseflor['aucune'])) : ?> |
<div class="fond_graphique"> |
<?php if(isset($baseflor)) : ?> |
<h2>Optimum écologique</h2> |
<? if (!isset($baseflor['aucune'])) : ?> |
<div class="fond_graphique"> |
<div class="bloc_graph"> |
<? if (isset($baseflor['climat_url'])) :?> |
<span class="titre">caractéristiques climatiques</span> |
<div class="graphique"> |
<object class="ecologie_svg" type="image/svg+xml" data="<?=$baseflor['climat_url']?>" class="svg" alt="<?=$baseflor['climat_url_png']?>"> |
</object> |
</div> |
<button class="voir"> voir la légende </button> |
<button class="cacher">masquer la légende </button> |
<br/> |
<div class="legende_graphique"> |
<table> |
<tr> |
<td class="largeur-02" > |
<span class="titre">Lumière </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VEL'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
</tr> |
<tr> |
<td> |
<span class="titre">Température </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VET'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
</tr> |
<tr> |
<td> |
<span class="titre">Humidité atmosphérique </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VEHA'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
</tr> |
<tr> |
<td> |
<span class="titre">Continentalité </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VEC'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
</tr> |
</table> |
</div> |
<? endif; ?> |
</div> |
<br /><br /> |
<div class="bloc_graph"> |
<? if (isset($baseflor['climat_url'])) :?> |
<span class="titre">caractéristiques climatiques</span> |
<? if (isset($baseflor['sol_url'])) : ?> |
<span class="titre">caractéristiques du sol</span> |
<div class="graphique"> |
<object class="ecologie_svg" type="image/svg+xml" data="<?=$baseflor['climat_url']?>" class="svg" alt="<?=$baseflor['climat_url_png']?>"> |
</object> |
<object class="ecologie_svg" type="image/svg+xml" data="<?=$baseflor['sol_url']?>" class="svg" alt="<?=$baseflor['sol_url_png']?>"> |
</object> |
</div> |
<div class="legende_formes"> |
</div> |
<button class="voir"> voir la légende </button> |
<button class="cacher">masquer la légende </button> |
<br/> |
<br/> |
<div class="legende_graphique"> |
<table> |
<tr> |
<td class="largeur-02" > |
<span class="titre">Lumière </span> |
<td class="largeur-02"> |
<span class="titre"> Réaction (pH) </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VEL'] as $code => $infos ) : ?> |
<? foreach ($baseflor['legende']['VER'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
29,10 → 89,10 |
</tr> |
<tr> |
<td> |
<span class="titre">Température </span> |
<span class="titre"> Humidité </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VET'] as $code => $infos ) : ?> |
<? foreach ($baseflor['legende']['VEHE'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
39,10 → 99,10 |
</tr> |
<tr> |
<td> |
<span class="titre">Humidité atmosphérique </span> |
<span class="titre"> Texture </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VEHA'] as $code => $infos ) : ?> |
<? foreach ($baseflor['legende']['VETX'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
49,179 → 109,120 |
</tr> |
<tr> |
<td> |
<span class="titre">Continentalité </span> |
<span class="titre"> Nutriments </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VEC'] as $code => $infos ) : ?> |
<? foreach ($baseflor['legende']['VEN'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
</tr> |
<tr> |
<td> |
<span class="titre"> Salinité </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VES'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
</tr> |
</table> |
<tr> |
<td> |
<span class="titre"> Matière Organique </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VEMO'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
</tr> |
</table> |
</div> |
<? endif; ?> |
</div> |
<? endif; ?> |
</div> |
<br /><br /> |
<div class="bloc_graph"> |
<? if (isset($baseflor['sol_url'])) : ?> |
<span class="titre">caractéristiques du sol</span> |
<div class="conteneur_lien_metadonnees"> |
<?=$baseflor['meta']['citation']?> |
<div class="graphique"> |
<object class="ecologie_svg" type="image/svg+xml" data="<?=$baseflor['sol_url']?>" class="svg" alt="<?=$baseflor['sol_url_png']?>"> |
</object> |
</div> |
<div class="legende_formes"> |
</div> |
<button class="voir"> voir la légende </button> |
<button class="cacher">masquer la légende </button> |
<br/> |
<div class="legende_graphique"> |
<table> |
<tr> |
<td class="largeur-02"> |
<span class="titre"> Réaction (pH) </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VER'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
</tr> |
<tr> |
<td> |
<span class="titre"> Humidité </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VEHE'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
</tr> |
<tr> |
<td> |
<span class="titre"> Texture </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VETX'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
</tr> |
<tr> |
<td> |
<span class="titre"> Nutriments </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VEN'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
</tr> |
<tr> |
<td> |
<span class="titre"> Salinité </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VES'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
</tr> |
<tr> |
<td> |
<span class="titre"> Matière Organique </span> |
</td> |
<td> |
<? foreach ($baseflor['legende']['VEMO'] as $code => $infos ) : ?> |
<?=$code ?> : <?=$infos['nom'] ?> |
<? endforeach; ?> |
</td> |
</tr> |
</table> |
</div> |
<? endif; ?> |
<span class="conteneur_lien_metadonnees"> |
<a class="lien_metadonnees lien_popup " href="<?= $baseflor['meta']['url']; ?>">Voir toutes les metadonnées</a> |
</span> |
</div> |
</div> |
<div class="conteneur_lien_metadonnees"> |
<?=$baseflor['meta']['citation']?> |
<span class="conteneur_lien_metadonnees"> |
<a class="lien_metadonnees lien_popup " href="<?= $baseflor['meta']['url']; ?>">Voir toutes les metadonnées</a> |
</span> |
</div> |
<?else : ?> |
<?=$baseflor['aucune']?> |
<br /> |
<?else : ?> |
<?=$baseflor['aucune']?> |
<br /> |
<? endif; ?> |
<? endif; ?> |
<?php if(isset($baseflor)) : ?> |
<h2>Phytosociologie</h2> |
<? if (isset($baseveg['syntaxons-sup']) || isset($baseveg['syntaxons-sup'])) : ?> |
<br/> |
Le code catminat de ce taxon est <span class="gras"> <?=$baseveg['baseflor']['catminat'] ?></span> </br> |
Il est caractéristique du syntaxon de niveau <span class="gras"><?=$baseveg['syntaxon-courant'][0]['niveau.libelle']?></span> présenté |
dans le tableau ci-dessous avec ses niveaux supérieurs. [ <a href="http://philippe.julve.pagesperso-orange.fr/catminat.htm" target="_blank">Voir le site Catminat pour en savoir plus.</a> ] |
<table> |
<?php foreach ($baseveg['syntaxons-sup'] as $cle => $valeurs ) : ?> |
<tr> |
<td> |
<span class="gras"><?=$valeurs['code_catminat']?></span></br> |
<?=$valeurs['niveau.libelle']?> |
</td> |
<td> |
<span class="gras"><?=$valeurs['syntaxon']?></span> </br> |
<span ><?=$valeurs['physio_biotype']?></span> </br> |
<?= !empty($valeurs['repartition_france']) ? 'répartition : '.$valeurs['repartition_france'] : '' ?> |
</td> |
<td> |
<a class="lien_popup" href="<?=$baseveg['ref']['lien-liste-fancy'][$valeurs['code_catminat']]?>">Réf.</a> </br> |
<a class="lien_popup" href="<?=$baseveg['synonymes']['lien-liste-fancy'][$valeurs['code_catminat']]?>">Syn.</a> </br> |
<a class="lien_popup" href="<?=$baseveg['taxons']['lien-liste-fancy'][$valeurs['code_catminat']]?>">Taxons</a> |
</td> |
</tr> |
<? endforeach; ?> |
<tr class="surlignage"> |
<td> |
<span class="gras"><?=$baseveg['syntaxon-courant'][0]['code_catminat']?></span></br> |
<?=$baseveg['syntaxon-courant'][0]['niveau.libelle']?> |
</td> |
<td> |
<span class="gras"><?=$baseveg['syntaxon-courant'][0]['syntaxon']?></span> </br> |
<span ><?=$baseveg['syntaxon-courant'][0]['physio_biotype']?></span> </br> |
<?= !empty($baseveg['syntaxon-courant'][0]['repartition_france']) ? 'rép.'.$baseveg['syntaxon-courant'][0]['repartition_france'] : ''?> |
</td> |
<td> |
<a class="lien_popup" href="<?=$baseveg['ref']['lien-liste-fancy'][$baseveg['syntaxon-courant'][0]['code_catminat']]?>">Réf.</a> </br> |
<a class="lien_popup" href="<?=$baseveg['synonymes']['lien-liste-fancy'][$baseveg['syntaxon-courant'][0]['code_catminat']]?>">Syn.</a></br> |
<a class="lien_popup" href="<?=$baseveg['baseflor']['lien-liste-fancy']?>">Taxons</a> |
<h2>Phytosociologie</h2> |
<? if (isset($baseveg['syntaxons-sup']) || isset($baseveg['syntaxons-sup'])) : ?> |
</td> |
</tr> |
</table> |
<div class="conteneur_lien_metadonnees"> |
<?=$baseveg['meta']['citation']?> |
<span class="conteneur_lien_metadonnees"> |
<a class="lien_metadonnees lien_popup " href="<?= $baseveg['meta']['url']; ?>">Voir toutes les metadonnées</a> |
</span> |
</div> |
<? else : ?> |
Aucune Donnée. |
<? endif; ?> |
<br/> |
Le code catminat de ce taxon est <span class="gras"> <?=$baseveg['baseflor']['catminat'] ?></span> </br> |
Il est caractéristique du syntaxon de niveau <span class="gras"><?=$baseveg['syntaxon-courant'][0]['niveau.libelle']?></span> présenté |
dans le tableau ci-dessous avec ses niveaux supérieurs. [ <a href="http://philippe.julve.pagesperso-orange.fr/catminat.htm" target="_blank">Voir le site Catminat pour en savoir plus.</a> ] |
<table> |
<?php foreach ($baseveg['syntaxons-sup'] as $cle => $valeurs ) : ?> |
<tr> |
<td> |
<span class="gras"><?=$valeurs['code_catminat']?></span></br> |
<?=$valeurs['niveau.libelle']?> |
</td> |
<td> |
<span class="gras"><?=$valeurs['syntaxon']?></span> </br> |
<span ><?=$valeurs['physio_biotype']?></span> </br> |
<?= !empty($valeurs['repartition_france']) ? 'répartition : '.$valeurs['repartition_france'] : '' ?> |
</td> |
<td> |
<a class="lien_popup" href="<?=$baseveg['ref']['lien-liste-fancy'][$valeurs['code_catminat']]?>">Réf.</a> </br> |
<a class="lien_popup" href="<?=$baseveg['synonymes']['lien-liste-fancy'][$valeurs['code_catminat']]?>">Syn.</a> </br> |
<a class="lien_popup" href="<?=$baseveg['taxons']['lien-liste-fancy'][$valeurs['code_catminat']]?>">Taxons</a> |
</td> |
</tr> |
<? endforeach; ?> |
<tr class="surlignage"> |
<td> |
<span class="gras"><?=$baseveg['syntaxon-courant'][0]['code_catminat']?></span></br> |
<?=$baseveg['syntaxon-courant'][0]['niveau.libelle']?> |
</td> |
<td> |
<span class="gras"><?=$baseveg['syntaxon-courant'][0]['syntaxon']?></span> </br> |
<span ><?=$baseveg['syntaxon-courant'][0]['physio_biotype']?></span> </br> |
<?= !empty($baseveg['syntaxon-courant'][0]['repartition_france']) ? 'rép.'.$baseveg['syntaxon-courant'][0]['repartition_france'] : ''?> |
</td> |
<td> |
<a class="lien_popup" href="<?=$baseveg['ref']['lien-liste-fancy'][$baseveg['syntaxon-courant'][0]['code_catminat']]?>">Réf.</a> </br> |
<a class="lien_popup" href="<?=$baseveg['synonymes']['lien-liste-fancy'][$baseveg['syntaxon-courant'][0]['code_catminat']]?>">Syn.</a></br> |
<a class="lien_popup" href="<?=$baseveg['baseflor']['lien-liste-fancy']?>">Taxons</a> |
<?php endif; ?> |
</td> |
</tr> |
</table> |
<div class="conteneur_lien_metadonnees"> |
<?=$baseveg['meta']['citation']?> |
<span class="conteneur_lien_metadonnees"> |
<a class="lien_metadonnees lien_popup " href="<?= $baseveg['meta']['url']; ?>">Voir toutes les metadonnées</a> |
</span> |
</div> |
<? else : ?> |
Aucune Donnée. |
<? endif; ?> |
<br/> |
<br/> |
<br/> |
<h2>Vos compléments sur l'écologie</h2> |
<!-- TODO: cette phrase d'aide devrait être ajoutée avec javascript mais le système des onglets ajax nous en empêche --> |
<span class="aide_wikini"> Participez à la rédaction collaborative, un double clic dans le cadre suffit pour compléter ou corriger la page </span> |