From 9b2a90b4687a77605e48c2c263fbd32b5e2a27f4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 2 Mar 2015 00:43:17 +0100 Subject: [PATCH] Fix: all home area pages has the search box first. --- htdocs/compta/hrm.php | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/htdocs/compta/hrm.php b/htdocs/compta/hrm.php index 191fb34d2e8..866399ef1cc 100644 --- a/htdocs/compta/hrm.php +++ b/htdocs/compta/hrm.php @@ -71,26 +71,6 @@ print_fiche_titre($langs->trans("HRMArea")); print '
'; - -if (! empty($conf->holiday->enabled)) -{ - $user_id = $user->id; - - $nbaquis=$holiday->getCPforUser($user_id); - $nbdeduced=$holiday->getConfCP('nbHolidayDeducted'); - $nb_holiday = $nbaquis / $nbdeduced; - - print ''; - print ''; - print ""; - print ''; - print ''; - print '
'.$langs->trans("Holidays").'
'; - print $langs->trans('SoldeCPUser',round($nb_holiday,2)).($nbdeduced != 1 ? ' ('.$nbaquis.' / '.$nbdeduced.')' : ''); - print '

'; -} - - /* * Search expenses */ @@ -124,6 +104,26 @@ if (! empty($conf->expensereport->enabled) && $user->rights->expensereport->lire print "
"; } + +if (! empty($conf->holiday->enabled)) +{ + $user_id = $user->id; + + $nbaquis=$holiday->getCPforUser($user_id); + $nbdeduced=$holiday->getConfCP('nbHolidayDeducted'); + $nb_holiday = $nbaquis / $nbdeduced; + + print ''; + print ''; + print ""; + print ''; + print ''; + print '
'.$langs->trans("Holidays").'
'; + print $langs->trans('SoldeCPUser',round($nb_holiday,2)).($nbdeduced != 1 ? ' ('.$nbaquis.' / '.$nbdeduced.')' : ''); + print '

'; +} + + print '
'; $max=10;