diff --git a/include/class_html_input.php b/include/class_html_input.php index 20991f0db..ab1cf319d 100755 --- a/include/class_html_input.php +++ b/include/class_html_input.php @@ -426,7 +426,7 @@ class HtmlInput static function anchor_close($div) { $r=''; - $r.='
'; + $r.='
'; $r.= ''._('Fermer').''; $r.='
'; return $r; @@ -438,8 +438,11 @@ class HtmlInput */ static function button_action($action,$javascript,$id="xx",$p_class="button") { + if ($id=="xx"){ + $id=HtmlInput::generate_id("xx"); + } $r=""; - $r.=''; + $r.=''; return $r; } @@ -453,8 +456,8 @@ class HtmlInput static function anchor_hide($action,$javascript) { $r=''; - $r.='
'; - $r.= ''.$action.''; + $r.='
'; + $r.= ''.$action.''; $r.='
'; return $r; } @@ -684,6 +687,7 @@ class HtmlInput { if ($mod=='close') $r=HtmlInput::anchor_close($div); if ($mod=='hide') $r=HtmlInput::anchor_hide(_('Fermer'),"$('$div').hide()"); + if ( $mod == 'none') $r=""; $r.=h2($name,' class="title" '); return $r; }