31 print
"Error, template page can't be called as URL";
36$contact = $GLOBALS[
'objcanvas']->control->object;
38print
"<!-- BEGIN PHP TEMPLATE CONTACTCARD_VIEW.TPL.PHP DEFAULT -->\n";
39echo $this->control->tpl[
'showhead'];
43if (!empty($this->control->tpl[
'action_create_user'])) {
44 echo $this->control->tpl[
'action_create_user'];
46if (!empty($this->control->tpl[
'action_delete'])) {
47 echo $this->control->tpl[
'action_delete'];
50<
table class=
"border allwidth">
53 <td width=
"20%"><?php echo $langs->trans(
"Ref"); ?></td>
54 <td colspan=
"3"><?php echo $this->control->tpl[
'showrefnav']; ?></td>
58 <td width=
"20%"><?php echo $langs->trans(
"Lastname"); ?></td>
59 <td width=
"30%"><?php echo $this->control->tpl[
'name']; ?></td>
60 <td width=
"25%"><?php echo $langs->trans(
"Firstname"); ?></td>
61 <td width=
"25%"><?php echo $this->control->tpl[
'firstname']; ?></td>
65 <td><?php echo $langs->trans(
"ThirdParty"); ?></td>
66 <td colspan=
"3"><?php echo $this->control->tpl[
'company']; ?></td>
70 <td width=
"15%"><?php echo $langs->trans(
"UserTitle"); ?></td>
71 <td colspan=
"3"><?php echo $this->control->tpl[
'civility']; ?></td>
75 <td><?php echo $langs->trans(
"PostOrFunction"); ?></td>
76 <td colspan=
"3"><?php echo $this->control->tpl[
'poste']; ?></td>
80 <td><?php echo $langs->trans(
"Address"); ?></td>
81 <td colspan=
"3"><?php echo $this->control->tpl[
'address']; ?></td>
85 <td><?php echo $langs->trans(
"Zip").
' / '.$langs->trans(
"Town"); ?></td>
86 <td colspan=
"3"><?php echo $this->control->tpl[
'zip'].$this->control->tpl[
'town']; ?></td>
90 <td><?php echo $langs->trans(
"Country"); ?></td>
91 <td colspan=
"3"><?php echo $this->control->tpl[
'country']; ?></td>
95 <td><?php echo $langs->trans(
'State'); ?></td>
96 <td colspan=
"3"><?php echo $this->control->tpl[
'departement']; ?></td>
100 <td><?php echo $langs->trans(
"PhonePro"); ?></td>
101 <td><?php echo $this->control->tpl[
'phone_pro']; ?></td>
102 <td><?php echo $langs->trans(
"PhonePerso"); ?></td>
103 <td><?php echo $this->control->tpl[
'phone_perso']; ?></td>
107 <td><?php echo $langs->trans(
"PhoneMobile"); ?></td>
108 <td><?php echo $this->control->tpl[
'phone_mobile']; ?></td>
109 <td><?php echo $langs->trans(
"Fax"); ?></td>
110 <td><?php echo $this->control->tpl[
'fax']; ?></td>
114 <td><?php echo $langs->trans(
"EMail"); ?></td>
115 <td><?php echo $this->control->tpl[
'email']; ?></td>
116 <?php
if ($this->control->tpl[
'nb_emailing']) { ?>
117 <td
class=
"nowrap"><?php echo $langs->trans(
"NbOfEMailingsReceived"); ?></td>
118 <td><?php echo $this->control->tpl[
'nb_emailing']; ?></td>
120 <td colspan=
"2"> </td>
125 <td><?php echo $langs->trans(
"ContactVisibility"); ?></td>
126 <td colspan=
"3"><?php echo $this->control->tpl[
'visibility']; ?></td>
130 <td
class=
"tdtop"><?php echo $langs->trans(
"Note"); ?></td>
131 <td colspan=
"3"><?php echo $this->control->tpl[
'note']; ?></td>
134<?php
foreach ($this->control->tpl[
'contact_element'] as $element) { ?>
136 <td><?php echo $element[
'linked_element_label']; ?></td>
137 <td colspan=
"3"><?php echo $element[
'linked_element_value']; ?></td>
142 <td><?php echo $langs->trans(
"DolibarrLogin"); ?></td>
143 <td colspan=
"3"><?php echo $this->control->tpl[
'dolibarr_user']; ?></td>
148<?php echo $this->control->tpl[
'showend'];
150if (empty($user->socid)) {
151 print
'<div class="tabsAction">';
152 if ($user->hasRight(
'societe',
'contact',
'creer')) {
153 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=edit&token='.
newToken().
'&canvas='.$canvas.
'">'.$langs->trans(
'Modify').
'</a>';
156 if (!$this->control->tpl[
'user_id'] && $user->hasRight(
'user',
'user',
'creer')) {
157 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=create_user&token='.
newToken().
'&canvas='.$canvas.
'">'.$langs->trans(
"CreateDolibarrLogin").
'</a>';
160 if ($user->hasRight(
'societe',
'contact',
'supprimer')) {
161 print
'<a class="butActionDelete" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=delete&token='.
newToken().
'&canvas='.$canvas.
'">'.$langs->trans(
'Delete').
'</a>';
167echo $this->control->tpl[
'actionstodo'];
169echo $this->control->tpl[
'actionsdone'];
171print
"<!-- END PHP TEMPLATE -->\n";
newToken()
Return the value of token currently saved into session with name 'newtoken'.
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...