diff --git a/htdocs/telephonie/ligne/commande/retour/index.php b/htdocs/telephonie/ligne/commande/retour/index.php
new file mode 100644
index 00000000000..b63b0418aaa
--- /dev/null
+++ b/htdocs/telephonie/ligne/commande/retour/index.php
@@ -0,0 +1,161 @@
+
+ *
+ * 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
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
+ * $Source$
+ *
+ */
+require("./pre.inc.php");
+
+if (!$user->rights->telephonie->lire) accessforbidden();
+
+$upload_dir = DOL_DATA_ROOT."/telephonie/ligne/commande/retour";
+
+if (! is_dir($upload_dir))
+{
+ umask(0);
+ if (! mkdir($upload_dir, 0755))
+ {
+ print "Impossible de créer $upload_dir";
+ }
+}
+
+if ( $_POST["sendit"] && defined('MAIN_UPLOAD_DOC') && MAIN_UPLOAD_DOC == 1)
+{
+ if (is_dir($upload_dir))
+ {
+
+ $nextname = $upload_dir .'/backup';
+
+
+ if (doliMoveFileUpload($_FILES['userfile']['tmp_name'], $upload_dir . "/" . $_FILES['userfile']['name']))
+ {
+ $mesg = "Le fichier est valide, et a été téléchargé avec succès.\n";
+ }
+ else
+ {
+ $mesg = "Le fichier n'a pas été téléchargé";
+ }
+
+ }
+}
+
+llxHeader('','Telephonie - Ligne - Commande - Retour');
+
+/*
+ *
+ *
+ *
+ */
+print '
';
+
+print '';
+
+$sql = "SELECT distinct statut, count(*) as cc";
+$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_societe_ligne as l";
+$sql .= " GROUP BY statut";
+
+if ($db->query($sql))
+{
+ $num = $db->num_rows();
+ $i = 0;
+ $ligne = new LigneTel($db);
+ print_titre("Retour Commandes");
+
+ print '';
+ print '| Lignes Statuts | Nb | ';
+ print " \n";
+ $var=True;
+
+ while ($i < min($num,$conf->liste_limit))
+ {
+ $obj = $db->fetch_object($i);
+ $var=!$var;
+
+ print "";
+ print "| ".$ligne->statuts[$obj->statut]." | \n";
+ print "".$obj->cc." | \n";
+ print " \n";
+ $i++;
+ }
+ print " ";
+ $db->free();
+}
+else
+{
+ print $db->error() . ' ' . $sql;
+}
+
+print ' ';
+
+print '';
+print ' | ';
+
+/*
+ * Seconde colonne
+ *
+ */
+
+print_titre("Retour en attente de traitement");
+
+print '';
+print '| Lignes Statuts | Taille | Date | ';
+print " \n";
+$var=True;
+
+$upload_dir = $upload_dir."/";
+
+$handle=opendir($upload_dir);
+
+while (($file = readdir($handle))!==false)
+{
+ if (is_readable($upload_dir.$file) && is_file($upload_dir.$file))
+ {
+ $var=!$var;
+
+ print "";
+ print '| ';
+ print $file.' | ';
+
+ print ''.filesize($upload_dir.$file). ' bytes | ';
+ print ''.strftime("%A %d %b %Y %H:%M:%S",filemtime($upload_dir.$file)).' | ';
+
+ print ' ';
+ }
+}
+
+print " ";
+
+print ' |
';
+print '
';
+
+$db->close();
+
+llxFooter("Dernière modification $Date$ révision $Revision$");
+?>
diff --git a/htdocs/telephonie/ligne/commande/retour/pre.inc.php b/htdocs/telephonie/ligne/commande/retour/pre.inc.php
new file mode 100644
index 00000000000..113cfbfa199
--- /dev/null
+++ b/htdocs/telephonie/ligne/commande/retour/pre.inc.php
@@ -0,0 +1,53 @@
+
+ *
+ * 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
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
+ * $Source$
+ *
+ */
+require("../../../../main.inc.php");
+require(DOL_DOCUMENT_ROOT."/telephonie/lignetel.class.php");
+require(DOL_DOCUMENT_ROOT."/telephonie/fournisseurtel.class.php");
+require(DOL_DOCUMENT_ROOT."/telephonie/ligne/commande/commandetableur.class.php");
+
+$user->getrights('telephonie');
+
+function llxHeader($head = "", $title="") {
+ global $user, $conf;
+
+ /*
+ *
+ *
+ */
+ top_menu($head, $title);
+
+ $menu = new Menu();
+
+ $menu->add(DOL_URL_ROOT."/telephonie/index.php", "Telephonie");
+
+ $menu->add(DOL_URL_ROOT."/telephonie/ligne/commande/retour/", "Retour");
+ $menu->add_submenu(DOL_URL_ROOT."/telephonie/ligne/commande/retour/liste.php", "Liste");
+ $menu->add_submenu(DOL_URL_ROOT."/telephonie/ligne/commande/retour/fichiers.php", "Fichiers");
+
+
+ $menu->add(DOL_URL_ROOT."/telephonie/ligne/commande/", "Commandes");
+ $menu->add_submenu(DOL_URL_ROOT."/telephonie/ligne/commande/liste.php", "Lignes");
+
+ left_menu($menu->liste);
+}
+
+?>