20if (empty($conf) || !is_object($conf)) {
21 print
"Error, template page can't be called as URL";
27<!-- BEGIN PHP TEMPLATE CARD_CREATE.TPL.PHP INDIVIDUAL -->
29<?php echo $this->control->tpl[
'title']; ?>
31<?php echo $this->control->tpl[
'error']; ?>
33<?php
if ($conf->use_javascript_ajax) { ?>
34 <?php echo $this->control->tpl[
'ajax_selecttype']; ?>
36 <?php echo $langs->trans(
"ThirdPartyType") ?>:
37<input
type=
"radio" id=
"radiocompany" class=
"flat" name=
"private" value=
"0">
38 <?php echo $langs->trans(
"CompanyFoundation"); ?>
39<input
type=
"radio" id=
"radioprivate" class=
"flat" name=
"private" value=
"1" checked> <?php echo $langs->trans(
"Individual"); ?> (<?php echo $langs->trans(
"ToCreateContactWithSameName") ?>)
42 <?php echo $this->control->tpl[
'ajax_selectcountry']; ?>
45<form action=
"<?php echo $_SERVER["PHP_SELF
"]; ?>" method=
"POST" name=
"formsoc">
47<input
type=
"hidden" name=
"action" value=
"add">
48<input
type=
"hidden" name=
"canvas" value=
"<?php echo $canvas ?>">
49<input
type=
"hidden" name=
"token" value=
"<?php echo newToken(); ?>">
50<input
type=
"hidden" name=
"private" value=
"<?php echo $this->control->tpl['particulier']; ?>">
51<?php
if ($this->control->tpl[
'auto_customercode'] || $this->control->tpl[
'auto_suppliercode']) { ?>
52<input
type=
"hidden" name=
"code_auto" value=
"1">
55<
table class=
"border allwidth">
58 <td><span
class=
"fieldrequired"><?php echo $langs->trans(
'LastName'); ?></span></td>
59 <td><input
type=
"text" size=
"30" maxlength=
"60" name=
"nom" value=
"<?php echo $this->control->tpl['nom']; ?>"></td>
61 <td><?php echo $langs->trans(
'Prefix'); ?></td>
62 <td><input
type=
"text" size=
"5" maxlength=
"5" name=
"prefix_comm" value=
"<?php echo $this->control->tpl['prefix_comm']; ?>"></td>
67 <td><?php echo $langs->trans(
'FirstName'); ?></td>
68 <td><input
type=
"text" size=
"30" name=
"firstname" value=
"<?php echo $this->control->tpl['firstname']; ?>"></td>
69 <td colspan=
"2"> </td>
73 <td><?php echo $langs->trans(
"UserTitle"); ?></td>
74 <td><?php echo $this->control->tpl[
'select_civility']; ?></td>
75 <td colspan=
"2"> </td>
79 <td width=
"25%"><span
class=
"fieldrequired"><?php echo $langs->trans(
'ProspectCustomer'); ?></span></td>
80 <td width=
"25%"><?php echo $this->control->tpl[
'select_customertype']; ?></td>
82 <td width=
"25%"><?php echo $langs->trans(
'CustomerCode'); ?></td>
84 <
table class=
"nobordernopadding">
86 <td><input
type=
"text" name=
"code_client" size=
"16" value=
"<?php echo $this->control->tpl['customercode']; ?>" maxlength=
"24"></td>
87 <td><?php echo $this->control->tpl[
'help_customercode']; ?></td>
93<?php
if ($this->control->tpl[
'supplier_enabled']) { ?>
95 <td><span
class=
"fieldrequired"><?php echo $langs->trans(
'Supplier'); ?></span></td>
96 <td><?php echo $this->control->tpl[
'yn_supplier']; ?></td>
97 <td><?php echo $langs->trans(
'SupplierCode'); ?></td>
99 <
table class=
"nobordernopadding">
101 <td><input
type=
"text" name=
"code_fournisseur" size=
"16" value=
"<?php echo $this->control->tpl['suppliercode']; ?>" maxlength=
"24"></td>
102 <td><?php echo $this->control->tpl[
'help_suppliercode']; ?></td>
108 <?php
if (count($this->control->tpl[
'suppliercategory']) > 0) { ?>
110 <td><?php echo $langs->trans(
'SupplierCategory'); ?></td>
111 <td colspan=
"3"><?php echo $this->control->tpl[
'select_suppliercategory']; ?></td>
116if (isModEnabled(
'barcode')) { ?>
118 <td><?php echo $langs->trans(
'Gencod'); ?></td>
119 <td colspan=
"3"><input
type=
"text" name=
"barcode" value=
"<?php echo $this->control->tpl['barcode']; ?>"></td>
124 <td
class=
"tdtop"><?php echo $langs->trans(
'Address'); ?></td>
125 <td colspan=
"3"><textarea
name=
"address" cols=
"40" rows=
"3"><?php echo $this->control->tpl[
'address']; ?></textarea></td>
129 <td><?php echo $langs->trans(
'Zip'); ?></td>
130 <td><input size=
"6" type=
"text" name=
"zip" value=
"<?php echo $this->control->tpl['zip']; ?>"><?php echo $this->control->tpl[
'autofilltownfromzip']; ?></td>
131 <td><?php echo $langs->trans(
'Town'); ?></td>
132 <td><input
type=
"text" name=
"town" value=
"<?php echo $this->control->tpl['town']; ?>"></td>
136 <td width=
"25%"><?php echo $langs->trans(
'Country'); ?></td>
137 <td colspan=
"3"><?php echo $this->control->tpl[
'select_country']; echo $this->control->tpl[
'info_admin']; ?></td>
141 <td><?php echo $langs->trans(
'State'); ?></td>
142 <td colspan=
"3"><?php echo $this->control->tpl[
'select_state']; ?></td>
146 <td><?php echo $langs->trans(
'Phone'); ?></td>
147 <td><input
type=
"text" name=
"phone" value=
"<?php echo $this->control->tpl['phone']; ?>"></td>
148 <td><?php echo $langs->trans(
'PhoneMobile'); ?></td>
149 <td><input
type=
"text" name=
"phone_mobile" value=
"<?php echo $this->control->tpl['phone_mobile']; ?>"></td>
150 <td><?php echo $langs->trans(
'Fax'); ?></td>
151 <td><input
type=
"text" name=
"fax" value=
"<?php echo $this->control->tpl['fax']; ?>"></td>
155 <td><?php echo $langs->trans(
'EMail').($conf->global->SOCIETE_EMAIL_MANDATORY ?
'*' :
''); ?></td>
156 <td><input
type=
"text" name=
"email" size=
"32" value=
"<?php echo $this->control->tpl['email']; ?>"></td>
157 <td><?php echo $langs->trans(
'Web'); ?></td>
158 <td><input
type=
"text" name=
"url" size=
"32" value=
"<?php echo $this->control->tpl['url']; ?>"></td>
163 <td><?php echo $langs->trans(
"DefaultLang"); ?></td>
164 <td colspan=
"3"><?php echo $this->control->tpl[
'select_lang']; ?></td>
169 <td><?php echo $langs->trans(
'VATIsUsed'); ?></td>
170 <td colspan=
"3"><?php echo $this->control->tpl[
'yn_assujtva']; ?></td>
173<?php
if (!empty($this->control->tpl[
'localtax'])) {
174 echo $this->control->tpl[
'localtax'];
177<?php
if ($user->hasRight(
'societe',
'client',
'voir')) { ?>
179 <td><?php echo $langs->trans(
"AllocateCommercial"); ?></td>
180 <td colspan=
"3"><?php echo $this->control->tpl[
'select_users']; ?></td>
185 <td colspan=
"4" class=
"center"><input
type=
"submit" class=
"button" value=
"<?php echo $langs->trans('AddThirdParty'); ?>"></td>
191<!-- END PHP TEMPLATE -->
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
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.