diff --git a/htdocs/install/check.php b/htdocs/install/check.php index 8b11814c33b..27df27f8c1c 100644 --- a/htdocs/install/check.php +++ b/htdocs/install/check.php @@ -389,7 +389,7 @@ else // Show title if (! empty($conf->global->MAIN_VERSION_LAST_UPGRADE) || ! empty($conf->global->MAIN_VERSION_LAST_INSTALL)) { - print $langs->trans("VersionLastUpgrade").': '.(empty($conf->global->MAIN_VERSION_LAST_UPGRADE)?$conf->global->MAIN_VERSION_LAST_INSTALL:$conf->global->MAIN_VERSION_LAST_UPGRADE).'
'; + print $langs->trans("VersionLastUpgrade").': '.(empty($conf->global->MAIN_VERSION_LAST_UPGRADE)?$conf->global->MAIN_VERSION_LAST_INSTALL:$conf->global->MAIN_VERSION_LAST_UPGRADE).' - '; print $langs->trans("VersionProgram").': '.DOL_VERSION.''; //print ' '.img_warning($langs->trans("RunningUpdateProcessMayBeRequired")); print '
'; @@ -397,18 +397,17 @@ else } else print "
\n"; - print $langs->trans("InstallEasy")." "; - print $langs->trans("ChooseYourSetupMode"); - - print '
'; + //print $langs->trans("InstallEasy")." "; + print '

'.$langs->trans("ChooseYourSetupMode").'...

'; $foundrecommandedchoice=0; $available_choices = array(); $notavailable_choices = array(); - // Show first install line - $choice = "\n".''.$langs->trans("FreshInstall").''; + // Show line of first install choice + $choice = ''."\n"; + $choice .= ''.$langs->trans("FreshInstall").''; $choice .= ''; $choice .= ''; $choice .= $langs->trans("FreshInstallDesc"); @@ -429,15 +428,16 @@ else } else { - $choice .= $langs->trans("InstallNotAllowed"); + $choice .= ($foundrecommandedchoice ? '' : '').$langs->trans("InstallNotAllowed").($foundrecommandedchoice ? '' : ''); } - $choice .= ''; + $choice .= ''."\n"; $choice .= ''."\n"; + $positionkey = ($foundrecommandedchoice ? 999 : 0); if ($allowinstall) { - $available_choices[] = $choice; + $available_choices[$positionkey] = $choice; } else { - $notavailable_choices[] = $choice; + $notavailable_choices[$positionkey] = $choice; } // Show upgrade lines @@ -508,7 +508,8 @@ else } } - $choice .= "\n".''; + $choice .= "\n".''."\n"; + $choice .= ''; $choice .= ''.$langs->trans("Upgrade").'
'.$newversionfrom.$newversionfrombis.' -> '.$newversionto.'
'; $choice .= ''; $choice .= $langs->trans("UpgradeDesc"); @@ -541,7 +542,7 @@ else } if ($disabled) { - $choice .= ''.$langs->trans("NotAvailable").''; + $choice .= ''.$langs->trans("NotYetAvailable").''; } else { @@ -556,9 +557,9 @@ else $choice .= ''."\n"; if ($allowupgrade) { - $available_choices[] = $choice; + $available_choices[$count] = $choice; } else { - $notavailable_choices[] = $choice; + $notavailable_choices[$count] = $choice; } } @@ -570,6 +571,7 @@ else } // Array of install choices + krsort($available_choices, SORT_NATURAL); print"\n"; print ''; foreach ($available_choices as $choice) { diff --git a/htdocs/install/default.css b/htdocs/install/default.css index 0e1e23f8f2c..7a3bb7b3290 100644 --- a/htdocs/install/default.css +++ b/htdocs/install/default.css @@ -82,6 +82,9 @@ div.soustitre { .minwidth400imp { min-width: 400px !important; } .minwidth500imp { min-width: 500px !important; } +tr.trlineforchoice { + height: 4em; +} /* Force values for small screen 570 */ @media only screen and (max-width: 570px)