diff --git a/htdocs/telephonie/fournisseur/fiche.php b/htdocs/telephonie/fournisseur/fiche.php index 792ff1eef69..965212e6e7a 100644 --- a/htdocs/telephonie/fournisseur/fiche.php +++ b/htdocs/telephonie/fournisseur/fiche.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2007 Rodolphe Quiedeville * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,6 +33,7 @@ if ($_POST["action"] == 'add') $fourn->nom = $_POST["nom"]; $fourn->email_commande = $_POST["email_commande"]; + $fourn->methode_commande = $_POST["methode"]; if ( $fourn->create($user) == 0) { @@ -104,7 +105,17 @@ if ($_GET["action"] == 'create') print ''; print ''; - print ''; + print ''; + + $html = new Form($db); + + $arr = $fourn->array_methode(); + + print ''; + print ''; + print ''; print ''; print '
Nom
Email de commande (adresse email à laquelle sont envoyées les commandes de lignes
Email de commandeadresse email à laquelle sont envoyées les commandes de lignes
Méthode de commande'; + print $html->select_array("methode",$arr,$fourn->class_commande); + print 'méthode utilisée pour les commandes de lignes
 
'; diff --git a/htdocs/telephonie/fournisseurtel.class.php b/htdocs/telephonie/fournisseurtel.class.php index d60a9c8122e..c140d8e57b6 100644 --- a/htdocs/telephonie/fournisseurtel.class.php +++ b/htdocs/telephonie/fournisseurtel.class.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2007 Rodolphe Quiedeville * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -44,8 +44,8 @@ class FournisseurTelephonie { { $res = 0; $sql = "INSERT INTO ".MAIN_DB_PREFIX."telephonie_fournisseur"; - $sql .= " (nom, email_commande, commande_active)"; - $sql .= " VALUES ('".$this->nom."','".$this->email_commande."',1)"; + $sql .= " (nom, email_commande, commande_active, class_commande)"; + $sql .= " VALUES ('".$this->nom."','".$this->email_commande."',1,'".$this->methode_commande."')"; if (! $this->db->query($sql) ) {