From cafa99bf049a1fbb8dd374e9ad3093de5b90ad61 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 14 Feb 2005 10:35:04 +0000 Subject: [PATCH] =?UTF-8?q?N'affiche=20le=20lien=20vers=20le=20dossier=20c?= =?UTF-8?q?lient=20que=20si=20le=20module=20est=20activ=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/clients.php | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/htdocs/compta/clients.php b/htdocs/compta/clients.php index 75479706026..da2c176c9be 100644 --- a/htdocs/compta/clients.php +++ b/htdocs/compta/clients.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2003-2005 Rodolphe Quiedeville * Copyright (C) 2004-2005 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify @@ -22,24 +22,24 @@ */ /** - \file htdocs/compta/clients.php - \ingroup compta - \brief Page accueil des clients - \version $Revision$ + \file htdocs/compta/clients.php + \ingroup compta + \brief Page accueil des clients + \version $Revision$ */ require("./pre.inc.php"); require("../contact.class.php"); require("../actioncomm.class.php"); + if ($conf->webcal->enabled) { - require("../lib/webcal.class.php"); + require("../lib/webcal.class.php"); } $page=$_GET["page"]; $sortorder=$_GET["sortorder"]; $sortfield=$_GET["sortfield"]; - $langs->load("companies"); llxHeader(); @@ -269,7 +269,6 @@ if ($result) print "\n"; print ''; - $var=True; while ($i < min($num,$conf->liste_limit)) @@ -284,9 +283,20 @@ if ($result) print ' '.$obj->nom.''; print ''.$obj->ville.' '; print ''.$obj->code_compta.' '; - print "$obj->code_client \n"; - print ''; - print img_folder(); + print ''.$obj->code_client.' '; + print ''; + if (defined("MAIN_MODULE_DOSSIER") && MAIN_MODULE_DOSSIER == 1) + { + print ''; + print img_folder(); + print ''; + } + else + { + print " "; + } + + print "\n"; $i++; }