Line 157... |
Line 157... |
157 |
$lien = sprintf($this->conteneur->getParametre('delFicheObsTpl'), $element['dob_id_observation']);
|
157 |
$lien = sprintf($this->conteneur->getParametre('delFicheObsTpl'), $element['dob_id_observation']);
|
158 |
return $lien;
|
158 |
return $lien;
|
159 |
}
|
159 |
}
|
Line 160... |
Line 160... |
160 |
|
160 |
|
- |
|
161 |
private function creerTitre($element) {
|
161 |
private function creerTitre($element) {
|
162 |
$nomPropose = htmlspecialchars($element['nom_sel']);
|
162 |
$intitule = ($element['nom_sel'] != '') ? 'Proposition' : 'Commentaire';
|
163 |
$intitule = ($element['nom_sel'] != '') ? "Proposition $nomPropose" : 'Commentaire';
|
163 |
$idObs = $element['dob_id_observation'];
|
164 |
$auteur = htmlspecialchars($this->creerAuteur($element));
|
164 |
$nomSel = htmlspecialchars($element['dob_nom_sel']);
|
165 |
$nomSelActuel = htmlspecialchars($element['dob_nom_sel']);
|
165 |
$zoneGeo = htmlspecialchars((($element['dob_zone_geo'] != '') ? $element['dob_zone_geo'] : '?'));
|
166 |
$zoneGeo = htmlspecialchars((($element['dob_zone_geo'] != '') ? $element['dob_zone_geo'] : '?'));
|
Line 166... |
Line 167... |
166 |
$dateObs = htmlspecialchars(strftime('%d %B %Y', strtotime($element['dob_date_observation'])));
|
167 |
$dateObs = htmlspecialchars(strftime('%d %B %Y', strtotime($element['dob_date_observation'])));
|
167 |
|
168 |
|
168 |
$titre = "$intitule - Observation $idObs - $nomSel à $zoneGeo le $dateObs";
|
169 |
$titre = "$intitule par $auteur pour $nomSelActuel à $zoneGeo le $dateObs";
|
Line 169... |
Line 170... |
169 |
return $titre;
|
170 |
return $titre;
|
170 |
}
|
171 |
}
|
- |
|
172 |
|
171 |
|
173 |
private function creerDescription($donnees, $item) {
|
- |
|
174 |
$idCommentaire = $donnees['id_commentaire'];
|
- |
|
175 |
$idObs = $donnees['dob_id_observation'];
|
172 |
private function creerDescription($donnees, $item) {
|
176 |
$nomPropose = ($donnees['nom_sel'] != '') ? htmlspecialchars($donnees['nom_sel']) : '';
|
173 |
$idCommentaire = $donnees['id_commentaire'];
|
- |
|
174 |
$nomSel = ($donnees['nom_sel'] != '') ? htmlspecialchars($donnees['nom_sel']) : '';
|
177 |
$nomSelActuel = htmlspecialchars($donnees['dob_nom_sel']);
|
175 |
$txt = ($donnees['texte'] != '') ? htmlspecialchars($donnees['texte']) : '';
|
178 |
$etreProposition = ($nomPropose != '') ? true : false;
|
- |
|
179 |
$txt = ($donnees['texte'] != '') ? htmlspecialchars($donnees['texte']) : '';
|
- |
|
180 |
$auteur = htmlspecialchars($this->creerAuteur($donnees)).
|
Line -... |
Line 181... |
- |
|
181 |
($this->fluxAdminDemande() ? ' ('.$donnees['utilisateur_courriel'].')' : '');
|
- |
|
182 |
$zoneGeo = htmlspecialchars((($donnees['dob_zone_geo'] != '') ? $donnees['dob_zone_geo'] : '?'));
|
176 |
$etreProposition = ($nomSel != '') ? true : false;
|
183 |
$dateObs = htmlspecialchars(strftime('%d %B %Y', strtotime($donnees['dob_date_observation'])));
|
177 |
$auteur = htmlspecialchars($this->creerAuteur($donnees)).
|
184 |
|
178 |
($this->fluxAdminDemande() ? ' ('.$donnees['utilisateur_courriel'].')' : '');
|
185 |
$contenu = "<li>Observation #$idObs : <em>$nomSelActuel</em></li>".
|
179 |
|
186 |
"<li>Lieu observation : $zoneGeo</li>".
|
180 |
$contenu = '';
|
187 |
"<li>Date observation : $dateObs</li>";
|
181 |
if ($etreProposition) {
|
188 |
if ($etreProposition) {
|
182 |
$contenu = "<li>Proposition #$idCommentaire : <em>$nomSel</em></li>".
|
189 |
$contenu .= "<li>Proposition #$idCommentaire : <em>$nomPropose</em></li>".
|
183 |
((!empty($txt)) ? "<li>Argumentaire : $txt</li>" : '').
|
190 |
((!empty($txt)) ? "<li>Argumentaire : $txt</li>" : '').
|
184 |
"<li>Auteur de la proposition : $auteur</li>";
|
191 |
"<li>Auteur de la proposition : $auteur</li>";
|
185 |
} else {
|
192 |
} else {
|
186 |
$contenu = "<li>Commentaire #$idCommentaire : <pre>$txt</pre></li>".
|
193 |
$contenu .= "<li>Commentaire #$idCommentaire : <pre>$txt</pre></li>".
|
187 |
"<li>Auteur du commentaire : $auteur</li>";
|
194 |
"<li>Auteur du commentaire : $auteur</li>";
|