27require
'../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.
'/projet/class/project.class.php';
38$langs->loadLangs(array(
"contacts",
"companies",
"projects"));
44$hookmanager->initHooks(array(
'projectcontact'));
46$result =
restrictedArea($user,
'contact', $id,
'socpeople&societe');
52$parameters = array(
'id' => $id);
53$reshook = $hookmanager->executeHooks(
'doActions', $parameters,
$object, $action);
65 require_once DOL_DOCUMENT_ROOT.
'/contact/class/contact.class.php';
66 require_once DOL_DOCUMENT_ROOT.
'/core/lib/contact.lib.php';
71 if (empty(
$object->thirdparty)) {
74 $socid = !empty(
$object->thirdparty->id) ?
$object->thirdparty->id :
null;
75 $title = $langs->trans(
"Projects");
77 $title =
$object->name.
" - ".$title;
79 $help_url =
'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas';
81 llxHeader(
'', $title, $help_url,
'', 0, 0,
'',
'',
'',
'mod-societe page-contact-card_project');
83 if (isModEnabled(
'notification')) {
84 $langs->load(
"mails");
90 $linkback =
'<a href="'.DOL_URL_ROOT.
'/contact/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
92 $morehtmlref =
'<a href="'.DOL_URL_ROOT.
'/contact/vcard.php?id='.
$object->id.
'" class="refid">';
93 $morehtmlref .=
img_picto($langs->trans(
"Download").
' '.$langs->trans(
"VCard"),
'vcard.png',
'class="valignmiddle marginleftonly paddingrightonly"');
94 $morehtmlref .=
'</a>';
96 $morehtmlref .=
'<div class="refidno">';
101 if ($objsoc->id > 0) {
102 $morehtmlref .= $objsoc->getNomUrl(1,
'contact');
104 $morehtmlref .=
'<span class="opacitymedium">'.$langs->trans(
"ContactNotLinkedToCompany").
'</span>';
107 $morehtmlref .=
'</div>';
109 dol_banner_tab(
$object,
'id', $linkback, ($user->socid ? 0 : 1),
'rowid',
'nom', $morehtmlref);
111 print
'<div class="fichecenter">';
113 print
'<div class="underbanner clearboth"></div>';
114 print
'<table class="border centpercent tableforfield">';
117 print
'<tr><td class="titlefield">'.$langs->trans(
"UserTitle").
'</td><td>';
118 print
$object->getCivilityLabel();
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Class to manage third parties objects (customers, suppliers, prospects...)
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
restrictedArea(User $user, $features, $object=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.