Ajout champ demande pour
This commit is contained in:
parent
3ba7cf595e
commit
31c81b6069
@ -174,10 +174,14 @@ die();
|
|||||||
|
|
||||||
if(!$aid) {
|
if(!$aid) {
|
||||||
$ti = "Nouvelle commande";
|
$ti = "Nouvelle commande";
|
||||||
|
$forWho = $_SESSION['name'];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$ti = 'Commande par '.$_SESSION['name'] . ', créée le '.$row['created'];
|
$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_titre','',$ti);
|
||||||
$form->add('label', 'label_salutation', 'salutation', 'Salutation:');
|
$form->add('label', 'label_salutation', 'salutation', 'Salutation:');
|
||||||
$obj = $form->add('select', 'salutation', $ar['salutation']);
|
$obj = $form->add('select', 'salutation', $ar['salutation']);
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
<div id="frmcontent">
|
<div id="frmcontent">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<h6><strong><?php echo $label_titre;?></strong></h6><br>
|
<h6><strong><?php echo $label_titre;?></strong></h6><br>
|
||||||
|
<div class="cell"><?php echo $label_demande_pour . $demande_pour ?></div>
|
||||||
<div class="cell"><?php echo $label_salutation . $salutation ?></div>
|
<div class="cell"><?php echo $label_salutation . $salutation ?></div>
|
||||||
<div class="cell"><?php echo $label_name . $nom ?></div>
|
<div class="cell"><?php echo $label_name . $nom ?></div>
|
||||||
<div class="cell"><?php echo $label_prenom . $prenom ?></div>
|
<div class="cell"><?php echo $label_prenom . $prenom ?></div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user