Go to the documentation of this file.
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';
30 $langs->load(
"companies");
32 $langs->load(
"bills");
36 $socid =
GETPOST(
"socid",
'int');
37 if ($user->socid > 0) {
41 $result =
restrictedArea($user,
'societe', $id,
'&societe',
'',
'fk_soc',
'rowid', 0);
52 $societe->fetch($socid);
59 print
dol_get_fiche_head($head,
'customer', $langs->trans(
"ThirdParty"), 0,
'company');
62 print
"<table width=\"100%\">\n";
63 print
'<tr><td valign="top" width="50%">';
65 print
'<table class="border centpercent">';
68 print
'<tr><td width="20%">'.$langs->trans(
"ThirdParty").
'</td><td width="80%" colspan="3">'.$societe->getNomUrl(1).
'</td></tr>';
71 if (!empty($conf->global->SOCIETE_USEPREFIX)) {
72 print
'<tr><td>'.$langs->trans(
"Prefix").
'</td><td colspan="3">';
73 print ($societe->prefix_comm ? $societe->prefix_comm :
' ');
79 print
"</td></tr></table>\n";
84 print $langs->trans(
"FeatureNotYetAvailable");
Class to manage third parties objects (customers, suppliers, prospects...)
restrictedArea($user, $features, $objectid=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='')
Show tabs of a record.
societe_prepare_head(Societe $object)
Return array of tabs to used on pages for third parties cards.
isModEnabled($module)
Is Dolibarr module enabled.
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOCSRFCHECK')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.