dolibarr  7.0.0-beta
recap-prospect.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 $langs->load('other');
31 if (! empty($conf->facture->enabled)) $langs->load("bills");
32 
33 // Security check
34 $socid = $_GET["socid"];
35 if ($user->societe_id > 0)
36 {
37  $action = '';
38  $socid = $user->societe_id;
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  dol_fiche_head($head, 'prospect', $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" width="100%">';
66 
67  // Name
68  print '<tr><td width="20%">'.$langs->trans("Thirdpary").'</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 }
87 else
88 {
89  dol_print_error($db);
90 }
91 
92 llxFooter();
93 $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