diff --git a/htdocs/telephonie/fournisseur/fiche.php b/htdocs/telephonie/fournisseur/fiche.php index 50e7ff013ce..2e5a09593ac 100644 --- a/htdocs/telephonie/fournisseur/fiche.php +++ b/htdocs/telephonie/fournisseur/fiche.php @@ -37,6 +37,24 @@ if ($_POST["action"] == 'add') } } +if ($_POST["action"] == 'update' && $_GET["id"]) +{ + $fourn = new FournisseurTelephonie($db); + + if ($fourn->fetch($_GET["id"]) == 0) + { + + $fourn->num_client = $_POST["num_client"]; + $fourn->email_commande = $_POST["email_commande"]; + $fourn->methode_commande = $_POST["methode"]; + + if ( $fourn->update($user) == 0) + { + Header("Location: fiche.php?id=".$fourn->id); + } + } +} + if ($_GET["action"] == 'active') { $fourn = new FournisseurTelephonie($db); @@ -107,27 +125,33 @@ if ($_GET["id"] > 0) */ print_titre("Modification fournisseur"); + print '
| Nom | '.$fourn->nom.' | |
| Numéro Client | '; + print ''.$fourn->num_client.' | '; + print 'Notre numéro de client |
| Email de commande | '; print ''.$fourn->email_commande.' | '; print 'adresse email à laquelle sont envoyées les commandes de lignes |