20if (empty($conf) || !is_object($conf)) {
21 print
"Error, template page can't be called as URL";
26$contact = $GLOBALS[
'objcanvas']->control->object;
28echo
"<!-- BEGIN PHP TEMPLATE ADHERENTCARD_VIEW.TPL.PHP DEFAULT -->\n";
29echo $this->control->tpl[
'showhead'];
32if (!empty($this->control->tpl[
'action_create_user'])) {
33 echo $this->control->tpl[
'action_create_user'];
35if (!empty($this->control->tpl[
'action_delete'])) {
36 echo $this->control->tpl[
'action_delete'];
39<
table class=
"border allwidth">
42 <td width=
"20%"><?php echo $langs->trans(
"Ref"); ?></td>
43 <td colspan=
"3"><?php echo $this->control->tpl[
'showrefnav']; ?></td>
47 <td width=
"20%"><?php echo $langs->trans(
"Lastname"); ?></td>
48 <td width=
"30%"><?php echo $this->control->tpl[
'name']; ?></td>
49 <td width=
"25%"><?php echo $langs->trans(
"Firstname"); ?></td>
50 <td width=
"25%"><?php echo $this->control->tpl[
'firstname']; ?></td>
54 <td><?php echo $langs->trans(
"Company"); ?></td>
55 <td colspan=
"3"><?php echo $this->control->tpl[
'company']; ?></td>
59 <td width=
"15%"><?php echo $langs->trans(
"UserTitle"); ?></td>
60 <td colspan=
"3"><?php echo $this->control->tpl[
'civility']; ?></td>
64 <td><?php echo $langs->trans(
"Morphy"); ?></td>
65 <td colspan=
"3"><?php echo $this->control->tpl[
'select_morphy']; ?></td>
69 <td><?php echo $langs->trans(
"Address"); ?></td>
70 <td colspan=
"3"><?php echo $this->control->tpl[
'address']; ?></td>
74 <td><?php echo $langs->trans(
"Zip").
' / '.$langs->trans(
"Town"); ?></td>
75 <td colspan=
"3"><?php echo $this->control->tpl[
'zip'].$this->control->tpl[
'town']; ?></td>
79 <td><?php echo $langs->trans(
"Country"); ?></td>
80 <td colspan=
"3"><?php echo $this->control->tpl[
'country']; ?></td>
84 <td><?php echo $langs->trans(
'State'); ?></td>
85 <td colspan=
"3"><?php echo $this->control->tpl[
'state']; ?></td>
89 <td><?php echo $langs->trans(
"PhonePro"); ?></td>
90 <td><?php echo $this->control->tpl[
'phone_pro']; ?></td>
91 <td><?php echo $langs->trans(
"PhonePerso"); ?></td>
92 <td><?php echo $this->control->tpl[
'phone_perso']; ?></td>
96 <td><?php echo $langs->trans(
"PhoneMobile"); ?></td>
97 <td><?php echo $this->control->tpl[
'phone_mobile']; ?></td>
101 <td><?php echo $langs->trans(
"EMail"); ?></td>
102 <td><?php echo $this->control->tpl[
'email']; ?></td>
106 <td><?php echo $langs->trans(
"ContactVisibility"); ?></td>
107 <td colspan=
"3"><?php echo $this->control->tpl[
'visibility']; ?></td>
111 <td
class=
"tdtop"><?php echo $langs->trans(
"Note"); ?></td>
112 <td colspan=
"3"><?php echo $this->control->tpl[
'note']; ?></td>
116 <td><?php echo $langs->trans(
"DolibarrLogin"); ?></td>
117 <td colspan=
"3"><?php echo $this->control->tpl[
'dolibarr_user']; ?></td>
122<?php echo $this->control->tpl[
'showend'];
124if (empty($user->socid)) {
125 echo
'<div class="tabsAction">';
127 if ($user->hasRight(
'adherent',
'creer')) {
128 echo
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=edit&token='.
newToken().
'&canvas='.$canvas.
'">'.$langs->trans(
'Modify').
'</a>';
131 if (!$this->control->tpl[
'user_id'] && $user->hasRight(
'user',
'user',
'creer')) {
132 echo
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=create_user&token='.
newToken().
'&canvas='.$canvas.
'">'.$langs->trans(
"CreateDolibarrLogin").
'</a>';
135 if ($user->hasRight(
'adherent',
'supprimer')) {
136 print
dolGetButtonAction($langs->trans(
"Delete"),
'',
'delete', $_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=delete&token='.
newToken().
'&canvas='.$canvas,
'delete', $user->hasRight(
'adherent',
'supprimer'));
142echo $this->control->tpl[
'actionstodo'];
144echo $this->control->tpl[
'actionsdone'];
146echo
"<!-- END PHP TEMPLATE -->\n";
newToken()
Return the value of token currently saved into session with name 'newtoken'.
dolGetButtonAction($label, $text='', $actionType='default', $url='', $id='', $userRight=1, $params=array())
Function dolGetButtonAction.
dol_htmloutput_errors($mesgstring='', $mesgarray=array(), $keepembedded=0)
Print formatted error messages to output (Used to show messages on html output).
treeview li table
No Email.