19if (empty($conf) || !is_object($conf)) {
20 print
"Error, template page can't be called as URL";
25$contact = $GLOBALS[
'objcanvas']->control->object;
29<!-- BEGIN PHP TEMPLATE CONTACTCARD_EDIT.TPL.PHP DEFAULT -->
36echo $this->control->tpl[
'ajax_selectcountry'];
41<form method=
"post" name=
"formsoc" action=
"<?php echo $_SERVER["PHP_SELF
"].'?id='.GETPOST('id', 'int'); ?>">
42<input
type=
"hidden" name=
"token" value=
"<?php echo newToken(); ?>">
43<input
type=
"hidden" name=
"canvas" value=
"<?php echo $canvas ?>">
44<input
type=
"hidden" name=
"id" value=
"<?php echo GETPOST('id', 'int'); ?>">
45<input
type=
"hidden" name=
"action" value=
"update">
46<input
type=
"hidden" name=
"contactid" value=
"<?php echo $this->control->tpl['id']; ?>">
47<input
type=
"hidden" name=
"old_name" value=
"<?php echo $this->control->tpl['name']; ?>">
48<input
type=
"hidden" name=
"old_firstname" value=
"<?php echo $this->control->tpl['firstname']; ?>">
49<?php
if (!empty($this->control->tpl[
'company_id'])) { ?>
50<input
type=
"hidden" name=
"socid" value=
"<?php echo $this->control->tpl['company_id']; ?>">
53<table
class=
"border allwidth">
56 <td><?php echo $langs->trans(
"Ref"); ?></td>
57 <td colspan=
"3"><?php echo $this->control->tpl[
'ref']; ?></td>
61 <td width=
"15%" class=
"fieldrequired"><?php echo $langs->trans(
"Lastname").
' / '.$langs->trans(
"Label"); ?></td>
62 <td><input
name=
"lastname" type=
"text" size=
"30" maxlength=
"80" value=
"<?php echo $this->control->tpl['name']; ?>"></td>
63 <td width=
"20%"><?php echo $langs->trans(
"Firstname"); ?></td>
64 <td width=
"25%"><input
name=
"firstname" type=
"text" size=
"30" maxlength=
"80" value=
"<?php echo $this->control->tpl['firstname']; ?>"></td>
68 <td><?php echo $langs->trans(
"ThirdParty"); ?></td>
69 <td colspan=
"3"><?php echo $this->control->tpl[
'company']; ?></td>
73 <td width=
"15%"><?php echo $langs->trans(
"UserTitle"); ?></td>
74 <td colspan=
"3"><?php echo $this->control->tpl[
'select_civility']; ?></td>
78 <td><?php echo $langs->trans(
"PostOrFunction"); ?></td>
79 <td colspan=
"3"><input
name=
"poste" type=
"text" class=
"minwidth200" maxlength=
"80" value=
"<?php echo $this->control->tpl['poste']; ?>"></td>
83 <td><?php echo $langs->trans(
"Address"); ?></td>
84 <td colspan=
"3"><textarea
class=
"flat" name=
"address" cols=
"70"><?php echo $this->control->tpl[
'address']; ?></textarea></td>
88 <td><?php echo $langs->trans(
"Zip").
' / '.$langs->trans(
"Town"); ?></td>
89 <td colspan=
"3"><?php echo $this->control->tpl[
'select_zip'].
' '.$this->control->tpl[
'select_town']; ?></td>
93 <td><?php echo $langs->trans(
"Country"); ?></td>
94 <td colspan=
"3"><?php echo $this->control->tpl[
'select_country'].$this->control->tpl[
'info_admin']; ?></td>
98 <td><?php echo $langs->trans(
'State'); ?></td>
99 <td colspan=
"3"><?php echo $this->control->tpl[
'select_state']; ?></td>
103 <td><?php echo $langs->trans(
"PhonePro"); ?></td>
104 <td><input
name=
"phone_pro" type=
"text" size=
"18" maxlength=
"80" value=
"<?php echo $this->control->tpl['phone_pro']; ?>"></td>
105 <td><?php echo $langs->trans(
"PhonePerso"); ?></td>
106 <td><input
name=
"phone_perso" type=
"text" size=
"18" maxlength=
"80" value=
"<?php echo $this->control->tpl['phone_perso']; ?>"></td>
110 <td><?php echo $langs->trans(
"PhoneMobile"); ?></td>
111 <td><input
name=
"phone_mobile" type=
"text" size=
"18" maxlength=
"80" value=
"<?php echo $this->control->tpl['phone_mobile']; ?>"></td>
112 <td><?php echo $langs->trans(
"Fax"); ?></td>
113 <td><input
name=
"fax" type=
"text" size=
"18" maxlength=
"80" value=
"<?php echo $this->control->tpl['fax']; ?>"></td>
117 <td><?php echo $langs->trans(
"Email"); ?></td>
118 <td><input
name=
"email" type=
"text" class=
"minwidth200" maxlength=
"80" value=
"<?php echo $this->control->tpl['email']; ?>"></td>
119 <?php
if ($this->control->tpl[
'nb_emailing']) { ?>
120 <td
class=
"nowrap"><?php echo $langs->trans(
"NbOfEMailingsReceived"); ?></td>
121 <td><?php echo $this->control->tpl[
'nb_emailing']; ?></td>
123 <td colspan=
"2"> </td>
128 <td><?php echo $langs->trans(
"ContactVisibility"); ?></td>
129 <td colspan=
"3"><?php echo $this->control->tpl[
'select_visibility']; ?></td>
133 <td
class=
"tdtop"><?php echo $langs->trans(
"Note"); ?></td>
134 <td colspan=
"3" valign=
"top"><textarea
name=
"note" cols=
"70" rows=
"<?php echo ROWS_3; ?>"><?php echo $this->control->tpl[
'note']; ?></textarea></td>
138if (!empty($this->control->tpl[
'contact_element'])) {
139 foreach ($this->control->tpl[
'contact_element'] as $element) {
141 print
'<td>'.$element[
'linked_element_label'].
'</td>';
142 print
'<td colspan="3">'.$element[
'linked_element_value'].
'</td>';
148 <td><?php echo $langs->trans(
"DolibarrLogin"); ?></td>
149 <td colspan=
"3"><?php echo $this->control->tpl[
'dolibarr_user']; ?></td>
153 <td colspan=
"4" class=
"center">
154 <input
type=
"submit" class=
"button button-save" name=
"save" value=
"<?php echo $langs->trans("Save
"); ?>">
155 <input
type=
"submit" class=
"button button-cancel" name=
"cancel" value=
"<?php echo $langs->trans("Cancel
"); ?>">
163<!-- END PHP TEMPLATE -->
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
dol_htmloutput_errors($mesgstring='', $mesgarray=array(), $keepembedded=0)
Print formated error messages to output (Used to show messages on html output).
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
$conf db name
Only used if Module[ID]Name translation string is not found.