From 884493c1fb985adaaa537c11f4350d940cc68cb1 Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 4 Jul 2023 15:52:55 +0200 Subject: =?UTF-8?q?fonctions=20fichiers=20s=C3=A9par=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sections/1_new_service.php | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'src/sections/1_new_service.php') diff --git a/src/sections/1_new_service.php b/src/sections/1_new_service.php index f9105b7..e7e3564 100644 --- a/src/sections/1_new_service.php +++ b/src/sections/1_new_service.php @@ -130,7 +130,14 @@ function newService(): int // code de retour, si 0 retour menu principal, si 2 a // -- partie 3: LaTeX -- - makeLatexAndPdfDocument($Client, $Presta, $PrestaDetails); + makeLatexAndPdfDocuments($Client, $Presta, $PrestaDetails); + + // fabrique d'objets (sans connaître les noms des classes) + + //~ $EnveloppeRecto = Latex::makeLatexSubClass('enveloppe_recto'); + //~ $EnveloppeVerso = Latex::makeLatexSubClass('enveloppe_verso'); + //~ $DocumentPresta = Latex::makeLatexSubClass($Presta->getTypePresta()); // $type = facture, devis, location + // -- partie 4: récapitulatif -- @@ -142,14 +149,17 @@ function newService(): int // code de retour, si 0 retour menu principal, si 2 a //~ $imprimer_enveloppe = exec('zenity --question --width=250 --title="Base de données mise à jour" --text="Imprimer l\'adresse sur une enveloppe? (insérer une enveloppe DL sans fenêtre dans l\'imprimante"'); + // -- partie 5: on fait quoi maintenant -- + // possibilité de modification // zenityQuestion - if(exec($QuestionModifierPrestation->get()) == '0') - { - return 3; // section "Modifier un enregistrement" - } - else - { - return 0; // menu principal - } + //~ if(exec($QuestionModifierPrestation->get()) == '0') + //~ { + //~ return 3; // section "Modifier un enregistrement" + //~ } + //~ else + //~ { + //~ return 0; // menu principal + //~ } + return 0; // menu principal } -- cgit v1.2.3