27include_once DOL_DOCUMENT_ROOT.
'/adherents/canvas/actions_adherentcard_common.class.php';
44 public function __construct($db, $dirmodule, $targetmodule, $canvas, $card)
47 $this->dirmodule = $dirmodule;
48 $this->targetmodule = $targetmodule;
49 $this->canvas = $canvas;
65 if ($action ==
'view') {
66 $out .= (
getDolGlobalString(
'ADHERENT_ADDRESSES_MANAGEMENT') ? $langs->trans(
"Adherent") : $langs->trans(
"ContactAddress"));
68 if ($action ==
'edit') {
69 $out .= (
getDolGlobalString(
'ADHERENT_ADDRESSES_MANAGEMENT') ? $langs->trans(
"EditAdherent") : $langs->trans(
"EditAdherentAddress"));
71 if ($action ==
'create') {
72 $out .= (
getDolGlobalString(
'ADHERENT_ADDRESSES_MANAGEMENT') ? $langs->trans(
"NewAdherent") : $langs->trans(
"NewAdherentAddress"));
90 global $conf, $db, $langs, $user;
95 parent::assign_values($action,
$id, $ref);
97 $this->tpl[
'title'] = $this->
getTitle($action);
98 $this->tpl[
'error'] = $this->error;
99 $this->tpl[
'errors'] = $this->errors;
101 if ($action ==
'view') {
110 $objsoc->fetch($this->object->socid);
112 $this->tpl[
'actionstodo'] =
show_actions_todo($conf, $langs, $db, $objsoc, $this->
object, 1);
114 $this->tpl[
'actionsdone'] =
show_actions_done($conf, $langs, $db, $objsoc, $this->
object, 1);
117 if ($action ==
'delete' && $user->hasRight(
'adherent',
'supprimer')) {
118 $this->tpl[
'action_delete'] = $form->formconfirm($_SERVER[
"PHP_SELF"].
"?id=".$this->object->id, $langs->trans(
"DeleteAdherent"), $langs->trans(
"ConfirmDeleteMember"),
"confirm_delete",
'', 0, 1);
$id
Support class for third parties, contacts, members, users or resources.
Class to manage members using default canvas.
getObject($id)
Get object.
Class allowing the management of the members by default.
assign_values(&$action, $id, $ref='')
Assign custom values for canvas.
__construct($db, $dirmodule, $targetmodule, $canvas, $card)
Constructor.
getTitle($action)
Return the title of card.
Class to manage third parties objects (customers, suppliers, prospects...)
show_actions_done($conf, $langs, $db, $filterobj, $objcon=null, $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).
show_actions_todo($conf, $langs, $db, $filterobj, $objcon=null, $noprint=0, $actioncode='')
Show html area with actions to do.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0, $morecssdiv='')
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.
member_prepare_head(Adherent $object)
Return array head with list of tabs to view object information.