30 print
"Error, template page can't be called as URL";
34$contact = $GLOBALS[
'objcanvas']->control->object;
38<!-- BEGIN PHP TEMPLATE CARD_EDIT.TPL.PHP COMPANY -->
40<?php echo $this->control->tpl[
'title']; ?>
42<?php echo $this->control->tpl[
'error']; ?>
44<?php echo $this->control->tpl[
'ajax_selectcountry']; ?>
45<?php
if ($this->control->tpl[
'js_checkVatPopup']) {
46 echo $this->control->tpl[
'js_checkVatPopup'];
49<form action=
"<?php echo $_SERVER["PHP_SELF
"].'?socid='.$this->control->tpl['id']; ?>" method=
"POST" name=
"formsoc">
50<input
type=
"hidden" name=
"canvas" value=
"<?php echo $canvas ?>">
51<input
type=
"hidden" name=
"action" value=
"update">
52<input
type=
"hidden" name=
"token" value=
"<?php echo newToken(); ?>">
53<input
type=
"hidden" name=
"socid" value=
"<?php echo $this->control->tpl['id']; ?>">
54<?php
if ($this->control->tpl[
'auto_customercode'] || $this->control->tpl[
'auto_suppliercode']) { ?>
55<input
type=
"hidden" name=
"code_auto" value=
"1">
58<
table class=
"border allwidth">
61 <td><span
class=
"fieldrequired"><?php echo $langs->trans(
'ThirdPartyName'); ?></span></td>
62 <td colspan=
"3"><input
type=
"text" size=
"40" maxlength=
"60" name=
"nom" value=
"<?php echo $this->control->tpl['nom']; ?>"></td>
67 <td><?php echo $langs->trans(
"Prefix"); ?></td>
69 <?php
if (($this->control->tpl[
'prefix_customercode'] || $this->control->tpl[
'prefix_suppliercode']) && $this->control->tpl[
'prefix_comm']) { ?>
70 <input
type=
"hidden" name=
"prefix_comm" value=
"<?php echo $this->control->tpl['prefix_comm']; ?>">
71 <?php echo $this->control->tpl[
'prefix_comm']; ?>
73 <input
type=
"text" size=
"5" maxlength=
"5" name=
"prefix_comm" value=
"<?php echo $this->control->tpl['prefix_comm']; ?>">
80 <td width=
"25%"><span
class=
"fieldrequired"><?php echo $langs->trans(
'ProspectCustomer'); ?></span></td>
81 <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">
87 <?php
if ($this->control->tpl[
'ismodifiable_customercode']) { ?>
88 <input
type=
"text" name=
"code_client" size=
"16" value=
"<?php echo $this->control->tpl['customercode']; ?>" maxlength=
"24">
90 <?php echo $this->control->tpl[
'customercode']; ?>
91 <input
type=
"hidden" name=
"code_client" value=
"<?php echo $this->control->tpl['customercode']; ?>">
94 <td><?php echo $this->tpl[
'help_customercode']; ?></td>
101 <td><span
class=
"fieldrequired"><?php echo $langs->trans(
'Supplier'); ?></span></td>
102 <td><?php echo $this->control->tpl[
'yn_supplier']; ?></td>
103 <td><?php echo $langs->trans(
'SupplierCode'); ?></td>
105 <
table class=
"nobordernopadding">
108 <?php
if ($this->control->tpl[
'ismodifiable_suppliercode']) { ?>
109 <input
type=
"text" name=
"code_fournisseur" size=
"16" value=
"<?php echo $this->control->tpl['suppliercode']; ?>" maxlength=
"24">
111 <?php echo $this->control->tpl[
'suppliercode']; ?>
112 <input
type=
"hidden" name=
"code_fournisseur" value=
"<?php echo $this->control->tpl['suppliercode']; ?>">
115 <td><?php echo $this->control->tpl[
'help_suppliercode']; ?></td>
122if ($this->control->tpl[
'fournisseur']) {
123 if (count($this->control->tpl[
'suppliercategory']) > 0) { ?>
125 <td><?php echo $langs->trans(
'SupplierCategory'); ?></td>
126 <td colspan=
"3"><?php echo $this->control->tpl[
'select_suppliercategory']; ?></td>
132if (isModEnabled(
'barcode')) { ?>
134 <td><?php echo $langs->trans(
'Gencod'); ?></td>
135 <td colspan=
"3"><input
type=
"text" name=
"barcode" value=
"<?php echo $this->control->tpl['barcode']; ?>"></td>
140 <td
class=
"tdtop"><?php echo $langs->trans(
'Address'); ?></td>
141 <td colspan=
"3"><textarea
name=
"address" cols=
"40" rows=
"3"><?php echo $this->control->tpl[
'address']; ?></textarea></td>
145 <td><?php echo $langs->trans(
'Zip'); ?></td>
146 <td><?php echo $this->control->tpl[
'select_zip']; ?></td>
147 <td><?php echo $langs->trans(
'Town'); ?></td>
148 <td><?php echo $this->control->tpl[
'select_town']; ?></td>
152 <td width=
"25%"><?php echo $langs->trans(
'Country'); ?></td>
153 <td colspan=
"3"><?php echo $this->control->tpl[
'select_country']; echo $this->control->tpl[
'info_admin']; ?></td>
157 <td><?php echo $langs->trans(
'State'); ?></td>
158 <td colspan=
"3"><?php echo $this->control->tpl[
'select_state']; ?></td>
162 <td><?php echo $langs->trans(
'Phone'); ?></td>
163 <td><input
type=
"text" name=
"phone" value=
"<?php echo $this->control->tpl['phone']; ?>"></td>
164 <td><?php echo $langs->trans(
'PhoneMobile'); ?></td>
165 <td><input
type=
"text" name=
"phone_mobile" value=
"<?php echo $this->control->tpl['phone_mobile']; ?>"></td>
166 <td><?php echo $langs->trans(
'Fax'); ?></td>
167 <td><input
type=
"text" name=
"fax" value=
"<?php echo $this->control->tpl['fax']; ?>"></td>
171 <td><?php echo $langs->trans(
'EMail').($conf->global->SOCIETE_EMAIL_MANDATORY ?
'*' :
''); ?></td>
172 <td><input
type=
"text" name=
"email" size=
"32" value=
"<?php echo $this->control->tpl['email']; ?>"></td>
173 <td><?php echo $langs->trans(
'Web'); ?></td>
174 <td><input
type=
"text" name=
"url" size=
"32" value=
"<?php echo $this->control->tpl['url']; ?>"></td>
178for ($i = 1; $i <= 4; $i++) {
179 if ($this->control->tpl[
'langprofid'.$i] !=
'-') {
180 if ($i == 1 || $i == 3) {
183 echo
'<td>'.$this->control->tpl[
'langprofid'.$i].
'</td>';
184 echo
'<td>'.$this->control->tpl[
'showprofid'.$i].
'</td>';
185 if ($i == 2 || $i == 4) {
189 if ($i == 1 || $i == 3) {
192 echo
'<td> </td>';
193 echo
'<td> </td>';
194 if ($i == 2 || $i == 4) {
202 <td><?php echo $langs->trans(
'VATIsUsed'); ?></td>
203 <td><?php echo $this->control->tpl[
'yn_assujtva']; ?></td>
204 <td
class=
"nowrap"><?php echo $langs->trans(
'VATIntra'); ?></td>
205 <td
class=
"nowrap"><?php echo $this->control->tpl[
'tva_intra']; ?></td>
209 <td><?php echo $langs->trans(
'Capital'); ?></td>
210 <td colspan=
"3"><input
type=
"text" name=
"capital" size=
"10" value=
"<?php echo $this->control->tpl['capital']; ?>"> <?php echo $langs->trans(
"Currency".
$conf->currency); ?></td>
214 <td><?php echo $langs->trans(
'JuridicalStatus'); ?></td>
215 <td colspan=
"3"><?php echo $this->control->tpl[
'select_juridicalstatus']; ?></td>
219 <td><?php echo $langs->trans(
"ThirdPartyType"); ?></td>
220 <td><?php echo $this->control->tpl[
'select_companytype']; echo $this->control->tpl[
'info_admin']; ?></td>
221 <td><?php echo $langs->trans(
"Staff"); ?></td>
222 <td><?php echo $this->control->tpl[
'select_workforce']; echo $this->control->tpl[
'info_admin']; ?></td>
227 <td><?php echo $langs->trans(
"DefaultLang"); ?></td>
228 <td colspan=
"3"><?php echo $this->control->tpl[
'select_lang']; ?></td>
232if (!empty($this->control->tpl[
'localtax'])) {
233 echo $this->control->tpl[
'localtax'];
240<input
type=
"submit" class=
"button button-save" name=
"save" value=
"<?php echo $langs->trans("Save
"); ?>">
242<input
type=
"submit" class=
"button button-cancel" name=
"cancel" value=
"<?php echo $langs->trans("Cancel
"); ?>">
247<!-- 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.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
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.