Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 550 | Rev 1018 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 550 Rev 904
Line 38... Line 38...
38
 
38
 
39
	public function executerFiche(){
39
	public function executerFiche(){
40
		$infos = array();
40
		$infos = array();
41
		$this->images->setProjet('cel');
41
		$this->images->setProjet('cel');
42
		$img = $this->images->getInfosImageParIdImage($this->id_image);
-
 
43
		Debug::printr($img);
42
		$img = $this->images->getInfosImageParIdImage($this->id_image);
-
 
43
		$infos['id'] = $this->id_image;
44
		$infos['id'] = $this->id_image;
44
		$img['date'] = $this->formaterDateImg($img['date']);
45
		$infos['image'] = $img;
45
		$infos['image'] = $img;
Line 46... Line 46...
46
		$infos['urlContact'] = $this->appUrls->obtenirUrlPopUpContact($img['auteur.id'], $this->id_image);
46
		$infos['urlContact'] = $this->appUrls->obtenirUrlPopUpContact($img['auteur.id'], $this->id_image);
47
 
47
 
-
 
48
		$this->setSortie(self::RENDU_CORPS, $this->getVue('popup_fiche_illustrations', $infos));
-
 
49
	}
-
 
50
	
-
 
51
	private function formaterDateImg($date) {
-
 
52
		$dateFmt = $date;
-
 
53
		if ($date == '0000-00-00' || $date == '1970-01-01 01:01:01') {
-
 
54
			$dateFmt = 'inconnue';
-
 
55
		} else {
-
 
56
			$dateFmt = strftime('%e %B %Y', strtotime($date));
-
 
57
		}
Line 48... Line 58...
48
		$this->setSortie(self::RENDU_CORPS, $this->getVue('popup_fiche_illustrations', $infos));
58
		return $dateFmt;
49
	}
59
	}
50
 
60