Fix: all home area pages has the search box first.
This commit is contained in:
parent
2dcbb6ada5
commit
9b2a90b468
@ -71,26 +71,6 @@ print_fiche_titre($langs->trans("HRMArea"));
|
|||||||
|
|
||||||
print '<div class="fichecenter"><div class="fichethirdleft">';
|
print '<div class="fichecenter"><div class="fichethirdleft">';
|
||||||
|
|
||||||
|
|
||||||
if (! empty($conf->holiday->enabled))
|
|
||||||
{
|
|
||||||
$user_id = $user->id;
|
|
||||||
|
|
||||||
$nbaquis=$holiday->getCPforUser($user_id);
|
|
||||||
$nbdeduced=$holiday->getConfCP('nbHolidayDeducted');
|
|
||||||
$nb_holiday = $nbaquis / $nbdeduced;
|
|
||||||
|
|
||||||
print '<table class="noborder nohover" width="100%">';
|
|
||||||
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("Holidays").'</td></tr>';
|
|
||||||
print "<tr ".$bc[0].">";
|
|
||||||
print '<td colspan="3">';
|
|
||||||
print $langs->trans('SoldeCPUser',round($nb_holiday,2)).($nbdeduced != 1 ? ' ('.$nbaquis.' / '.$nbdeduced.')' : '');
|
|
||||||
print '</td>';
|
|
||||||
print '</tr>';
|
|
||||||
print '</table><br>';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Search expenses
|
* Search expenses
|
||||||
*/
|
*/
|
||||||
@ -124,6 +104,26 @@ if (! empty($conf->expensereport->enabled) && $user->rights->expensereport->lire
|
|||||||
print "</table></form><br>";
|
print "</table></form><br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (! empty($conf->holiday->enabled))
|
||||||
|
{
|
||||||
|
$user_id = $user->id;
|
||||||
|
|
||||||
|
$nbaquis=$holiday->getCPforUser($user_id);
|
||||||
|
$nbdeduced=$holiday->getConfCP('nbHolidayDeducted');
|
||||||
|
$nb_holiday = $nbaquis / $nbdeduced;
|
||||||
|
|
||||||
|
print '<table class="noborder nohover" width="100%">';
|
||||||
|
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("Holidays").'</td></tr>';
|
||||||
|
print "<tr ".$bc[0].">";
|
||||||
|
print '<td colspan="3">';
|
||||||
|
print $langs->trans('SoldeCPUser',round($nb_holiday,2)).($nbdeduced != 1 ? ' ('.$nbaquis.' / '.$nbdeduced.')' : '');
|
||||||
|
print '</td>';
|
||||||
|
print '</tr>';
|
||||||
|
print '</table><br>';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
|
print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
|
||||||
|
|
||||||
$max=10;
|
$max=10;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user