From 95c61f8c9a4d61c7fe8d7d528ed579cfd5155d8d Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville <rodolphe@quiedeville.org> Date: Mon, 28 Feb 2005 12:43:07 +0000 Subject: [PATCH] Ajout infos --- .../ligne/commande/retour/index.php | 57 ++++++++++++++++++- 1 file changed, 55 insertions(+), 2 deletions(-) diff --git a/htdocs/telephonie/ligne/commande/retour/index.php b/htdocs/telephonie/ligne/commande/retour/index.php index b63b0418aaa..af66ddc2bfd 100644 --- a/htdocs/telephonie/ligne/commande/retour/index.php +++ b/htdocs/telephonie/ligne/commande/retour/index.php @@ -122,10 +122,63 @@ print '</td><td valign="top">'; * */ -print_titre("Retour en attente de traitement"); +$sql = "SELECT "; +$sql .= " cli,mode,situation,date_mise_service,date_resiliation,motif_resiliation,commentaire,fichier, traite "; + +$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_commande_retour"; +$sql .= " WHERE traite = 0 AND mode = 'PRESELECTION'"; +$sql .= " LIMIT 10"; + +if ($db->query($sql)) +{ + $num = $db->num_rows(); + + if ($num) + { + + $i = 0; + + print_titre("Retour"); + + print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">'; + print '<tr class="liste_titre"><td>Lignes Statuts</td><td align="center">Resultat</td>'; + print '<td align="center">Date</td><td>Commentaire</td>'; + print "</tr>\n"; + $var=True; + + while ($i < $num) + { + $obj = $db->fetch_object(); + $var=!$var; + + $ligne = new LigneTel($db); + + if ( $ligne->fetch($obj->cli) == 1); + { + print "<tr $bc[$var]><td>"; + print '<img src="'.DOL_URL_ROOT.'/telephonie/ligne/graph'.$ligne->statut.'.png"> '; + print '<a href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?numero='.$obj->cli.'">'; + print $obj->cli."</a></td>\n"; + print '<td align="center">'.$obj->situation."</td>\n"; + print '<td align="center">'.$obj->date_mise_service."</td>\n"; + print '<td>'.$obj->commentaire."</td>\n"; + print "</tr>\n"; + } + $i++; + } + print "</table><br />"; + } + $db->free(); +} +else +{ + print $db->error() . ' ' . $sql; +} + +print_titre("Fichiers retour en attente de traitement"); print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">'; -print '<tr class="liste_titre"><td>Lignes Statuts</td><td>Taille</td><td>Date</td>'; +print '<tr class="liste_titre"><td>Fichier</td><td>Taille</td><td>Date</td>'; print "</tr>\n"; $var=True; -- GitLab