Look and feel v13

This commit is contained in:
Laurent Destailleur 2020-11-24 16:54:13 +01:00
parent 148f822251
commit a7347b89d1

View File

@ -1018,50 +1018,54 @@ if ($action == 'create' || $action == 'adduserldap')
} }
// Tel // Tel
print '<tr><td>'.img_picto('', 'object_phoning').' '.$langs->trans("PhonePro").'</td>'; print '<tr><td>'.$langs->trans("PhonePro").'</td>';
print '<td>'; print '<td>';
print img_picto('', 'object_phoning');
if (!empty($ldap_phone)) if (!empty($ldap_phone))
{ {
print '<input type="hidden" name="office_phone" value="'.dol_escape_htmltag($ldap_phone).'">'; print '<input type="hidden" name="office_phone" value="'.dol_escape_htmltag($ldap_phone).'">';
print $ldap_phone; print $ldap_phone;
} else { } else {
print '<input size="20" type="text" name="office_phone" value="'.dol_escape_htmltag(GETPOST('office_phone', 'alphanohtml')).'">'; print '<input type="text" name="office_phone" value="'.dol_escape_htmltag(GETPOST('office_phone', 'alphanohtml')).'">';
} }
print '</td></tr>'; print '</td></tr>';
// Tel portable // Tel portable
print '<tr><td>'.img_picto('', 'object_phoning_mobile').' '.$langs->trans("PhoneMobile").'</td>'; print '<tr><td>'.$langs->trans("PhoneMobile").'</td>';
print '<td>'; print '<td>';
print img_picto('', 'object_phoning_mobile');
if (!empty($ldap_mobile)) if (!empty($ldap_mobile))
{ {
print '<input type="hidden" name="user_mobile" value="'.dol_escape_htmltag($ldap_mobile).'">'; print '<input type="hidden" name="user_mobile" value="'.dol_escape_htmltag($ldap_mobile).'">';
print $ldap_mobile; print $ldap_mobile;
} else { } else {
print '<input size="20" type="text" name="user_mobile" value="'.dol_escape_htmltag(GETPOST('user_mobile', 'alphanohtml')).'">'; print '<input type="text" name="user_mobile" value="'.dol_escape_htmltag(GETPOST('user_mobile', 'alphanohtml')).'">';
} }
print '</td></tr>'; print '</td></tr>';
// Fax // Fax
print '<tr><td>'.img_picto('', 'object_phoning_fax').' '.$langs->trans("Fax").'</td>'; print '<tr><td>'.$langs->trans("Fax").'</td>';
print '<td>'; print '<td>';
print img_picto('', 'object_phoning_fax');
if (!empty($ldap_fax)) if (!empty($ldap_fax))
{ {
print '<input type="hidden" name="office_fax" value="'.dol_escape_htmltag($ldap_fax).'">'; print '<input type="hidden" name="office_fax" value="'.dol_escape_htmltag($ldap_fax).'">';
print $ldap_fax; print $ldap_fax;
} else { } else {
print '<input size="20" type="text" name="office_fax" value="'.dol_escape_htmltag(GETPOST('office_fax', 'alphanohtml')).'">'; print '<input type="text" name="office_fax" value="'.dol_escape_htmltag(GETPOST('office_fax', 'alphanohtml')).'">';
} }
print '</td></tr>'; print '</td></tr>';
// EMail // EMail
print '<tr><td'.(!empty($conf->global->USER_MAIL_REQUIRED) ? ' class="fieldrequired"' : '').'>'.img_picto('', 'object_email').' '.$langs->trans("EMail").'</td>'; print '<tr><td'.(!empty($conf->global->USER_MAIL_REQUIRED) ? ' class="fieldrequired"' : '').'>'.$langs->trans("EMail").'</td>';
print '<td>'; print '<td>';
print img_picto('', 'object_email');
if (!empty($ldap_mail)) if (!empty($ldap_mail))
{ {
print '<input type="hidden" name="email" value="'.dol_escape_htmltag($ldap_mail).'">'; print '<input type="hidden" name="email" value="'.dol_escape_htmltag($ldap_mail).'">';
print $ldap_mail; print $ldap_mail;
} else { } else {
print '<input size="40" type="text" name="email" value="'.dol_escape_htmltag(GETPOST('email', 'alphanohtml')).'">'; print '<input type="text" name="email" class="maxwidth500 widthcentpercentminusx" value="'.dol_escape_htmltag(GETPOST('email', 'alphanohtml')).'">';
} }
print '</td></tr>'; print '</td></tr>';
@ -1093,7 +1097,7 @@ if ($action == 'create' || $action == 'adduserldap')
{ {
print '<tr><td>'.$langs->trans("AccountancyCode").'</td>'; print '<tr><td>'.$langs->trans("AccountancyCode").'</td>';
print '<td>'; print '<td>';
print '<input size="30" type="text" name="accountancy_code" value="'.dol_escape_htmltag(GETPOST('accountancy_code', 'alphanohtml')).'">'; print '<input type="text" name="accountancy_code" value="'.dol_escape_htmltag(GETPOST('accountancy_code', 'alphanohtml')).'">';
print '</td></tr>'; print '</td></tr>';
} }
@ -2357,11 +2361,12 @@ if ($action == 'create' || $action == 'adduserldap')
} }
// Tel pro // Tel pro
print "<tr>".'<td>'.img_picto('', 'object_phoning').' '.$langs->trans("PhonePro").'</td>'; print "<tr>".'<td>'.$langs->trans("PhonePro").'</td>';
print '<td>'; print '<td>';
print img_picto('', 'object_phoning');
if ($caneditfield && empty($object->ldap_sid)) if ($caneditfield && empty($object->ldap_sid))
{ {
print '<input size="20" type="text" name="office_phone" class="flat" value="'.$object->office_phone.'">'; print '<input type="text" name="office_phone" class="flat maxwidth200" value="'.$object->office_phone.'">';
} else { } else {
print '<input type="hidden" name="office_phone" value="'.$object->office_phone.'">'; print '<input type="hidden" name="office_phone" value="'.$object->office_phone.'">';
print $object->office_phone; print $object->office_phone;
@ -2369,11 +2374,12 @@ if ($action == 'create' || $action == 'adduserldap')
print '</td></tr>'; print '</td></tr>';
// Tel mobile // Tel mobile
print "<tr>".'<td>'.img_picto('', 'object_phoning_mobile').' '.$langs->trans("PhoneMobile").'</td>'; print "<tr>".'<td>'.$langs->trans("PhoneMobile").'</td>';
print '<td>'; print '<td>';
print img_picto('', 'object_phoning_mobile');
if ($caneditfield && empty($object->ldap_sid)) if ($caneditfield && empty($object->ldap_sid))
{ {
print '<input size="20" type="text" name="user_mobile" class="flat" value="'.$object->user_mobile.'">'; print '<input type="text" name="user_mobile" class="flat maxwidth200" value="'.$object->user_mobile.'">';
} else { } else {
print '<input type="hidden" name="user_mobile" value="'.$object->user_mobile.'">'; print '<input type="hidden" name="user_mobile" value="'.$object->user_mobile.'">';
print $object->user_mobile; print $object->user_mobile;
@ -2381,11 +2387,12 @@ if ($action == 'create' || $action == 'adduserldap')
print '</td></tr>'; print '</td></tr>';
// Fax // Fax
print "<tr>".'<td>'.img_picto('', 'object_phoning_fax').' '.$langs->trans("Fax").'</td>'; print "<tr>".'<td>'.$langs->trans("Fax").'</td>';
print '<td>'; print '<td>';
print img_picto('', 'object_phoning_fax');
if ($caneditfield && empty($object->ldap_sid)) if ($caneditfield && empty($object->ldap_sid))
{ {
print '<input size="20" type="text" name="office_fax" class="flat" value="'.$object->office_fax.'">'; print '<input type="text" name="office_fax" class="flat maxwidth200" value="'.$object->office_fax.'">';
} else { } else {
print '<input type="hidden" name="office_fax" value="'.$object->office_fax.'">'; print '<input type="hidden" name="office_fax" value="'.$object->office_fax.'">';
print $object->office_fax; print $object->office_fax;
@ -2393,11 +2400,12 @@ if ($action == 'create' || $action == 'adduserldap')
print '</td></tr>'; print '</td></tr>';
// EMail // EMail
print "<tr>".'<td'.(!empty($conf->global->USER_MAIL_REQUIRED) ? ' class="fieldrequired"' : '').'>'.img_picto('', 'object_email').' '.$langs->trans("EMail").'</td>'; print "<tr>".'<td'.(!empty($conf->global->USER_MAIL_REQUIRED) ? ' class="fieldrequired"' : '').'>'.$langs->trans("EMail").'</td>';
print '<td>'; print '<td>';
print img_picto('', 'object_email');
if ($caneditfield && empty($object->ldap_sid)) if ($caneditfield && empty($object->ldap_sid))
{ {
print '<input class="minwidth100" type="text" name="email" class="flat" value="'.$object->email.'">'; print '<input class="minwidth100 maxwidth500 widthcentpercentminusx" type="text" name="email" class="flat" value="'.$object->email.'">';
} else { } else {
print '<input type="hidden" name="email" value="'.$object->email.'">'; print '<input type="hidden" name="email" value="'.$object->email.'">';
print $object->email; print $object->email;