summaryrefslogtreecommitdiff
path: root/src/main_loop.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_loop.php')
-rw-r--r--src/main_loop.php25
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 }