From e20cc8cdb29d4c2b24138f575b15392a4c68a64a Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 9 Jul 2007 10:02:02 +0000 Subject: [PATCH] Ajoute le champs fournisseur dans le tableau --- htdocs/telephonie/facturation/files.php | 37 ++++++------------------- 1 file changed, 9 insertions(+), 28 deletions(-) diff --git a/htdocs/telephonie/facturation/files.php b/htdocs/telephonie/facturation/files.php index 9104b863c3e..198f36a8430 100644 --- a/htdocs/telephonie/facturation/files.php +++ b/htdocs/telephonie/facturation/files.php @@ -25,11 +25,11 @@ require_once DOL_DOCUMENT_ROOT.'/telephonie/fournisseurtel.class.php'; $dir = $conf->telephonie->dir_output."/cdr/atraiter/" ; $files = array(); +$fourn_files = array(); $obj = new FournisseurTelephonie($db,$user); $fourns = $obj->GetActives(); -$var=true; foreach ($fourns as $id => $nom) { $fdir = $dir . $id.'/'; @@ -39,18 +39,17 @@ foreach ($fourns as $id => $nom) while (($file = readdir($handle))!==false) { if (is_file($fdir.'/'.$file)) - array_push($files, $id.'/'.$file); + { + array_push($files, $id.'/'.$file); + $fourn_files[$id.'/'.$file] = $nom; + } } closedir($handle); } } -if (!$user->rights->telephonie->facture->lire) accessforbidden(); - -$page = $_GET["page"]; -$sortorder = $_GET["sortorder"]; -$sortfield = $_GET["sortfield"]; +if (!$user->rights->telephonie->facture->ecrire) accessforbidden(); llxHeader(); @@ -63,33 +62,14 @@ if ($user->societe_id > 0) $socid = $user->societe_id; } -if ($sortorder == "") { - $sortorder=""; -} -if ($sortfield == "") { - $sortfield="f.date DESC, f.gain ASC"; -} - -/* - * Recherche - * - * - */ - -if ($page == -1) { $page = 0 ; } - -$offset = $conf->liste_limit * $page ; -$pageprev = $page - 1; -$pagenext = $page + 1; /* * Mode Liste */ - print_barre_liste("Fichiers CDR a traiter", $page, "files.php", "", $sortfield, $sortorder, '', $num); print ''; -print ''; +print ''; print ''; print ''; print "\n"; @@ -98,10 +78,11 @@ $var=True; foreach ($files as $file) { - $obj = $db->fetch_object($i); $var=!$var; print ""; + + print ''; print '
FournisseurFichierDateTaille
'.$fourn_files[$file].''; print img_file();