From 285eaad4516610bfd23bd3887e831e61ed7da6ee Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 8 Aug 2007 01:30:00 +0000 Subject: [PATCH] =?UTF-8?q?Qual:=20Am=E9lioration=20messages=20a=20l'insta?= =?UTF-8?q?ll=20New:=20Si=20logo=20entreprise=20defini,=20on=20utilise=20c?= =?UTF-8?q?elui=20la=20sur=20logon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/user/passwordforgotten.php | 51 +++++++++++++++++-------------- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/htdocs/user/passwordforgotten.php b/htdocs/user/passwordforgotten.php index 1f8af95db90..227e27deda9 100644 --- a/htdocs/user/passwordforgotten.php +++ b/htdocs/user/passwordforgotten.php @@ -162,30 +162,30 @@ print ''."\n"; print ''."\n"; // Body -print ''; +print ''."\n"; // Form -print '
'; -print ''; +print ''."\n"; +print ''."\n"; // Table 1 -print ''; +print '
'."\n"; if (file_exists(DOL_DOCUMENT_ROOT.'/logo.png')) { print ''; + print ''."\n"; } else { - print ''; + print ''."\n"; } -print '
'; - print '
Dolibarr '.DOL_VERSION.'
Dolibarr '.DOL_VERSION.'
'; -print '
'; +print ''."\n"; +print '
'."\n"; // Table 2 -print ''; +print '
'."\n"; -print ''; +print ''."\n"; print ''; $disabled='disabled'; @@ -193,37 +193,42 @@ if ($mode == 'dolibarr') $disabled=''; print ''; +$title=''; // Affiche logo du theme si existe, sinon logo commun -if (file_exists(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/img/login_logo.png')) +$urllogo=DOL_URL_ROOT.'/theme/login_logo.png'; +if (is_readable($conf->societe->dir_logos.'/'.$mysoc->logo)) { - print ''; + $urllogo=DOL_URL_ROOT.'/viewimage.php?modulepart=companylogo&file='.urlencode($mysoc->logo); + $height=100; // \TODO Forcer la hauteur uniquement si hauteur > 100 ou largeur > 100 } -else +elseif (is_readable(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/img/login_logo.png')) { - print ''; + $urllogo=DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/login_logo.png'; + $height=80; } +print ''; -print ''; +print ''."\n"; -print "".''; -print "
 
 
  '.$langs->trans("Login").'  
\n"; +print "".''."\n"; +print ""."\n"; -print "
"; +print ""."\n"; -print '
'; +print '
'."\n"; if ($mode == 'dolibarr') { - print '
'.$langs->trans("SendNewPasswordDesc").'

'; + print '
'.$langs->trans("SendNewPasswordDesc").'

'."\n"; } else { - print '
'.$langs->trans("AuthenticationDoesNotAllowSendNewPassword",$mode).'
'; + print '
'.$langs->trans("AuthenticationDoesNotAllowSendNewPassword",$mode).'
'."\n"; } -print '
'; +print '
'."\n"; if ($message) { print $message.'
'; } print ''.$langs->trans("BackToLoginPage").''; -print '
'; +print '
'."\n"; print "
"; print "
";