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.='| '.(! empty($formquestion['text'])?$formquestion['text']:'').' |
'."\n";
+ if (! empty($formquestion['text'])) $more.='| '.$formquestion['text'].' |
'."\n";
foreach ($formquestion as $key => $input)
{
if (is_array($input) && ! empty($input))
@@ -3700,16 +3700,16 @@ class Form
if ($input['type'] == 'text')
{
- $more.='| '.$input['label'].' | |
'."\n";
+ $more.='| '.$input['label'].' | |
'."\n";
}
else if ($input['type'] == 'password')
{
- $more.='| '.$input['label'].' | |
'."\n";
+ $more.='| '.$input['label'].' | |
'."\n";
}
else if ($input['type'] == 'select')
{
$more.='| ';
- 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.=' |
'."\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.='| '.$input['label'].' | ';
else $more.=' | ';
- $more.=' | ';
- $more.='';
+ $more.=' /> '
$more.=$selval;
$more.=' |
'."\n";
$i++;
@@ -3745,7 +3743,7 @@ class Form
else if ($input['type'] == 'date')
{
$more.='| '.$input['label'].' | ';
- $more.='';
+ $more.=' | ';
$more.=$this->select_date($input['value'],$input['name'],0,0,0,'',1,0,1);
$more.=' |
'."\n";
$formquestion[] = array('name'=>$input['name'].'day');
@@ -3757,14 +3755,14 @@ class Form
else if ($input['type'] == 'other')
{
$more.='| ';
- if (! empty($input['label'])) $more.=$input['label'].' | ';
+ if (! empty($input['label'])) $more.=$input['label'].' | ';
$more.=$input['value'];
$more.=' |
'."\n";
}
else if ($input['type'] == 'onecolumn')
{
- $more.='| ';
+ $more.=' |
| ';
$more.=$input['value'];
$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.'",