Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1143 Rev 1165
Line 17... Line 17...
17
		$referentiel = Registre::get('parametres.referentiel');
17
		$referentiel = Registre::get('parametres.referentiel');
18
		$champs_presence = Config::get($referentiel.'.champsPresence');
18
		$champs_presence = Config::get($referentiel.'.champsPresence');
19
		$champs_presence_spl = explode('|', $champs_presence);
19
		$champs_presence_spl = explode('|', $champs_presence);
20
		foreach($champs_presence_spl as $champ) {
20
		foreach($champs_presence_spl as $champ) {
21
			$label_param_champ = explode(':', $champ);
21
			$label_param_champ = explode(':', $champ);
-
 
22
			if(count($label_param_champ) >= 2) {
22
			$tableau_champs_presence[] = array('param' => $label_param_champ[1],
23
				$tableau_champs_presence[] = array('param' => $label_param_champ[1],
23
												'label' => $label_param_champ[0]);
24
														'label' => $label_param_champ[0]);
-
 
25
			}
24
		}
26
		}
25
		return $tableau_champs_presence;
27
		return $tableau_champs_presence;
26
	}
28
	}
27
}
29
}
28
?>
30
?>
29
31