From 147d256a0fc3239f6213250cd9778031d8748e5a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 20 Mar 2008 21:54:56 +0000 Subject: [PATCH] Fix: Bad selection of hour --- htdocs/fichinter/fiche.php | 4 ++-- htdocs/html.form.class.php | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 72c8ba7e514..0135c7a214c 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2007 Laurent Destailleur + * Copyright (C) 2004-2008 Laurent Destailleur * Copyright (C) 2005-2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -767,7 +767,7 @@ elseif ($_GET["id"] > 0) $html->select_date($objp->date_intervention,'di',0,0,0,"date_intervention"); print ''; - // Dur�e + // Duration print ''; $html->select_duree('duration',$objp->duree); print ''; diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 401175de7f0..294d6ad2506 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -2672,9 +2672,9 @@ class Form } /** - \brief Fonction servant a afficher une durée dans une liste déroulante - \param prefix prefix - \param iSecond Nombre de secondes + \brief Fonction servant a afficher une durée dans une liste déroulante + \param prefix prefix + \param iSecond Nombre de secondes */ function select_duree($prefix,$iSecond='') { @@ -2683,12 +2683,12 @@ class Form $hourSelected = ConvertSecondToTime($iSecond,'hour'); $minSelected = ConvertSecondToTime($iSecond,'min'); } + print ''; - for ($min = 0 ; $min <= 55 ; $min=$min+5) + for ($min = 0; $min <= 55; $min=$min+5) { print '