28 print
"Error, template page can't be called as URL";
33$contact = $GLOBALS[
'objcanvas']->control->object;
35print
"<!-- BEGIN PHP TEMPLATE CONTACTCARD_VIEW.TPL.PHP DEFAULT -->\n";
36echo $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(
"ThirdParty"); ?></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(
"PostOrFunction"); ?></td>
73 <td colspan=
"3"><?php echo $this->control->tpl[
'poste']; ?></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[
'departement']; ?></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>
106 <td><?php echo $langs->trans(
"Fax"); ?></td>
107 <td><?php echo $this->control->tpl[
'fax']; ?></td>
111 <td><?php echo $langs->trans(
"EMail"); ?></td>
112 <td><?php echo $this->control->tpl[
'email']; ?></td>
113 <?php
if ($this->control->tpl[
'nb_emailing']) { ?>
114 <td
class=
"nowrap"><?php echo $langs->trans(
"NbOfEMailingsReceived"); ?></td>
115 <td><?php echo $this->control->tpl[
'nb_emailing']; ?></td>
117 <td colspan=
"2"> </td>
122 <td><?php echo $langs->trans(
"ContactVisibility"); ?></td>
123 <td colspan=
"3"><?php echo $this->control->tpl[
'visibility']; ?></td>
127 <td
class=
"tdtop"><?php echo $langs->trans(
"Note"); ?></td>
128 <td colspan=
"3"><?php echo $this->control->tpl[
'note']; ?></td>
131<?php
foreach ($this->control->tpl[
'contact_element'] as $element) { ?>
133 <td><?php echo $element[
'linked_element_label']; ?></td>
134 <td colspan=
"3"><?php echo $element[
'linked_element_value']; ?></td>
139 <td><?php echo $langs->trans(
"DolibarrLogin"); ?></td>
140 <td colspan=
"3"><?php echo $this->control->tpl[
'dolibarr_user']; ?></td>
145<?php echo $this->control->tpl[
'showend'];
147if (empty($user->socid)) {
148 print
'<div class="tabsAction">';
149 if ($user->hasRight(
'societe',
'contact',
'creer')) {
150 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=edit&token='.
newToken().
'&canvas='.$canvas.
'">'.$langs->trans(
'Modify').
'</a>';
153 if (!$this->control->tpl[
'user_id'] && $user->hasRight(
'user',
'user',
'creer')) {
154 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=create_user&token='.
newToken().
'&canvas='.$canvas.
'">'.$langs->trans(
"CreateDolibarrLogin").
'</a>';
157 if ($user->hasRight(
'societe',
'contact',
'supprimer')) {
158 print
'<a class="butActionDelete" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=delete&token='.
newToken().
'&canvas='.$canvas.
'">'.$langs->trans(
'Delete').
'</a>';
164echo $this->control->tpl[
'actionstodo'];
166echo $this->control->tpl[
'actionsdone'];
168print
"<!-- 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...