From be82aac4ced72d94544b9e9c82fffaacad1c2f33 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 12 Jul 2007 09:51:33 +0000 Subject: [PATCH] Gestion des numeros gratuits --- htdocs/telephonie/tarifs/grille.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/telephonie/tarifs/grille.php b/htdocs/telephonie/tarifs/grille.php index cfb3bfa7e8a..417fc36f9b4 100644 --- a/htdocs/telephonie/tarifs/grille.php +++ b/htdocs/telephonie/tarifs/grille.php @@ -60,14 +60,15 @@ if ($_POST["action"] == 'modif' && $auth_write) $sortfield = "m.tms"; $temporel = ereg_replace(",",".",$_POST["temporel"]); + $fixe = ereg_replace(",",".",$_POST["fixe"]); - if ($temporel > 0) + if ($temporel > 0 or $_POST["gratuit"] == 'on') { require_once DOL_DOCUMENT_ROOT."/telephonie/telephonie.tarif.grille.class.php"; $obgrille = new TelephonieTarifGrille($db); - $obgrille->UpdateTarif($_GET["id"], $_POST["tarif"], $temporel, $_POST["fixe"], $user); + $obgrille->UpdateTarif($_GET["id"], $_POST["tarif"], $temporel, $fixe, $user); Header("Location: grille.php?id=".$_GET["id"]); } @@ -153,6 +154,9 @@ if ($auth_write) print 'Cout connexion'; print ''; + print 'Numero gratuit'; + print ''; + print ''; print '';