From 39d4558eaf5fa5fd6060a0f202b22bcec5a982dc Mon Sep 17 00:00:00 2001 From: polo Date: Fri, 9 Oct 2026 15:09:38 +0200 Subject: =?UTF-8?q?variables=20d=C3=A9plac=C3=A9es=20dans=20Config,=20supp?= =?UTF-8?q?ressions=20constructeurs=20Latex.php,=20=C3=A9bauche=20de=20sec?= =?UTF-8?q?tion=206=5Fadvertising,=20un=20peu=20de=20typage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sections/1_customer.php | 17 ----------------- src/sections/6_advertising.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 17 deletions(-) create mode 100644 src/sections/6_advertising.php (limited to 'src/sections') diff --git a/src/sections/1_customer.php b/src/sections/1_customer.php index db5c448..d282af2 100644 --- a/src/sections/1_customer.php +++ b/src/sections/1_customer.php @@ -13,23 +13,6 @@ function newCustomer(): array $FinSection1 = new ZenityList(ZenitySetup::$fin_section_1['text'], ZenitySetup::$fin_section_1['entrees']); $Customer = new Client; - - // -- partie 1: client ou prospect? -- - //~ $choix_niv2 = exec($TypeDeClient->get()); - //~ if($choix_niv2 === ZenitySetup::$type_client['entrees'][0]) - //~ { - //~ echo "choix: " . $choix_niv2 . "\n"; - //~ $Customer->setType('client'); - //~ } - //~ elseif($choix_niv2 === ZenitySetup::$type_client['entrees'][1]) - //~ { - //~ echo "choix: " . $choix_niv2 . "\n"; - //~ $Customer->setType('prospect'); - //~ } - //~ else - //~ { - //~ return [0, null]; // menu principal - //~ } // -- partie 2: saisie des infos -- if($Customer->enterCustomer($NouveauClient)) diff --git a/src/sections/6_advertising.php b/src/sections/6_advertising.php new file mode 100644 index 0000000..80ce2d5 --- /dev/null +++ b/src/sections/6_advertising.php @@ -0,0 +1,28 @@ +get()); + if($choix_niv2 === ZenitySetup::$menu_communication['entrees'][0]) // = Flyer (nécessite gimp) + { + exec(windowAppCommand(Config::$image_editor, Config::$pub_path . Config::$flyer)); + } + elseif($choix_niv2 === ZenitySetup::$menu_communication['entrees'][1]) // = Carte de visite (nécessite scribus) + { + exec(windowAppCommand(Config::$publishing, Config::$pub_path . Config::$business_card)); + } + elseif($choix_niv2 === ZenitySetup::$menu_communication['entrees'][2]) // = Explorateur de fichiers + { + exec(windowAppCommand(Config::$file_explorer, Config::$pub_path)); + } + else + { + return [0, null]; // menu principal + } + return [6, null]; +} -- cgit v1.2.3