diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index 705091a0f7e..78401267feb 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -456,7 +456,7 @@ if ($_GET["id"] > 0) $resql = $db->query($sql); if ($resql) { - $opt = ""; + $opt = ''; if ($resql) { $num = $db->num_rows($resql); diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 52888ed14a8..8c90a9accdc 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -104,7 +104,7 @@ class Form if ($selected > 0 && $selected == $obj->rowid) { - print ''; + print ''; } else { @@ -212,7 +212,7 @@ class Form if ($selected > 0 && $selected == $obj->rowid) { $foundselected=true; - print ''; + print ''; } else { @@ -291,7 +291,7 @@ class Form { if ($selected == $type_available[$i]) { - print ''; + print ''; } else { @@ -331,7 +331,7 @@ class Form $obj = $this->db->fetch_object($resql); if ($selected > 0 && $selected == $obj->idp) { - print ''; + print ''; } else { @@ -375,7 +375,7 @@ class Form if ($selected && $selected == $obj->idp) { - print ''; + print ''; } else { @@ -421,7 +421,7 @@ class Form $obj = $this->db->fetch_object(); if (!empty($selected) && $selected == $obj->rowid) { - print ''; + print ''; } else { @@ -460,7 +460,7 @@ class Form if ($result) { print ''; } @@ -1034,41 +1031,43 @@ class Form $shour = 0; $smin = 0; - print ''; } for ($day = 1 ; $day <= 31; $day++) - { - if ($day == $sday) - { - print ""; + } print ""; print '"; // Année @@ -1081,37 +1080,39 @@ class Form print '\n"; + { + if ($year == $syear) + { + print ""; + } + print "\n"; } if ($h) { print 'H\n"; @@ -1119,22 +1120,23 @@ class Form { print 'M\n"; + for ($min = 0; $min < 60 ; $min++) + { + if (strlen($min) < 2) + { + $min = "0" . $min; + } + if ($min == $smin) + { + print ""; + } + print "M\n"; } } @@ -1164,7 +1166,7 @@ class Form print "\n"; $i++; @@ -1219,7 +1221,7 @@ class Form // Si il faut présélectionner une valeur if ($id && $id == $key) { - print "selected"; + print 'selected="true"'; } if ($key_libelle) @@ -1268,13 +1270,13 @@ class Form print ''."\n"; }