Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 617 Rev 733
Line 46... Line 46...
46
	}
46
	}
Line 47... Line 47...
47
 
47
 
48
	private function obtenirUrlsPhotos() {
48
	private function obtenirUrlsPhotos() {
49
		$this->imagesService->setProjet('cel');
49
		$this->imagesService->setProjet('cel');
50
		$ids = $this->extraireIdDesNoms();
50
		$ids = $this->extraireIdDesNoms();
51
		$urls = $this->imagesService->getUrlsImagesParIdsNoms($ids);
51
		$urls = $this->imagesService->getUrlPremiereImageParIdsNoms($ids);
52
		$this->infosPourTpl['imagesUrls'] = $this->supprimerCodeReftaxDesIds($urls);
52
		$this->infosPourTpl['imagesUrls'] = $this->supprimerCodeReftaxDesIds($urls);
Line 53... Line 53...
53
	}
53
	}
54
	
54
	
55
	private function obtenirUrlsImagesCoste() {
55
	private function obtenirUrlsImagesCoste() {
56
		$this->extraireInfosTaxons();
56
		$this->extraireInfosTaxons();
57
		$this->imagesService->setProjet('coste');
57
		$this->imagesService->setProjet('coste');
58
		foreach ($this->infosPourTpl['taxons'] as $nn => $tax) {
58
		$tax = implode(',', $this->infosPourTpl['taxons']);
59
			$this->imagesService->setNnTaxon($tax);
59
		$this->imagesService->setNnTaxon($tax);
60
			$costeImg = $this->imagesService->getInfosImagesTaxons();
60
		$costeImg = $this->imagesService->getInfosImagesTaxons();
61
			if (!empty($costeImg)) {
61
		if (!empty($costeImg)) {
62
				foreach ($costeImg as  $infos) {
62
			foreach ($costeImg as  $infos) {
63
					$num_taxon = $infos['num_taxonomique'];
63
				$num_taxon = $infos['num_taxonomique'];
64
					$images[$num_taxon][] = $infos['binaire.href'];
-
 
65
					$this->infosPourTpl['imagesCoste'] = $images;
64
				$images[$num_taxon][] = $infos['binaire.href'];
66
				}
65
				$this->infosPourTpl['imagesCoste'] = $images;
67
			}
-
 
68
		}
66
			}
Line 69... Line 67...
69
		
67
		}
70
	}
68
	}
71
 
69