19if (empty($conf) || !is_object($conf)) {
20 print
"Error, template page can't be called as URL";
25$contact = $GLOBALS[
'objcanvas']->control->object;
27print
"<!-- BEGIN PHP TEMPLATE CONTACTCARD_VIEW.TPL.PHP DEFAULT -->\n";
28echo $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(
"ThirdParty"); ?></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(
"PostOrFunction"); ?></td>
65 <td colspan=
"3"><?php echo $this->control->tpl[
'poste']; ?></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[
'departement']; ?></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>
98 <td><?php echo $langs->trans(
"Fax"); ?></td>
99 <td><?php echo $this->control->tpl[
'fax']; ?></td>
103 <td><?php echo $langs->trans(
"EMail"); ?></td>
104 <td><?php echo $this->control->tpl[
'email']; ?></td>
105 <?php
if ($this->control->tpl[
'nb_emailing']) { ?>
106 <td
class=
"nowrap"><?php echo $langs->trans(
"NbOfEMailingsReceived"); ?></td>
107 <td><?php echo $this->control->tpl[
'nb_emailing']; ?></td>
109 <td colspan=
"2"> </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>
123<?php
foreach ($this->control->tpl[
'contact_element'] as $element) { ?>
125 <td><?php echo $element[
'linked_element_label']; ?></td>
126 <td colspan=
"3"><?php echo $element[
'linked_element_value']; ?></td>
131 <td><?php echo $langs->trans(
"DolibarrLogin"); ?></td>
132 <td colspan=
"3"><?php echo $this->control->tpl[
'dolibarr_user']; ?></td>
137<?php echo $this->control->tpl[
'showend'];
139if (empty($user->socid)) {
140 print
'<div class="tabsAction">';
141 if ($user->hasRight(
'societe',
'contact',
'creer')) {
142 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=edit&token='.
newToken().
'&canvas='.$canvas.
'">'.$langs->trans(
'Modify').
'</a>';
145 if (!$this->control->tpl[
'user_id'] && $user->hasRight(
'user',
'user',
'creer')) {
146 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=create_user&token='.
newToken().
'&canvas='.$canvas.
'">'.$langs->trans(
"CreateDolibarrLogin").
'</a>';
149 if ($user->hasRight(
'societe',
'contact',
'supprimer')) {
150 print
'<a class="butActionDelete" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=delete&token='.
newToken().
'&canvas='.$canvas.
'">'.$langs->trans(
'Delete').
'</a>';
156echo $this->control->tpl[
'actionstodo'];
158echo $this->control->tpl[
'actionsdone'];
160print
"<!-- 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.