diff --git a/htdocs/telephonie/adsl/fiche.php b/htdocs/telephonie/adsl/fiche.php index 4408bd98ee6..7ac96dba3bd 100644 --- a/htdocs/telephonie/adsl/fiche.php +++ b/htdocs/telephonie/adsl/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 @@ -247,6 +247,22 @@ if ($_GET["action"] == 'livraison' && $user->rights->telephonie->adsl->gerer) } } +if ($_GET["action"] == 'backbone' && $user->rights->telephonie->adsl->gerer) +{ + $ligne = new LigneAdsl($db); + $ligne->fetch_by_id($_GET["id"]); + + $datea = $db->idate(mktime($h, $m , $s, + $_POST["remonth"], + $_POST["reday"], + $_POST["reyear"])); + + if ( $ligne->set_statut($user, 9, $datea, $_POST["commentaire"]) == 0) + { + Header("Location: fiche.php?id=".$ligne->id); + } +} + if ($_GET["action"] == 'acommander') { $ligne = new LigneAdsl($db); @@ -287,7 +303,6 @@ if ($_POST["action"] == 'update' && $_POST["cancel"] <> $langs->trans("Cancel")) } } - llxHeader("","","Fiche Liaison"); if ($cancel == $langs->trans("Cancel")) @@ -730,10 +745,23 @@ if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 2) if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 3) { - /** - * - */ + print '
'; + print '
'; + print ''; + print ''; + print ''; + print ''; + print '
Programmé sur le backbone'; + print "
Date de la programmation"; + print $form->select_date('','','','','',"backbone"); + print '
Commentaire
'; + print '
'; + print ' 
'; +} + +if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 9) +{ print '
'; print '
'; @@ -831,8 +859,6 @@ if ($_GET["action"] == '') print ""; - - $db->close(); llxFooter("Dernière modification $Date$ révision $Revision$");