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/main_loop.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/main_loop.php')
| -rw-r--r-- | src/main_loop.php | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/src/main_loop.php b/src/main_loop.php index 8dac901..511ced6 100644 --- a/src/main_loop.php +++ b/src/main_loop.php | |||
| @@ -62,36 +62,17 @@ while($main_loop) | |||
| 62 | elseif($choix_niv1 === ZenitySetup::$menu_principal['entrees'][5] || $section[0] === 6) // = Communication | 62 | elseif($choix_niv1 === ZenitySetup::$menu_principal['entrees'][5] || $section[0] === 6) // = Communication |
| 63 | { | 63 | { |
| 64 | echo("choix: ". ZenitySetup::$menu_principal['entrees'][5] . "\n"); | 64 | echo("choix: ". ZenitySetup::$menu_principal['entrees'][5] . "\n"); |
| 65 | $MenuCommunication = new ZenityList(ZenitySetup::$menu_communication['text'], ZenitySetup::$menu_communication['entrees']); | 65 | $section = EditAdvertising(); |
| 66 | $choix_niv2 = exec($MenuCommunication->get()); | ||
| 67 | if($choix_niv2 === ZenitySetup::$menu_communication['entrees'][0]) // = Flyer (nécessite gimp) | ||
| 68 | { | ||
| 69 | exec(windowAppCommand(Config::$image_editor, $flyer)); | ||
| 70 | } | ||
| 71 | elseif($choix_niv2 === ZenitySetup::$menu_communication['entrees'][1]) // = Carte de visite (nécessite scribus) | ||
| 72 | { | ||
| 73 | exec(windowAppCommand(Config::$publishing, $business_card)); | ||
| 74 | } | ||
| 75 | elseif($choix_niv2 === ZenitySetup::$menu_communication['entrees'][2]) // = Explorateur de fichiers | ||
| 76 | { | ||
| 77 | exec(windowAppCommand($file_explorer, Config::$pub_path)); | ||
| 78 | } | ||
| 79 | else | ||
| 80 | { | ||
| 81 | // retour menu principal | ||
| 82 | } | ||
| 83 | } | 66 | } |
| 84 | 67 | ||
| 85 | // -- SECTION 7: BDD -- | 68 | // -- SECTION 7: BDD -- |
| 86 | elseif($choix_niv1 === ZenitySetup::$menu_principal['entrees'][6] || $section[0] === 7) // = Base de données | 69 | elseif($choix_niv1 === ZenitySetup::$menu_principal['entrees'][6] || $section[0] === 7) // = Base de données |
| 87 | { | 70 | { |
| 88 | echo("choix: ". ZenitySetup::$menu_principal['entrees'][6] . "\n"); | 71 | echo("choix: ". ZenitySetup::$menu_principal['entrees'][6] . "\n"); |
| 89 | if($sqlitebrowser_enable) | 72 | if($sqlitebrowser_enable){ |
| 90 | { | ||
| 91 | exec(windowAppCommand(Config::$sqlite_gui, Config::$db_path)); | 73 | exec(windowAppCommand(Config::$sqlite_gui, Config::$db_path)); |
| 92 | } | 74 | } |
| 93 | else | 75 | else{ |
| 94 | { | ||
| 95 | exec($x_term_command . ' ' . $sqlite_cli . ' ' . Config::$db_path); // correpond à priori à: xterm -e sqlite3 ~/ORDIPOLO/Appli_PHP/ordipolo.sqlite | 76 | exec($x_term_command . ' ' . $sqlite_cli . ' ' . Config::$db_path); // correpond à priori à: xterm -e sqlite3 ~/ORDIPOLO/Appli_PHP/ordipolo.sqlite |
| 96 | } | 77 | } |
| 97 | } | 78 | } |
