get()); if($choix_niv2 === ZenitySetup::$type_client['entrees'][0]) { echo "choix: " . $choix_niv2 . "\n"; $Client->setType('client'); } elseif($choix_niv2 === ZenitySetup::$type_client['entrees'][1]) { echo "choix: " . $choix_niv2 . "\n"; $Client->setType('prospect'); } else { return [0, null]; // menu principal } // -- partie 2: saisie des infos -- if(enterCustomer($Client)) { // -- partie 3: on fait quoi maintenant -- $choix_niv3 = exec($FinSection1->get()); if($choix_niv3 === ZenitySetup::$fin_section_1['entrees'][0]) { return [2, $Client]; // section 2: newService() } elseif($choix_niv3 === ZenitySetup::$fin_section_1['entrees'][1]) { return [3, $Client]; // section 3: modifyData() } elseif($choix_niv3 === ZenitySetup::$fin_section_1['entrees'][2]) { return [1, null]; // relancer section 1: newCustomer() } else { return [0, null]; // menu principal } } return [0, null]; // menu principal }