25include_once DOL_DOCUMENT_ROOT.
'/adherents/canvas/actions_adherentcard_common.class.php';
42 public function __construct($db, $dirmodule, $targetmodule, $canvas, $card)
45 $this->dirmodule = $dirmodule;
46 $this->targetmodule = $targetmodule;
47 $this->canvas = $canvas;
63 if ($action ==
'view') {
64 $out .= (
getDolGlobalString(
'ADHERENT_ADDRESSES_MANAGEMENT') ? $langs->trans(
"Adherent") : $langs->trans(
"ContactAddress"));
66 if ($action ==
'edit') {
67 $out .= (
getDolGlobalString(
'ADHERENT_ADDRESSES_MANAGEMENT') ? $langs->trans(
"EditAdherent") : $langs->trans(
"EditAdherentAddress"));
69 if ($action ==
'create') {
70 $out .= (
getDolGlobalString(
'ADHERENT_ADDRESSES_MANAGEMENT') ? $langs->trans(
"NewAdherent") : $langs->trans(
"NewAdherentAddress"));
87 global $conf, $db, $langs, $user;
92 parent::assign_values($action,
$id);
94 $this->tpl[
'title'] = $this->
getTitle($action);
95 $this->tpl[
'error'] = $this->error;
96 $this->tpl[
'errors'] = $this->errors;
98 if ($action ==
'view') {
107 $objsoc->fetch($this->object->socid);
109 $this->tpl[
'actionstodo'] =
show_actions_todo($conf, $langs, $db, $objsoc, $this->
object, 1);
111 $this->tpl[
'actionsdone'] =
show_actions_done($conf, $langs, $db, $objsoc, $this->
object, 1);
114 if ($action ==
'delete' && $user->hasRight(
'adherent',
'supprimer')) {
115 $this->tpl[
'action_delete'] = $form->formconfirm($_SERVER[
"PHP_SELF"].
"?id=".$this->object->id, $langs->trans(
"DeleteAdherent"), $langs->trans(
"ConfirmDeleteAdherent"),
"confirm_delete",
'', 0, 1);
Class to manage members using default canvas.
getObject($id)
Get object.
Class allowing the management of the members by default.
assign_values(&$action, $id)
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)
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.