19if (empty($conf) || !is_object($conf)) {
20 print
"Error, template page can't be called as URL";
26<!-- BEGIN PHP TEMPLATE CONTACTCARD_CREATE.TPL.PHP DEFAULT -->
35echo $this->control->tpl[
'ajax_selectcountry']; ?>
39<form method=
"post" name=
"formsoc" action=
"<?php echo $_SERVER["PHP_SELF
"]; ?>">
40<input
type=
"hidden" name=
"token" value=
"<?php echo newToken(); ?>">
41<input
type=
"hidden" name=
"canvas" value=
"<?php echo $canvas ?>">
42<input
type=
"hidden" name=
"action" value=
"add">
43<?php
if ($this->control->tpl[
'company_id']) { ?>
44<input
type=
"hidden" name=
"socid" value=
"<?php echo $this->control->tpl['company_id']; ?>">
47<
table class=
"border allwidth">
50 <td width=
"15%" class=
"fieldrequired"><?php echo $langs->trans(
"Lastname").
' / '.$langs->trans(
"Label"); ?></td>
51 <td><input
name=
"lastname" type=
"text" size=
"30" maxlength=
"80" value=
"<?php echo $this->control->tpl['name']; ?>"></td>
52 <td width=
"20%"><?php echo $langs->trans(
"Firstname"); ?></td>
53 <td width=
"25%"><input
name=
"firstname" type=
"text" size=
"30" maxlength=
"80" value=
"<?php echo $this->control->tpl['firstname']; ?>"></td>
57 <td><?php echo $langs->trans(
"ThirdParty"); ?></td>
58 <td colspan=
"3"><?php echo $this->control->tpl[
'company']; ?></td>
62 <td width=
"15%"><?php echo $langs->trans(
"UserTitle"); ?></td>
63 <td colspan=
"3"><?php echo $this->control->tpl[
'select_civility']; ?></td>
67 <td><?php echo $langs->trans(
"PostOrFunction"); ?></td>
68 <td colspan=
"3"><input
name=
"poste" type=
"text" class=
"minwidth200" maxlength=
"80" value=
"<?php echo $this->control->tpl['poste']; ?>"></td>
72 <td><?php echo $langs->trans(
"Address"); ?></td>
73 <td colspan=
"3"><textarea
class=
"flat" name=
"address" cols=
"70"><?php echo $this->control->tpl[
'address']; ?></textarea></td>
77 <td><?php echo $langs->trans(
"Zip").
' / '.$langs->trans(
"Town"); ?></td>
78 <td colspan=
"3"><?php echo $this->control->tpl[
'select_zip'].
' '.$this->control->tpl[
'select_town']; ?></td>
82 <td><?php echo $langs->trans(
"Country"); ?></td>
83 <td colspan=
"3"><?php echo $this->control->tpl[
'select_country'].$this->control->tpl[
'info_admin']; ?></td>
87 <td><?php echo $langs->trans(
'State'); ?></td>
88 <td colspan=
"3"><?php echo $this->control->tpl[
'select_state']; ?></td>
92 <td><?php echo $langs->trans(
"PhonePro"); ?></td>
93 <td><input
name=
"phone_pro" type=
"text" size=
"18" maxlength=
"80" value=
"<?php echo $this->control->tpl['phone_pro']; ?>"></td>
94 <td><?php echo $langs->trans(
"PhonePerso"); ?></td>
95 <td><input
name=
"phone_perso" type=
"text" size=
"18" maxlength=
"80" value=
"<?php echo $this->control->tpl['phone_perso']; ?>"></td>
99 <td><?php echo $langs->trans(
"PhoneMobile"); ?></td>
100 <td><input
name=
"phone_mobile" type=
"text" size=
"18" maxlength=
"80" value=
"<?php echo $this->control->tpl['phone_mobile']; ?>"></td>
101 <td><?php echo $langs->trans(
"Fax"); ?></td>
102 <td><input
name=
"fax" type=
"text" size=
"18" maxlength=
"80" value=
"<?php echo $this->control->tpl['fax']; ?>"></td>
106 <td><?php echo $langs->trans(
"Email"); ?></td>
107 <td colspan=
"3"><input
name=
"email" type=
"text" class=
"minwidth200" maxlength=
"80" value=
"<?php echo $this->control->tpl['email']; ?>"></td>
111 <td><?php echo $langs->trans(
"ContactVisibility"); ?></td>
112 <td colspan=
"3"><?php echo $this->control->tpl[
'select_visibility']; ?></td>
116 <td
class=
"tdtop"><?php echo $langs->trans(
"Note"); ?></td>
117 <td colspan=
"3" valign=
"top"><textarea
name=
"note" cols=
"70" rows=
"<?php echo ROWS_3; ?>"><?php echo $this->control->tpl[
'note']; ?></textarea></td>
121 <td
class=
"center" colspan=
"4"><input
type=
"submit" class=
"button" value=
"<?php echo $langs->trans("Add
"); ?>"></td>
128<!-- END PHP TEMPLATE -->
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
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.
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.