diff --git a/htdocs/user/card.php b/htdocs/user/card.php index fb3ad2fe3f0..d2c96ab7950 100644 --- a/htdocs/user/card.php +++ b/htdocs/user/card.php @@ -1784,15 +1784,6 @@ else dol_fiche_head($head, 'user', $title, 0, 'user'); - $rowspan=22; - if (isset($conf->file->main_authentication) && preg_match('/openid/',$conf->file->main_authentication) && ! empty($conf->global->MAIN_OPENIDURL_PERUSER)) $rowspan++; - if (! empty($conf->societe->enabled)) $rowspan++; - if (! empty($conf->adherent->enabled)) $rowspan++; - if (! empty($conf->skype->enabled)) $rowspan++; - if (! empty($conf->salaries->enabled) && ! empty($user->rights->salaries->read)) $rowspan = $rowspan+3; - if (! empty($conf->agenda->enabled)) $rowspan++; - if (! empty($conf->accounting->enabled)) $rowspan++; - print '
| '; - print $form->showphoto('userphoto',$object,100,0,$caneditfield,'photowithmargin','small'); - print ' | '; - print ''; // Firstname @@ -1841,6 +1826,14 @@ else } print ''; + // Photo + print '|
| '.$langs->trans("Photo").' | '; + print ''; + print $form->showphoto('userphoto',$object,100,0,$caneditfield,'photowithmargin','small'); + print ' | '; + print '
| '.fieldLabel('Employee','employee',0).' | '; |