Line 18... |
Line 18... |
18 |
private $service = null;
|
18 |
private $service = null;
|
19 |
private $squelette = null;
|
19 |
private $squelette = null;
|
20 |
private $squelette_dossier = null;
|
20 |
private $squelette_dossier = null;
|
21 |
private $flux = array();
|
21 |
private $flux = array();
|
Line 22... |
Line 22... |
22 |
|
22 |
|
Line 23... |
Line 23... |
23 |
private $format_image = 'L';
|
23 |
private $format_image = 'XL';
|
24 |
|
24 |
|
25 |
private $criteres = array(
|
25 |
private $criteres = array(
|
26 |
'auteur' => 'c.ci_ce_utilisateur',
|
26 |
'auteur' => 'c.ci_ce_utilisateur',
|
Line 267... |
Line 267... |
267 |
$description = $this->nettoyerTexte($description);
|
267 |
$description = $this->nettoyerTexte($description);
|
268 |
return $description;
|
268 |
return $description;
|
269 |
}
|
269 |
}
|
Line 270... |
Line 270... |
270 |
|
270 |
|
- |
|
271 |
private function creerLienItem($element) {
|
- |
|
272 |
if ($this->etreNull($element['id'])) {
|
271 |
private function creerLienItem($element) {
|
273 |
// Lien vers image grand format
|
- |
|
274 |
$lien = $this->getUrlImage($element['ci_id_image'], $this->format_image);
|
- |
|
275 |
} else {
|
- |
|
276 |
// Lien vers fiche eFlore onglet Illustration
|
- |
|
277 |
$lien = sprintf($this->config['settings']['efloreUrlTpl'], $element['num_nom_sel'], 'illustration');
|
272 |
$lien = $this->getUrlImage($element['ci_id_image'], $this->format_image);
|
278 |
}
|
273 |
return $lien;
|
279 |
return $lien;
|
Line 274... |
Line 280... |
274 |
}
|
280 |
}
|
275 |
|
281 |
|
Line 504... |
Line 510... |
504 |
$auteur = $this->creerAuteur($donnees['ci_ce_utilisateur'], $this->etreFluxAdmin());
|
510 |
$auteur = $this->creerAuteur($donnees['ci_ce_utilisateur'], $this->etreFluxAdmin());
|
Line 505... |
Line 511... |
505 |
|
511 |
|
506 |
$id_img = $donnees['ci_id_image'];
|
512 |
$id_img = $donnees['ci_id_image'];
|
507 |
$nom_fichier = $donnees['ci_nom_original'];
|
513 |
$nom_fichier = $donnees['ci_nom_original'];
|
- |
|
514 |
$url_img = $this->getUrlImage($donnees['ci_id_image'], 'CS');
|
508 |
$url_img = $this->getUrlImage($donnees['ci_id_image'], 'CS');
|
515 |
$url_img_normale = $this->getUrlImage($donnees['ci_id_image'], 'XL');
|
509 |
$mots_cles_image = $this->decoderMotsClesImg($donnees['identifiant'], $donnees['ci_meta_mots_cles']);
|
516 |
$mots_cles_image = $this->decoderMotsClesImg($donnees['identifiant'], $donnees['ci_meta_mots_cles']);
|
510 |
$note = ($donnees['ci_note_image'] +1).'/5';
|
517 |
$note = ($donnees['ci_note_image'] +1).'/5';
|
Line 511... |
Line 518... |
511 |
$commentaire_img = $donnees['ci_meta_comment'];
|
518 |
$commentaire_img = $donnees['ci_meta_comment'];
|
Line 525... |
Line 532... |
525 |
$date_creation = $this->formaterDate($donnees['date_creation']);
|
532 |
$date_creation = $this->formaterDate($donnees['date_creation']);
|
526 |
$transmission = $donnees['transmission'] == 1 ? "oui ($date_transmission)" : 'non';
|
533 |
$transmission = $donnees['transmission'] == 1 ? "oui ($date_transmission)" : 'non';
|
Line 527... |
Line 534... |
527 |
|
534 |
|
528 |
$description = '<style>.champ{color:grey} .gauche{float:left;padding:0 20px 0 0;} ul{list-style-type:none;padding:0;}</style>'.
|
535 |
$description = '<style>.champ{color:grey} .gauche{float:left;padding:0 20px 0 0;} ul{list-style-type:none;padding:0;}</style>'.
|
529 |
'<h2>'.(!$this->etreNull($id_obs) ? "Image #$id_img liée à l'observation #$id_obs" : "Image #$id_img non liée à une observation.").'</h2>'.
|
536 |
'<h2>'.(!$this->etreNull($id_obs) ? "Image #$id_img liée à l'observation #$id_obs" : "Image #$id_img non liée à une observation.").'</h2>'.
|
530 |
'<img class="gauche" src="'.$url_img.'" alt="'.$nom_fichier.'" />'.
|
537 |
'<a href="'.$url_img_normale.'"><img class="gauche" src="'.$url_img.'" alt="'.$nom_fichier.'" /></a>'.
|
531 |
'<div class="gauche">'.
|
538 |
'<div class="gauche">'.
|
532 |
'<h3>'.'Image'.'</h3>'.
|
539 |
'<h3>'.'Image'.'</h3>'.
|
- |
|
540 |
'<ul>'.
|
533 |
'<ul>'.
|
541 |
'<li>'.'<span class="champ">URL :</span> <a href="'.$url_img_normale.'" onclick="javascript:window.open(this.href);return false;">'.$url_img_normale.'</a></li>'.
|
534 |
'<li>'.'<span class="champ">Importée le :</span> '.$item['date_maj_simple'].'</li>'.
|
542 |
'<li>'.'<span class="champ">Importée le :</span> '.$item['date_maj_simple'].'</li>'.
|
535 |
'<li>'.'<span class="champ">Par :</span> '.
|
543 |
'<li>'.'<span class="champ">Par :</span> '.
|
536 |
(($this->etreFluxAdmin()) ? '<a href="mailto:'.$auteur.'">'.$auteur.'</a>' : $auteur).
|
544 |
(($this->etreFluxAdmin()) ? '<a href="mailto:'.$auteur.'">'.$auteur.'</a>' : $auteur).
|
537 |
'</li>'.
|
545 |
'</li>'.
|