From 3530509ef72f457ca2ed4c8a41601d34ad91f6f8 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 18 Apr 2005 08:57:17 +0000 Subject: [PATCH] Ajoute l'email de commande --- htdocs/telephonie/ligne/commande/fiche.php | 32 ++++++---------------- 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/htdocs/telephonie/ligne/commande/fiche.php b/htdocs/telephonie/ligne/commande/fiche.php index 625fe397f93..77a9e699460 100644 --- a/htdocs/telephonie/ligne/commande/fiche.php +++ b/htdocs/telephonie/ligne/commande/fiche.php @@ -31,7 +31,6 @@ if ($user->rights->telephonie->ligne_commander) { if ($_GET["action"] == "create" && $_GET["fournid"] > 0) { - $fourn = new FournisseurTelephonie($db); $result = $fourn->fetch($_GET["fournid"]); @@ -39,26 +38,7 @@ if ($user->rights->telephonie->ligne_commander) if ($result == 0) { $result = $fourn->CreateCommande($user); - } - - /* - $fourntel = new FournisseurTelephonie($db,1); - if ( $fourntel->fetch(1) == 0) - { - $ct = new CommandeTableur($db, $user, $fourntel); - - $result = $ct->create(); - - if ($result == 0) - { - Header("Location: archives.php"); - } - elseif ($result == -3) - { - $mesg_erreur = "Email fournisseur non définit"; - } - } - */ + } } } @@ -102,7 +82,7 @@ if ($result) print ''; print ''; - print ''; + print ''; print "\n"; $var=True; @@ -114,6 +94,9 @@ if ($result) $row = $db->fetch_row(); $var=!$var; + $fournisseur = new FournisseurTelephonie($db); + $fournisseur->fetch($row[1]); + print ""; print ''; print '\n"; @@ -126,8 +109,9 @@ if ($result) { print 'Créer la commande'; } - print "\n"; - print "\n"; + print "\n"; $i++; } print "
FournisseurNb Lignes Nb Lignes Email envoyé à
'.$row[2].''.$row[0]."
\n"; + print $fournisseur->email_commande; + print "

";