From 0a0e0e068cb49290bc882a7390d307f98bf8eb4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= <marcosgdf@gmail.com> Date: Mon, 24 Nov 2014 12:45:46 +0100 Subject: [PATCH] Fixed [ bug #1691 ] Don't think the ID should be displayed in holiday module --- htdocs/holiday/define_holiday.php | 11 ++--------- htdocs/langs/en_US/holiday.lang | 1 - 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/htdocs/holiday/define_holiday.php b/htdocs/holiday/define_holiday.php index 217cb16bad1..fa3f745de81 100644 --- a/htdocs/holiday/define_holiday.php +++ b/htdocs/holiday/define_holiday.php @@ -144,17 +144,14 @@ if($cp_events == 1) print '</form><br>'; } -dol_fiche_head(); - print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">'."\n"; print '<input type="hidden" name="action" value="update" />'; print '<table class="noborder" width="100%;">'; print "<tr class=\"liste_titre\">"; -print '<td width="5%">'.$langs->trans('ID').'</td>'; -print '<td width="50%">'.$langs->trans('Employee').'</td>'; +print '<td width="55%">'.$langs->trans('Employee').'</td>'; print '<td width="20%" style="text-align:center">'.$langs->trans('Available').'</td>'; print '<td width="20%" style="text-align:center">'.$langs->trans('Note').'</td>'; -print '<td style="text-align:center">'.$langs->trans('UpdateButtonCP').'</td>'; +print '<td></td>'; print '</tr>'; foreach($listUsers as $users) @@ -163,7 +160,6 @@ foreach($listUsers as $users) $var=!$var; print '<tr '.$bc[$var].' style="height: 20px;">'; - print '<td>'.$users['rowid'].'</td>'; print '<td>'; $userstatic->id=$users['rowid']; $userstatic->lastname=$users['name']; @@ -183,9 +179,6 @@ foreach($listUsers as $users) print '</table>'; print '</form>'; -dol_fiche_end(); - - llxFooter(); $db->close(); diff --git a/htdocs/langs/en_US/holiday.lang b/htdocs/langs/en_US/holiday.lang index 698d34eb539..f5b87fefb08 100644 --- a/htdocs/langs/en_US/holiday.lang +++ b/htdocs/langs/en_US/holiday.lang @@ -48,7 +48,6 @@ ConfirmDeleteCP=Confirm the deletion of this leave request? ErrorCantDeleteCP=Error you don't have the right to delete this leave request. CantCreateCP=You don't have the right to make leave requests. InvalidValidatorCP=You must choose an approbator to your leave request. -UpdateButtonCP=Update CantUpdate=You cannot update this leave request. NoDateDebut=You must select a start date. NoDateFin=You must select an end date. -- GitLab