Qual: Uniformisation ordre et nom des champs fiche utilisateur
This commit is contained in:
parent
054590e554
commit
d89963b9fa
@ -591,7 +591,7 @@ if (($action == 'create') || ($action == 'adduserldap'))
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Tel
|
// Tel
|
||||||
print '<tr><td valign="top">'.$langs->trans("Phone").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("PhonePro").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
if ($ldap_phone)
|
if ($ldap_phone)
|
||||||
{
|
{
|
||||||
@ -604,6 +604,20 @@ if (($action == 'create') || ($action == 'adduserldap'))
|
|||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
// Tel portable
|
||||||
|
print '<tr><td valign="top">'.$langs->trans("PhoneMobile").'</td>';
|
||||||
|
print '<td>';
|
||||||
|
if ($ldap_mobile)
|
||||||
|
{
|
||||||
|
print '<input type="hidden" name="user_mobile" value="'.$ldap_mobile.'">';
|
||||||
|
print $ldap_mobile;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<input size="20" type="text" name="user_mobile" value="">';
|
||||||
|
}
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
// Fax
|
// Fax
|
||||||
print '<tr><td valign="top">'.$langs->trans("Fax").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("Fax").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
@ -618,20 +632,6 @@ if (($action == 'create') || ($action == 'adduserldap'))
|
|||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Tel portable
|
|
||||||
print '<tr><td valign="top">'.$langs->trans("Mobile").'</td>';
|
|
||||||
print '<td>';
|
|
||||||
if ($ldap_mobile)
|
|
||||||
{
|
|
||||||
print '<input type="hidden" name="user_mobile" value="'.$ldap_mobile.'">';
|
|
||||||
print $ldap_mobile;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print '<input size="20" type="text" name="user_mobile" value="">';
|
|
||||||
}
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
// EMail
|
// EMail
|
||||||
print '<tr><td valign="top">'.$langs->trans("EMail").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("EMail").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
@ -894,13 +894,17 @@ else
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
// Tel, fax, portable
|
// Tel pro
|
||||||
print '<tr><td width="25%" valign="top">'.$langs->trans("Phone").'</td>';
|
print '<tr><td width="25%" valign="top">'.$langs->trans("PhonePro").'</td>';
|
||||||
print '<td>'.$fuser->office_phone.'</td>';
|
print '<td>'.$fuser->office_phone.'</td>';
|
||||||
|
|
||||||
|
// Tel mobile
|
||||||
|
print '<tr><td width="25%" valign="top">'.$langs->trans("PhoneMobile").'</td>';
|
||||||
|
print '<td>'.$fuser->user_mobile.'</td>';
|
||||||
|
|
||||||
|
// Fax
|
||||||
print '<tr><td width="25%" valign="top">'.$langs->trans("Fax").'</td>';
|
print '<tr><td width="25%" valign="top">'.$langs->trans("Fax").'</td>';
|
||||||
print '<td>'.$fuser->office_fax.'</td>';
|
print '<td>'.$fuser->office_fax.'</td>';
|
||||||
print '<tr><td width="25%" valign="top">'.$langs->trans("Mobile").'</td>';
|
|
||||||
print '<td>'.$fuser->user_mobile.'</td>';
|
|
||||||
|
|
||||||
// EMail
|
// EMail
|
||||||
print '<tr><td width="25%" valign="top">'.$langs->trans("EMail").'</td>';
|
print '<tr><td width="25%" valign="top">'.$langs->trans("EMail").'</td>';
|
||||||
@ -1280,46 +1284,48 @@ else
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
// Tel, fax, portable
|
// Tel pro
|
||||||
print "<tr>".'<td valign="top">'.$langs->trans("Phone").'</td>';
|
print "<tr>".'<td valign="top">'.$langs->trans("PhonePro").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
if ($caneditfield && !$fuser->ldap_sid)
|
if ($caneditfield && !$fuser->ldap_sid)
|
||||||
{
|
{
|
||||||
print '<input size="20" type="text" name="office_phone" class="flat" value="'.$fuser->office_phone.'">';
|
print '<input size="20" type="text" name="office_phone" class="flat" value="'.$fuser->office_phone.'">';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<input type="hidden" name="office_phone" value="'.$fuser->office_phone.'">';
|
print '<input type="hidden" name="office_phone" value="'.$fuser->office_phone.'">';
|
||||||
print $fuser->office_phone;
|
print $fuser->office_phone;
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print "<tr>".'<td valign="top">'.$langs->trans("Fax").'</td>';
|
// Tel mobile
|
||||||
print '<td>';
|
print "<tr>".'<td valign="top">'.$langs->trans("PhoneMobile").'</td>';
|
||||||
if ($caneditfield && !$fuser->ldap_sid)
|
print '<td>';
|
||||||
{
|
if ($caneditfield && !$fuser->ldap_sid)
|
||||||
print '<input size="20" type="text" name="office_fax" class="flat" value="'.$fuser->office_fax.'">';
|
{
|
||||||
}
|
print '<input size="20" type="text" name="user_mobile" class="flat" value="'.$fuser->user_mobile.'">';
|
||||||
else
|
}
|
||||||
{
|
else
|
||||||
print '<input type="hidden" name="office_fax" value="'.$fuser->office_fax.'">';
|
{
|
||||||
print $fuser->office_fax;
|
print '<input type="hidden" name="user_mobile" value="'.$fuser->user_mobile.'">';
|
||||||
}
|
print $fuser->user_mobile;
|
||||||
print '</td></tr>';
|
}
|
||||||
|
print '</td></tr>';
|
||||||
print "<tr>".'<td valign="top">'.$langs->trans("Mobile").'</td>';
|
|
||||||
print '<td>';
|
|
||||||
if ($caneditfield && !$fuser->ldap_sid)
|
|
||||||
{
|
|
||||||
print '<input size="20" type="text" name="user_mobile" class="flat" value="'.$fuser->user_mobile.'">';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print '<input type="hidden" name="user_mobile" value="'.$fuser->user_mobile.'">';
|
|
||||||
print $fuser->user_mobile;
|
|
||||||
}
|
|
||||||
print '</td></tr>';
|
|
||||||
|
|
||||||
|
// Fax
|
||||||
|
print "<tr>".'<td valign="top">'.$langs->trans("Fax").'</td>';
|
||||||
|
print '<td>';
|
||||||
|
if ($caneditfield && !$fuser->ldap_sid)
|
||||||
|
{
|
||||||
|
print '<input size="20" type="text" name="office_fax" class="flat" value="'.$fuser->office_fax.'">';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<input type="hidden" name="office_fax" value="'.$fuser->office_fax.'">';
|
||||||
|
print $fuser->office_fax;
|
||||||
|
}
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
// EMail
|
// EMail
|
||||||
print "<tr>".'<td valign="top">'.$langs->trans("EMail").'</td>';
|
print "<tr>".'<td valign="top">'.$langs->trans("EMail").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user