|
227 | 227 | <input type="hidden" name="private" value="0"> |
228 | 228 | <input type="hidden" name="status" value="1"> |
229 | 229 | <input type="hidden" name="client" value="<?php echo $object->client; ?>"> |
230 | | -<?php |
| 230 | +<?php |
231 | 231 | if ($modCodeClient->code_auto || $modCodeFournisseur->code_auto) { |
232 | 232 | print '<input type="hidden" name="code_auto" value="1">'; |
233 | 233 | } |
|
283 | 283 | */ |
284 | 284 | print '<td colspan="2"></td>'; |
285 | 285 | print '</tr>'; |
286 | | - |
| 286 | + |
287 | 287 | // Barcode |
288 | 288 | if (isModEnabled('barcode')) { |
289 | 289 | print '<tr><td>'.$form->editfieldkey('Gencod', 'barcode', '', $object, 0).'</td>'; |
|
292 | 292 | print '<input type="text" class="minwidth200 maxwidth300 widthcentpercentminusx" name="barcode" id="barcode" value="'.dol_escape_htmltag($object->barcode).'">'; |
293 | 293 | print '</td></tr>'; |
294 | 294 | } |
295 | | - |
| 295 | + |
296 | 296 | print '<tr><td colspan="4"> </td></tr>'; |
297 | | - |
| 297 | + |
298 | 298 | // Address |
299 | 299 | print '<tr><td class="tdtop">'; |
300 | 300 | print $form->editfieldkey('Address', 'address', '', $object, 0); |
|
305 | 305 | print '</textarea>'; |
306 | 306 | print $form->widgetForTranslation("address", $object, $permissiontoadd, 'textarea', 'alphanohtml', 'quatrevingtpercent'); |
307 | 307 | print '</td></tr>'; |
308 | | - |
| 308 | + |
309 | 309 | // Zip / Town |
310 | 310 | print '<tr><td>'.$langs->trans('Zip').'</td><td>'; |
311 | 311 | print $formcompany->select_ziptown($object->zip, 'zipcode', array('town','selectcountry_id','departement_id'), 0, 0, '', 'maxwidth100'); |
|
329 | 329 | // State |
330 | 330 | if (!getDolGlobalString('SOCIETE_DISABLE_STATE')) { |
331 | 331 | print '<tr><td>'.$langs->trans('State').'</td><td colspan="3" class="maxwidthonsmartphone">'; |
332 | | - |
| 332 | + |
333 | 333 | if ($object->country_id) { |
334 | 334 | print img_picto('', 'state', 'class="pictofixedwidth"'); |
335 | 335 | print $formcompany->select_state($object->state_id, $object->country_code, 'state_id', 'minwidth200 maxwidth300 widthcentpercentminusx'); |
|
338 | 338 | } |
339 | 339 | print '</td></tr>'; |
340 | 340 | } |
341 | | - |
| 341 | + |
342 | 342 | // Phone / Fax |
343 | 343 | print '<tr><td>'.$form->editfieldkey('Phone', 'phone', '', $object, 0).'</td>'; |
344 | 344 | print '<td'.($conf->browser->layout == 'phone' ? ' colspan="3"' : '').'>'.img_picto('', 'object_phoning', 'class="pictofixedwidth"').' <input type="text" name="phone" id="phone" class="maxwidth200 widthcentpercentminusx" value="'.(GETPOSTISSET('phone') ? GETPOST('phone', 'alpha') : $object->phone).'"></td>'; |
345 | 345 |
|
346 | 346 | if ($conf->browser->layout == 'phone') { |
347 | 347 | print '</tr><tr>'; |
348 | | - } |
349 | | - |
| 348 | + } |
| 349 | + |
350 | 350 | // Phone mobile |
351 | 351 | print '<td>'.$form->editfieldkey('PhoneMobile', 'phone_mobile', '', $object, 0).'</td>'; |
352 | 352 | print '<td'.($conf->browser->layout == 'phone' ? ' colspan="3"' : '').'>'.img_picto('', 'object_phoning_mobile', 'class="pictofixedwidth"').' <input type="text" name="phone_mobile" id="phone_mobile" class="maxwidth200 widthcentpercentminusx" value="'.(GETPOSTISSET('phone_mobile') ? GETPOST('phone_mobile', 'alpha') : $object->phone_mobile).'"></td></tr>'; |
|
444 | 444 | print '</td>'; |
445 | 445 | print '</tr>'; |
446 | 446 |
|
447 | | - if ($conf->global->MAIN_MULTILANGS) { |
| 447 | + if (getDolGlobalInt('MAIN_MULTILANGS')) { |
448 | 448 | print '<tr><td>'.$langs->trans("DefaultLang").'</td><td colspan="3">'."\n"; |
449 | | - print $formadmin->select_language(($object->default_lang?$object->default_lang:$conf->global->MAIN_LANG_DEFAULT), 'default_lang', 0, 0, 1); |
| 449 | + print $formadmin->select_language(($object->default_lang ? $object->default_lang : getDolGlobalString('MAIN_LANG_DEFAULT')), 'default_lang', 0, 0, 1); |
450 | 450 | print '</td>'; |
451 | 451 | print '</tr>'; |
452 | 452 | } |
|
0 commit comments