[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?PHP 2 /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 * 19 * $Id: fiche.php,v 1.6 2005/08/25 20:27:18 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/dossier/client/fiche.php,v $ 21 * 22 */ 23 24 /** 25 \file htdocs/dossier/client/fiche.php 26 \brief Page des dossiers clients 27 \version $Revision: 1.6 $ 28 */ 29 30 require ("./pre.inc.php"); 31 require_once (DOL_DOCUMENT_ROOT.'/client.class.php'); 32 33 $user->getrights("facture"); 34 35 if (!$user->rights->facture->lire) 36 accessforbidden(); 37 38 39 $facs = array(); 40 $client = new client($db, $_GET["id"]); 41 $client->fetch($_GET["id"]); 42 $client->read_factures(); 43 $facs = $client->factures; 44 45 llxHeader("",'Dossier', $client); 46 47 48 /* 49 * Sécurité accés client 50 */ 51 if ($user->societe_id > 0) 52 { 53 $action = ''; 54 $socidp = $user->societe_id; 55 } 56 57 if ($_GET["facid"]) 58 { 59 require_once(DOL_DOCUMENT_ROOT.'/facture.class.php'); 60 61 $fac = new Facture($db); 62 $fac->fetch($_GET["facid"]); 63 64 $file = DOL_DATA_ROOT."/facture/".$fac->ref."/".$fac->ref.".pdf"; 65 $file_img = DOL_DATA_ROOT."/facture/".$fac->ref."/".$fac->ref.".pdf.png"; 66 67 // Si image n'existe pas, on la genere 68 if (! file_exists($file_img)) 69 { 70 $converttool=""; 71 if (file_exists("/usr/bin/convert")) $converttool="/usr/bin/convert"; 72 elseif (file_exists("/usr/local/bin/convert")) $converttool="/usr/local/bin/convert"; 73 if ($converttool) { 74 // Si convert est dispo 75 //print "x $file_img $converttool $file $file_img x"; 76 exec("$converttool $file $file_img"); 77 } 78 } 79 80 if (file_exists($file_img)) 81 { 82 print '<br><img src="./image.php?file='.$file_img.'"></img>'; 83 } 84 85 } 86 87 $db->close(); 88 89 llxFooter("<em>Dernière modification $Date: 2005/08/25 20:27:18 $ révision $Revision: 1.6 $</em>"); 90 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |