Manage agent, modules
This commit is contained in:
parent
3ebfee9ccb
commit
2215097100
|
@ -140,25 +140,26 @@ function quickShell()
|
||||||
ui_print_error_message(__('WebService engine has not been started, please check documentation.'));
|
ui_print_error_message(__('WebService engine has not been started, please check documentation.'));
|
||||||
$wiz->printForm(
|
$wiz->printForm(
|
||||||
[
|
[
|
||||||
'form' => [
|
'form' => [
|
||||||
'method' => 'POST',
|
'method' => 'POST',
|
||||||
'action' => '#',
|
'action' => '#',
|
||||||
],
|
'id' => 'retry_form',
|
||||||
'inputs' => [
|
|
||||||
[
|
|
||||||
'class' => 'w100p',
|
|
||||||
'arguments' => [
|
|
||||||
'name' => 'submit',
|
|
||||||
'label' => __('Retry'),
|
|
||||||
'type' => 'submit',
|
|
||||||
'attributes' => ['icon' => 'next'],
|
|
||||||
'return' => true,
|
|
||||||
],
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
html_print_action_buttons(
|
||||||
|
html_print_submit_button(
|
||||||
|
__('Retry'),
|
||||||
|
'submit',
|
||||||
|
false,
|
||||||
|
[
|
||||||
|
'icon' => 'next',
|
||||||
|
'form' => 'retry_form',
|
||||||
|
],
|
||||||
|
true
|
||||||
|
)
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,6 +169,7 @@ function quickShell()
|
||||||
'action' => '#',
|
'action' => '#',
|
||||||
'class' => 'wizard',
|
'class' => 'wizard',
|
||||||
'method' => 'post',
|
'method' => 'post',
|
||||||
|
'id' => 'connect_form',
|
||||||
],
|
],
|
||||||
'inputs' => [
|
'inputs' => [
|
||||||
[
|
[
|
||||||
|
@ -198,19 +200,24 @@ function quickShell()
|
||||||
'script' => "p=22; if(this.value == 'telnet') { p=23; } $('#text-port').val(p);",
|
'script' => "p=22; if(this.value == 'telnet') { p=23; } $('#text-port').val(p);",
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
[
|
|
||||||
'arguments' => [
|
|
||||||
'type' => 'submit',
|
|
||||||
'label' => __('Connect'),
|
|
||||||
'attributes' => ['icon' => 'cog'],
|
|
||||||
],
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
false,
|
false,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
html_print_action_buttons(
|
||||||
|
html_print_submit_button(
|
||||||
|
__('Connect'),
|
||||||
|
'submit',
|
||||||
|
false,
|
||||||
|
[
|
||||||
|
'icon' => 'cog',
|
||||||
|
'form' => 'connect_form',
|
||||||
|
],
|
||||||
|
true
|
||||||
|
)
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -76,9 +76,9 @@ if ($fields === false) {
|
||||||
$data[0] = '<b>'.$field['name'].'</b>';
|
$data[0] = '<b>'.$field['name'].'</b>';
|
||||||
|
|
||||||
if ($field['display_on_front']) {
|
if ($field['display_on_front']) {
|
||||||
$data[1] = html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
|
$data[1] = html_print_image('images/validate.svg', true, ['class' => 'invert_filter']);
|
||||||
} else {
|
} else {
|
||||||
$data[1] = html_print_image('images/delete.png', true, ['class' => 'invert_filter']);
|
$data[1] = html_print_image('images/delete.svg', true, ['class' => 'invert_filter']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$custom_value = db_get_all_rows_sql(
|
$custom_value = db_get_all_rows_sql(
|
||||||
|
|
|
@ -314,7 +314,7 @@ if ($start_date != $current) {
|
||||||
|
|
||||||
if ($combined) {
|
if ($combined) {
|
||||||
// Pass the $modules before the ajax call.
|
// Pass the $modules before the ajax call.
|
||||||
echo '<div class="combined-graph-container center w100p"'.'data-period="'.$period.'"'.'data-stacked="'.CUSTOM_GRAPH_LINE.'"'.'data-date="'.$date.'"'.'data-height="'.$height.'"'.'>'.html_print_image('images/spinner.gif', true).'</div>';
|
echo '<div class="combined-graph-container center w100p white_box"'.'data-period="'.$period.'"'.'data-stacked="'.CUSTOM_GRAPH_LINE.'"'.'data-date="'.$date.'"'.'data-height="'.$height.'"'.'>'.html_print_image('images/spinner.gif', true).'</div>';
|
||||||
} else {
|
} else {
|
||||||
foreach ($modules as $id_module) {
|
foreach ($modules as $id_module) {
|
||||||
$title = modules_get_agentmodule_name($id_module);
|
$title = modules_get_agentmodule_name($id_module);
|
||||||
|
|
Loading…
Reference in New Issue