diff options
| author | polo <ordipolo@gmx.fr> | 2023-07-22 12:29:47 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2023-07-22 12:29:47 +0200 |
| commit | 747674b450d6840ce9bd9aecd765cf31445ef8d3 (patch) | |
| tree | 46e47fd65c751e1951d9aa8438aea1b8c2d8aece /src/sections/4_get_document.php | |
| parent | 9bdfb5196a2ee1cbfc403702e8d2ef88076d366f (diff) | |
| download | AppliGestionPHP-747674b450d6840ce9bd9aecd765cf31445ef8d3.tar.gz AppliGestionPHP-747674b450d6840ce9bd9aecd765cf31445ef8d3.tar.bz2 AppliGestionPHP-747674b450d6840ce9bd9aecd765cf31445ef8d3.zip | |
navigation entre sections, boucle principale, client ou prospect
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 | } | ||
