diff --git a/htdocs/compta/paiement/index.php b/htdocs/compta/paiement/index.php index 327c852eb29..482684e91cc 100644 --- a/htdocs/compta/paiement/index.php +++ b/htdocs/compta/paiement/index.php @@ -29,106 +29,17 @@ if ($user->societe_id > 0) exit; } -require("../../includes/modules/rapport/pdf_paiement.class.php"); - -$dir = DOL_DOCUMENT_ROOT."/document/rapport/"; - -if ($HTTP_POST_VARS["action"] == 'gen') -{ - $rap = new pdf_paiement($db); - $rap->write_pdf_file($dir, $HTTP_POST_VARS["remonth"], $HTTP_POST_VARS["reyear"]); - - $year = $HTTP_POST_VARS["reyear"]; -} - llxHeader(); - +print_titre("Paiements"); /* * * */ -print_titre("Rapport paiements"); -print '
'; -clearstatcache(); - -$handle=opendir($dir); - -while (($file = readdir($handle))!==false) -{ - if (is_dir($dir.$file) && substr($file, 0, 1) <> '.') - { - print ''.$file.' '; - } -} - -if ($year) -{ - $handle=opendir($dir.'/'.$year); - - print '| Rapport | Taille | Date de génération |
| '.$file.' | '; - print ''.filesize($tfile). ' bytes | '; - print ''.strftime("%d %b %Y %H:%M:%S",filemtime($tfile)).' |