bonjour

je voudrais faire un truc pas tres académique
construire les "case" d'un switch "dynamiquement" avec le code qui suit
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
    switch ($page) {
			for($i=1;$i<=LANG_IND_MENU_TOTAL;$i++){//L92
				if(constant("LANG_PAGE_MENU_".$i)!=""){
							case constant("LANG_PAGE_MENU_".$i):
							$table= "enregistrements";
							$page_dest = constant("LANG_PAGE_MENU_".$i);
							$dossier_img = "../images/".constant("LANG_PAGE_MENU_".$i)."/";
							$titre_entete= constant("LANG_IND_MENU_".$i);
							$lien_retour="".URL_BO."/admin.php";
							require "entete_admin.php";
							require "gestion_".constant("LANG_PAGE_MENU_".$i).".php";
								break;
comme je m'y attendais: une erreur :
Parse error: syntax error, unexpected T_FOR, expecting T_CASE or T_DEFAULT or '}' in ...accueil.php on line 92
comment puis je m'y prendre?
merci de votre aide