26require 
'../main.inc.php';
 
   27require_once DOL_DOCUMENT_ROOT.
'/projet/class/project.class.php';
 
   29$langs->loadLangs(array(
"contacts", 
"companies", 
"projects"));
 
   33$result = 
restrictedArea($user, 
'contact', $id, 
'socpeople&societe');
 
   36$hookmanager->initHooks(array(
'projectcontact'));
 
   42$parameters = array(
'id' => $id);
 
   43$reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action); 
 
   55  require_once DOL_DOCUMENT_ROOT.
'/contact/class/contact.class.php';
 
   56  require_once DOL_DOCUMENT_ROOT.
'/core/lib/contact.lib.php';
 
   60  $result = $object->fetch($id);
 
   61  if (empty($object->thirdparty)) {
 
   62    $object->fetch_thirdparty();
 
   64  $socid = $object->thirdparty->id;
 
   65  $title = $langs->trans(
"Projects");
 
   66  if (
getDolGlobalString(
'MAIN_HTML_TITLE') && preg_match(
'/thirdpartynameonly/', $conf->global->MAIN_HTML_TITLE) && $object->name) {
 
   67    $title = $object->name.
" - ".$title;
 
   71  if (isModEnabled(
'notification')) {
 
   72    $langs->load(
"mails");
 
   78  $linkback = 
'<a href="'.DOL_URL_ROOT.
'/contact/list.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToList").
'</a>';
 
   80  $morehtmlref = 
'<a href="'.DOL_URL_ROOT.
'/contact/vcard.php?id='.$object->id.
'" class="refid">';
 
   81  $morehtmlref .= 
img_picto($langs->trans(
"Download").
' '.$langs->trans(
"VCard"), 
'vcard.png', 
'class="valignmiddle marginleftonly paddingrightonly"');
 
   82  $morehtmlref .= 
'</a>';
 
   84  $morehtmlref .= 
'<div class="refidno">';
 
   87    $objsoc->fetch($object->socid);
 
   89    if ($objsoc->id > 0) {
 
   90      $morehtmlref .= $objsoc->getNomUrl(1, 
'contact');
 
   92      $morehtmlref .= 
'<span class="opacitymedium">'.$langs->trans(
"ContactNotLinkedToCompany").
'</span>';
 
   95  $morehtmlref .= 
'</div>';
 
   97  dol_banner_tab($object, 
'id', $linkback, ($user->socid ? 0 : 1), 
'rowid', 
'nom', $morehtmlref);
 
   99  print 
'<div class="fichecenter">';
 
  101  print 
'<div class="underbanner clearboth"></div>';
 
  102  print 
'<table class="border centpercent tableforfield">';
 
  105  print 
'<tr><td class="titlefield">'.$langs->trans(
"UserTitle").
'</td><td>';
 
  106  print $object->getCivilityLabel();
 
  117  $result = 
show_contacts_projects($conf, $langs, $db, $object, $_SERVER[
"PHP_SELF"].
'?id='.$object->id, 1);
 
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
 
Class to manage third parties objects (customers, suppliers, prospects...)
 
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.
 
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.
 
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
 
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
 
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
 
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
 
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.