160,11 → 160,17 |
|
private function creerTitre($element) { |
$intitule = ($element['nom_sel'] != '') ? 'Proposition' : 'Commentaire'; |
$titre = $intitule.' - Observation '.$element['dob_id_observation'].' - '.htmlspecialchars($element['dob_nom_sel']).' à '.$element['dob_zone_geo'].' le '.$element['dob_date_observation']; |
$idObs = $element['dob_id_observation']; |
$nomSel = htmlspecialchars($element['dob_nom_sel']); |
$zoneGeo = htmlspecialchars((($element['dob_zone_geo'] != '') ? $element['dob_zone_geo'] : '?')); |
$dateObs = htmlspecialchars(strftime('%d %B %Y', strtotime($element['dob_date_observation']))); |
|
$titre = "$intitule - Observation $idObs - $nomSel à $zoneGeo le $dateObs"; |
return $titre; |
} |
|
private function creerDescription($donnees, $item) { |
$idCommentaire = $donnees['id_commentaire']; |
$nomSel = ($donnees['nom_sel'] != '') ? htmlspecialchars($donnees['nom_sel']) : ''; |
$txt = ($donnees['texte'] != '') ? htmlspecialchars($donnees['texte']) : ''; |
$etreProposition = ($nomSel != '') ? true : false; |
173,11 → 179,11 |
|
$contenu = ''; |
if ($etreProposition) { |
$contenu = "<li>Proposition : <em>$nomSel</em></li>". |
$contenu = "<li>Proposition #$idCommentaire : <em>$nomSel</em></li>". |
((!empty($txt)) ? "<li>Argumentaire : $txt</li>" : ''); |
"<li>Auteur de la proposition : $auteur</li>"; |
} else { |
$contenu = "<li>Commentaire : <pre>$txt</pre></li>". |
$contenu = "<li>Commentaire #$idCommentaire : <pre>$txt</pre></li>". |
"<li>Auteur du commentaire : $auteur</li>"; |
} |
$description = "<ul>$contenu</ul>"; |