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