diff options
| author | polo <ordipolo@gmx.fr> | 2026-10-09 15:09:38 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-10-09 15:09:38 +0200 |
| commit | 39d4558eaf5fa5fd6060a0f202b22bcec5a982dc (patch) | |
| tree | aa3d078c4d9a12fe05602510581f7360e2afa504 /src/sections/6_advertising.php | |
| parent | 32f22413786763d4d128ee286cc13700e6b0446f (diff) | |
| download | AppliGestionPHP-39d4558eaf5fa5fd6060a0f202b22bcec5a982dc.tar.gz AppliGestionPHP-39d4558eaf5fa5fd6060a0f202b22bcec5a982dc.tar.bz2 AppliGestionPHP-39d4558eaf5fa5fd6060a0f202b22bcec5a982dc.zip | |
variables déplacées dans Config, suppressions constructeurs Latex.php, ébauche de section 6_advertising, un peu de typage
Diffstat (limited to 'src/sections/6_advertising.php')
| -rw-r--r-- | src/sections/6_advertising.php | 28 |
1 files changed, 28 insertions, 0 deletions
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 | |||
| 6 | function 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 | } | ||
