From aadbf18c22c2924ca529b6fdcd6025af00506c47 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 4 Aug 2006 19:05:34 +0000 Subject: [PATCH] =?UTF-8?q?Corrections=20diverses=20sur=20g=E9n=E9ration?= =?UTF-8?q?=20des=20rapport=20de=20paiement.=20Si=20on=20est=20un=20utilis?= =?UTF-8?q?ateur=20externe,=20le=20fichier=20est=20g=E9n=E9r=E9=20dans=20u?= =?UTF-8?q?n=20rep=20priv=E9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/paiement/rapport.php | 107 ++++---- htdocs/contact/index.php | 2 +- htdocs/document.php | 3 +- .../modules/rapport/pdf_paiement.class.php | 236 +++++++++--------- 4 files changed, 172 insertions(+), 176 deletions(-) diff --git a/htdocs/compta/paiement/rapport.php b/htdocs/compta/paiement/rapport.php index 5e71cd6f0ff..9ba095e97e4 100644 --- a/htdocs/compta/paiement/rapport.php +++ b/htdocs/compta/paiement/rapport.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004-2006 Laurent Destailleur * * 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 @@ -18,7 +18,6 @@ * * $Id$ * $Source$ - * */ /** \file htdocs/compta/paiement/rapport.php @@ -36,11 +35,14 @@ $user->getrights("facture"); if (! $user->rights->facture->lire) accessforbidden(); +$dir = $conf->compta->dir_output; + $socidp=0; if ($user->societe_id > 0) { $action = ''; $socidp = $user->societe_id; + $dir = DOL_DATA_ROOT.'/private/'.$user->id.'/compta'; } @@ -50,7 +52,6 @@ if (! $year) { $year=date("Y"); } require("../../includes/modules/rapport/pdf_paiement.class.php"); -$dir = $conf->compta->dir_output; /* @@ -64,9 +65,10 @@ if ($_POST["action"] == 'gen') $year = $_POST["reyear"]; } -llxHeader(); +llxHeader(); + /* * Affichage liste des paiements * @@ -80,30 +82,18 @@ print ''; $cmonth = date("n", time()); $syear = date("Y", time()); -$strmonth[1] = "Janvier"; -$strmonth[2] = "Février"; -$strmonth[3] = "Mars"; -$strmonth[4] = "Avril"; -$strmonth[5] = "Mai"; -$strmonth[6] = "Juin"; -$strmonth[7] = "Juillet"; -$strmonth[8] = "Août"; -$strmonth[9] = "Septembre"; -$strmonth[10] = "Octobre"; -$strmonth[11] = "Novembre"; -$strmonth[12] = "Décembre"; -print ''; for ($month = 1 ; $month < 13 ; $month++) { - if ($month == $cmonth) - { - print "