Gestion de l'etat backbone
This commit is contained in:
parent
1a3a881264
commit
c27c834e00
@ -1,5 +1,5 @@
|
|||||||
<?PHP
|
<?PHP
|
||||||
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2004-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* 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')
|
if ($_GET["action"] == 'acommander')
|
||||||
{
|
{
|
||||||
$ligne = new LigneAdsl($db);
|
$ligne = new LigneAdsl($db);
|
||||||
@ -287,7 +303,6 @@ if ($_POST["action"] == 'update' && $_POST["cancel"] <> $langs->trans("Cancel"))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
llxHeader("","","Fiche Liaison");
|
llxHeader("","","Fiche Liaison");
|
||||||
|
|
||||||
if ($cancel == $langs->trans("Cancel"))
|
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)
|
if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 3)
|
||||||
{
|
{
|
||||||
/**
|
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td>';
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
print '<form name="backbone" action="fiche.php?id='.$ligne->id.'&action=backbone" method="POST">';
|
||||||
|
print '<table class="noborder" cellpadding="2" cellspacing="0">';
|
||||||
|
print '<tr class="liste_titre"><td colspan="2">Programmé sur le backbone</td><td>';
|
||||||
|
print "<tr><td>Date de la programmation</td><td>";
|
||||||
|
print $form->select_date('','','','','',"backbone");
|
||||||
|
print '</td>';
|
||||||
|
print '<td colspan="2"><input type="submit" name="Programmer"></td></tr>';
|
||||||
|
print '<tr><td colspan="3">Commentaire <input size="30" type="text" name="commentaire"></td></tr>';
|
||||||
|
print '</table>';
|
||||||
|
print '</form></td><td>';
|
||||||
|
print ' </td></tr></table>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 9)
|
||||||
|
{
|
||||||
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td>';
|
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td>';
|
||||||
|
|
||||||
print '<form name="livraison" action="fiche.php?id='.$ligne->id.'&action=livraison" method="POST">';
|
print '<form name="livraison" action="fiche.php?id='.$ligne->id.'&action=livraison" method="POST">';
|
||||||
@ -831,8 +859,6 @@ if ($_GET["action"] == '')
|
|||||||
|
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user