mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
Merge branch 'ent-9662-second-round' into 'develop'
Ent 9662 second round See merge request artica/pandorafms!5621
This commit is contained in:
commit
cf0ef462b9
@ -240,7 +240,28 @@ function pandora_files_repo_operation()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header.
|
// Header.
|
||||||
ui_print_page_header(__('Files repository'), 'images/extensions.png', false, '', false, $onheader);
|
ui_print_standard_header(
|
||||||
|
__('Files repository'),
|
||||||
|
'images/extensions.png',
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
$onheader,
|
||||||
|
[
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Admin tools'),
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Extension manager'),
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Files repository'),
|
||||||
|
],
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
$full_extensions_dir = $config['homedir'].'/'.EXTENSIONS_DIR.'/';
|
$full_extensions_dir = $config['homedir'].'/'.EXTENSIONS_DIR.'/';
|
||||||
include_once $full_extensions_dir.'files_repo/functions_files_repo.php';
|
include_once $full_extensions_dir.'files_repo/functions_files_repo.php';
|
||||||
|
@ -522,10 +522,10 @@ if (file_exists(ENTERPRISE_DIR.'/load_enterprise.php')) {
|
|||||||
if ($config['custom_title1_login']) {
|
if ($config['custom_title1_login']) {
|
||||||
echo io_safe_output($config['custom_title1_login']);
|
echo io_safe_output($config['custom_title1_login']);
|
||||||
} else {
|
} else {
|
||||||
echo __('ONE TOOL TO MONITOR THEM ALL');
|
echo __('ONE TOOL TO RULE THEM ALL');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo __('ONE TOOL TO MONITOR THEM ALL');
|
echo __('ONE TOOL TO RULE THEM ALL');
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</span></div>';
|
echo '</span></div>';
|
||||||
|
@ -184,7 +184,7 @@ if (!$double_auth_enabled
|
|||||||
background: "black"
|
background: "black"
|
||||||
},
|
},
|
||||||
width: 500,
|
width: 500,
|
||||||
height: 400,
|
height: 'auto',
|
||||||
close: function (event, ui) {
|
close: function (event, ui) {
|
||||||
// Abort the ajax request
|
// Abort the ajax request
|
||||||
if (typeof request != 'undefined'){
|
if (typeof request != 'undefined'){
|
||||||
|
@ -866,7 +866,6 @@ if ($agents !== false) {
|
|||||||
// Operating System icon column.
|
// Operating System icon column.
|
||||||
$osIconColumn = html_print_div(
|
$osIconColumn = html_print_div(
|
||||||
[
|
[
|
||||||
'class' => 'main_menu_icon invert_filter',
|
|
||||||
'content' => ui_print_os_icon($agent['id_os'], false, true),
|
'content' => ui_print_os_icon($agent['id_os'], false, true),
|
||||||
],
|
],
|
||||||
true
|
true
|
||||||
@ -885,7 +884,6 @@ if ($agents !== false) {
|
|||||||
// Group icon and name column.
|
// Group icon and name column.
|
||||||
$agentGroupIconColumn = html_print_div(
|
$agentGroupIconColumn = html_print_div(
|
||||||
[
|
[
|
||||||
'class' => 'main_menu_icon invert_filter',
|
|
||||||
'content' => ui_print_group_icon($agent['id_grupo'], true),
|
'content' => ui_print_group_icon($agent['id_grupo'], true),
|
||||||
],
|
],
|
||||||
true
|
true
|
||||||
|
@ -445,9 +445,8 @@ $tableBasicThresholds->rowclass['caption_warning_threshold'] = 'field_half_width
|
|||||||
$tableBasicThresholds->rowclass['warning_threshold'] = 'field_half_width';
|
$tableBasicThresholds->rowclass['warning_threshold'] = 'field_half_width';
|
||||||
$tableBasicThresholds->data['caption_warning_threshold'][0] .= __('Warning threshold').' ';
|
$tableBasicThresholds->data['caption_warning_threshold'][0] .= __('Warning threshold').' ';
|
||||||
|
|
||||||
if ((isset($stringTypeModule) === false || $stringTypeModule === false)) {
|
$tableBasicThresholds->data['caption_warning_threshold'][0] .= '<span class="font_11" id="caption_minmax_warning">('.__('Min / Max').')</span>';
|
||||||
$tableBasicThresholds->data['caption_warning_threshold'][0] .= '<span class="font_11" id="caption_minmax_warning">('.__('Min / Max').')</span>';
|
$tableBasicThresholds->data['warning_threshold'][0] .= html_print_input_text(
|
||||||
$tableBasicThresholds->data['warning_threshold'][0] .= html_print_input_text(
|
|
||||||
'min_warning',
|
'min_warning',
|
||||||
$min_warning,
|
$min_warning,
|
||||||
'',
|
'',
|
||||||
@ -458,8 +457,8 @@ if ((isset($stringTypeModule) === false || $stringTypeModule === false)) {
|
|||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
$classdisabledBecauseInPolicy
|
$classdisabledBecauseInPolicy
|
||||||
);
|
);
|
||||||
$tableBasicThresholds->data['warning_threshold'][1] .= html_print_input_text(
|
$tableBasicThresholds->data['warning_threshold'][1] .= html_print_input_text(
|
||||||
'max_warning',
|
'max_warning',
|
||||||
$max_warning,
|
$max_warning,
|
||||||
'',
|
'',
|
||||||
@ -470,9 +469,9 @@ if ((isset($stringTypeModule) === false || $stringTypeModule === false)) {
|
|||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
$classdisabledBecauseInPolicy
|
$classdisabledBecauseInPolicy
|
||||||
).'</span>';
|
).'</span>';
|
||||||
|
|
||||||
$tableBasicThresholds->data['switch_warning_threshold'][0] .= html_print_switch_radio_button(
|
$tableBasicThresholds->data['switch_warning_threshold'][0] .= html_print_switch_radio_button(
|
||||||
[
|
[
|
||||||
html_print_radio_button_extended('warning_thresholds_checks', 'normal_warning', __('Normal'), ($percentage_warning && $warning_inverse) === false, false, '', '', true, false, '', 'radius-normal_warning'),
|
html_print_radio_button_extended('warning_thresholds_checks', 'normal_warning', __('Normal'), ($percentage_warning && $warning_inverse) === false, false, '', '', true, false, '', 'radius-normal_warning'),
|
||||||
html_print_radio_button_extended('warning_thresholds_checks', 'warning_inverse', __('Inverse interval'), $warning_inverse, $disabledBecauseInPolicy, '', '', true, false, '', 'radius-warning_inverse'),
|
html_print_radio_button_extended('warning_thresholds_checks', 'warning_inverse', __('Inverse interval'), $warning_inverse, $disabledBecauseInPolicy, '', '', true, false, '', 'radius-warning_inverse'),
|
||||||
@ -480,32 +479,30 @@ if ((isset($stringTypeModule) === false || $stringTypeModule === false)) {
|
|||||||
],
|
],
|
||||||
[ 'class' => 'margin-top-10' ],
|
[ 'class' => 'margin-top-10' ],
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($stringTypeModule) === true && $stringTypeModule === true) {
|
$basicThresholdsIntervalWarning = [];
|
||||||
$basicThresholdsIntervalWarning = [];
|
$basicThresholdsIntervalWarning[] = '<span>'.__('Inverse interval').'</span>';
|
||||||
$basicThresholdsIntervalWarning[] = '<span>'.__('Inverse interval').'</span>';
|
$basicThresholdsIntervalWarning[] = html_print_checkbox_switch(
|
||||||
$basicThresholdsIntervalWarning[] = html_print_checkbox_switch(
|
|
||||||
'warning_inverse_string',
|
'warning_inverse_string',
|
||||||
1,
|
1,
|
||||||
$warning_inverse,
|
$warning_inverse,
|
||||||
true,
|
true,
|
||||||
$disabledBecauseInPolicy
|
$disabledBecauseInPolicy
|
||||||
);
|
);
|
||||||
|
|
||||||
$tableBasicThresholds->rowclass['caption_switch_warning_inverse_string'] = 'field_half_width';
|
$tableBasicThresholds->rowclass['caption_switch_warning_inverse_string'] = 'field_half_width';
|
||||||
$tableBasicThresholds->data['caption_switch_warning_inverse_string'][0] = html_print_div(
|
$tableBasicThresholds->data['caption_switch_warning_inverse_string'][0] = html_print_div(
|
||||||
[
|
[
|
||||||
'class' => 'margin-top-10',
|
'class' => 'margin-top-10',
|
||||||
'style' => 'display: flex; flex-direction: row-reverse; align-items: center;',
|
'style' => 'display: flex; flex-direction: row-reverse; align-items: center;',
|
||||||
'content' => implode('', $basicThresholdsIntervalWarning),
|
'content' => implode('', $basicThresholdsIntervalWarning),
|
||||||
],
|
],
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
$tableBasicThresholds->data['caption_warning_threshold'][0] .= '<span class="font_11" id="caption_str_warning">('.__('Str.').')</span>';
|
$tableBasicThresholds->data['caption_warning_threshold'][0] .= '<span class="font_11" id="caption_str_warning">('.__('Str.').')</span>';
|
||||||
$tableBasicThresholds->data['warning_threshold'][0] .= html_print_input_text(
|
$tableBasicThresholds->data['warning_threshold'][0] .= html_print_input_text(
|
||||||
'str_warning',
|
'str_warning',
|
||||||
str_replace('"', '', $str_warning),
|
str_replace('"', '', $str_warning),
|
||||||
'',
|
'',
|
||||||
@ -516,8 +513,7 @@ if (isset($stringTypeModule) === true && $stringTypeModule === true) {
|
|||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
$classdisabledBecauseInPolicy
|
$classdisabledBecauseInPolicy
|
||||||
).'</span>';
|
).'</span>';
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$tableBasicThresholds->data['switch_warning_threshold'][0] .= html_print_div(
|
$tableBasicThresholds->data['switch_warning_threshold'][0] .= html_print_div(
|
||||||
@ -532,9 +528,8 @@ $tableBasicThresholds->data['switch_warning_threshold'][0] .= html_print_div(
|
|||||||
$tableBasicThresholds->rowclass['caption_critical_threshold'] = 'field_half_width pdd_t_10px';
|
$tableBasicThresholds->rowclass['caption_critical_threshold'] = 'field_half_width pdd_t_10px';
|
||||||
$tableBasicThresholds->rowclass['critical_threshold'] = 'field_half_width';
|
$tableBasicThresholds->rowclass['critical_threshold'] = 'field_half_width';
|
||||||
$tableBasicThresholds->data['caption_critical_threshold'][0] .= __('Critical threshold').' ';
|
$tableBasicThresholds->data['caption_critical_threshold'][0] .= __('Critical threshold').' ';
|
||||||
if ((isset($stringTypeModule) === false || $stringTypeModule === false)) {
|
$tableBasicThresholds->data['caption_critical_threshold'][0] .= '<span class="font_11" id="caption_minmax_critical">('.__('Min / Max').')</span>';
|
||||||
$tableBasicThresholds->data['caption_critical_threshold'][0] .= '<span class="font_11" id="caption_minmax_critical">('.__('Min / Max').')</span>';
|
$tableBasicThresholds->data['critical_threshold'][0] .= html_print_input_text(
|
||||||
$tableBasicThresholds->data['critical_threshold'][0] .= html_print_input_text(
|
|
||||||
'min_critical',
|
'min_critical',
|
||||||
$min_critical,
|
$min_critical,
|
||||||
'',
|
'',
|
||||||
@ -545,8 +540,8 @@ if ((isset($stringTypeModule) === false || $stringTypeModule === false)) {
|
|||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
$classdisabledBecauseInPolicy
|
$classdisabledBecauseInPolicy
|
||||||
);
|
);
|
||||||
$tableBasicThresholds->data['critical_threshold'][1] .= html_print_input_text(
|
$tableBasicThresholds->data['critical_threshold'][1] .= html_print_input_text(
|
||||||
'max_critical',
|
'max_critical',
|
||||||
$max_critical,
|
$max_critical,
|
||||||
'',
|
'',
|
||||||
@ -557,9 +552,9 @@ if ((isset($stringTypeModule) === false || $stringTypeModule === false)) {
|
|||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
$classdisabledBecauseInPolicy
|
$classdisabledBecauseInPolicy
|
||||||
).'</span>';
|
).'</span>';
|
||||||
|
|
||||||
$tableBasicThresholds->data['switch_critical_threshold'][0] .= html_print_switch_radio_button(
|
$tableBasicThresholds->data['switch_critical_threshold'][0] .= html_print_switch_radio_button(
|
||||||
[
|
[
|
||||||
html_print_radio_button_extended('critical_thresholds_checks', 'normal_critical', __('Normal'), ($percentage_critical && $critical_inverse) === false, false, '', '', true, false, '', 'radius-normal_critical'),
|
html_print_radio_button_extended('critical_thresholds_checks', 'normal_critical', __('Normal'), ($percentage_critical && $critical_inverse) === false, false, '', '', true, false, '', 'radius-normal_critical'),
|
||||||
html_print_radio_button_extended('critical_thresholds_checks', 'critical_inverse', __('Inverse interval'), $critical_inverse, $disabledBecauseInPolicy, '', '', true, false, '', 'radius-critical_inverse'),
|
html_print_radio_button_extended('critical_thresholds_checks', 'critical_inverse', __('Inverse interval'), $critical_inverse, $disabledBecauseInPolicy, '', '', true, false, '', 'radius-critical_inverse'),
|
||||||
@ -567,40 +562,39 @@ if ((isset($stringTypeModule) === false || $stringTypeModule === false)) {
|
|||||||
],
|
],
|
||||||
[ 'class' => 'margin-top-10' ],
|
[ 'class' => 'margin-top-10' ],
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($stringTypeModule) === true && $stringTypeModule === true) {
|
|
||||||
$basicThresholdsIntervalCritical = [];
|
$basicThresholdsIntervalCritical = [];
|
||||||
$basicThresholdsIntervalCritical[] = '<span>'.__('Inverse interval').'</span>';
|
$basicThresholdsIntervalCritical[] = '<span>'.__('Inverse interval').'</span>';
|
||||||
$basicThresholdsIntervalCritical[] = html_print_checkbox_switch(
|
$basicThresholdsIntervalCritical[] = html_print_checkbox_switch(
|
||||||
'critical_inverse_string',
|
'critical_inverse_string',
|
||||||
1,
|
1,
|
||||||
$critical_inverse,
|
$critical_inverse,
|
||||||
true,
|
true,
|
||||||
$disabledBecauseInPolicy
|
$disabledBecauseInPolicy
|
||||||
);
|
);
|
||||||
|
|
||||||
$tableBasicThresholds->rowclass['caption_switch_critical_inverse_string'] = 'field_half_width';
|
$tableBasicThresholds->rowclass['caption_switch_critical_inverse_string'] = 'field_half_width';
|
||||||
$tableBasicThresholds->data['caption_switch_critical_inverse_string'][0] = html_print_div(
|
$tableBasicThresholds->data['caption_switch_critical_inverse_string'][0] = html_print_div(
|
||||||
[
|
[
|
||||||
'class' => 'margin-top-10',
|
'class' => 'margin-top-10',
|
||||||
'style' => 'display: flex; flex-direction: row-reverse; align-items: center;',
|
'style' => 'display: flex; flex-direction: row-reverse; align-items: center;',
|
||||||
'content' => implode('', $basicThresholdsIntervalCritical),
|
'content' => implode('', $basicThresholdsIntervalCritical),
|
||||||
],
|
],
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
$tableBasicThresholds->data['switch_critical_threshold'][0] .= html_print_div(
|
$tableBasicThresholds->data['switch_critical_threshold'][0] .= html_print_div(
|
||||||
[
|
[
|
||||||
'id' => 'percentage_critical',
|
'id' => 'percentage_critical',
|
||||||
'content' => $divPercentageContent,
|
'content' => $divPercentageContent,
|
||||||
],
|
],
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
$tableBasicThresholds->data['caption_critical_threshold'][0] .= '<span class="font_11" id="caption_str_critical">('.__('Str.').')</span>';
|
$tableBasicThresholds->data['caption_critical_threshold'][0] .= '<span class="font_11" id="caption_str_critical">('.__('Str.').')</span>';
|
||||||
$tableBasicThresholds->data['critical_threshold'][0] .= html_print_input_text(
|
$tableBasicThresholds->data['critical_threshold'][0] .= html_print_input_text(
|
||||||
'str_critical',
|
'str_critical',
|
||||||
str_replace('"', '', $str_critical),
|
str_replace('"', '', $str_critical),
|
||||||
'',
|
'',
|
||||||
@ -611,8 +605,7 @@ if (isset($stringTypeModule) === true && $stringTypeModule === true) {
|
|||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
$classdisabledBecauseInPolicy
|
$classdisabledBecauseInPolicy
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
$table_simple->rowstyle['thresholds_table'] = 'margin-top: 15px;height: 340px;width: 100%';
|
$table_simple->rowstyle['thresholds_table'] = 'margin-top: 15px;height: 340px;width: 100%';
|
||||||
$table_simple->cellclass['thresholds_table'][0] = 'table_section half_section_left';
|
$table_simple->cellclass['thresholds_table'][0] = 'table_section half_section_left';
|
||||||
@ -1623,6 +1616,11 @@ ui_require_jquery_file('json');
|
|||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
$(document).ready (function () {
|
$(document).ready (function () {
|
||||||
var disabledBecauseInPolicy = <?php echo '\''.((empty($disabledBecauseInPolicy) === true) ? '0' : '1').'\''; ?>;
|
var disabledBecauseInPolicy = <?php echo '\''.((empty($disabledBecauseInPolicy) === true) ? '0' : '1').'\''; ?>;
|
||||||
|
var idModuleType = '<?php echo $type_names_hash[$id_module_type]; ?>';
|
||||||
|
if (idModuleType != '') {
|
||||||
|
setModuleType(idModuleType);
|
||||||
|
}
|
||||||
|
|
||||||
$("#right").click (function () {
|
$("#right").click (function () {
|
||||||
jQuery.each($("select[name='id_tag_available[]'] option:selected"), function (key, value) {
|
jQuery.each($("select[name='id_tag_available[]'] option:selected"), function (key, value) {
|
||||||
tag_name = $(value).html();
|
tag_name = $(value).html();
|
||||||
|
@ -69,7 +69,6 @@ if ($is_management_allowed === true) {
|
|||||||
$table->head[4] = '';
|
$table->head[4] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->align[1] = 'center';
|
|
||||||
if ($is_management_allowed === true) {
|
if ($is_management_allowed === true) {
|
||||||
$table->align[4] = 'center';
|
$table->align[4] = 'center';
|
||||||
}
|
}
|
||||||
@ -100,7 +99,7 @@ $table->data = [];
|
|||||||
foreach ($osList as $os) {
|
foreach ($osList as $os) {
|
||||||
$data = [];
|
$data = [];
|
||||||
$data[] = $os['id_os'];
|
$data[] = $os['id_os'];
|
||||||
$data[] = html_print_div(['class' => 'invert_filter main_menu_icon', 'content' => ui_print_os_icon($os['id_os'], false, true)], true);
|
$data[] = ui_print_os_icon($os['id_os'], false, true);
|
||||||
if ($is_management_allowed === true) {
|
if ($is_management_allowed === true) {
|
||||||
if (is_metaconsole() === true) {
|
if (is_metaconsole() === true) {
|
||||||
$osNameUrl = 'index.php?sec=advanced&sec2=advanced/component_management&tab=os_manage&action=edit&tab2=builder&id_os='.$os['id_os'];
|
$osNameUrl = 'index.php?sec=advanced&sec2=advanced/component_management&tab=os_manage&action=edit&tab2=builder&id_os='.$os['id_os'];
|
||||||
|
@ -43,7 +43,7 @@ if (is_ajax() === true) {
|
|||||||
$table = new StdClass();
|
$table = new StdClass();
|
||||||
$table->data = [];
|
$table->data = [];
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->class = 'databox filters table_result_auth';
|
$table->class = 'databox filters table_result_auth filter-table-adv';
|
||||||
$table->size['name'] = '30%';
|
$table->size['name'] = '30%';
|
||||||
$table->style['name'] = 'font-weight: bold';
|
$table->style['name'] = 'font-weight: bold';
|
||||||
|
|
||||||
@ -94,7 +94,11 @@ if (is_ajax() === true) {
|
|||||||
'',
|
'',
|
||||||
30,
|
30,
|
||||||
100,
|
100,
|
||||||
true
|
true,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
'w400px'
|
||||||
);
|
);
|
||||||
$table->data['ldap_server'] = $row;
|
$table->data['ldap_server'] = $row;
|
||||||
|
|
||||||
@ -107,7 +111,11 @@ if (is_ajax() === true) {
|
|||||||
'',
|
'',
|
||||||
10,
|
10,
|
||||||
100,
|
100,
|
||||||
true
|
true,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
'w400px'
|
||||||
);
|
);
|
||||||
$table->data['ldap_port'] = $row;
|
$table->data['ldap_port'] = $row;
|
||||||
|
|
||||||
@ -126,7 +134,10 @@ if (is_ajax() === true) {
|
|||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
0,
|
0,
|
||||||
true
|
true,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
'w400px'
|
||||||
);
|
);
|
||||||
$table->data['ldap_version'] = $row;
|
$table->data['ldap_version'] = $row;
|
||||||
|
|
||||||
@ -189,12 +200,12 @@ if (is_ajax() === true) {
|
|||||||
$alt = '',
|
$alt = '',
|
||||||
60,
|
60,
|
||||||
100,
|
100,
|
||||||
true
|
true,
|
||||||
);
|
false,
|
||||||
$row['control'] .= ui_print_reveal_password(
|
false,
|
||||||
'ldap_admin_pass',
|
'w400px-important'
|
||||||
true
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$table->data['ldap_admin_pass'] = $row;
|
$table->data['ldap_admin_pass'] = $row;
|
||||||
|
|
||||||
// Ldapsearch timeout.
|
// Ldapsearch timeout.
|
||||||
@ -208,7 +219,11 @@ if (is_ajax() === true) {
|
|||||||
'',
|
'',
|
||||||
10,
|
10,
|
||||||
10,
|
10,
|
||||||
true
|
true,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
'w400px'
|
||||||
);
|
);
|
||||||
$table->data['ldap_search_timeout'] = $row;
|
$table->data['ldap_search_timeout'] = $row;
|
||||||
|
|
||||||
@ -239,7 +254,11 @@ if (is_ajax() === true) {
|
|||||||
'',
|
'',
|
||||||
30,
|
30,
|
||||||
100,
|
100,
|
||||||
true
|
true,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
'w400px'
|
||||||
);
|
);
|
||||||
$table->data['ldap_server_secondary'] = $row;
|
$table->data['ldap_server_secondary'] = $row;
|
||||||
|
|
||||||
@ -252,7 +271,11 @@ if (is_ajax() === true) {
|
|||||||
'',
|
'',
|
||||||
10,
|
10,
|
||||||
100,
|
100,
|
||||||
true
|
true,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
'w400px'
|
||||||
);
|
);
|
||||||
$table->data['ldap_port_secondary'] = $row;
|
$table->data['ldap_port_secondary'] = $row;
|
||||||
|
|
||||||
@ -271,7 +294,10 @@ if (is_ajax() === true) {
|
|||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
0,
|
0,
|
||||||
true
|
true,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
'w400px'
|
||||||
);
|
);
|
||||||
$table->data['ldap_version_secondary'] = $row;
|
$table->data['ldap_version_secondary'] = $row;
|
||||||
|
|
||||||
@ -334,11 +360,10 @@ if (is_ajax() === true) {
|
|||||||
$alt = '',
|
$alt = '',
|
||||||
60,
|
60,
|
||||||
100,
|
100,
|
||||||
true
|
true,
|
||||||
);
|
false,
|
||||||
$row['control'] .= ui_print_reveal_password(
|
false,
|
||||||
'ldap_admin_pass_secondary',
|
'w400px-important'
|
||||||
true
|
|
||||||
);
|
);
|
||||||
$table->data['ldap_admin_pass_secondary'] = $row;
|
$table->data['ldap_admin_pass_secondary'] = $row;
|
||||||
break;
|
break;
|
||||||
@ -407,7 +432,11 @@ if (is_ajax() === true) {
|
|||||||
'',
|
'',
|
||||||
10,
|
10,
|
||||||
10,
|
10,
|
||||||
true
|
true,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
'w400px'
|
||||||
);
|
);
|
||||||
$table->data['session_timeout'] = $row;
|
$table->data['session_timeout'] = $row;
|
||||||
|
|
||||||
@ -421,7 +450,7 @@ require_once $config['homedir'].'/include/functions_profile.php';
|
|||||||
$table = new StdClass();
|
$table = new StdClass();
|
||||||
$table->data = [];
|
$table->data = [];
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->class = 'databox filters';
|
$table->class = 'databox filters filter-table-adv';
|
||||||
$table->size['name'] = '30%';
|
$table->size['name'] = '30%';
|
||||||
$table->style['name'] = 'font-weight: bold';
|
$table->style['name'] = 'font-weight: bold';
|
||||||
|
|
||||||
@ -459,12 +488,15 @@ $row['control'] = html_print_select(
|
|||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
0,
|
0,
|
||||||
true
|
true,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
'w400px'
|
||||||
);
|
);
|
||||||
$table->data['auth'] = $row;
|
$table->data['auth'] = $row;
|
||||||
|
|
||||||
// Form.
|
// Form.
|
||||||
echo '<form id="form_setup" method="post">';
|
echo '<form id="form_setup" class="max_floating_element_size" method="post">';
|
||||||
|
|
||||||
if (is_metaconsole() === false) {
|
if (is_metaconsole() === false) {
|
||||||
html_print_input_hidden('update_config', 1);
|
html_print_input_hidden('update_config', 1);
|
||||||
@ -478,17 +510,14 @@ html_print_csrf_hidden();
|
|||||||
|
|
||||||
html_print_table($table);
|
html_print_table($table);
|
||||||
html_print_div([ 'id' => 'table_auth_result' ]);
|
html_print_div([ 'id' => 'table_auth_result' ]);
|
||||||
html_print_div(
|
html_print_action_buttons(
|
||||||
[
|
html_print_submit_button(
|
||||||
'class' => 'action-buttons w100p',
|
|
||||||
'content' => html_print_submit_button(
|
|
||||||
__('Update'),
|
__('Update'),
|
||||||
'update_button',
|
'update_button',
|
||||||
false,
|
false,
|
||||||
[ 'icon' => 'update' ],
|
[ 'icon' => 'update' ],
|
||||||
true
|
true
|
||||||
),
|
)
|
||||||
]
|
|
||||||
);
|
);
|
||||||
|
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
@ -74,52 +74,70 @@ $table_remote->data = [];
|
|||||||
$table_remote->width = '100%';
|
$table_remote->width = '100%';
|
||||||
$table_remote->styleTable = 'margin-bottom: 10px;';
|
$table_remote->styleTable = 'margin-bottom: 10px;';
|
||||||
$table_remote->id = 'ehorus-remote-setup';
|
$table_remote->id = 'ehorus-remote-setup';
|
||||||
$table_remote->class = 'databox filters';
|
$table_remote->class = 'databox filters filter-table-adv';
|
||||||
$table_remote->size['name'] = '30%';
|
$table_remote->size['ehorus_hostname'] = '50%';
|
||||||
$table_remote->style['name'] = 'font-weight: bold';
|
$table_remote->size['ehorus_port'] = '50%';
|
||||||
$table_remote->style['control'] = 'display: flex;align-items: center;';
|
|
||||||
|
|
||||||
// Enable eHorus user configuration.
|
// Enable eHorus user configuration.
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['name'] = ('eHorus configuration at user level');
|
$row['ehorus_user_level_conf'] = html_print_label_input_block(
|
||||||
$row['control'] = html_print_checkbox_switch('ehorus_user_level_conf', 1, $config['ehorus_user_level_conf'], true);
|
__('eHorus configuration at user level'),
|
||||||
|
html_print_checkbox_switch(
|
||||||
|
'ehorus_user_level_conf',
|
||||||
|
1,
|
||||||
|
$config['ehorus_user_level_conf'],
|
||||||
|
true
|
||||||
|
)
|
||||||
|
);
|
||||||
$table_remote->data['ehorus_user_level_conf'] = $row;
|
$table_remote->data['ehorus_user_level_conf'] = $row;
|
||||||
|
|
||||||
// User.
|
// User.
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['name'] = __('User');
|
$row['ehorus_user'] = html_print_label_input_block(
|
||||||
$row['control'] = html_print_input_text('ehorus_user', $config['ehorus_user'], '', 30, 100, true);
|
__('User'),
|
||||||
$table_remote->data['ehorus_user'] = $row;
|
html_print_input_text('ehorus_user', $config['ehorus_user'], '', 30, 100, true),
|
||||||
|
['div_class' => 'ehorus-remote-setup-ehorus_user']
|
||||||
|
);
|
||||||
|
|
||||||
// Pass.
|
// Pass.
|
||||||
$row = [];
|
$row['ehorus_pass'] = html_print_label_input_block(
|
||||||
$row['name'] = __('Password');
|
__('Password'),
|
||||||
$row['control'] = html_print_input_password('ehorus_pass', io_output_password($config['ehorus_pass']), '', 30, 100, true);
|
html_print_input_password('ehorus_pass', io_output_password($config['ehorus_pass']), '', 30, 100, true),
|
||||||
$row['control'] .= ui_print_reveal_password('ehorus_pass', true);
|
['div_class' => 'ehorus-remote-setup-ehorus_user']
|
||||||
|
);
|
||||||
$table_remote->data['ehorus_pass'] = $row;
|
$table_remote->data['ehorus_pass'] = $row;
|
||||||
|
|
||||||
// Directory hostname.
|
// Directory hostname.
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['name'] = __('API Hostname');
|
$row['ehorus_hostname'] = html_print_label_input_block(
|
||||||
$row['control'] = html_print_input_text('ehorus_hostname', $config['ehorus_hostname'], '', 30, 100, true);
|
__('API Hostname'),
|
||||||
$table_remote->data['ehorus_hostname'] = $row;
|
html_print_input_text('ehorus_hostname', $config['ehorus_hostname'], '', 30, 100, true)
|
||||||
|
);
|
||||||
|
|
||||||
// Directory port.
|
// Directory port.
|
||||||
$row = [];
|
$row['ehorus_port'] = html_print_label_input_block(
|
||||||
$row['name'] = __('API Port');
|
__('API Port'),
|
||||||
$row['control'] = html_print_input_text('ehorus_port', $config['ehorus_port'], '', 6, 100, true);
|
html_print_input_text('ehorus_port', $config['ehorus_port'], '', 6, 100, true)
|
||||||
|
);
|
||||||
$table_remote->data['ehorus_port'] = $row;
|
$table_remote->data['ehorus_port'] = $row;
|
||||||
|
|
||||||
// Request timeout.
|
// Request timeout.
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['name'] = __('Request timeout');
|
$row['ehorus_req_timeout'] = html_print_label_input_block(
|
||||||
$row['control'] = html_print_input_text('ehorus_req_timeout', $config['ehorus_req_timeout'], '', 3, 10, true);
|
__('Request timeout'),
|
||||||
|
html_print_input_text('ehorus_req_timeout', $config['ehorus_req_timeout'], '', 3, 10, true)
|
||||||
|
);
|
||||||
$table_remote->data['ehorus_req_timeout'] = $row;
|
$table_remote->data['ehorus_req_timeout'] = $row;
|
||||||
|
|
||||||
// Test.
|
// Test.
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['name'] = __('Test');
|
$test_start = '<span id="test-ehorus-spinner" class="invisible"> '.html_print_image('images/spinner.gif', true).'</span>';
|
||||||
$row['control'] = html_print_button(
|
$test_start .= '<span id="test-ehorus-success" class="invisible"> '.html_print_image('images/status_sets/default/severity_normal.png', true).'</span>';
|
||||||
|
$test_start .= '<span id="test-ehorus-failure" class="invisible"> '.html_print_image('images/status_sets/default/severity_critical.png', true).'</span>';
|
||||||
|
$test_start .= ' <span id="test-ehorus-message" class="invisible"></span>';
|
||||||
|
$row['ehorus_test'] = html_print_label_input_block(
|
||||||
|
__('Test'),
|
||||||
|
html_print_button(
|
||||||
__('Start'),
|
__('Start'),
|
||||||
'test-ehorus',
|
'test-ehorus',
|
||||||
false,
|
false,
|
||||||
@ -127,29 +145,27 @@ $row['control'] = html_print_button(
|
|||||||
[
|
[
|
||||||
'icon' => 'cog',
|
'icon' => 'cog',
|
||||||
'mode' => 'secondary mini',
|
'mode' => 'secondary mini',
|
||||||
|
'style' => 'width: 115px;',
|
||||||
],
|
],
|
||||||
true
|
true
|
||||||
|
).$test_start
|
||||||
);
|
);
|
||||||
$row['control'] .= '<span id="test-ehorus-spinner" class="invisible"> '.html_print_image('images/spinner.gif', true).'</span>';
|
|
||||||
$row['control'] .= '<span id="test-ehorus-success" class="invisible"> '.html_print_image('images/status_sets/default/severity_normal.png', true).'</span>';
|
|
||||||
$row['control'] .= '<span id="test-ehorus-failure" class="invisible"> '.html_print_image('images/status_sets/default/severity_critical.png', true).'</span>';
|
|
||||||
$row['control'] .= ' <span id="test-ehorus-message" class="invisible"></span>';
|
|
||||||
$table_remote->data['ehorus_test'] = $row;
|
$table_remote->data['ehorus_test'] = $row;
|
||||||
|
|
||||||
// Print.
|
// Print.
|
||||||
echo '<div class="center pdd_b_20px mrgn_top_20px">';
|
echo '<div class="center pdd_b_10px mrgn_btn_20px white_box max_floating_element_size">';
|
||||||
echo '<a target="_blank" rel="noopener noreferrer" href="http://ehorus.com">';
|
echo '<a target="_blank" rel="noopener noreferrer" href="http://ehorus.com">';
|
||||||
if ($config['style'] === 'pandora_black' && is_metaconsole() === true) {
|
if ($config['style'] === 'pandora_black' && is_metaconsole() === true) {
|
||||||
html_print_image(
|
html_print_image(
|
||||||
'include/ehorus/images/ehorus-logo.png',
|
'include/ehorus/images/ehorus-logo.png',
|
||||||
false,
|
false,
|
||||||
['class' => 'w400px']
|
['class' => 'w400px mrgn_top_15px']
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
html_print_image(
|
html_print_image(
|
||||||
'include/ehorus/images/ehorus-logo-grey.png',
|
'include/ehorus/images/ehorus-logo-grey.png',
|
||||||
false,
|
false,
|
||||||
['class' => 'w400px']
|
['class' => 'w400px mrgn_top_15px']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -179,7 +195,7 @@ if ($config['ehorus_enabled'] && !$custom_field_exists) {
|
|||||||
ui_print_error_message($error_message);
|
ui_print_error_message($error_message);
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<form method='post'>";
|
echo "<form method='post' class='max_floating_element_size'>";
|
||||||
// Form enable.
|
// Form enable.
|
||||||
echo '<div id="form_enable">';
|
echo '<div id="form_enable">';
|
||||||
html_print_input_hidden('update_config', 1);
|
html_print_input_hidden('update_config', 1);
|
||||||
@ -195,17 +211,14 @@ echo '</div>';
|
|||||||
|
|
||||||
echo '</fieldset>';
|
echo '</fieldset>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
html_print_div(
|
html_print_action_buttons(
|
||||||
[
|
html_print_submit_button(
|
||||||
'class' => 'action-buttons w100p',
|
|
||||||
'content' => html_print_submit_button(
|
|
||||||
__('Update'),
|
__('Update'),
|
||||||
'update_button',
|
'update_button',
|
||||||
false,
|
false,
|
||||||
['icon' => 'update'],
|
['icon' => 'update'],
|
||||||
true
|
true
|
||||||
),
|
)
|
||||||
]
|
|
||||||
);
|
);
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
|
||||||
@ -220,8 +233,8 @@ if(!$('input:checkbox[name="ehorus_enabled"]').is(':checked'))
|
|||||||
|
|
||||||
if($('input:checkbox[name="ehorus_user_level_conf"]').is(':checked'))
|
if($('input:checkbox[name="ehorus_user_level_conf"]').is(':checked'))
|
||||||
{
|
{
|
||||||
$('#ehorus-remote-setup-ehorus_user').hide();
|
$('.ehorus-remote-setup-ehorus_user').hide();
|
||||||
$('#ehorus-remote-setup-ehorus_pass').hide()
|
$('.ehorus-remote-setup-ehorus_pass').hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -234,13 +247,13 @@ if($('input:checkbox[name="ehorus_user_level_conf"]').is(':checked'))
|
|||||||
}
|
}
|
||||||
|
|
||||||
var hideUserPass = function () {
|
var hideUserPass = function () {
|
||||||
$('#ehorus-remote-setup-ehorus_user').hide();
|
$('.ehorus-remote-setup-ehorus_user').hide();
|
||||||
$('#ehorus-remote-setup-ehorus_pass').hide();
|
$('.ehorus-remote-setup-ehorus_pass').hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
var showUserPass = function () {
|
var showUserPass = function () {
|
||||||
$('#ehorus-remote-setup-ehorus_user').show();
|
$('.ehorus-remote-setup-ehorus_user').show();
|
||||||
$('#ehorus-remote-setup-ehorus_pass').show();
|
$('.ehorus-remote-setup-ehorus_pass').show();
|
||||||
}
|
}
|
||||||
|
|
||||||
var handleEnable = function (event) {
|
var handleEnable = function (event) {
|
||||||
|
@ -269,52 +269,102 @@ $table_remote->data = [];
|
|||||||
$table_remote->width = '100%';
|
$table_remote->width = '100%';
|
||||||
$table_remote->styleTable = 'margin-bottom: 10px;';
|
$table_remote->styleTable = 'margin-bottom: 10px;';
|
||||||
$table_remote->id = 'integria-remote-setup';
|
$table_remote->id = 'integria-remote-setup';
|
||||||
$table_remote->class = 'databox filters';
|
$table_remote->class = 'databox filters filter-table-adv';
|
||||||
$table_remote->size['name'] = '30%';
|
$table_remote->size['hostname'] = '50%';
|
||||||
$table_remote->style['name'] = 'font-weight: bold';
|
$table_remote->size['api_pass'] = '50%';
|
||||||
$table_remote->style['control'] = 'display: flex;align-items: center;';
|
|
||||||
|
|
||||||
// Enable eHorus user configuration.
|
// Enable Integria user configuration.
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['name'] = ('Integria configuration at user level');
|
$row['user_level'] = html_print_label_input_block(
|
||||||
$row['control'] = html_print_checkbox_switch('integria_user_level_conf', 1, $config['integria_user_level_conf'], true);
|
__('Integria configuration at user level'),
|
||||||
|
html_print_checkbox_switch(
|
||||||
|
'integria_user_level_conf',
|
||||||
|
1,
|
||||||
|
$config['integria_user_level_conf'],
|
||||||
|
true
|
||||||
|
)
|
||||||
|
);
|
||||||
$table_remote->data['integria_user_level_conf'] = $row;
|
$table_remote->data['integria_user_level_conf'] = $row;
|
||||||
|
|
||||||
// Integria user.
|
// Integria user.
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['name'] = __('User');
|
$row['user'] = html_print_label_input_block(
|
||||||
$row['control'] = html_print_input_text('integria_user', $config['integria_user'], '', 30, 100, true);
|
__('User'),
|
||||||
$table_remote->data['integria_user'] = $row;
|
html_print_input_text(
|
||||||
|
'integria_user',
|
||||||
|
$config['integria_user'],
|
||||||
|
'',
|
||||||
|
30,
|
||||||
|
100,
|
||||||
|
true
|
||||||
|
),
|
||||||
|
['div_class' => 'integria-remote-setup-integria_user']
|
||||||
|
);
|
||||||
|
|
||||||
// Integria password.
|
// Integria password.
|
||||||
$row = [];
|
$row['password'] = html_print_label_input_block(
|
||||||
$row['name'] = __('Password');
|
__('Password'),
|
||||||
$row['control'] = html_print_input_password('integria_pass', io_output_password($config['integria_pass']), '', 30, 100, true);
|
html_print_input_password(
|
||||||
$row['control'] .= ui_print_reveal_password('integria_pass', true);
|
'integria_pass',
|
||||||
|
io_output_password($config['integria_pass']),
|
||||||
|
'',
|
||||||
|
30,
|
||||||
|
100,
|
||||||
|
true
|
||||||
|
),
|
||||||
|
['div_class' => 'integria-remote-setup-integria_pass']
|
||||||
|
);
|
||||||
$table_remote->data['integria_pass'] = $row;
|
$table_remote->data['integria_pass'] = $row;
|
||||||
|
|
||||||
// Integria hostname.
|
// Integria hostname.
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['name'] = __('URL to Integria IMS setup').ui_print_help_tip(__('Full URL to your Integria IMS setup (e.g., http://192.168.1.20/integria, https://support.mycompany.com).'), true);
|
$row['hostname'] = html_print_label_input_block(
|
||||||
$row['control'] = html_print_input_text('integria_hostname', $config['integria_hostname'], '', 30, 100, true);
|
__('URL to Integria IMS setup').ui_print_help_tip(__('Full URL to your Integria IMS setup (e.g., http://192.168.1.20/integria, https://support.mycompany.com).'), true),
|
||||||
$table_remote->data['integria_hostname'] = $row;
|
html_print_input_text(
|
||||||
|
'integria_hostname',
|
||||||
|
$config['integria_hostname'],
|
||||||
|
'',
|
||||||
|
30,
|
||||||
|
100,
|
||||||
|
true
|
||||||
|
),
|
||||||
|
['div_class' => 'integria-remote-setup-integria_hostname']
|
||||||
|
);
|
||||||
|
|
||||||
// API password.
|
// API password.
|
||||||
$row = [];
|
$row['api_pass'] = html_print_label_input_block(
|
||||||
$row['name'] = __('API Password');
|
__('API Password'),
|
||||||
$row['control'] = html_print_input_password('integria_api_pass', io_output_password($config['integria_api_pass']), '', 30, 100, true);
|
html_print_input_password(
|
||||||
$row['control'] .= ui_print_reveal_password('integria_api_pass', true);
|
'integria_api_pass',
|
||||||
|
io_output_password($config['integria_api_pass']),
|
||||||
|
'',
|
||||||
|
30,
|
||||||
|
100,
|
||||||
|
true
|
||||||
|
),
|
||||||
|
['div_class' => 'integria-remote-setup-integria_api_pass']
|
||||||
|
);
|
||||||
$table_remote->data['integria_api_pass'] = $row;
|
$table_remote->data['integria_api_pass'] = $row;
|
||||||
|
|
||||||
// Request timeout.
|
// Request timeout.
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['name'] = __('Request timeout');
|
$row['req_timeout'] = html_print_label_input_block(
|
||||||
$row['control'] = html_print_input_text('integria_req_timeout', $config['integria_req_timeout'], '', 3, 10, true);
|
__('Request timeout'),
|
||||||
|
html_print_input_text(
|
||||||
|
'integria_req_timeout',
|
||||||
|
$config['integria_req_timeout'],
|
||||||
|
'',
|
||||||
|
3,
|
||||||
|
10,
|
||||||
|
true
|
||||||
|
),
|
||||||
|
['div_class' => 'integria-remote-setup-integria_req_timeout']
|
||||||
|
);
|
||||||
$table_remote->data['integria_req_timeout'] = $row;
|
$table_remote->data['integria_req_timeout'] = $row;
|
||||||
|
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['name'] = __('Inventory');
|
$row['control'] = __('Inventory');
|
||||||
$row['control'] = html_print_button(
|
$row['control'] .= html_print_button(
|
||||||
__('Sync inventory'),
|
__('Sync inventory'),
|
||||||
'sync-inventory',
|
'sync-inventory',
|
||||||
false,
|
false,
|
||||||
@ -575,8 +625,8 @@ $table_cr_settings->data['custom_response_incident_status'] = $row;
|
|||||||
|
|
||||||
// Test.
|
// Test.
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['name'] = __('Test');
|
$row['control'] = __('Test');
|
||||||
$row['control'] = html_print_button(
|
$row['control'] .= html_print_button(
|
||||||
__('Start'),
|
__('Start'),
|
||||||
'test-integria',
|
'test-integria',
|
||||||
false,
|
false,
|
||||||
@ -594,12 +644,12 @@ $row['control'] .= ' <span id="test-integria-message" class="invisible"></s
|
|||||||
$table_remote->data['integria_test'] = $row;
|
$table_remote->data['integria_test'] = $row;
|
||||||
|
|
||||||
// Print.
|
// Print.
|
||||||
echo '<div class="center pdd_b_20px mrgn_top_20px">';
|
echo '<div class="center pdd_b_10px mrgn_btn_20px white_box max_floating_element_size">';
|
||||||
echo '<a target="_blank" rel="noopener noreferrer" href="http://integriaims.com">';
|
echo '<a target="_blank" rel="noopener noreferrer" href="http://integriaims.com">';
|
||||||
html_print_image(
|
html_print_image(
|
||||||
'images/integria_logo.svg',
|
'images/integria_logo.svg',
|
||||||
false,
|
false,
|
||||||
['class' => 'w400px' ]
|
['class' => 'w400px mrgn_top_15px']
|
||||||
);
|
);
|
||||||
echo '</a>';
|
echo '</a>';
|
||||||
echo '<br />';
|
echo '<br />';
|
||||||
@ -611,7 +661,7 @@ echo 'https://integriaims.com';
|
|||||||
echo '</a>';
|
echo '</a>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
echo "<form method='post'>";
|
echo "<form method='post' class='max_floating_element_size'>";
|
||||||
html_print_input_hidden('update_config', 1);
|
html_print_input_hidden('update_config', 1);
|
||||||
|
|
||||||
// Form enable.
|
// Form enable.
|
||||||
@ -650,33 +700,24 @@ if ($has_connection != false) {
|
|||||||
echo '</fieldset>';
|
echo '</fieldset>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
html_print_div(
|
$update_button = html_print_submit_button(
|
||||||
[
|
|
||||||
'class' => 'action-buttons w100p',
|
|
||||||
'content' => html_print_submit_button(
|
|
||||||
__('Update'),
|
__('Update'),
|
||||||
'update_button',
|
'update_button',
|
||||||
false,
|
false,
|
||||||
['icon' => 'update'],
|
['icon' => 'update'],
|
||||||
true
|
true
|
||||||
),
|
|
||||||
]
|
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
html_print_div(
|
$update_button = html_print_submit_button(
|
||||||
[
|
|
||||||
'class' => 'action-buttons w100p',
|
|
||||||
'content' => html_print_submit_button(
|
|
||||||
__('Update and continue'),
|
__('Update and continue'),
|
||||||
'update_button',
|
'update_button',
|
||||||
false,
|
false,
|
||||||
['icon' => 'update'],
|
['icon' => 'update'],
|
||||||
true
|
true
|
||||||
),
|
|
||||||
]
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html_print_action_buttons($update_button);
|
||||||
|
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
|
||||||
@ -686,8 +727,8 @@ echo '</form>';
|
|||||||
|
|
||||||
if($('input:checkbox[name="integria_user_level_conf"]').is(':checked'))
|
if($('input:checkbox[name="integria_user_level_conf"]').is(':checked'))
|
||||||
{
|
{
|
||||||
$('#integria-remote-setup-integria_user').hide();
|
$('.integria-remote-setup-integria_user').hide();
|
||||||
$('#integria-remote-setup-integria_pass').hide()
|
$('.integria-remote-setup-integria_pass').hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
var handleUserLevel = function(event) {
|
var handleUserLevel = function(event) {
|
||||||
@ -726,13 +767,13 @@ echo '</form>';
|
|||||||
}
|
}
|
||||||
|
|
||||||
var hideUserPass = function () {
|
var hideUserPass = function () {
|
||||||
$('#integria-remote-setup-integria_user').hide();
|
$('.integria-remote-setup-integria_user').hide();
|
||||||
$('#integria-remote-setup-integria_pass').hide();
|
$('.integria-remote-setup-integria_pass').hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
var showUserPass = function () {
|
var showUserPass = function () {
|
||||||
$('#integria-remote-setup-integria_user').show();
|
$('.integria-remote-setup-integria_user').show();
|
||||||
$('#integria-remote-setup-integria_pass').show();
|
$('.integria-remote-setup-integria_pass').show();
|
||||||
}
|
}
|
||||||
|
|
||||||
var handleEnable = function (event) {
|
var handleEnable = function (event) {
|
||||||
|
@ -216,11 +216,8 @@ if ($get_double_auth_info_page) {
|
|||||||
$html .= '</p>';
|
$html .= '</p>';
|
||||||
$html .= '</div>';
|
$html .= '</div>';
|
||||||
$html .= '<br>';
|
$html .= '<br>';
|
||||||
$html .= '<div class="center_align">';
|
$html .= '<div class="flex flex-space-around">';
|
||||||
$html .= html_print_button(__('Download the app'), 'google_authenticator_download', false, '', '', true);
|
$html .= html_print_button(__('Download the app'), 'google_authenticator_download', false, '', '', true);
|
||||||
$html .= '</div>';
|
|
||||||
$html .= '<br>';
|
|
||||||
$html .= '<div class="center_align">';
|
|
||||||
$html .= html_print_button(__('Continue'), 'continue_to_generate', false, '', '', true);
|
$html .= html_print_button(__('Continue'), 'continue_to_generate', false, '', '', true);
|
||||||
$html .= '</div>';
|
$html .= '</div>';
|
||||||
|
|
||||||
@ -311,11 +308,11 @@ if ($get_double_auth_generation_page) {
|
|||||||
$html .= '<br>';
|
$html .= '<br>';
|
||||||
$html .= __('QR').': <br>';
|
$html .= __('QR').': <br>';
|
||||||
$html .= '<div id="qr-container"></div>';
|
$html .= '<div id="qr-container"></div>';
|
||||||
$html .= '<br>';
|
$html .= '<br><div class="flex flex-space-around">';
|
||||||
$html .= html_print_button(__('Refresh code'), 'continue_to_generate', false, '', '', true);
|
$html .= html_print_button(__('Refresh code'), 'continue_to_generate', false, '', '', true);
|
||||||
$html .= ' ';
|
|
||||||
$html .= html_print_button(__('Continue'), 'continue_to_validate', false, '', '', true);
|
$html .= html_print_button(__('Continue'), 'continue_to_validate', false, '', '', true);
|
||||||
$html .= '</div>';
|
$html .= '</div>';
|
||||||
|
$html .= '</div>';
|
||||||
|
|
||||||
ob_clean();
|
ob_clean();
|
||||||
?>
|
?>
|
||||||
@ -453,7 +450,7 @@ if ($get_double_auth_validation_page) {
|
|||||||
$html .= html_print_input_text('code', '', '', 50, $secret_lenght, true);
|
$html .= html_print_input_text('code', '', '', 50, $secret_lenght, true);
|
||||||
$html .= '<div id="code_input_message" class="red"></div>';
|
$html .= '<div id="code_input_message" class="red"></div>';
|
||||||
$html .= '<br><br>';
|
$html .= '<br><br>';
|
||||||
$html .= '<div id="button-container">';
|
$html .= '<div id="button-container" class="flex flex-space-around">';
|
||||||
$html .= html_print_button(__('Validate code'), 'continue_to_validate', false, '', '', true);
|
$html .= html_print_button(__('Validate code'), 'continue_to_validate', false, '', '', true);
|
||||||
$html .= html_print_image('images/spinner.gif', true);
|
$html .= html_print_image('images/spinner.gif', true);
|
||||||
$html .= '</div>';
|
$html .= '</div>';
|
||||||
|
@ -234,7 +234,7 @@ class ExternalTools extends HTML
|
|||||||
'images/change-active.svg',
|
'images/change-active.svg',
|
||||||
true,
|
true,
|
||||||
[
|
[
|
||||||
'id' => 'button_sound_warning',
|
'id' => 'button_sound_alert',
|
||||||
'style' => 'vertical-align: middle; margin-left: 10px',
|
'style' => 'vertical-align: middle; margin-left: 10px',
|
||||||
'width' => '16',
|
'width' => '16',
|
||||||
'title' => __('Play sound'),
|
'title' => __('Play sound'),
|
||||||
@ -269,7 +269,7 @@ class ExternalTools extends HTML
|
|||||||
'images/change-active.svg',
|
'images/change-active.svg',
|
||||||
true,
|
true,
|
||||||
[
|
[
|
||||||
'id' => 'button_sound_warning',
|
'id' => 'button_sound_critical',
|
||||||
'style' => 'vertical-align: middle; margin-left: 10px',
|
'style' => 'vertical-align: middle; margin-left: 10px',
|
||||||
'width' => '16',
|
'width' => '16',
|
||||||
'title' => __('Play sound'),
|
'title' => __('Play sound'),
|
||||||
|
@ -2597,7 +2597,7 @@ function config_process_config()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($config['custom_title1_login'])) {
|
if (!isset($config['custom_title1_login'])) {
|
||||||
config_update_value('custom_title1_login', __('ONE TOOL TO MONITOR THEM ALL'));
|
config_update_value('custom_title1_login', __('ONE TOOL TO RULE THEM ALL'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($config['custom_title2_login'])) {
|
if (!isset($config['custom_title2_login'])) {
|
||||||
@ -2649,7 +2649,7 @@ function config_process_config()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($config['meta_custom_title1_login'])) {
|
if (!isset($config['meta_custom_title1_login'])) {
|
||||||
config_update_value('meta_custom_title1_login', __('ONE TOOL TO MONITOR THEM ALL'));
|
config_update_value('meta_custom_title1_login', __('ONE TOOL TO RULE THEM ALL'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($config['meta_custom_title2_login'])) {
|
if (!isset($config['meta_custom_title2_login'])) {
|
||||||
|
@ -6097,6 +6097,8 @@ function html_print_autocomplete_users_from_integria(
|
|||||||
$attrs['class'] = $class;
|
$attrs['class'] = $class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ui_print_help_tip(__('Type at least two characters to search the user.'), false);
|
||||||
|
|
||||||
html_print_input_text_extended(
|
html_print_input_text_extended(
|
||||||
$name,
|
$name,
|
||||||
$default,
|
$default,
|
||||||
@ -6110,8 +6112,6 @@ function html_print_autocomplete_users_from_integria(
|
|||||||
);
|
);
|
||||||
html_print_input_hidden($name.'_hidden', $id_agent_module);
|
html_print_input_hidden($name.'_hidden', $id_agent_module);
|
||||||
|
|
||||||
ui_print_help_tip(__('Type at least two characters to search the user.'), false);
|
|
||||||
|
|
||||||
$javascript_ajax_page = ui_get_full_url('ajax.php', false, false, false, false);
|
$javascript_ajax_page = ui_get_full_url('ajax.php', false, false, false, false);
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -31,7 +31,7 @@ require_once $config['homedir'].'/include/functions.php';
|
|||||||
* @param string $active_tab Current tab or false for View page.
|
* @param string $active_tab Current tab or false for View page.
|
||||||
* @param number $view Id of incident. Show View tab.
|
* @param number $view Id of incident. Show View tab.
|
||||||
*
|
*
|
||||||
* @return string HTML code. Print tabs in header.
|
* @return array HTML code. Print tabs in header.
|
||||||
*/
|
*/
|
||||||
function integriaims_tabs($active_tab, $view=false)
|
function integriaims_tabs($active_tab, $view=false)
|
||||||
{
|
{
|
||||||
|
@ -702,6 +702,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
|
|||||||
$eventsGraph = html_print_div(
|
$eventsGraph = html_print_div(
|
||||||
[
|
[
|
||||||
'style' => 'height: 150px;',
|
'style' => 'height: 150px;',
|
||||||
|
'class' => 'max-graph-tree-view',
|
||||||
'content' => graph_graphic_agentevents(
|
'content' => graph_graphic_agentevents(
|
||||||
$id_agente,
|
$id_agente,
|
||||||
'500px;',
|
'500px;',
|
||||||
@ -934,5 +935,18 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('.max-graph-tree-view').ready(function() {
|
||||||
|
widthGraph();
|
||||||
|
});
|
||||||
|
|
||||||
|
$(window).resize(function() {
|
||||||
|
widthGraph();
|
||||||
|
});
|
||||||
|
|
||||||
|
function widthGraph () {
|
||||||
|
var parentWidth = $('.max-graph-tree-view').parent().width();
|
||||||
|
$('.max-graph-tree-view').children().width(parentWidth + 5);
|
||||||
|
}
|
||||||
|
|
||||||
</script>";
|
</script>";
|
||||||
}
|
}
|
||||||
|
@ -959,15 +959,39 @@ function ui_print_type_agent_icon(
|
|||||||
if ((int) $id_os === SATELLITE_OS_ID) {
|
if ((int) $id_os === SATELLITE_OS_ID) {
|
||||||
// Satellite.
|
// Satellite.
|
||||||
$options['title'] = __('Satellite');
|
$options['title'] = __('Satellite');
|
||||||
$output = html_print_image('images/satellite@os.svg', true, ['class' => 'main_menu_icon invert_filter'], false, false, false, true);
|
$output = html_print_image(
|
||||||
|
'images/satellite@os.svg',
|
||||||
|
true,
|
||||||
|
['class' => 'main_menu_icon invert_filter'],
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
true
|
||||||
|
);
|
||||||
} else if ($remote_contact === $contact && $remote === 0 && empty($version) === true) {
|
} else if ($remote_contact === $contact && $remote === 0 && empty($version) === true) {
|
||||||
// Network.
|
// Network.
|
||||||
$options['title'] = __('Network');
|
$options['title'] = __('Network');
|
||||||
$output = html_print_image('images/network-server@os.svg', true, ['class' => 'main_menu_icon invert_filter'], false, false, false, true);
|
$output = html_print_image(
|
||||||
|
'images/network-server@os.svg',
|
||||||
|
true,
|
||||||
|
['class' => 'main_menu_icon invert_filter'],
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
true
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
// Software.
|
// Software.
|
||||||
$options['title'] = __('Software');
|
$options['title'] = __('Software');
|
||||||
$output = html_print_image('images/data-server@svg.svg', true, ['class' => 'main_menu_icon invert_filter'], false, false, false, true);
|
$output = html_print_image(
|
||||||
|
'images/data-server@svg.svg',
|
||||||
|
true,
|
||||||
|
['class' => 'main_menu_icon invert_filter'],
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
true
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
|
@ -226,8 +226,8 @@ $(document).ready(function() {
|
|||||||
resizable: false,
|
resizable: false,
|
||||||
draggable: true,
|
draggable: true,
|
||||||
modal: true,
|
modal: true,
|
||||||
height: 450,
|
height: 410,
|
||||||
width: 620,
|
width: 390,
|
||||||
overlay: {
|
overlay: {
|
||||||
opacity: 0.5,
|
opacity: 0.5,
|
||||||
background: "black"
|
background: "black"
|
||||||
|
@ -455,7 +455,7 @@ div.form_message_alert {
|
|||||||
width: 90%;
|
width: 90%;
|
||||||
clear: both;
|
clear: both;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
padding-left: 40px;
|
padding-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.form_message_alert ul li {
|
div.form_message_alert ul li {
|
||||||
@ -765,7 +765,7 @@ button.submitButton:hover {
|
|||||||
background-position: 0 !important;
|
background-position: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
button.submitButton > span {
|
button.submitButton:not(.mini) > span {
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
font-size: 15pt;
|
font-size: 15pt;
|
||||||
}
|
}
|
||||||
|
@ -509,6 +509,10 @@ select:-internal-list-box {
|
|||||||
width: 400px;
|
width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.w400px-important {
|
||||||
|
width: 400px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.w450px {
|
.w450px {
|
||||||
width: 450px;
|
width: 450px;
|
||||||
}
|
}
|
||||||
@ -11752,3 +11756,7 @@ div.relative > div > div#ui-datepicker-div {
|
|||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.container-div-input-password:has(.w400px-important) {
|
||||||
|
width: 400px;
|
||||||
|
}
|
||||||
|
@ -1297,8 +1297,9 @@ a.pandora_pagination:hover {
|
|||||||
filter: brightness(0) contrast(50%) !important;
|
filter: brightness(0) contrast(50%) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="image"] {
|
input:not(div.login_pass > input):not(div.login_nick > input[type="image"]) {
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
|
color: inherit !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.databox_color {
|
.databox_color {
|
||||||
|
@ -12,8 +12,8 @@ span.subtitle-2 {
|
|||||||
border: 0 !important;
|
border: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="text"],
|
input[type="text"]:not(.w100p-important),
|
||||||
input[type="number"] {
|
input[type="number"]:not(.w100p-important) {
|
||||||
width: 220px;
|
width: 220px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -558,6 +558,16 @@ table.filter-table-adv td > div label {
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.filter-table-adv-manual > div.inline,
|
||||||
|
table.filter-table-adv td > div.inline {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.filter-table-adv-manual > div.inline input,
|
||||||
|
table.filter-table-adv td > div.inline input {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
table.filter-table-adv td > div.add-input-reverse {
|
table.filter-table-adv td > div.add-input-reverse {
|
||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
@ -407,7 +407,3 @@ div#tree-controller-recipient {
|
|||||||
.tree-node .node-icon.node-status {
|
.tree-node .node-icon.node-status {
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.max-graph-tree-view {
|
|
||||||
width: calc(100% - 100px);
|
|
||||||
}
|
|
||||||
|
@ -1163,7 +1163,6 @@ foreach ($agents as $agent) {
|
|||||||
|
|
||||||
$data[2] = html_print_div(
|
$data[2] = html_print_div(
|
||||||
[
|
[
|
||||||
'class' => 'invert_filter main_menu_icon',
|
|
||||||
'content' => ui_print_os_icon($agent['id_os'], false, true),
|
'content' => ui_print_os_icon($agent['id_os'], false, true),
|
||||||
],
|
],
|
||||||
true
|
true
|
||||||
|
@ -23,11 +23,30 @@ $update = (isset($_GET['incident_id']) === true);
|
|||||||
// Header tabs.
|
// Header tabs.
|
||||||
$onheader = integriaims_tabs('create_tab', $_GET['incident_id']);
|
$onheader = integriaims_tabs('create_tab', $_GET['incident_id']);
|
||||||
if ($update) {
|
if ($update) {
|
||||||
ui_print_page_header(__('Update Integria IMS Ticket'), '', false, '', false, $onheader);
|
$title_header = __('Update Integria IMS Ticket');
|
||||||
} else {
|
} else {
|
||||||
ui_print_page_header(__('Create Integria IMS Ticket'), '', false, '', false, $onheader);
|
$title_header = __('Create Integria IMS Ticket');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ui_print_standard_header(
|
||||||
|
$title_header,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
$onheader,
|
||||||
|
[
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Issues'),
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => $title_header,
|
||||||
|
],
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
// Check if Integria integration enabled.
|
// Check if Integria integration enabled.
|
||||||
if ($config['integria_enabled'] == 0) {
|
if ($config['integria_enabled'] == 0) {
|
||||||
ui_print_error_message(__('In order to access ticket management system, integration with Integria IMS must be enabled and properly configured'));
|
ui_print_error_message(__('In order to access ticket management system, integration with Integria IMS must be enabled and properly configured'));
|
||||||
@ -166,19 +185,14 @@ if ($update) {
|
|||||||
$table = new stdClass();
|
$table = new stdClass();
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->id = 'add_alert_table';
|
$table->id = 'add_alert_table';
|
||||||
$table->class = 'databox filters integria_incidents_options';
|
$table->class = 'databox filter-table-adv';
|
||||||
$table->head = [];
|
$table->head = [];
|
||||||
|
|
||||||
$table->data = [];
|
$table->data = [];
|
||||||
$table->size = [];
|
$table->size = [];
|
||||||
$table->size = [];
|
$table->size = [];
|
||||||
$table->style[0] = 'width: 33%; padding-right: 50px; padding-left: 100px;';
|
|
||||||
$table->style[1] = 'width: 33%; padding-right: 50px; padding-left: 50px;';
|
|
||||||
$table->style[2] = 'width: 33%; padding-right: 100px; padding-left: 50px;';
|
|
||||||
$table->colspan[0][0] = 2;
|
$table->colspan[0][0] = 2;
|
||||||
$table->colspan[4][0] = 3;
|
$table->colspan[4][0] = 3;
|
||||||
$table->colspan[6][0] = 3;
|
$table->colspan[6][0] = 3;
|
||||||
|
|
||||||
$help_macros = isset($_GET['from_event']) ? ui_print_help_icon('response_macros', true) : '';
|
$help_macros = isset($_GET['from_event']) ? ui_print_help_icon('response_macros', true) : '';
|
||||||
|
|
||||||
if ($update) {
|
if ($update) {
|
||||||
@ -210,8 +224,9 @@ if ($update) {
|
|||||||
$input_value_resolution = 0;
|
$input_value_resolution = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->data[0][0] = '<div class="label_select"><p class="input_label">'.__('Title').': '.$help_macros.'</p>';
|
$table->data[0][0] = html_print_label_input_block(
|
||||||
$table->data[0][0] .= '<div class="label_select_parent">'.html_print_input_text(
|
__('Title').$help_macros,
|
||||||
|
html_print_input_text(
|
||||||
'incident_title',
|
'incident_title',
|
||||||
$input_value_title,
|
$input_value_title,
|
||||||
__('Name'),
|
__('Name'),
|
||||||
@ -222,17 +237,19 @@ $table->data[0][0] .= '<div class="label_select_parent">'.html_print_input_text(
|
|||||||
true,
|
true,
|
||||||
'',
|
'',
|
||||||
'w100p'
|
'w100p'
|
||||||
).'</div>';
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$integria_logo = 'images/integria_logo_gray.png';
|
$integria_logo = 'images/integria_logo_gray.png';
|
||||||
if ($config['style'] === 'pandora_black' && !is_metaconsole()) {
|
if ($config['style'] === 'pandora_black' && !is_metaconsole()) {
|
||||||
$integria_logo = 'images/integria_logo.svg';
|
$integria_logo = 'images/integria_logo.svg';
|
||||||
}
|
}
|
||||||
|
|
||||||
$table->data[0][2] = html_print_image($integria_logo, true, ['style' => 'width: 70%; float: right;'], false);
|
$table->data[0][2] = html_print_image($integria_logo, true, ['style' => 'width: 30%; float: right;'], false);
|
||||||
|
|
||||||
$table->data[1][0] = '<div class="label_select"><p class="input_label">'.__('Type').': </p>';
|
$table->data[1][0] = html_print_label_input_block(
|
||||||
$table->data[1][0] .= '<div class="label_select_parent">'.html_print_select(
|
__('Type'),
|
||||||
|
html_print_select(
|
||||||
$integria_types_values,
|
$integria_types_values,
|
||||||
'type',
|
'type',
|
||||||
$input_value_type,
|
$input_value_type,
|
||||||
@ -245,26 +262,12 @@ $table->data[1][0] .= '<div class="label_select_parent">'.html_print_select(
|
|||||||
'',
|
'',
|
||||||
false,
|
false,
|
||||||
'width: 100%;'
|
'width: 100%;'
|
||||||
).'</div>';
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[2][0] = '<div class="label_select"><p class="input_label">'.__('Status').': </p>';
|
$table->data[1][1] = html_print_label_input_block(
|
||||||
$table->data[2][0] .= '<div class="label_select_parent">'.html_print_select(
|
__('Group'),
|
||||||
$integria_status_values,
|
html_print_select(
|
||||||
'status',
|
|
||||||
$input_value_status,
|
|
||||||
'',
|
|
||||||
__('Select'),
|
|
||||||
1,
|
|
||||||
true,
|
|
||||||
false,
|
|
||||||
true,
|
|
||||||
'',
|
|
||||||
false,
|
|
||||||
'width: 100%;'
|
|
||||||
).'</div>';
|
|
||||||
|
|
||||||
$table->data[1][1] = '<div class="label_select"><p class="input_label">'.__('Group').': </p>';
|
|
||||||
$table->data[1][1] .= '<div class="label_select_parent">'.html_print_select(
|
|
||||||
$integria_group_values,
|
$integria_group_values,
|
||||||
'group',
|
'group',
|
||||||
$input_value_group,
|
$input_value_group,
|
||||||
@ -277,24 +280,12 @@ $table->data[1][1] .= '<div class="label_select_parent">'.html_print_select(
|
|||||||
'',
|
'',
|
||||||
false,
|
false,
|
||||||
'width: 100%;'
|
'width: 100%;'
|
||||||
).'</div>';
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[2][1] = '<div class="label_select"><p class="input_label">'.__('Creator').': </p>';
|
$table->data[1][2] = html_print_label_input_block(
|
||||||
$table->data[2][1] .= '<div class="label_select_parent">'.html_print_input_text(
|
__('Priority'),
|
||||||
'creator',
|
html_print_select(
|
||||||
$config['integria_user'],
|
|
||||||
'',
|
|
||||||
'30',
|
|
||||||
100,
|
|
||||||
true,
|
|
||||||
true,
|
|
||||||
false,
|
|
||||||
'',
|
|
||||||
'w100p'
|
|
||||||
).ui_print_help_tip(__('This field corresponds to the Integria IMS user specified in Integria IMS setup'), true).'</div>';
|
|
||||||
|
|
||||||
$table->data[1][2] = '<div class="label_select"><p class="input_label">'.__('Priority').': </p>';
|
|
||||||
$table->data[1][2] .= '<div class="label_select_parent">'.html_print_select(
|
|
||||||
$integria_criticity_values,
|
$integria_criticity_values,
|
||||||
'criticity',
|
'criticity',
|
||||||
$input_value_criticity,
|
$input_value_criticity,
|
||||||
@ -307,11 +298,46 @@ $table->data[1][2] .= '<div class="label_select_parent">'.html_print_select(
|
|||||||
'',
|
'',
|
||||||
false,
|
false,
|
||||||
'width: 100%;'
|
'width: 100%;'
|
||||||
).'</div>';
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[2][2] = '<div class="label_select"><p class="input_label">'.__('Owner').': </p>';
|
$table->data[2][0] = html_print_label_input_block(
|
||||||
|
__('Status'),
|
||||||
|
html_print_select(
|
||||||
|
$integria_status_values,
|
||||||
|
'status',
|
||||||
|
$input_value_status,
|
||||||
|
'',
|
||||||
|
__('Select'),
|
||||||
|
1,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
'width: 100%;'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[2][2] .= '<div class="label_select_parent">'.html_print_autocomplete_users_from_integria(
|
$table->data[2][1] = html_print_label_input_block(
|
||||||
|
__('Creator').ui_print_help_tip(__('This field corresponds to the Integria IMS user specified in Integria IMS setup'), true),
|
||||||
|
html_print_input_text(
|
||||||
|
'creator',
|
||||||
|
$config['integria_user'],
|
||||||
|
'',
|
||||||
|
'30',
|
||||||
|
100,
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
'w100p'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
$table->data[2][2] = html_print_label_input_block(
|
||||||
|
__('Owner'),
|
||||||
|
html_print_autocomplete_users_from_integria(
|
||||||
'owner',
|
'owner',
|
||||||
$input_value_owner,
|
$input_value_owner,
|
||||||
true,
|
true,
|
||||||
@ -319,12 +345,13 @@ $table->data[2][2] .= '<div class="label_select_parent">'.html_print_autocomplet
|
|||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
'w100p'
|
'w100p'
|
||||||
).'</div>';
|
),
|
||||||
|
['div_class' => 'inline']
|
||||||
|
);
|
||||||
|
|
||||||
|
$table->data[3][0] = html_print_label_input_block(
|
||||||
$table->data[3][0] = '<div class="label_select"><p class="input_label">'.__('Resolution').': </p>';
|
__('Resolution'),
|
||||||
|
html_print_select(
|
||||||
$table->data[3][0] .= '<div class="label_select_parent">'.html_print_select(
|
|
||||||
$integria_resolution_values,
|
$integria_resolution_values,
|
||||||
'resolution',
|
'resolution',
|
||||||
$input_value_resolution,
|
$input_value_resolution,
|
||||||
@ -337,50 +364,65 @@ $table->data[3][0] .= '<div class="label_select_parent">'.html_print_select(
|
|||||||
'',
|
'',
|
||||||
false,
|
false,
|
||||||
'width: 100%;'
|
'width: 100%;'
|
||||||
).'</div>';
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[4][0] = '<div class="label_select"><p class="input_label">'.__('Description').': '.$help_macros.'</p>';
|
$table->data[4][0] = html_print_label_input_block(
|
||||||
$table->data[4][0] .= '<div class="label_select_parent">'.html_print_textarea(
|
__('Description').$help_macros,
|
||||||
|
html_print_textarea(
|
||||||
'incident_content',
|
'incident_content',
|
||||||
3,
|
3,
|
||||||
20,
|
20,
|
||||||
$input_value_content,
|
$input_value_content,
|
||||||
'',
|
'',
|
||||||
true
|
true
|
||||||
).'</div>';
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[5][0] = '<div class="label_select"><p class="input_label">'.__('File name').':</p>';
|
$table->data[5][0] = html_print_label_input_block(
|
||||||
$table->data[5][0] .= html_print_input_file('userfile', true);
|
__('File name'),
|
||||||
$table->data[6][0] = '<div class="label_select"><p class="input_label">'.__('Attachment description').':</p>';
|
html_print_input_file('userfile', true)
|
||||||
$table->data[6][0] .= html_print_textarea(
|
);
|
||||||
|
|
||||||
|
$table->data[6][0] = html_print_label_input_block(
|
||||||
|
__('Attachment description'),
|
||||||
|
html_print_textarea(
|
||||||
'file_description',
|
'file_description',
|
||||||
3,
|
3,
|
||||||
20,
|
20,
|
||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
true
|
true
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Print forms and stuff.
|
// Print forms and stuff.
|
||||||
echo '<form id="create_integria_incident_form" name="create_integria_incident_form" method="POST" enctype="multipart/form-data">';
|
echo '<form class="max_floating_element_size" id="create_integria_incident_form" name="create_integria_incident_form" method="POST" enctype="multipart/form-data">';
|
||||||
html_print_table($table);
|
html_print_table($table);
|
||||||
|
$buttons = '';
|
||||||
if (!$update) {
|
if (!$update) {
|
||||||
html_print_input_hidden('create_incident', 1);
|
$buttons .= html_print_input_hidden('create_incident', 1, true);
|
||||||
|
$buttons .= html_print_submit_button(
|
||||||
|
__('Create'),
|
||||||
|
'accion',
|
||||||
|
false,
|
||||||
|
[ 'icon' => 'next' ],
|
||||||
|
true
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
html_print_input_hidden('update_incident', 1);
|
$buttons .= html_print_input_hidden('update_incident', 1, true);
|
||||||
|
$buttons .= html_print_submit_button(
|
||||||
|
__('Update'),
|
||||||
|
'accion',
|
||||||
|
false,
|
||||||
|
[ 'icon' => 'upd' ],
|
||||||
|
true
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html_print_action_buttons($buttons);
|
||||||
|
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
|
||||||
echo '<div class="w100p right">';
|
|
||||||
if ($update) {
|
|
||||||
html_print_submit_button(__('Update'), 'accion', false, 'form="create_integria_incident_form" class="sub wand"');
|
|
||||||
} else {
|
|
||||||
html_print_submit_button(__('Create'), 'accion', false, 'form="create_integria_incident_form" class="sub wand"');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '</div>';
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -50,14 +50,30 @@ $result_api_call_list = integria_api_call(
|
|||||||
// Return array of api call 'get_incidents'.
|
// Return array of api call 'get_incidents'.
|
||||||
$array_get_incidents = [];
|
$array_get_incidents = [];
|
||||||
get_array_from_csv_data_all($result_api_call_list, $array_get_incidents);
|
get_array_from_csv_data_all($result_api_call_list, $array_get_incidents);
|
||||||
// Remove index (id)
|
|
||||||
$array_get_incidents = $array_get_incidents[$incident_id];
|
|
||||||
|
|
||||||
|
// Remove index (id).
|
||||||
|
$array_get_incidents = $array_get_incidents[$incident_id];
|
||||||
|
|
||||||
// Header tabs.
|
// Header tabs.
|
||||||
$onheader = integriaims_tabs(false, $incident_id);
|
$onheader = integriaims_tabs(false, $incident_id);
|
||||||
ui_print_page_header($array_get_incidents[3].' - '.__('Details'), '', false, '', false, $onheader);
|
ui_print_standard_header(
|
||||||
|
$array_get_incidents[3],
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
$onheader,
|
||||||
|
[
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Issues'),
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Details'),
|
||||||
|
],
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
// Data.
|
// Data.
|
||||||
$status = $array_get_incidents[6];
|
$status = $array_get_incidents[6];
|
||||||
@ -215,7 +231,7 @@ $table_files_section->data[1][0] .= html_print_textarea(
|
|||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
$table_files_section->data[2][0] .= '<div class="w100p right">'.html_print_submit_button(__('Upload'), 'accion', false, 'class="sub wand"', true).'</div>';
|
$table_files_section->data[2][0] .= '<div class="w100p right">'.html_print_submit_button(__('Upload'), 'accion', false, ['icon' => 'wand', 'mode' => 'mini secondary'], true).'</div>';
|
||||||
|
|
||||||
$upload_file_form = '<div class="w100p">';
|
$upload_file_form = '<div class="w100p">';
|
||||||
|
|
||||||
@ -268,7 +284,7 @@ $table_comments_section->data[0][0] .= html_print_textarea(
|
|||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
$table_comments_section->data[1][1] .= '<div class="w100p right">'.html_print_submit_button(__('Add'), 'accion', $comment_disabled, 'class="sub wand"', true).'</div>';
|
$table_comments_section->data[1][1] .= '<div class="w100p right">'.html_print_submit_button(__('Add'), 'accion', $comment_disabled, ['icon' => 'wand', 'mode' => 'mini secondary'], true).'</div>';
|
||||||
|
|
||||||
// Upload comment. If ticket is closed, this action cannot be performed.
|
// Upload comment. If ticket is closed, this action cannot be performed.
|
||||||
if ($upload_comment && $array_get_incidents[6] != 7) {
|
if ($upload_comment && $array_get_incidents[6] != 7) {
|
||||||
@ -399,8 +415,8 @@ ui_toggle(
|
|||||||
'',
|
'',
|
||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
'white_box white_box_opened',
|
'white-box-content',
|
||||||
'no-border flex'
|
'w98p'
|
||||||
);
|
);
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
@ -412,15 +428,14 @@ ui_toggle(
|
|||||||
'',
|
'',
|
||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
'white_box white_box_opened',
|
'white-box-content',
|
||||||
'no-border flex'
|
'w98p'
|
||||||
);
|
);
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready (function () {
|
$(document).ready (function () {
|
||||||
|
|
||||||
$('#details_box .white_table_graph_header').click(function(){
|
$('#details_box .white_table_graph_header').click(function(){
|
||||||
$('div#details_box').toggleClass('integria_details_shadow');
|
$('div#details_box').toggleClass('integria_details_shadow');
|
||||||
});
|
});
|
||||||
@ -432,6 +447,5 @@ $(document).ready (function () {
|
|||||||
$('#dates_box .white_table_graph_header').click(function(){
|
$('#dates_box .white_table_graph_header').click(function(){
|
||||||
$('div#dates_box').toggleClass('integria_details_shadow');
|
$('div#dates_box').toggleClass('integria_details_shadow');
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
@ -18,13 +18,31 @@ require_once $config['homedir'].'/include/functions_graph.php';
|
|||||||
|
|
||||||
check_login();
|
check_login();
|
||||||
|
|
||||||
ui_print_page_header(__('Incidents').' » '.__('Statistics'), 'images/book_edit.png', false, '', false, '');
|
ui_print_standard_header(
|
||||||
|
__('Statistics'),
|
||||||
|
'images/book_edit.png',
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
false,
|
||||||
|
[],
|
||||||
|
[
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Issues'),
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Statistics'),
|
||||||
|
],
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
if (!$config['integria_enabled']) {
|
if (!$config['integria_enabled']) {
|
||||||
ui_print_error_message(__('In order to access ticket management system, integration with Integria IMS must be enabled and properly configured'));
|
ui_print_error_message(__('In order to access ticket management system, integration with Integria IMS must be enabled and properly configured'));
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo '<div class="info_box">';
|
||||||
echo '<table width="90%">
|
echo '<table width="90%">
|
||||||
<tr><td valign="top" style="width:50%;"><h3>'.__('Incidents by status').'</h3>';
|
<tr><td valign="top" style="width:50%;"><h3>'.__('Incidents by status').'</h3>';
|
||||||
echo graph_incidents_status();
|
echo graph_incidents_status();
|
||||||
@ -39,3 +57,4 @@ echo '<td style="width:50%;"><h3>'.__('Incidents by user').'</h3>';
|
|||||||
echo graphic_incident_user();
|
echo graphic_incident_user();
|
||||||
|
|
||||||
echo '</table>';
|
echo '</table>';
|
||||||
|
echo '</div>';
|
||||||
|
@ -20,13 +20,23 @@ check_login();
|
|||||||
|
|
||||||
// Header tabs.
|
// Header tabs.
|
||||||
$onheader = integriaims_tabs('list_tab');
|
$onheader = integriaims_tabs('list_tab');
|
||||||
ui_print_page_header(
|
ui_print_standard_header(
|
||||||
__('Integria IMS Tickets'),
|
__('Integria IMS Tickets'),
|
||||||
'',
|
'',
|
||||||
false,
|
false,
|
||||||
'integria_tab',
|
'integria_tab',
|
||||||
false,
|
false,
|
||||||
$onheader
|
$onheader,
|
||||||
|
[
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Issues'),
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'link' => '',
|
||||||
|
'label' => __('Integria IMS Tickets'),
|
||||||
|
],
|
||||||
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
// Check if Integria integration enabled.
|
// Check if Integria integration enabled.
|
||||||
@ -308,17 +318,21 @@ $resolution_incident = integriaims_get_details('resolution');
|
|||||||
// TABLE FILTERS.
|
// TABLE FILTERS.
|
||||||
$table = new StdClass();
|
$table = new StdClass();
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->class = 'databox filters';
|
$table->size = [];
|
||||||
$table->styleTable = 'margin-bottom:0px';
|
$table->size[0] = '33%';
|
||||||
$table->cellpadding = '0';
|
$table->size[1] = '33%';
|
||||||
$table->cellspacing = '0';
|
$table->size[2] = '33%';
|
||||||
|
$table->class = 'filter-table-adv';
|
||||||
|
|
||||||
$table->data = [];
|
$table->data = [];
|
||||||
|
$table->data[0][0] = html_print_label_input_block(
|
||||||
|
__('Text filter'),
|
||||||
|
html_print_input_text('incident_text', $incident_text, '', 30, 100, true)
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[0][0] = __('Text filter');
|
$table->data[0][1] = html_print_label_input_block(
|
||||||
$table->data[0][1] = html_print_input_text('incident_text', $incident_text, '', 30, 100, true);
|
__('Status'),
|
||||||
|
html_print_select(
|
||||||
$table->data[0][2] = __('Status');
|
|
||||||
$table->data[0][3] = html_print_select(
|
|
||||||
$status_incident,
|
$status_incident,
|
||||||
'incident_status',
|
'incident_status',
|
||||||
$incident_status,
|
$incident_status,
|
||||||
@ -326,10 +340,12 @@ $table->data[0][3] = html_print_select(
|
|||||||
__('All'),
|
__('All'),
|
||||||
0,
|
0,
|
||||||
true
|
true
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$table->data[0][4] = __('Group');
|
$table->data[0][2] = html_print_label_input_block(
|
||||||
$table->data[0][5] = html_print_select(
|
__('Group'),
|
||||||
|
html_print_select(
|
||||||
$group_incident,
|
$group_incident,
|
||||||
'incident_group',
|
'incident_group',
|
||||||
$incident_group,
|
$incident_group,
|
||||||
@ -337,16 +353,40 @@ $table->data[0][5] = html_print_select(
|
|||||||
__('All'),
|
__('All'),
|
||||||
1,
|
1,
|
||||||
true
|
true
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$table->data[1][0] = __('Owner');
|
$table->data[1][0] = html_print_label_input_block(
|
||||||
$table->data[1][1] = html_print_autocomplete_users_from_integria('incident_owner', $incident_owner, true);
|
__('Owner'),
|
||||||
|
html_print_autocomplete_users_from_integria(
|
||||||
|
'incident_owner',
|
||||||
|
$incident_owner,
|
||||||
|
true,
|
||||||
|
'30',
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
'w100p'
|
||||||
|
),
|
||||||
|
['div_class' => 'inline']
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[1][2] = __('Creator');
|
$table->data[1][1] = html_print_label_input_block(
|
||||||
$table->data[1][3] = html_print_autocomplete_users_from_integria('incident_creator', $incident_creator, true);
|
__('Creator'),
|
||||||
|
html_print_autocomplete_users_from_integria(
|
||||||
|
'incident_creator',
|
||||||
|
$incident_creator,
|
||||||
|
true,
|
||||||
|
'30',
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
'w100p'
|
||||||
|
),
|
||||||
|
['div_class' => 'inline']
|
||||||
|
);
|
||||||
|
|
||||||
$table->data[1][4] = __('Priority');
|
$table->data[1][2] = html_print_label_input_block(
|
||||||
$table->data[1][5] = html_print_select(
|
__('Priority'),
|
||||||
|
html_print_select(
|
||||||
$priority_incident,
|
$priority_incident,
|
||||||
'incident_priority',
|
'incident_priority',
|
||||||
$incident_priority,
|
$incident_priority,
|
||||||
@ -354,10 +394,12 @@ $table->data[1][5] = html_print_select(
|
|||||||
__('All'),
|
__('All'),
|
||||||
-1,
|
-1,
|
||||||
true
|
true
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$table->data[2][0] = __('Resolution');
|
$table->data[2][0] = html_print_label_input_block(
|
||||||
$table->data[2][1] = html_print_select(
|
__('Resolution'),
|
||||||
|
html_print_select(
|
||||||
$resolution_incident,
|
$resolution_incident,
|
||||||
'incident_resolution',
|
'incident_resolution',
|
||||||
$incident_resolution,
|
$incident_resolution,
|
||||||
@ -365,11 +407,11 @@ $table->data[2][1] = html_print_select(
|
|||||||
__('All'),
|
__('All'),
|
||||||
'',
|
'',
|
||||||
true
|
true
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// TODO: field type date.
|
$input_date = '<div>';
|
||||||
$table->data[2][2] = __('Date');
|
$input_date .= html_print_input_text_extended(
|
||||||
$table->data[2][3] = html_print_input_text_extended(
|
|
||||||
'created_from',
|
'created_from',
|
||||||
$created_from,
|
$created_from,
|
||||||
'created_from',
|
'created_from',
|
||||||
@ -381,7 +423,7 @@ $table->data[2][3] = html_print_input_text_extended(
|
|||||||
'placeholder="'.__('Created from').'"',
|
'placeholder="'.__('Created from').'"',
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
$table->data[2][3] .= html_print_input_text_extended(
|
$input_date .= html_print_input_text_extended(
|
||||||
'created_to',
|
'created_to',
|
||||||
$created_to,
|
$created_to,
|
||||||
'created_to',
|
'created_to',
|
||||||
@ -393,11 +435,12 @@ $table->data[2][3] .= html_print_input_text_extended(
|
|||||||
'class="mrgn_lft_5px" placeholder="'.__('Created to').'"',
|
'class="mrgn_lft_5px" placeholder="'.__('Created to').'"',
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
$input_date .= '</div>';
|
||||||
|
|
||||||
// TODO: image of Integria IMS.
|
$table->data[2][2] = html_print_label_input_block(
|
||||||
$table->data[2][4] = '';
|
__('Date'),
|
||||||
$table->data[2][5] = '';
|
$input_date
|
||||||
|
);
|
||||||
|
|
||||||
// Send filters to get_tickets_integriaims().
|
// Send filters to get_tickets_integriaims().
|
||||||
$tickets_filters = [
|
$tickets_filters = [
|
||||||
@ -423,20 +466,48 @@ $url = ui_get_full_url(
|
|||||||
// ---- PRINT TABLE FILTERS ----
|
// ---- PRINT TABLE FILTERS ----
|
||||||
$integria_incidents_form = '<form method="post" action="'.$url.'" class="pdd_0px">';
|
$integria_incidents_form = '<form method="post" action="'.$url.'" class="pdd_0px">';
|
||||||
$integria_incidents_form .= html_print_table($table, true);
|
$integria_incidents_form .= html_print_table($table, true);
|
||||||
$integria_incidents_form .= '<div class="w100p right">';
|
$buttons = html_print_submit_button(
|
||||||
$integria_incidents_form .= '<div class="float-right mrgn_lft_5px">'.html_print_button(
|
__('Filter'),
|
||||||
|
'filter_button',
|
||||||
|
false,
|
||||||
|
[
|
||||||
|
'icon' => 'search',
|
||||||
|
'mode' => 'mini secondary',
|
||||||
|
],
|
||||||
|
true
|
||||||
|
);
|
||||||
|
$buttons .= html_print_button(
|
||||||
__('Export to CSV'),
|
__('Export to CSV'),
|
||||||
'csv_export',
|
'csv_export',
|
||||||
false,
|
false,
|
||||||
"blockResubmit($(this)); location.href='operation/incidents/integriaims_export_csv.php?tickets_filters=$decode_csv'",
|
"blockResubmit($(this)); location.href='operation/incidents/integriaims_export_csv.php?tickets_filters=$decode_csv'",
|
||||||
'class="sub next"',
|
[
|
||||||
|
'icon' => 'cog',
|
||||||
|
'mode' => 'mini secondary',
|
||||||
|
],
|
||||||
true
|
true
|
||||||
).'</div>';
|
);
|
||||||
$integria_incidents_form .= '<div>'.html_print_submit_button(__('Filter'), 'filter_button', false, 'class="sub filter"', true).'</div>';
|
|
||||||
$integria_incidents_form .= '</div>';
|
$integria_incidents_form .= html_print_div(
|
||||||
|
[
|
||||||
|
'class' => 'action-buttons',
|
||||||
|
'content' => $buttons,
|
||||||
|
],
|
||||||
|
true
|
||||||
|
);
|
||||||
$integria_incidents_form .= '</form>';
|
$integria_incidents_form .= '</form>';
|
||||||
|
|
||||||
ui_toggle($integria_incidents_form, __('Filter'), '', '', false);
|
ui_toggle(
|
||||||
|
$integria_incidents_form,
|
||||||
|
'<span class="subsection_header_title">'.__('Filters').'</span>',
|
||||||
|
'filter_form',
|
||||||
|
'',
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
'white-box-content',
|
||||||
|
'box-flat white_table_graph fixed_filter_bar'
|
||||||
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Order api call 'get_incidents'.
|
* Order api call 'get_incidents'.
|
||||||
@ -552,33 +623,52 @@ foreach ($incidents_paginated as $key => $value) {
|
|||||||
|
|
||||||
$table->data[$i][8] .= '<a id="link_delete_incident" href="'.ui_get_full_url('index.php?sec=incident&sec2=operation/incidents/list_integriaims_incidents&delete_incident='.$array_get_incidents[$key][0]).'"
|
$table->data[$i][8] .= '<a id="link_delete_incident" href="'.ui_get_full_url('index.php?sec=incident&sec2=operation/incidents/list_integriaims_incidents&delete_incident='.$array_get_incidents[$key][0]).'"
|
||||||
onClick="javascript:if (!confirm(\''.__('Are you sure?').'\')) return false;">';
|
onClick="javascript:if (!confirm(\''.__('Are you sure?').'\')) return false;">';
|
||||||
$table->data[$i][8] .= html_print_image('images/delete.svg', true, ['title' => __('Delete'), 'class' => 'invert_filter']);
|
$table->data[$i][8] .= html_print_image('images/delete.svg', true, ['title' => __('Delete'), 'class' => 'invert_filter main_menu_icon']);
|
||||||
$table->data[$i][8] .= '</a>';
|
$table->data[$i][8] .= '</a>';
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$tablePagination = '';
|
||||||
// Show table incidents.
|
// Show table incidents.
|
||||||
ui_pagination(count($array_get_incidents), $url, $offset);
|
|
||||||
if (empty($table->data) === true) {
|
if (empty($table->data) === true) {
|
||||||
ui_print_info_message(['no_close' => true, 'message' => __('No tickets to show').'.' ]);
|
ui_print_info_message(['no_close' => true, 'message' => __('No tickets to show').'.' ]);
|
||||||
} else {
|
} else {
|
||||||
html_print_table($table);
|
html_print_table($table);
|
||||||
ui_pagination(count($array_get_incidents), $url, $offset, 0, false, 'offset', true, 'pagination-bottom');
|
$tablePagination = ui_pagination(
|
||||||
|
count($array_get_incidents),
|
||||||
|
$url,
|
||||||
|
$offset,
|
||||||
|
0,
|
||||||
|
true,
|
||||||
|
'offset',
|
||||||
|
false,
|
||||||
|
'pagination-bottom'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show button to create incident.
|
// Show button to create incident.
|
||||||
echo '<form method="POST" action="'.ui_get_full_url('index.php?sec=incident&sec2=operation/incidents/configure_integriaims_incident').'">';
|
echo '<form method="POST" action="'.ui_get_full_url('index.php?sec=incident&sec2=operation/incidents/configure_integriaims_incident').'">';
|
||||||
echo '<div class="wi100p right">';
|
html_print_action_buttons(
|
||||||
html_print_submit_button(__('Create'), 'create_new_incident', false, 'class="sub next"');
|
html_print_submit_button(
|
||||||
echo '</div>';
|
__('Create'),
|
||||||
|
'create_new_incident',
|
||||||
|
false,
|
||||||
|
[ 'icon' => 'next' ],
|
||||||
|
true
|
||||||
|
),
|
||||||
|
[
|
||||||
|
'type' => 'data_table',
|
||||||
|
'class' => 'fixed_action_buttons',
|
||||||
|
'right_content' => $tablePagination,
|
||||||
|
]
|
||||||
|
);
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
|
||||||
// Datapicker library for show calendar.
|
// Datapicker library for show calendar.
|
||||||
ui_require_jquery_file('ui.datepicker-'.get_user_language(), 'include/javascript/i18n/');
|
ui_require_jquery_file('ui.datepicker-'.get_user_language(), 'include/javascript/i18n/');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
$(document).ready( function() {
|
$(document).ready( function() {
|
||||||
$("#created_from, #created_to").datepicker({
|
$("#created_from, #created_to").datepicker({
|
||||||
|
@ -280,25 +280,25 @@ if ($pure === false) {
|
|||||||
$class_delete = 'delete_item delete_min';
|
$class_delete = 'delete_item delete_min';
|
||||||
$class_copy = 'copy_item';
|
$class_copy = 'copy_item';
|
||||||
if ($config['style'] === 'pandora_black' && is_metaconsole() === false) {
|
if ($config['style'] === 'pandora_black' && is_metaconsole() === false) {
|
||||||
$class_camera = 'camera_min_white link-create-item';
|
$class_camera .= ' invert_filter';
|
||||||
$class_percentile = 'percentile_item_min_white link-create-item';
|
$class_percentile .= ' invert_filter';
|
||||||
$class_module_graph = 'graph_min_white link-create-item';
|
$class_module_graph .= ' invert_filter';
|
||||||
$class_donut = 'donut_graph_min_white link-create-item';
|
$class_donut .= ' invert_filter';
|
||||||
$class_bars = 'bars_graph_min_white link-create-item';
|
$class_bars .= ' invert_filter';
|
||||||
$class_value = 'binary_min_white link-create-item';
|
$class_value .= ' invert_filter';
|
||||||
$class_sla = 'auto_sla_graph_min_white link-create-item';
|
$class_sla .= ' invert_filter';
|
||||||
$class_label = 'label_min_white link-create-item';
|
$class_label .= ' invert_filter';
|
||||||
$class_icon = 'icon_min_white link-create-item';
|
$class_icon .= ' invert_filter';
|
||||||
$class_clock = 'clock_min_white link-create-item';
|
$class_clock .= ' invert_filter';
|
||||||
$class_group = 'group_item_min_white link-create-item';
|
$class_group .= ' invert_filter';
|
||||||
$class_box = 'box_item_white link-create-item';
|
$class_box .= ' invert_filter';
|
||||||
$class_line = 'line_item_white link-create-item';
|
$class_line .= ' invert_filter';
|
||||||
$class_cloud = 'color_cloud_min_white link-create-item';
|
$class_cloud .= ' invert_filter';
|
||||||
$class_nlink = 'network_link_min_white link-create-item';
|
$class_nlink .= ' invert_filter';
|
||||||
$class_odometer = 'odometer_min_white link-create-item';
|
$class_odometer .= ' invert_filter';
|
||||||
$class_basic_chart = 'basic_chart_min_white link-create-item';
|
$class_basic_chart .= ' invert_filter';
|
||||||
$class_delete = 'delete_item_white delete_min_white';
|
$class_delete .= ' invert_filter';
|
||||||
$class_copy = 'copy_item_white';
|
$class_copy .= ' invert_filter';
|
||||||
}
|
}
|
||||||
|
|
||||||
visual_map_print_button_editor_refactor(
|
visual_map_print_button_editor_refactor(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user