From 31c81b6069be4f722cbac2fc0427989098e70810 Mon Sep 17 00:00:00 2001 From: lars Date: Mon, 11 Mar 2019 00:08:02 +0100 Subject: [PATCH] Ajout champ demande pour --- accred_form.php | 4 ++++ custom-template.php | 1 + 2 files changed, 5 insertions(+) diff --git a/accred_form.php b/accred_form.php index 8a3323f6..0c06350d 100644 --- a/accred_form.php +++ b/accred_form.php @@ -174,10 +174,14 @@ die(); if(!$aid) { $ti = "Nouvelle commande"; + $forWho = $_SESSION['name']; } else { $ti = 'Commande par '.$_SESSION['name'] . ', créée le '.$row['created']; + $forWho = $ar['demande_pour']; } + $form->add('label','label_demande_pour','','Demande au nom de'); + $form->add('text', 'demande_pour', $forWho); $form->add('label', 'label_titre','',$ti); $form->add('label', 'label_salutation', 'salutation', 'Salutation:'); $obj = $form->add('select', 'salutation', $ar['salutation']); diff --git a/custom-template.php b/custom-template.php index bdcf5eb4..b98a6808 100644 --- a/custom-template.php +++ b/custom-template.php @@ -4,6 +4,7 @@

+