dolibarr  13.0.2
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 <https://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 // Load translation files required by the page
30 $langs->load("companies");
31 if (!empty($conf->facture->enabled)) $langs->load("bills");
32 
33 // Security check
34 $socid = $_GET["socid"];
35 if ($user->socid > 0)
36 {
37  $action = '';
38  $socid = $user->socid;
39 }
40 
41 
42 
43 /*
44  * View
45  */
46 
47 llxHeader();
48 
49 if ($socid > 0)
50 {
51  $societe = new Societe($db);
52  $societe->fetch($socid);
53 
54  /*
55  * Affichage onglets
56  */
57  $head = societe_prepare_head($societe);
58 
59  print dol_get_fiche_head($head, 'customer', $langs->trans("ThirdParty"), 0, 'company');
60 
61 
62  print "<table width=\"100%\">\n";
63  print '<tr><td valign="top" width="50%">';
64 
65  print '<table class="border centpercent">';
66 
67  // Name
68  print '<tr><td width="20%">'.$langs->trans("ThirdParty").'</td><td width="80%" colspan="3">'.$societe->getNomUrl(1).'</td></tr>';
69 
70  // Prefix
71  if (!empty($conf->global->SOCIETE_USEPREFIX)) // Old not used prefix field
72  {
73  print '<tr><td>'.$langs->trans("Prefix").'</td><td colspan="3">';
74  print ($societe->prefix_comm ? $societe->prefix_comm : '&nbsp;');
75  print '</td></tr>';
76  }
77 
78  print "</table>";
79 
80  print "</td></tr></table>\n";
81 
82  print '</div>';
83 
84 
85  print $langs->trans("FeatureNotYetAvailable");
86 } else {
87  dol_print_error($db);
88 }
89 
90 // End of page
91 llxFooter();
92 $db->close();
llxHeader()
Empty header.
Definition: wrapper.php:45
Class to manage third parties objects (customers, suppliers, prospects...)
societe_prepare_head(Societe $object)
Return array of tabs to used on pages for third parties cards.
Definition: company.lib.php:42
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
print
Draft customers invoices.
Definition: index.php:89
dol_print_error($db= '', $error= '', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
llxFooter()
Empty footer.
Definition: wrapper.php:59