Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 169 Rev 171
Line 59... Line 59...
59
		$this->setSortie(self::RENDU_CORPS, $resultat);
59
		$this->setSortie(self::RENDU_CORPS, $resultat);
60
		$this->chargerPiedDePage();
60
		$this->chargerPiedDePage();
61
	}
61
	}
Line 62... Line 62...
62
	
62
	
-
 
63
	private function chargerZonesNbre(&$zones) {
63
	private function chargerZonesNbre(&$zones) {
64
		$paca = array("04" => '', "05" => '', "06" => '', 13 => '', 83 => '', 84 => '');
64
		$structureDao = new StructureDao();
65
		$structureDao = new StructureDao();
65
		$zones_infos = $structureDao->getStructureParZoneGeo('FRD');
66
		$zones_infos = $structureDao->getStructureParZoneGeo('FRD');
-
 
67
		foreach ($zones as $id => &$infos) {
66
		foreach ($zones as $id => &$infos) {
68
			if ($this->registre->get('contexte') == 'paca') {
67
			if (isset($zones_infos[$id])) {
69
				if (isset($zones_infos[$id]) && isset($paca[$id])) {
68
				$nbre = $zones_infos[$id];
70
					$nbre = $zones_infos[$id];
-
 
71
					$infos['info_nombre'] = $nbre;
-
 
72
				} else {
-
 
73
					$infos['info_nombre'] = 0;
69
				$infos['info_nombre'] = $nbre;
74
				}
-
 
75
			} else {
-
 
76
				if (isset($zones_infos[$id])) {
-
 
77
					$nbre = $zones_infos[$id];
-
 
78
					$infos['info_nombre'] = $nbre;
70
			} else {
79
				} else {
-
 
80
					$infos['info_nombre'] = 0;
71
				$infos['info_nombre'] = 0;
81
				}
72
			}
82
			}	
73
		}
83
		}
Line 74... Line 84...
74
	}
84
	}
75
	
85