* 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 * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ * $Source$ */ /** \file htdocs/comm/recap-client.php \ingroup societe \brief Page de fiche recap client \version $Revision$ */ require("./pre.inc.php"); require_once(DOL_DOCUMENT_ROOT."/lib/company.lib.php"); require_once(DOL_DOCUMENT_ROOT."/facture.class.php"); $langs->load("companies"); if ($conf->facture->enabled) $langs->load("bills"); // Sécurité accés client $socid = $_GET["socid"]; if ($user->societe_id > 0) { $action = ''; $socid = $user->societe_id; } $user->getrights('facture'); /* * * Mode fiche * */ llxHeader(); if ($socid > 0) { $societe = new Societe($db); $societe->fetch($socid, $to); // si $to='next' ajouter " AND s.idp > $socid ORDER BY idp ASC LIMIT 1"; /* * Affichage onglets */ $head = societe_prepare_head($societe); dolibarr_fiche_head($head, 'customer', $societe->nom); print "\n"; print '
'; print ''; // Nom print ''; // Prefix print ''; print "
'.$langs->trans("Name").''.$societe->nom.'
'.$langs->trans("Prefix").''; print ($societe->prefix_comm?$societe->prefix_comm:' '); print '
"; print "
\n"; print ''; print $langs->trans("FeatureNotYetAvailable"); } else { dolibarr_print_error($db); } $db->close(); llxFooter('$Date$ - $Revision$'); ?>