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 ''; * */ -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 ''; + print ''; + print ''; + print "\n"; + $var=True; + + while ($i < $num) + { + $obj = $db->fetch_object(); + $var=!$var; + + $ligne = new LigneTel($db); + + if ( $ligne->fetch($obj->cli) == 1); + { + print "\n"; + print '\n"; + print '\n"; + print '\n"; + print "\n"; + } + $i++; + } + print "
Lignes StatutsResultatDateCommentaire
"; + print ' '; + print ''; + print $obj->cli."'.$obj->situation."'.$obj->date_mise_service."'.$obj->commentaire."

"; + } + $db->free(); +} +else +{ + print $db->error() . ' ' . $sql; +} + +print_titre("Fichiers retour en attente de traitement"); print ''; -print ''; +print ''; print "\n"; $var=True;
Lignes StatutsTailleDate
FichierTailleDate