Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 514 Rev 697
Line 93... Line 93...
93
		$Dompath = new DOMXPath($this->dom);
93
		$Dompath = new DOMXPath($this->dom);
94
		foreach ($this->valeurs_en_pourcentage as $cle => $val){
94
		foreach ($this->valeurs_en_pourcentage as $cle => $val){
95
				$val = preg_replace('/,/','.', $val);
95
				$val = preg_replace('/,/','.', $val);
96
				$grad_id = array_search($val,$this->graduations_id);
96
				$grad_id = array_search($val,$this->graduations_id);
97
				$champs = preg_replace('/_min|_max|_[0-9]/','', $cle);
97
				$champs = preg_replace('/_min|_max|_[0-9]/','', $cle);
-
 
98
				// dans le cas de mauvaises données, pour ne pas que tout le graphique
-
 
99
				if($case != null) {
98
				$case = $Dompath->query("//*[@id='".$grad_id."_".$champs."']")->item(0);
100
					$case = $Dompath->query("//*[@id='".$grad_id."_".$champs."']")->item(0);
99
				$case->setAttribute('fill','#EA6624');
101
					$case->setAttribute('fill','#EA6624');
100
				$case->setAttribute('stroke','#EA6624');
102
					$case->setAttribute('stroke','#EA6624');
-
 
103
				}
101
				$this->ajouterInfoAuSurvol($champs,$case);
104
				$this->ajouterInfoAuSurvol($champs,$case);
102
				$changement = true;
105
				$changement = true;
103
		}
106
		}
104
		$this->ajusterFormatSVG();
107
		$this->ajusterFormatSVG();
105
	}
108
	}