Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 320 Rev 362
Line 40... Line 40...
40
		$this->cheminCartesBase = Config::get('Cartes.chemin');
40
		$this->cheminCartesBase = Config::get('Cartes.chemin');
41
		$this->dest_map['cenlr'] = 'cenlr_nt'.$this->info['nt'].'_'.$this->info['src_map'];
41
		$this->dest_map['cenlr'] = 'cenlr_nt'.$this->info['nt'].'_'.$this->info['src_map'];
42
		$this->img['cenlr'] = imagecreatefrompng($this->cheminCartesBase.$this->info['src_map']);
42
		$this->img['cenlr'] = imagecreatefrompng($this->cheminCartesBase.$this->info['src_map']);
43
	}
43
	}
Line -... Line 44...
-
 
44
	
-
 
45
	public function testerParametresProjets() {
-
 
46
		$test = true;
-
 
47
		if ($this->info['nom'] == '') {
-
 
48
			$test = false;
-
 
49
		}
-
 
50
		return $test;
-
 
51
	}
44
	
52
	
45
	public function chargerDonnees() {
53
	public function chargerDonnees() {
46
		// Collection code = 'flore' (Cenlr)
54
		// Collection code = 'flore' (Cenlr)
47
		$queryCenlr = "SELECT collection_code, locality as location, county as id_location, ".
55
		$queryCenlr = "SELECT collection_code, locality as location, county as id_location, ".
48
							"	STR_TO_DATE(concat(year, '/',month, '/',day), '%Y/%m/%d') as date_observation, latitude as y_utm , ". 
56
							"	STR_TO_DATE(concat(year, '/',month, '/',day), '%Y/%m/%d') as date_observation, latitude as y_utm , ".