summaryrefslogtreecommitdiff
path: root/src/sections
diff options
context:
space:
mode:
Diffstat (limited to 'src/sections')
-rw-r--r--src/sections/1_customer.php17
-rw-r--r--src/sections/6_advertising.php28
2 files changed, 28 insertions, 17 deletions
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
13 $FinSection1 = new ZenityList(ZenitySetup::$fin_section_1['text'], ZenitySetup::$fin_section_1['entrees']); 13 $FinSection1 = new ZenityList(ZenitySetup::$fin_section_1['text'], ZenitySetup::$fin_section_1['entrees']);
14 14
15 $Customer = new Client; 15 $Customer = new Client;
16
17 // -- partie 1: client ou prospect? --
18 //~ $choix_niv2 = exec($TypeDeClient->get());
19 //~ if($choix_niv2 === ZenitySetup::$type_client['entrees'][0])
20 //~ {
21 //~ echo "choix: " . $choix_niv2 . "\n";
22 //~ $Customer->setType('client');
23 //~ }
24 //~ elseif($choix_niv2 === ZenitySetup::$type_client['entrees'][1])
25 //~ {
26 //~ echo "choix: " . $choix_niv2 . "\n";
27 //~ $Customer->setType('prospect');
28 //~ }
29 //~ else
30 //~ {
31 //~ return [0, null]; // menu principal
32 //~ }
33 16
34 // -- partie 2: saisie des infos -- 17 // -- partie 2: saisie des infos --
35 if($Customer->enterCustomer($NouveauClient)) 18 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 @@
1<?php
2// src/sections/6_advertising.php
3//
4// -- SECTION 6: Communication --
5
6function EditAdvertising(): array
7{
8 $MenuCommunication = new ZenityList(ZenitySetup::$menu_communication['text'], ZenitySetup::$menu_communication['entrees']);
9
10 $choix_niv2 = exec($MenuCommunication->get());
11 if($choix_niv2 === ZenitySetup::$menu_communication['entrees'][0]) // = Flyer (nécessite gimp)
12 {
13 exec(windowAppCommand(Config::$image_editor, Config::$pub_path . Config::$flyer));
14 }
15 elseif($choix_niv2 === ZenitySetup::$menu_communication['entrees'][1]) // = Carte de visite (nécessite scribus)
16 {
17 exec(windowAppCommand(Config::$publishing, Config::$pub_path . Config::$business_card));
18 }
19 elseif($choix_niv2 === ZenitySetup::$menu_communication['entrees'][2]) // = Explorateur de fichiers
20 {
21 exec(windowAppCommand(Config::$file_explorer, Config::$pub_path));
22 }
23 else
24 {
25 return [0, null]; // menu principal
26 }
27 return [6, null];
28}