From 747674b450d6840ce9bd9aecd765cf31445ef8d3 Mon Sep 17 00:00:00 2001 From: polo Date: Sat, 22 Jul 2023 12:29:47 +0200 Subject: navigation entre sections, boucle principale, client ou prospect --- src/sections/1_customer.php | 48 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/sections/1_customer.php (limited to 'src/sections/1_customer.php') diff --git a/src/sections/1_customer.php b/src/sections/1_customer.php new file mode 100644 index 0000000..cdec448 --- /dev/null +++ b/src/sections/1_customer.php @@ -0,0 +1,48 @@ +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 +} -- cgit v1.2.3