Subversion Repositories eFlore/Applications.del

Rev

Rev 2006 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2006 Rev 2007
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 = '?';
78
		$dateObs = null;
79
		if (strpos($element['dob_date_observation'], '0000') === false) {
79
		if (strpos($element['dob_date_observation'], '0000') === false) {
80
			$dateObs = htmlspecialchars(strftime('%d %B %Y', strtotime($element['dob_date_observation'])));
80
			$dateObs = htmlspecialchars(strftime('%d %B %Y', strtotime($element['dob_date_observation'])));
81
		}
81
		}
Line 82... Line 82...
82
 
82
 
-
 
83
		$titre = "$intitule par $auteur pour $nomSelActuel";
-
 
84
		$titre .= ($zoneGeo != null) ? " à $zoneGeo" : "";
83
		$titre = "$intitule par $auteur pour $nomSelActuel à $zoneGeo le $dateObs";
85
		$titre .= ($dateObs != null) ? " le $dateObs" : "";
84
		return $titre;
86
		return $titre;
Line 85... Line 87...
85
	}
87
	}
86
 
88