20if (empty($conf) || !is_object($conf)) {
21 print
"Error, template page can't be called as URL";
27<!-- BEGIN PHP TEMPLATE CARD_EDIT.TPL.PHP INDIVIDUAL -->
29<?php echo $this->control->tpl[
'title']; ?>
31<?php echo $this->control->tpl[
'error']; ?>
33<?php echo $this->control->tpl[
'ajax_selectcountry']; ?>
35<form action=
"<?php echo $_SERVER["PHP_SELF
"].'?socid='.$this->control->tpl['id']; ?>" method=
"POST" name=
"formsoc">
36<input
type=
"hidden" name=
"canvas" value=
"<?php echo $canvas ?>">
37<input
type=
"hidden" name=
"action" value=
"update">
38<input
type=
"hidden" name=
"token" value=
"<?php echo newToken(); ?>">
39<input
type=
"hidden" name=
"socid" value=
"<?php echo $this->control->tpl['id']; ?>">
40<input
type=
"hidden" name=
"typent_id" value=
"<?php echo $this->control->tpl['typent_id']; ?>">
41<?php
if ($this->control->tpl[
'auto_customercode'] || $this->control->tpl[
'auto_suppliercode']) { ?>
42<input
type=
"hidden" name=
"code_auto" value=
"1">
45<
table class=
"border allwidth">
48 <td><span
class=
"fieldrequired"><?php echo $langs->trans(
'Name'); ?></span></td>
49 <td colspan=
"3"><input
type=
"text" size=
"40" maxlength=
"60" name=
"nom" value=
"<?php echo $this->control->tpl['nom']; ?>"></td>
54 <td><?php echo $langs->trans(
"Prefix"); ?></td>
56 <?php
if (($this->control->tpl[
'prefix_customercode'] || $this->control->tpl[
'prefix_suppliercode']) && $this->control->tpl[
'prefix_comm']) { ?>
57 <input
type=
"hidden" name=
"prefix_comm" value=
"<?php echo $this->control->tpl['prefix_comm']; ?>">
58 <?php echo $this->control->tpl[
'prefix_comm']; ?>
60 <input
type=
"text" size=
"5" maxlength=
"5" name=
"prefix_comm" value=
"<?php echo $this->control->tpl['prefix_comm']; ?>">
67 <td width=
"25%"><span
class=
"fieldrequired"><?php echo $langs->trans(
'ProspectCustomer'); ?></span></td>
68 <td width=
"25%"><?php echo $this->control->tpl[
'select_customertype']; ?></td>
69 <td width=
"25%"><?php echo $langs->trans(
'CustomerCode'); ?></td>
71 <
table class=
"nobordernopadding">
74 <?php
if ($this->control->tpl[
'ismodifiable_customercode']) { ?>
75 <input
type=
"text" name=
"code_client" size=
"16" value=
"<?php echo $this->control->tpl['customercode']; ?>" maxlength=
"24">
77 <?php echo $this->control->tpl[
'customercode']; ?>
78 <input
type=
"hidden" name=
"code_client" value=
"<?php echo $this->control->tpl['customercode']; ?>">
81 <td><?php echo $this->tpl[
'help_customercode']; ?></td>
88 <td><span
class=
"fieldrequired"><?php echo $langs->trans(
'Supplier'); ?></span></td>
89 <td><?php echo $this->control->tpl[
'yn_supplier']; ?></td>
90 <td><?php echo $langs->trans(
'SupplierCode'); ?></td>
92 <
table class=
"nobordernopadding">
95 <?php
if ($this->control->tpl[
'ismodifiable_suppliercode']) { ?>
96 <input
type=
"text" name=
"code_fournisseur" size=
"16" value=
"<?php echo $this->control->tpl['suppliercode']; ?>" maxlength=
"24">
98 <?php echo $this->control->tpl[
'suppliercode']; ?>
99 <input
type=
"hidden" name=
"code_fournisseur" value=
"<?php echo $this->control->tpl['suppliercode']; ?>">
102 <td><?php echo $this->tpl[
'help_suppliercode']; ?></td>
109if ($this->control->tpl[
'fournisseur']) {
110 if (count($this->control->tpl[
'suppliercategory']) > 0) { ?>
112 <td><?php echo $langs->trans(
'SupplierCategory'); ?></td>
113 <td colspan=
"3"><?php echo $this->control->tpl[
'select_suppliercategory']; ?></td>
120<?php
if (isModEnabled(
'barcode')) { ?>
122 <td><?php echo $langs->trans(
'Gencod'); ?></td>
123 <td colspan=
"3"><input
type=
"text" name=
"barcode" value=
"<?php echo $this->control->tpl['barcode']; ?>"></td>
128 <td
class=
"tdtop"><?php echo $langs->trans(
'Address'); ?></td>
129 <td colspan=
"3"><textarea
name=
"address" cols=
"40" rows=
"3"><?php echo $this->control->tpl[
'address']; ?></textarea></td>
133 <td><?php echo $langs->trans(
'Zip'); ?></td>
134 <td><?php echo $this->control->tpl[
'select_zip']; ?></td>
135 <td><?php echo $langs->trans(
'Town'); ?></td>
136 <td><?php echo $this->control->tpl[
'select_town']; ?></td>
140 <td width=
"25%"><?php echo $langs->trans(
'Country'); ?></td>
141 <td colspan=
"3"><?php echo $this->control->tpl[
'select_country']; echo $this->control->tpl[
'info_admin']; ?></td>
145 <td><?php echo $langs->trans(
'State'); ?></td>
146 <td colspan=
"3"><?php echo $this->control->tpl[
'select_state']; ?></td>
150 <td><?php echo $langs->trans(
'Phone'); ?></td>
151 <td><input
type=
"text" name=
"phone" value=
"<?php echo $this->control->tpl['phone']; ?>"></td>
152 <td><?php echo $langs->trans(
'PhoneMobile'); ?></td>
153 <td><input
type=
"text" name=
"phone_mobile" value=
"<?php echo $this->control->tpl['phone_mobile']; ?>"></td>
154 <td><?php echo $langs->trans(
'Fax'); ?></td>
155 <td><input
type=
"text" name=
"fax" value=
"<?php echo $this->control->tpl['fax']; ?>"></td>
159 <td><?php echo $langs->trans(
'EMail').($conf->global->SOCIETE_EMAIL_MANDATORY ?
'*' :
''); ?></td>
160 <td><input
type=
"text" name=
"email" size=
"32" value=
"<?php echo $this->control->tpl['email']; ?>"></td>
161 <td><?php echo $langs->trans(
'Web'); ?></td>
162 <td><input
type=
"text" name=
"url" size=
"32" value=
"<?php echo $this->control->tpl['url']; ?>"></td>
167 <td><?php echo $langs->trans(
"DefaultLang"); ?></td>
168 <td colspan=
"3"><?php echo $this->control->tpl[
'select_lang']; ?></td>
173 <td><?php echo $langs->trans(
'VATIsUsed'); ?></td>
174 <td colspan=
"3"><?php echo $this->control->tpl[
'yn_assujtva']; ?></td>
177<?php
if (!empty($this->control->tpl[
'localtax'])) {
178 echo $this->control->tpl[
'localtax'];
185<input
type=
"submit" class=
"button button-save" name=
"save" value=
"<?php echo $langs->trans("Save
"); ?>">
187<input
type=
"submit" class=
"button button-cancel" name=
"cancel" value=
"<?php echo $langs->trans("Cancel
"); ?>">
192<!-- END PHP TEMPLATE -->
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
getDolGlobalString($key, $default='')
Return a 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.