From 07407f46a7ff33bc588548a23c3f6443aa76e727 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 24 Aug 2018 15:02:19 +0200 Subject: [PATCH] Remove colspan --- htdocs/core/class/html.form.class.php | 30 +++++++++++++-------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 6fe2dffd3d3..67b1e4c1bf0 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3689,7 +3689,7 @@ class Form // Now add questions $more.=''."\n"; - $more.=''."\n"; + if (! empty($formquestion['text'])) $more.=''."\n"; foreach ($formquestion as $key => $input) { if (is_array($input) && ! empty($input)) @@ -3700,16 +3700,16 @@ class Form if ($input['type'] == 'text') { - $more.=''."\n"; + $more.=''."\n"; } else if ($input['type'] == 'password') { - $more.=''."\n"; + $more.=''."\n"; } else if ($input['type'] == 'select') { $more.=''."\n"; } @@ -3722,7 +3722,6 @@ class Form if (is_bool($input['value']) && $input['value']) $more.=' checked'; if (isset($input['disabled'])) $more.=' disabled'; $more.=' />'; - $more.=''; $more.=''."\n"; } else if ($input['type'] == 'radio') @@ -3733,10 +3732,9 @@ class Form $more.=''; if ($i==0) $more.=''; else $more.=''; - $more.=''."\n"; $formquestion[] = array('name'=>$input['name'].'day'); @@ -3757,14 +3755,14 @@ class Form else if ($input['type'] == 'other') { $more.=''."\n"; } else if ($input['type'] == 'onecolumn') { - $more.=''."\n"; } @@ -3818,14 +3816,14 @@ class Form $( "#'.$dialogconfirm.'" ).dialog( { autoOpen: '.($autoOpen ? "true" : "false").','; - if ($newselectedchoice == 'no') - { - $formconfirm.=' + if ($newselectedchoice == 'no') + { + $formconfirm.=' open: function() { $(this).parent().find("button.ui-button:eq(2)").focus(); },'; - } - $formconfirm.=' + } + $formconfirm.=' resizable: false, height: "'.$height.'", width: "'.$width.'",
'.(! empty($formquestion['text'])?$formquestion['text']:'').'
'.$formquestion['text'].'
'.$input['label'].'
'.$input['label'].'
'.$input['label'].'
'.$input['label'].'
'; - if (! empty($input['label'])) $more.=$input['label'].''; + if (! empty($input['label'])) $more.=$input['label'].''; $more.=$this->selectarray($input['name'],$input['values'],$input['default'],1,0,0,$moreattr,0,0,0,'',$morecss); $more.='
 
'.$input['label'].' '; - $more.=''; + $more.=''; $more.=$this->select_date($input['value'],$input['name'],0,0,0,'',1,0,1); $more.='
'; - if (! empty($input['label'])) $more.=$input['label'].''; + if (! empty($input['label'])) $more.=$input['label'].''; $more.=$input['value']; $more.='
'; + $more.='
'; $more.=$input['value']; $more.='