This commit is contained in:
Jose Gonzalez 2023-02-24 14:34:32 +01:00
parent 47a433c312
commit 4e2af1d5f2
4 changed files with 51 additions and 30 deletions

View File

@ -186,14 +186,14 @@ function mainInsertData()
} }
$table = new stdClass(); $table = new stdClass();
$table->class = 'databox'; $table->class = 'databox filter-table-adv';
$table->style = []; $table->style = [];
$table->cellstyle[0][0] = 'width: 0'; $table->cellstyle[0][0] = 'width: 0';
$table->cellstyle[0][1] = 'width: 0'; $table->cellstyle[0][1] = 'width: 0';
$table->data = []; $table->data = [];
$table->data[0][0] = __('Agent'); $table->data[0][0] = '<label>'.__('Agent').'</label>';
$table->data[0][1] = __('Module'); $table->data[0][1] = '<label>'.__('Module').'</label>';
$table->data[0][2] = __('Date'); $table->data[0][2] = '<label>'.__('Date').'</label>';
$params = []; $params = [];
$params['return'] = true; $params['return'] = true;
$params['show_helptip'] = true; $params['show_helptip'] = true;
@ -227,10 +227,23 @@ function mainInsertData()
$table->data[1][2] .= '&nbsp;'; $table->data[1][2] .= '&nbsp;';
$table->data[1][2] .= html_print_input_text('time', ($save === true) ? date(TIME_FORMAT) : $time, '', 10, 7, true); $table->data[1][2] .= html_print_input_text('time', ($save === true) ? date(TIME_FORMAT) : $time, '', 10, 7, true);
$table->data[2][0] = __('Data'); $table->data[2][0] = '<label>'.__('Data').'</label>';
$table->data[2][1] = __('CSV'); $table->data[2][1] = '<label>'.__('CSV').'</label>';
$table->data[3][0] = html_print_input_text('data', $data, __('Data'), 40, 60, true); $table->data[3][0] = html_print_input_text(
$table->data[3][1] = html_print_input_file('csv', true); 'data',
$data,
__('Data'),
40,
60,
true
);
$table->data[3][1] = html_print_div(
[
'class' => '',
'content' => html_print_input_file('csv', true),
],
true
);
echo "<form method='post' enctype='multipart/form-data'>"; echo "<form method='post' enctype='multipart/form-data'>";

View File

@ -42,19 +42,6 @@ if (! check_acl($config['id_user'], 0, 'PM') && ! is_user_admin($config['id_user
$icons = get_list_os_icons_dir(); $icons = get_list_os_icons_dir();
echo '<form id="form_setup" method="post">';
$table = new stdClass();
$table->width = '100%';
$table->class = 'databox filters';
$table->style[0] = 'width: 15%';
$table->data[0][0] = __('Name:');
$table->data[0][1] = html_print_input_text('name', $name, __('Name'), 20, 30, true, false, false, '', 'w250px');
$table->data[1][0] = __('Description');
$table->data[1][1] = html_print_textarea('description', 5, 20, $description, '', true, 'w250px');
$table->data[2][0] = __('Icon');
$iconData = []; $iconData = [];
$iconData[] = html_print_select( $iconData[] = html_print_select(
$icons, $icons,
@ -75,14 +62,32 @@ $iconData[] = html_print_div(
true true
); );
$table->data[2][1] = html_print_div( echo '<form id="form_setup" method="post">';
[ $table = new stdClass();
'style' => 'display: flex;align-items: center;', $table->width = '100%';
'content' => implode('', $iconData), $table->class = 'databox filter-table-adv';
],
true // $table->style[0] = 'width: 15%';
$table->data[0][] = html_print_label_input_block(
__('Name'),
html_print_input_text('name', $name, __('Name'), 20, 30, true, false, false, '', 'w250px')
); );
$table->data[0][] = html_print_label_input_block(
__('Icon'),
html_print_div(
[
'class' => 'flex-row-center',
'content' => implode('', $iconData),
],
true
)
);
$table->data[1][] = html_print_label_input_block(
__('Description'),
html_print_textarea('description', 5, 20, $description, '', true, 'w250px')
);
html_print_table($table); html_print_table($table);

View File

@ -9909,14 +9909,14 @@ div#err_msg_centralised {
.inputFile { .inputFile {
background-color: #f6f7fb; background-color: #f6f7fb;
height: 16px; height: 16px;
/*font-family: "lato";*/ font-size: 12px !important;
font-size: 12px;
padding: 5.5pt 20pt; padding: 5.5pt 20pt;
cursor: pointer; cursor: pointer;
color: #14524f; color: #14524f !important;
border: 2px solid #14524f; border: 2px solid #14524f;
box-shadow: none; box-shadow: none;
border-radius: 50px; border-radius: 50px;
align-self: baseline;
} }
.inputFile > input[type="file"] { .inputFile > input[type="file"] {

View File

@ -557,6 +557,9 @@ table.filter-table-adv td > div .label-thin {
font-weight: 400; font-weight: 400;
} }
table.databox.filter-table-adv {
padding: 10px;
}
/* /*
padding-right: calc(100% - 1024px); padding-right: calc(100% - 1024px);
*/ */