Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 474 → Rev 475

/trunk/widget/modules/carto/Carto.php
108,14 → 108,16
extract($this->parametres);
$observations = $this->chargerObservation($station);
$commune = $observations['commune'];
unset($observations['commune'])
;
// Création des infos du widget
if (isset($observations['commune'])) {
$commune = $observations['commune'];
unset($observations['commune']);
$widget['donnees']['commune'] = $commune;
}
$widget['donnees']['observations'] = $observations;
$widget['donnees']['station_id'] = $station;
$widget['donnees']['commune'] = $commune;
$widget['squelette'] = $this->choisirFormatSortie(count($observations));
return $widget;
/trunk/widget/modules/carto/squelettes/obs_tableau.tpl.html
6,7 → 6,7
</div>
<div id="observations">
<table>
<caption><h2><?=count($observations)?> observations pour <?=$commune?></h2></caption>
<caption><h2><?=count($observations)?> observations pour <?=(isset($commune) ? $commune : '?')?></h2></caption>
<thead>
<tr>
<th>Nom</th><th>Date</th><th>Lieu</th><th>Observateur</th>
/trunk/widget/modules/carto/squelettes/obs_liste.tpl.html
5,7 → 5,7
</ul>
</div>
<div id="observations">
<h2><?=count($observations)?> observations pour <?=$commune?></h2>
<h2><?=count($observations)?> observations pour <?=(isset($commune) ? $commune : '?')?></h2>
<ul>
<? foreach ($observations as $obs) : ?>
<li>