diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php
index a925a282f6a..2825ac96dd3 100644
--- a/htdocs/contact/fiche.php
+++ b/htdocs/contact/fiche.php
@@ -445,7 +445,13 @@ if ($user->rights->societe->contact->creer)
}
print '
| '.$langs->trans("DolibarrLogin").' | ';
- if ($contact->user_id) print ''.$contact->user_login.'';
+ if ($contact->user_id)
+ {
+ $user=new User($db);
+ $user->id=$contact->user_id;
+ $result=$user->fetch();
+ print $user->getLoginUrl(1);
+ }
else print $langs->trans("NoDolibarrAccess");
print ' |
';
@@ -562,7 +568,13 @@ if ($_GET["id"] && $_GET["action"] != 'edit')
}
print '| '.$langs->trans("DolibarrLogin").' | ';
- if ($contact->user_id) print ''.$contact->user_login.'';
+ if ($contact->user_id)
+ {
+ $user=new User($db);
+ $user->id=$contact->user_id;
+ $result=$user->fetch();
+ print $user->getLoginUrl(1);
+ }
else print $langs->trans("NoDolibarrAccess");
print ' |
';
diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php
index 5fbabee1e39..c9c3ae6897f 100644
--- a/htdocs/user/fiche.php
+++ b/htdocs/user/fiche.php
@@ -578,9 +578,21 @@ if (($action == 'create') || ($action == 'adduserldap'))
}
print '';
- print '| '.$langs->trans("Note").' | ';
- print " |
\n";
+ print '| ';
+ print $langs->trans("Note");
+ print ' | ';
+ if ($conf->fckeditor->enabled)
+ {
+ require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php");
+ $doleditor=new DolEditor('note','',180,'dolibarr_notes','',false);
+ $doleditor->Create();
+ }
+ else
+ {
+ print '';
+ }
+ print " |
\n";
// Autres caractéristiques issus des autres modules
if ($conf->webcal->enabled)
@@ -714,9 +726,10 @@ else
{
print '';
+ $rowspan=15;
print '| '.$langs->trans("Lastname").' | ';
print ''.$fuser->nom.' | ';
- print '';
+ print ' | ';
if (file_exists($conf->users->dir_output."/".$fuser->id.".jpg"))
{
print ' ';
@@ -843,8 +856,9 @@ else
print ' | '.dolibarr_print_date($fuser->datepreviouslogin,"%d/%m/%Y %H:%M:%S").' | ';
print "
\n";
+ // Note
print "".'| '.$langs->trans("Note").' | ';
- print ''.nl2br($fuser->note).' | ';
+ print ''.nl2br($fuser->note).' | ';
print "
\n";
// Autres caractéristiques issus des autres modules
@@ -1035,8 +1049,8 @@ else
print '