29 print
"Error, template page can't be called as URL";
34$contact = $GLOBALS[
'objcanvas']->control->object;
36echo
"<!-- BEGIN PHP TEMPLATE ADHERENTCARD_VIEW.TPL.PHP DEFAULT -->\n";
37echo $this->control->tpl[
'showhead'];
40if (!empty($this->control->tpl[
'action_create_user'])) {
41 echo $this->control->tpl[
'action_create_user'];
43if (!empty($this->control->tpl[
'action_delete'])) {
44 echo $this->control->tpl[
'action_delete'];
47<
table class=
"border allwidth">
50 <td width=
"20%"><?php echo $langs->trans(
"Ref"); ?></td>
51 <td colspan=
"3"><?php echo $this->control->tpl[
'showrefnav']; ?></td>
55 <td width=
"20%"><?php echo $langs->trans(
"Lastname"); ?></td>
56 <td width=
"30%"><?php echo $this->control->tpl[
'name']; ?></td>
57 <td width=
"25%"><?php echo $langs->trans(
"Firstname"); ?></td>
58 <td width=
"25%"><?php echo $this->control->tpl[
'firstname']; ?></td>
62 <td><?php echo $langs->trans(
"Company"); ?></td>
63 <td colspan=
"3"><?php echo $this->control->tpl[
'company']; ?></td>
67 <td width=
"15%"><?php echo $langs->trans(
"UserTitle"); ?></td>
68 <td colspan=
"3"><?php echo $this->control->tpl[
'civility']; ?></td>
72 <td><?php echo $langs->trans(
"Morphy"); ?></td>
73 <td colspan=
"3"><?php echo $this->control->tpl[
'select_morphy']; ?></td>
77 <td><?php echo $langs->trans(
"Address"); ?></td>
78 <td colspan=
"3"><?php echo $this->control->tpl[
'address']; ?></td>
82 <td><?php echo $langs->trans(
"Zip").
' / '.$langs->trans(
"Town"); ?></td>
83 <td colspan=
"3"><?php echo $this->control->tpl[
'zip'].$this->control->tpl[
'town']; ?></td>
87 <td><?php echo $langs->trans(
"Country"); ?></td>
88 <td colspan=
"3"><?php echo $this->control->tpl[
'country']; ?></td>
92 <td><?php echo $langs->trans(
'State'); ?></td>
93 <td colspan=
"3"><?php echo $this->control->tpl[
'state']; ?></td>
97 <td><?php echo $langs->trans(
"PhonePro"); ?></td>
98 <td><?php echo $this->control->tpl[
'phone_pro']; ?></td>
99 <td><?php echo $langs->trans(
"PhonePerso"); ?></td>
100 <td><?php echo $this->control->tpl[
'phone_perso']; ?></td>
104 <td><?php echo $langs->trans(
"PhoneMobile"); ?></td>
105 <td><?php echo $this->control->tpl[
'phone_mobile']; ?></td>
109 <td><?php echo $langs->trans(
"EMail"); ?></td>
110 <td><?php echo $this->control->tpl[
'email']; ?></td>
114 <td><?php echo $langs->trans(
"ContactVisibility"); ?></td>
115 <td colspan=
"3"><?php echo $this->control->tpl[
'visibility']; ?></td>
119 <td
class=
"tdtop"><?php echo $langs->trans(
"Note"); ?></td>
120 <td colspan=
"3"><?php echo $this->control->tpl[
'note']; ?></td>
124 <td><?php echo $langs->trans(
"DolibarrLogin"); ?></td>
125 <td colspan=
"3"><?php echo $this->control->tpl[
'dolibarr_user']; ?></td>
130<?php echo $this->control->tpl[
'showend'];
132if (empty($user->socid)) {
133 echo
'<div class="tabsAction">';
135 if ($user->hasRight(
'adherent',
'creer')) {
136 echo
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=edit&token='.
newToken().
'&canvas='.$canvas.
'">'.$langs->trans(
'Modify').
'</a>';
139 if (!$this->control->tpl[
'user_id'] && $user->hasRight(
'user',
'user',
'creer')) {
140 echo
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=create_user&token='.
newToken().
'&canvas='.$canvas.
'">'.$langs->trans(
"CreateDolibarrLogin").
'</a>';
143 if ($user->hasRight(
'adherent',
'supprimer')) {
144 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'));
150echo $this->control->tpl[
'actionstodo'];
152echo $this->control->tpl[
'actionsdone'];
154echo
"<!-- 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.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...