24include_once DOL_DOCUMENT_ROOT.
'/contact/canvas/actions_contactcard_common.class.php';
41 public function __construct($db, $dirmodule, $targetmodule, $canvas, $card)
44 $this->dirmodule = $dirmodule;
45 $this->targetmodule = $targetmodule;
46 $this->canvas = $canvas;
62 if ($action ==
'view') {
63 $out .= (!empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans(
"Contact") : $langs->trans(
"ContactAddress"));
65 if ($action ==
'edit') {
66 $out .= (!empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans(
"EditContact") : $langs->trans(
"EditContactAddress"));
68 if ($action ==
'create') {
69 $out .= (!empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans(
"NewContact") : $langs->trans(
"NewContactAddress"));
86 global $conf, $db, $langs, $user;
91 parent::assign_values($action, $id);
93 $this->tpl[
'title'] = $this->
getTitle($action);
94 $this->tpl[
'error'] = $this->error;
95 $this->tpl[
'errors'] = $this->errors;
97 if ($action ==
'view') {
106 $objsoc->fetch($this->object->socid);
108 $this->tpl[
'actionstodo'] =
show_actions_todo($conf, $langs, $db, $objsoc, $this->
object, 1);
110 $this->tpl[
'actionsdone'] =
show_actions_done($conf, $langs, $db, $objsoc, $this->
object, 1);
113 if ($action ==
'delete' && $user->hasRight(
'societe',
'contact',
'supprimer')) {
114 $this->tpl[
'action_delete'] = $form->formconfirm($_SERVER[
"PHP_SELF"].
"?id=".$this->object->id, $langs->trans(
"DeleteContact"), $langs->trans(
"ConfirmDeleteContact"),
"confirm_delete",
'', 0, 1);
Class to manage third parties objects (customers, suppliers, prospects...)
show_actions_todo($conf, $langs, $db, $filterobj, $objcon='', $noprint=0, $actioncode='')
Show html area with actions to do.
show_actions_done($conf, $langs, $db, $filterobj, $objcon='', $noprint=0, $actioncode='', $donetodo='done', $filters=array(), $sortfield='a.datep, a.id', $sortorder='DESC', $module='')
Show html area with actions (done or not, ignore the name of function).
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.