diff --git a/htdocs/telephonie/ligne/commande/retour/atraiter.php b/htdocs/telephonie/ligne/commande/retour/atraiter.php new file mode 100644 index 00000000000..a0a3d02b985 --- /dev/null +++ b/htdocs/telephonie/ligne/commande/retour/atraiter.php @@ -0,0 +1,110 @@ + + * + * 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(); + +llxHeader('','Telephonie - Ligne - Commande - Retour'); + + +$page = $_GET["page"]; +$sortorder = $_GET["sortorder"]; + +if ($page == -1) { $page = 0 ; } + +$offset = $conf->liste_limit * $page ; +$pageprev = $page - 1; +$pagenext = $page + 1; + +if ($sortorder == "") { + $sortorder="DESC"; +} +if ($sortfield == "") { + $sortfield="rowid"; +} + +/* + * + */ +$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"; +$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit+1, $offset); + +if ($db->query($sql)) +{ + $num = $db->num_rows(); + $i = 0; + + print_barre_liste("Retours Fournisseurs", $page, "atraiter.php", "", $sortfield, $sortorder, '', $num); + + print '
| Lignes Statuts | Mode | Resultat | '; + print 'Date | Commentaire | - | '; + print "
";
+ print ' ';
+ print '';
+ print dolibarr_print_phone($obj->cli)." | \n";
+ print ''.$obj->mode." | \n"; + print ''.$obj->situation." | \n"; + print ''.$obj->date_mise_service." | \n"; + print ''.$obj->commentaire." | \n"; + print ''; + if ($obj->traite == 0) + { + print "A traiter"; + } + else + { + print "-"; + } + print " | \n"; + print "