changed selectboxes width to fit length of the fields

This commit is contained in:
alejandro-campos 2018-06-27 11:10:47 +02:00
parent 6ef2d537ec
commit 2a2a322f55
1 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ foreach ($fields_available as $key=>$available) {
} }
$table->data[0][0] = '<b>' . __('Fields available').'</b>'; $table->data[0][0] = '<b>' . __('Fields available').'</b>';
$table->data[1][0] = html_print_select ($fields_available, 'fields_available[]', true, '', '', '', true, true, false, '', false, 'width: 200px'); $table->data[1][0] = html_print_select ($fields_available, 'fields_available[]', true, '', '', '', true, true, false, '', false, 'width: 300px');
$table->data[1][1] = '<a href="javascript:">' . $table->data[1][1] = '<a href="javascript:">' .
html_print_image('images/darrowright.png', true, html_print_image('images/darrowright.png', true,
array('id' => 'right', 'title' => __('Add fields to select'))) . array('id' => 'right', 'title' => __('Add fields to select'))) .
@ -192,7 +192,7 @@ $table->data[1][1] .= '<br><br><br><br><a href="javascript:">' .
$table->data[0][1] = ''; $table->data[0][1] = '';
$table->data[0][2] = '<b>' . __('Fields selected') . '</b>'; $table->data[0][2] = '<b>' . __('Fields selected') . '</b>';
$table->data[1][2] = html_print_select($result_selected, $table->data[1][2] = html_print_select($result_selected,
'fields_selected[]', true, '', '', '', true, true, false, '', false, 'width: 200px'); 'fields_selected[]', true, '', '', '', true, true, false, '', false, 'width: 300px');
echo '<form id="custom_events" method="post" action="index.php?sec=geventos&sec2=godmode/events/events&section=fields&amp;pure='.$config['pure'].'">'; echo '<form id="custom_events" method="post" action="index.php?sec=geventos&sec2=godmode/events/events&section=fields&amp;pure='.$config['pure'].'">';
html_print_table($table); html_print_table($table);