28 require
'../main.inc.php';
29 require_once DOL_DOCUMENT_ROOT.
'/core/lib/contact.lib.php';
30 require_once DOL_DOCUMENT_ROOT.
'/contact/class/contact.class.php';
32 $action =
GETPOST(
'action',
'aZ09');
35 $langs->load(
"companies");
39 if ($user->socid) $id = $user->socid;
40 $result =
restrictedArea($user,
'contact', $id,
'socpeople&societe');
43 if ($id > 0) $object->fetch($id);
45 $permissionnote = $user->rights->societe->creer;
52 include DOL_DOCUMENT_ROOT.
'/core/actions_setnotes.inc.php';
61 $title = (!empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans(
"Contacts") : $langs->trans(
"ContactsAddresses"));
63 $form =
new Form($db);
65 $help_url =
'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas';
73 if (!empty($conf->notification->enabled)) $langs->load(
"mails");
79 $linkback =
'<a href="'.DOL_URL_ROOT.
'/contact/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
81 $morehtmlref =
'<div class="refidno">';
82 if (empty($conf->global->SOCIETE_DISABLE_CONTACTS))
85 $objsoc->fetch($object->socid);
87 $morehtmlref .= $langs->trans(
'ThirdParty').
' : ';
88 if ($objsoc->id > 0) $morehtmlref .= $objsoc->getNomUrl(1);
89 else $morehtmlref .= $langs->trans(
"ContactNotLinkedToCompany");
91 $morehtmlref .=
'</div>';
93 dol_banner_tab($object,
'id', $linkback, 1,
'rowid',
'ref', $morehtmlref);
95 $cssclass =
'titlefield';
99 print '<div class="fichecenter">';
100 print '<div class="underbanner clearboth"></div>';
102 print '<table class="border centpercent tableforfield">';
105 print '<tr><td class="'.$cssclass.
'">'.$langs->trans(
"UserTitle").
'</td><td>';
106 print $object->getCivilityLabel();
112 $cssclass =
"titlefield";
113 include DOL_DOCUMENT_ROOT.
'/core/tpl/notes.tpl.php';
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_now($mode= 'auto')
Return date for now.
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)
Check permissions of a user to show a page and an object.
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.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
dol_banner_tab($object, $paramid, $morehtml= '', $shownav=1, $fieldid= 'rowid', $fieldref= 'ref', $morehtmlref= '', $moreparam= '', $nodbprefix=0, $morehtmlleft= '', $morehtmlstatus= '', $onlybanner=0, $morehtmlright= '')
Show tab footer of a card.