| Line 72... |
Line 72... |
| 72 |
private function creerTitre($element) {
|
72 |
private function creerTitre($element) {
|
| 73 |
$nomPropose = htmlspecialchars($element['nom_sel']);
|
73 |
$nomPropose = htmlspecialchars($element['nom_sel']);
|
| 74 |
$intitule = ($element['nom_sel'] != '') ? "Proposition $nomPropose" : 'Commentaire';
|
74 |
$intitule = ($element['nom_sel'] != '') ? "Proposition $nomPropose" : 'Commentaire';
|
| 75 |
$auteur = htmlspecialchars($this->creerAuteur($element));
|
75 |
$auteur = htmlspecialchars($this->creerAuteur($element));
|
| 76 |
$nomSelActuel = htmlspecialchars($element['dob_nom_sel']);
|
76 |
$nomSelActuel = htmlspecialchars($element['dob_nom_sel']);
|
| 77 |
$zoneGeo = htmlspecialchars((($element['dob_zone_geo'] != '') ? $element['dob_zone_geo'] : '?'));
|
77 |
$zoneGeo = htmlspecialchars((($element['dob_zone_geo'] != '') ? $element['dob_zone_geo'] : null));
|
| - |
|
78 |
$dateObs = null;
|
| - |
|
79 |
if (strpos($element['dob_date_observation'], '0000') === false) {
|
| 78 |
$dateObs = htmlspecialchars(strftime('%d %B %Y', strtotime($element['dob_date_observation'])));
|
80 |
$dateObs = htmlspecialchars(strftime('%d %B %Y', strtotime($element['dob_date_observation'])));
|
| - |
|
81 |
}
|
| Line 79... |
Line 82... |
| 79 |
|
82 |
|
| - |
|
83 |
$titre = "$intitule par $auteur pour $nomSelActuel";
|
| - |
|
84 |
$titre .= ($zoneGeo != null) ? " à $zoneGeo" : "";
|
| 80 |
$titre = "$intitule par $auteur pour $nomSelActuel à $zoneGeo le $dateObs";
|
85 |
$titre .= ($dateObs != null) ? " le $dateObs" : "";
|
| 81 |
return $titre;
|
86 |
return $titre;
|
| Line 82... |
Line 87... |
| 82 |
}
|
87 |
}
|
| 83 |
|
88 |
|