dolibarr  7.0.0-beta
recap-client.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3  * Copyright (C) 2004-2010 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 3 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, see <http://www.gnu.org/licenses/>.
17  */
18 
25 require '../main.inc.php';
26 require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
27 require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
28 
29 $langs->load("companies");
30 if (! empty($conf->facture->enabled)) $langs->load("bills");
31 
32 // Security check
33 $socid = $_GET["socid"];
34 if ($user->societe_id > 0)
35 {
36  $action = '';
37  $socid = $user->societe_id;
38 }
39 
40 
41 
42 /*
43  * View
44  */
45 
46 llxHeader();
47 
48 if ($socid > 0)
49 {
50  $societe = new Societe($db);
51  $societe->fetch($socid);
52 
53  /*
54  * Affichage onglets
55  */
56  $head = societe_prepare_head($societe);
57 
58  dol_fiche_head($head, 'customer', $langs->trans("ThirdParty"), 0, 'company');
59 
60 
61  print "<table width=\"100%\">\n";
62  print '<tr><td valign="top" width="50%">';
63 
64  print '<table class="border" width="100%">';
65 
66  // Name
67  print '<tr><td width="20%">'.$langs->trans("ThirdParty").'</td><td width="80%" colspan="3">'.$societe->getNomUrl(1).'</td></tr>';
68 
69  // Prefix
70  if (! empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field
71  {
72  print '<tr><td>'.$langs->trans("Prefix").'</td><td colspan="3">';
73  print ($societe->prefix_comm?$societe->prefix_comm:'&nbsp;');
74  print '</td></tr>';
75  }
76 
77  print "</table>";
78 
79  print "</td></tr></table>\n";
80 
81  print '</div>';
82 
83 
84  print $langs->trans("FeatureNotYetAvailable");
85 }
86 else
87 {
88  dol_print_error($db);
89 }
90 
91 llxFooter();
92 $db->close();
llxFooter()
Empty footer.
Definition: wrapper.php:58
dol_fiche_head($links=array(), $active='0', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='')
Show tab header of a card.
dol_print_error($db='', $error='', $errors=null)
Affiche message erreur system avec toutes les informations pour faciliter le diagnostic et la remonte...
Class to manage third parties objects (customers, suppliers, prospects...)
llxHeader()
Empty header.
Definition: wrapper.php:46
societe_prepare_head(Societe $object)
Return array of tabs to used on pages for third parties cards.
Definition: company.lib.php:40
print
Draft customers invoices.
Definition: index.php:91