diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index f578aa75cf5..22959fa51f6 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -642,10 +642,10 @@ if ($object->id > 0) { print ""; + print '
| '.$form->editfieldkey('Zip', 'zipcode', '', $object, 0).' | '; + print ' | |||||
| '.$form->editfieldkey('Zip', 'zipcode', '', $object, 0).' | browser->layout == 'phone' ? ' colspan="3"': '').'>'; print $formcompany->select_ziptown($object->zip, 'zipcode', array('town', 'selectcountry_id', 'state_id'), 0, 0, '', 'maxwidth100'); print ' | '; if ($conf->browser->layout == 'phone') { print '|||||
| '.$form->editfieldkey('Town', 'town', '', $object, 0).' | '; + print ' | '.$form->editfieldkey('Town', 'town', '', $object, 0).' | browser->layout == 'phone' ? ' colspan="3"': '').'>'; print $formcompany->select_ziptown($object->town, 'town', array('zipcode', 'selectcountry_id', 'state_id')); print $form->widgetForTranslation("town", $object, $permissiontoadd, 'string', 'alphanohtml', 'maxwidth100 quatrevingtpercent'); print ' | |||
| '.$form->editfieldkey('Phone', 'phone', GETPOST('phone', 'alpha'), $object, 0).' | '; - print ''.img_picto('', 'object_phoning', 'class="pictofixedwidth"').' | '; + print 'browser->layout == 'phone' ? ' colspan="3"': '').'>'.img_picto('', 'object_phoning', 'class="pictofixedwidth"').' | '; if ($conf->browser->layout == 'phone') { print '||||
| '.$form->editfieldkey('Fax', 'fax', GETPOST('fax', 'alpha'), $object, 0).' | '; - print ''.img_picto('', 'object_phoning_fax', 'class="pictofixedwidth"').' | browser->layout == 'phone' ? ' colspan="3"': '').'>'.img_picto('', 'object_phoning_fax', 'class="pictofixedwidth"').' | '; + print ''; - // EMail / Web + // Web print '||||
| '.$form->editfieldkey('Web', 'url', GETPOST('url', 'alpha'), $object, 0).' | '; - print ''.img_picto('', 'globe', 'class="pictofixedwidth"').' | '; + print ''.img_picto('', 'globe', 'class="pictofixedwidth"').' | ||||
| '.$form->editfieldkey('EMail', 'email', GETPOST('email', 'alpha'), $object, 0, 'string', '', (!empty($conf->global->SOCIETE_EMAIL_MANDATORY))).' | '; - print ''; - print img_picto('', 'object_email'); - print ' | '; - if (!empty($conf->mailing->enabled)) { - $langs->load("mails"); - print ''.$langs->trans("NbOfEMailingsSend").' | '; - print ''.$object->getNbOfEMailings().' | '; - } else { - print ''; - } - print ' | '; + print img_picto('', 'object_email', 'class="pictofixedwidth"'); + print ''; + print ' | '; // Unsubscribe if (!empty($conf->mailing->enabled)) { @@ -2558,7 +2553,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) { // Default language if (getDolGlobalInt('MAIN_MULTILANGS')) { print '|
| '.$form->editfieldkey('DefaultLang', 'default_lang', '', $object, 0).' | '."\n"; - print img_picto('', 'language').$formadmin->select_language($object->default_lang, 'default_lang', 0, 0, 1); + print img_picto('', 'language', 'class="pictofixedwidth"').$formadmin->select_language($object->default_lang, 'default_lang', 0, null, '1', 0, 0, 'maxwidth300 widthcentpercentminusx'); print ' | '; print '|||||
| '.$form->editfieldkey('Currency', 'multicurrency_code', '', $object, 0).' | '; print ''; - print $form->selectMultiCurrency((GETPOSTISSET('multicurrency_code') ? GETPOST('multicurrency_code') : ($object->multicurrency_code ? $object->multicurrency_code : $conf->currency)), 'multicurrency_code', 1); + print img_picto('', 'currency', 'class="pictofixedwidth"'); + print $form->selectMultiCurrency((GETPOSTISSET('multicurrency_code') ? GETPOST('multicurrency_code') : ($object->multicurrency_code ? $object->multicurrency_code : $conf->currency)), 'multicurrency_code', 1, '', false, 'maxwidth150 widthcentpercentminusx'); print ' | |||||
| '.$langs->trans('ParentCompany').' | '; print ''; - print img_picto('', 'company', 'class="paddingrightonly"'); + print img_picto('', 'company', 'class="pictofixedwidth"'); print $form->select_company(GETPOST('parent_company_id') ? GETPOST('parent_company_id') : $object->parent, 'parent_company_id', '', 'SelectThirdParty', 0, 0, null, 0, 'minwidth300 maxwidth500 widthcentpercentminusxx'); print ' | |||||