diff options
Diffstat (limited to 'src/sections/4_get_document.php')
-rw-r--r-- | src/sections/4_get_document.php | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/sections/4_get_document.php b/src/sections/4_get_document.php new file mode 100644 index 0000000..e28e526 --- /dev/null +++ b/src/sections/4_get_document.php | |||
@@ -0,0 +1,55 @@ | |||
1 | <?php | ||
2 | // src/sections/4_get_document.php | ||
3 | // | ||
4 | // -- SECTION 4: Afficher, imprimer un document -- | ||
5 | |||
6 | function getDocument($Objet): array | ||
7 | { | ||
8 | $MenuDocuments = new ZenityList(ZenitySetup::$menu_documents_text, ZenitySetup::$menu_documents_entrees); | ||
9 | |||
10 | // -- partie 1: type de document -- | ||
11 | |||
12 | $choix_niv2 = exec($MenuDocuments->get()); | ||
13 | if($choix_niv2 === ZenitySetup::$menu_documents_entrees[0]) | ||
14 | { | ||
15 | |||
16 | } | ||
17 | elseif($choix_niv2 === ZenitySetup::$menu_documents_entrees[1]) // = Facture | ||
18 | { | ||
19 | |||
20 | } | ||
21 | elseif($choix_niv2 === ZenitySetup::$menu_documents_entrees[2]) // = Lettre avec adresse | ||
22 | { | ||
23 | |||
24 | } | ||
25 | elseif($choix_niv2 === ZenitySetup::$menu_documents_entrees[3]) // = Livre des recettes | ||
26 | { | ||
27 | |||
28 | } | ||
29 | elseif($choix_niv2 === ZenitySetup::$menu_documents_entrees[4]) // = Registre des achats | ||
30 | { | ||
31 | |||
32 | } | ||
33 | elseif($choix_niv2 === ZenitySetup::$menu_documents_entrees[5]) // = Bilan annuel | ||
34 | { | ||
35 | |||
36 | } | ||
37 | else | ||
38 | { | ||
39 | return [0, null]; // menu principal | ||
40 | } | ||
41 | |||
42 | |||
43 | // -- partie 2: régénérer les documents latex et pdf -- | ||
44 | |||
45 | |||
46 | // -- partie 3: afficher -- | ||
47 | |||
48 | |||
49 | // -- partie 4: imprimer -- | ||
50 | |||
51 | |||
52 | // -- partie 5: on fait quoi maintenant -- | ||
53 | |||
54 | return [0, null]; // menu principal | ||
55 | } | ||