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 ''; print ''; - print ''; print "\n"; + // Note print "".''; - print ''; + print ''; print "\n"; // Autres caractéristiques issus des autres modules @@ -1035,8 +1049,8 @@ else print ''; print ''; print '
'.$langs->trans("Lastname").''.$fuser->nom.''; + 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").'
'.$langs->trans("Note").''.nl2br($fuser->note).' '.nl2br($fuser->note).' 
'; - - $rowspan=12; + + $rowspan=11; print ''; print '
'.$langs->trans("Lastname").''; @@ -1052,7 +1066,7 @@ else { print ''; } - if ($caneditfield) + if ($caneditfield) { print '

'; print ''; - print "".'
'.$langs->trans("PhotoFile").'
'; @@ -1176,12 +1190,21 @@ else else print $fuser->email; print '
'.$langs->trans("Note").''; + print '
'.$langs->trans("Note").''; if ($caneditfield) { - 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 ''; + } } else {