19 if (empty($conf) || !is_object($conf))
21 print "Error, template page can't be called as URL";
26 $contact = $GLOBALS[
'objcanvas']->control->object;
28 print "<!-- BEGIN PHP TEMPLATE CONTACTCARD_VIEW.TPL.PHP DEFAULT -->\n";
29 echo $this->control->tpl[
'showhead'];
33 if (!empty($this->control->tpl[
'action_create_user'])) echo $this->control->tpl[
'action_create_user'];
34 if (!empty($this->control->tpl[
'action_delete'])) echo $this->control->tpl[
'action_delete']; ?>
36 <table
class=
"border allwidth">
39 <td width=
"20%"><?php echo $langs->trans(
"Ref"); ?></td>
40 <td colspan=
"3"><?php echo $this->control->tpl[
'showrefnav']; ?></td>
44 <td width=
"20%"><?php echo $langs->trans(
"Lastname"); ?></td>
45 <td width=
"30%"><?php echo $this->control->tpl[
'name']; ?></td>
46 <td width=
"25%"><?php echo $langs->trans(
"Firstname"); ?></td>
47 <td width=
"25%"><?php echo $this->control->tpl[
'firstname']; ?></td>
51 <td><?php echo $langs->trans(
"ThirdParty"); ?></td>
52 <td colspan=
"3"><?php echo $this->control->tpl[
'company']; ?></td>
56 <td width=
"15%"><?php echo $langs->trans(
"UserTitle"); ?></td>
57 <td colspan=
"3"><?php echo $this->control->tpl[
'civility']; ?></td>
61 <td><?php echo $langs->trans(
"PostOrFunction"); ?></td>
62 <td colspan=
"3"><?php echo $this->control->tpl[
'poste']; ?></td>
66 <td><?php echo $langs->trans(
"Address"); ?></td>
67 <td colspan=
"3"><?php echo $this->control->tpl[
'address']; ?></td>
71 <td><?php echo $langs->trans(
"Zip").
' / '.$langs->trans(
"Town"); ?></td>
72 <td colspan=
"3"><?php echo $this->control->tpl[
'zip'].$this->control->tpl[
'town']; ?></td>
76 <td><?php echo $langs->trans(
"Country"); ?></td>
77 <td colspan=
"3"><?php echo $this->control->tpl[
'country']; ?></td>
81 <td><?php echo $langs->trans(
'State'); ?></td>
82 <td colspan=
"3"><?php echo $this->control->tpl[
'departement']; ?></td>
86 <td><?php echo $langs->trans(
"PhonePro"); ?></td>
87 <td><?php echo $this->control->tpl[
'phone_pro']; ?></td>
88 <td><?php echo $langs->trans(
"PhonePerso"); ?></td>
89 <td><?php echo $this->control->tpl[
'phone_perso']; ?></td>
93 <td><?php echo $langs->trans(
"PhoneMobile"); ?></td>
94 <td><?php echo $this->control->tpl[
'phone_mobile']; ?></td>
95 <td><?php echo $langs->trans(
"Fax"); ?></td>
96 <td><?php echo $this->control->tpl[
'fax']; ?></td>
100 <td><?php echo $langs->trans(
"EMail"); ?></td>
101 <td><?php echo $this->control->tpl[
'email']; ?></td>
102 <?php
if ($this->control->tpl[
'nb_emailing']) { ?>
103 <td
class=
"nowrap"><?php echo $langs->trans(
"NbOfEMailingsReceived"); ?></td>
104 <td><?php echo $this->control->tpl[
'nb_emailing']; ?></td>
106 <td colspan=
"2"> </td>
111 <td><?php echo $langs->trans(
"ContactVisibility"); ?></td>
112 <td colspan=
"3"><?php echo $this->control->tpl[
'visibility']; ?></td>
116 <td
class=
"tdtop"><?php echo $langs->trans(
"Note"); ?></td>
117 <td colspan=
"3"><?php echo $this->control->tpl[
'note']; ?></td>
120 <?php
foreach ($this->control->tpl[
'contact_element'] as $element) { ?>
122 <td><?php echo $element[
'linked_element_label']; ?></td>
123 <td colspan=
"3"><?php echo $element[
'linked_element_value']; ?></td>
128 <td><?php echo $langs->trans(
"DolibarrLogin"); ?></td>
129 <td colspan=
"3"><?php echo $this->control->tpl[
'dolibarr_user']; ?></td>
134 <?php echo $this->control->tpl[
'showend'];
136 if (empty($user->socid)) {
137 print '<div class="tabsAction">';
138 if ($user->rights->societe->contact->creer) {
139 print '<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=edit&canvas='.$canvas.
'">'.$langs->trans(
'Modify').
'</a>';
142 if (!$this->control->tpl[
'user_id'] && $user->rights->user->user->creer) {
143 print '<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=create_user&canvas='.$canvas.
'">'.$langs->trans(
"CreateDolibarrLogin").
'</a>';
146 if ($user->rights->societe->contact->supprimer) {
147 print '<a class="butActionDelete" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->control->tpl[
'id'].
'&action=delete&token='.
newToken().
'&canvas='.$canvas.
'">'.$langs->trans(
'Delete').
'</a>';
153 echo $this->control->tpl[
'actionstodo'];
155 echo $this->control->tpl[
'actionsdone'];
157 print "<!-- END PHP TEMPLATE -->\n";
print
Draft customers invoices.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
dol_htmloutput_errors($mesgstring= '', $mesgarray=array(), $keepembedded=0)
Print formated error messages to output (Used to show messages on html output).