';
- // Ref
- print '| '.$langs->trans("Ref").' | ';
- print '';
- print $html->showrefnav($fuser,'id','',$user->rights->user->user->lire || $user->admin);
- print ' | ';
- print '
'."\n";
+ // Ref
+ print '| '.$langs->trans("Ref").' | ';
+ print '';
+ print $html->showrefnav($fuser,'id','',$user->rights->user->user->lire || $user->admin);
+ print ' | ';
+ print '
'."\n";
- $rowspan=13;
+ $rowspan=14;
if ($conf->societe->enabled) $rowspan++;
if ($conf->adherent->enabled) $rowspan++;
if ($conf->webcalendar->enabled) $rowspan++;
if ($conf->phenix->enabled) $rowspan+=2;
- // Lastname
- print '| '.$langs->trans("Lastname").' | ';
- print ''.$fuser->nom.' | ';
+ // Lastname
+ print '
| '.$langs->trans("Lastname").' | ';
+ print ''.$fuser->nom.' | ';
// Photo
print '';
@@ -927,404 +935,409 @@ else
print ' |
'."\n";
- // Firstname
- print '| '.$langs->trans("Firstname").' | ';
- print ''.$fuser->prenom.' | ';
+ // Firstname
+ print '
| '.$langs->trans("Firstname").' | ';
+ print ''.$fuser->prenom.' | ';
print '
'."\n";
- // Login
- print '| '.$langs->trans("Login").' | ';
- if ($fuser->ldap_sid && $fuser->statut==0)
- {
- print ''.$langs->trans("LoginAccountDisableInDolibarr").' | ';
- }
- else
- {
- print ''.$fuser->login.' | ';
- }
- print '
'."\n";
-
- // Password
- print '| '.$langs->trans("Password").' | ';
- if ($fuser->ldap_sid)
- {
- if ($passDoNotExpire)
- {
- print ''.$langs->trans("LdapUacf_".$statutUACF).' | ';
- }
- else if($userChangePassNextLogon)
- {
- print ''.$langs->trans("UserMustChangePassNextLogon",$ldap->domainFQDN).' | ';
- }
- else if($userDisabled)
- {
- print ''.$langs->trans("LdapUacf_".$statutUACF,$ldap->domainFQDN).' | ';
- }
- else
- {
- print ''.$langs->trans("DomainPassword").' | ';
- }
- }
- else
- {
- print '';
- if ($fuser->pass) print preg_replace('/./i','*',$fuser->pass);
- else
- {
- if ($user->admin) print $langs->trans("Crypted").': '.$fuser->pass_indatabase_crypted;
- else print $langs->trans("Hidden");
- }
- print " | ";
- }
+ // Login
+ print '
| '.$langs->trans("Login").' | ';
+ if ($fuser->ldap_sid && $fuser->statut==0)
+ {
+ print ''.$langs->trans("LoginAccountDisableInDolibarr").' | ';
+ }
+ else
+ {
+ print ''.$fuser->login.' | ';
+ }
print '
'."\n";
- // Administrator
- print '| '.$langs->trans("Administrator").' | ';
- if (! empty($conf->multicompany->enabled) && $fuser->admin && ! $fuser->entity)
- {
- print $html->textwithpicto(yn($fuser->admin),$langs->trans("SuperAdministratorDesc"),1,"superadmin");
- }
- else if ($fuser->admin)
- {
- print $html->textwithpicto(yn($fuser->admin),$langs->trans("AdministratorDesc"),1,"admin");
- }
- else
- {
- print yn($fuser->admin);
- }
+ // Password
+ print ' |
| '.$langs->trans("Password").' | ';
+ if ($fuser->ldap_sid)
+ {
+ if ($passDoNotExpire)
+ {
+ print ''.$langs->trans("LdapUacf_".$statutUACF).' | ';
+ }
+ else if($userChangePassNextLogon)
+ {
+ print ''.$langs->trans("UserMustChangePassNextLogon",$ldap->domainFQDN).' | ';
+ }
+ else if($userDisabled)
+ {
+ print ''.$langs->trans("LdapUacf_".$statutUACF,$ldap->domainFQDN).' | ';
+ }
+ else
+ {
+ print ''.$langs->trans("DomainPassword").' | ';
+ }
+ }
+ else
+ {
+ print '';
+ if ($fuser->pass) print preg_replace('/./i','*',$fuser->pass);
+ else
+ {
+ if ($user->admin) print $langs->trans("Crypted").': '.$fuser->pass_indatabase_crypted;
+ else print $langs->trans("Hidden");
+ }
+ print " | ";
+ }
+ print '
'."\n";
+
+ // Administrator
+ print '| '.$langs->trans("Administrator").' | ';
+ if (! empty($conf->multicompany->enabled) && $fuser->admin && ! $fuser->entity)
+ {
+ print $html->textwithpicto(yn($fuser->admin),$langs->trans("SuperAdministratorDesc"),1,"superadmin");
+ }
+ else if ($fuser->admin)
+ {
+ print $html->textwithpicto(yn($fuser->admin),$langs->trans("AdministratorDesc"),1,"admin");
+ }
+ else
+ {
+ print yn($fuser->admin);
+ }
print ' |
'."\n";
- // Type
- print '| '.$langs->trans("Type").' | ';
- if ($fuser->societe_id)
- {
- print $html->textwithpicto($langs->trans("External"),$langs->trans("InternalExternalDesc"));
- }
- else if ($fuser->ldap_sid)
- {
- print $langs->trans("DomainUser",$ldap->domainFQDN);
- }
- else
- {
- print $html->textwithpicto($langs->trans("Internal"),$langs->trans("InternalExternalDesc"));
- }
+ // Type
+ print ' |
| '.$langs->trans("Type").' | ';
+ if ($fuser->societe_id)
+ {
+ print $html->textwithpicto($langs->trans("External"),$langs->trans("InternalExternalDesc"));
+ }
+ else if ($fuser->ldap_sid)
+ {
+ print $langs->trans("DomainUser",$ldap->domainFQDN);
+ }
+ else
+ {
+ print $html->textwithpicto($langs->trans("Internal"),$langs->trans("InternalExternalDesc"));
+ }
print ' |
'."\n";
- // Tel pro
- print '| '.$langs->trans("PhonePro").' | ';
- print ''.dol_print_phone($fuser->office_phone,'',0,0,1).' | ';
+ // Tel pro
+ print '
| '.$langs->trans("PhonePro").' | ';
+ print ''.dol_print_phone($fuser->office_phone,'',0,0,1).' | ';
print '
'."\n";
- // Tel mobile
- print '| '.$langs->trans("PhoneMobile").' | ';
- print ''.dol_print_phone($fuser->user_mobile,'',0,0,1).' | ';
+ // Tel mobile
+ print '
| '.$langs->trans("PhoneMobile").' | ';
+ print ''.dol_print_phone($fuser->user_mobile,'',0,0,1).' | ';
print '
'."\n";
- // Fax
- print '| '.$langs->trans("Fax").' | ';
- print ''.dol_print_phone($fuser->office_fax,'',0,0,1).' | ';
+ // Fax
+ print '
| '.$langs->trans("Fax").' | ';
+ print ''.dol_print_phone($fuser->office_fax,'',0,0,1).' | ';
print '
'."\n";
- // EMail
- print '| '.$langs->trans("EMail").' | ';
- print ''.dol_print_email($fuser->email,0,0,1).' | ';
- print "
\n";
+ // EMail
+ print '| '.$langs->trans("EMail").' | ';
+ print ''.dol_print_email($fuser->email,0,0,1).' | ';
+ print "
\n";
- // Statut
- print '| '.$langs->trans("Status").' | ';
- print '';
- print $fuser->getLibStatut(4);
- print ' | ';
+ // Signature
+ print '
| '.$langs->trans('Signature').' | ';
+ print ''.$fuser->signature.' | ';
+ print "
\n";
+
+ // Statut
+ print '| '.$langs->trans("Status").' | ';
+ print '';
+ print $fuser->getLibStatut(4);
+ print ' | ';
print '
'."\n";
- print '| '.$langs->trans("LastConnexion").' | ';
- print ''.dol_print_date($fuser->datelastlogin,"dayhour").' | ';
- print "
\n";
+ print '| '.$langs->trans("LastConnexion").' | ';
+ print ''.dol_print_date($fuser->datelastlogin,"dayhour").' | ';
+ print "
\n";
- print '| '.$langs->trans("PreviousConnexion").' | ';
- print ''.dol_print_date($fuser->datepreviouslogin,"dayhour").' | ';
- print "
\n";
+ print '| '.$langs->trans("PreviousConnexion").' | ';
+ print ''.dol_print_date($fuser->datepreviouslogin,"dayhour").' | ';
+ print "
\n";
- if (preg_match('/myopenid/',$conf->authmode))
- {
- print '| '.$langs->trans("url_openid").' | ';
- print ''.$fuser->openid.' | ';
- print "
\n";
- }
- // Autres caracteristiques issus des autres modules
+ if (preg_match('/myopenid/',$conf->authmode))
+ {
+ print '| '.$langs->trans("url_openid").' | ';
+ print ''.$fuser->openid.' | ';
+ print "
\n";
+ }
+ // Autres caracteristiques issus des autres modules
- // Module Webcalendar
- if ($conf->webcalendar->enabled)
- {
- $langs->load("other");
- print '| '.$langs->trans("LoginWebcal").' | ';
- print ''.$fuser->webcal_login.' | ';
+ // Module Webcalendar
+ if ($conf->webcalendar->enabled)
+ {
+ $langs->load("other");
+ print '
| '.$langs->trans("LoginWebcal").' | ';
+ print ''.$fuser->webcal_login.' | ';
print '
'."\n";
- }
+ }
- // Module Phenix
- if ($conf->phenix->enabled)
- {
- $langs->load("other");
- print '| '.$langs->trans("LoginPhenix").' | ';
- print ''.$fuser->phenix_login.' | ';
- print "
\n";
- print '| '.$langs->trans("PassPhenix").' | ';
- print ''.preg_replace('/./i','*',$fuser->phenix_pass_crypted).' | ';
+ // Module Phenix
+ if ($conf->phenix->enabled)
+ {
+ $langs->load("other");
+ print '
| '.$langs->trans("LoginPhenix").' | ';
+ print ''.$fuser->phenix_login.' | ';
+ print "
\n";
+ print '| '.$langs->trans("PassPhenix").' | ';
+ print ''.preg_replace('/./i','*',$fuser->phenix_pass_crypted).' | ';
print '
'."\n";
- }
+ }
- // Company / Contact
- if ($conf->societe->enabled)
- {
- print '| '.$langs->trans("LinkToCompanyContact").' | ';
- print '';
- if ($fuser->societe_id > 0)
- {
- $societe = new Societe($db);
- $societe->fetch($fuser->societe_id);
- print $societe->getNomUrl(1,'');
- }
- else
- {
- print $langs->trans("ThisUserIsNot");
- }
- if ($fuser->contact_id)
- {
- $contact = new Contact($db);
- $contact->fetch($fuser->contact_id);
- if ($fuser->societe_id > 0) print ' / ';
- else print ' ';
- print ''.img_object($langs->trans("ShowContact"),'contact').' '.dol_trunc($contact->getFullName($langs),32).'';
- }
- print ' | ';
+ // Company / Contact
+ if ($conf->societe->enabled)
+ {
+ print '
| '.$langs->trans("LinkToCompanyContact").' | ';
+ print '';
+ if ($fuser->societe_id > 0)
+ {
+ $societe = new Societe($db);
+ $societe->fetch($fuser->societe_id);
+ print $societe->getNomUrl(1,'');
+ }
+ else
+ {
+ print $langs->trans("ThisUserIsNot");
+ }
+ if ($fuser->contact_id)
+ {
+ $contact = new Contact($db);
+ $contact->fetch($fuser->contact_id);
+ if ($fuser->societe_id > 0) print ' / ';
+ else print ' ';
+ print ''.img_object($langs->trans("ShowContact"),'contact').' '.dol_trunc($contact->getFullName($langs),32).'';
+ }
+ print ' | ';
print '
'."\n";
- }
+ }
- // Module Adherent
- if ($conf->adherent->enabled)
- {
- $langs->load("members");
- print '| '.$langs->trans("LinkedToDolibarrMember").' | ';
- print '';
- if ($fuser->fk_member)
- {
- $adh=new Adherent($db);
- $adh->fetch($fuser->fk_member);
- $adh->ref=$adh->getFullname($langs); // Force to show login instead of id
- print $adh->getNomUrl(1);
- }
- else
- {
- print $langs->trans("UserNotLinkedToMember");
- }
- print ' | ';
+ // Module Adherent
+ if ($conf->adherent->enabled)
+ {
+ $langs->load("members");
+ print '
| '.$langs->trans("LinkedToDolibarrMember").' | ';
+ print '';
+ if ($fuser->fk_member)
+ {
+ $adh=new Adherent($db);
+ $adh->fetch($fuser->fk_member);
+ $adh->ref=$adh->getFullname($langs); // Force to show login instead of id
+ print $adh->getNomUrl(1);
+ }
+ else
+ {
+ print $langs->trans("UserNotLinkedToMember");
+ }
+ print ' | ';
print '
'."\n";
- }
+ }
- print "
\n";
+ print "