25 include_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') $out .= (!empty($conf->global->ADHERENT_ADDRESSES_MANAGEMENT) ? $langs->trans(
"Adherent") : $langs->trans(
"ContactAddress"));
64 if ($action ==
'edit') $out .= (!empty($conf->global->ADHERENT_ADDRESSES_MANAGEMENT) ? $langs->trans(
"EditAdherent") : $langs->trans(
"EditAdherentAddress"));
65 if ($action ==
'create') $out .= (!empty($conf->global->ADHERENT_ADDRESSES_MANAGEMENT) ? $langs->trans(
"NewAdherent") : $langs->trans(
"NewAdherentAddress"));
81 global $limit, $offset, $sortfield, $sortorder;
82 global $conf, $db, $langs, $user;
87 parent::assign_values($action, $id);
89 $this->tpl[
'title'] = $this->
getTitle($action);
90 $this->tpl[
'error'] = $this->error;
91 $this->tpl[
'errors'] = $this->errors;
93 if ($action ==
'view') {
102 $objsoc->fetch($this->object->socid);
104 $this->tpl[
'actionstodo'] =
show_actions_todo($conf, $langs, $db, $objsoc, $this->
object, 1);
106 $this->tpl[
'actionsdone'] =
show_actions_done($conf, $langs, $db, $objsoc, $this->
object, 1);
109 if ($action ==
'delete' && $user->rights->adherent->supprimer) {
110 $this->tpl[
'action_delete'] = $form->formconfirm(
$_SERVER[
"PHP_SELF"].
"?id=".$this->object->id, $langs->trans(
"DeleteAdherent"), $langs->trans(
"ConfirmDeleteAdherent"),
"confirm_delete",
'', 0, 1);
114 if ($action ==
'list') {
115 $this->
LoadListDatas($limit, $offset, $sortfield, $sortorder);
133 global $conf, $langs;
137 $this->list_datas = array();
getTitle($action)
Return the title of card.
Class allowing the management of the members by default.
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).
member_prepare_head(Adherent $object)
Return array head with list of tabs to view object informations.
$conf db
API class for accounts.
Class to manage third parties objects (customers, suppliers, prospects...)
Class to manage members using default canvas.
print $_SERVER["PHP_SELF"]
Edit parameters.
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
assign_values(&$action, $id)
Assign custom values for canvas.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
getObject($id)
Get object.
show_actions_todo($conf, $langs, $db, $filterobj, $objcon= '', $noprint=0, $actioncode= '')
Show html area with actions to do.
__construct($db, $dirmodule, $targetmodule, $canvas, $card)
Constructor.
LoadListDatas($limit, $offset, $sortfield, $sortorder)
Fetch datas list and save into ->list_datas.