mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Fix: Corrige mauvaise syntaxt html
This commit is contained in:
@@ -809,7 +809,11 @@ class Form
|
||||
{
|
||||
global $langs;
|
||||
print '<select class="flat" name="'.$htmlname.'">';
|
||||
$options = array(0=>"non",1=>"oui");
|
||||
$options = array(
|
||||
'-1'=>' ',
|
||||
'0'=>$langs->trans("No"),
|
||||
'1'=>$langs->trans("Yes")
|
||||
);
|
||||
foreach($options as $id => $value)
|
||||
{
|
||||
if ($selected == $id)
|
||||
@@ -1821,15 +1825,11 @@ class Form
|
||||
|
||||
while (list($key, $value) = each ($array))
|
||||
{
|
||||
print '<option value="';
|
||||
if ($value_as_key) print $value;
|
||||
else print $key;
|
||||
print '" ';
|
||||
|
||||
print '<option value="'.($value_as_key?$value:$key).'"';
|
||||
// Si il faut pr<70>s<EFBFBD>lectionner une valeur
|
||||
if ($id && $id == $key)
|
||||
{
|
||||
print 'selected="true"';
|
||||
print ' selected="true"';
|
||||
}
|
||||
|
||||
if ($key_in_label)
|
||||
@@ -1838,7 +1838,7 @@ class Form
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($value == '-') { $value=' '; }
|
||||
if ($value == '' || $value == '-') { $value=' '; }
|
||||
print ">".$value."</option>\n";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user