"; if ($edit_graph) { echo "
"; } else { echo ""; } echo ''; echo "".__('Name').''; echo "'; $own_info = get_user_info($config['id_user']); echo ''.__('Group').''; if (check_acl($config['id_user'], 0, 'RW')) { echo html_print_select_groups($config['id_user'], 'RW', true, 'graph_id_group', $id_group, '', '', '', true); } else if (check_acl($config['id_user'], 0, 'RM')) { echo html_print_select_groups($config['id_user'], 'RM', true, 'graph_id_group', $id_group, '', '', '', true); } echo ''; echo ''; echo "".__('Description').''; echo "'; echo ''; if ($stacked == CUSTOM_GRAPH_GAUGE) { $hidden = ' style="display:none;" '; } else { $hidden = ''; } echo ''; echo ""; echo ''.__('Period').''; echo ""; html_print_extended_select_for_time('period', $period, '', '', '0', 10); echo ""; echo ''.__('Type of graph').''; echo "
"; require_once $config['homedir'].'/include/functions_graph.php'; $stackeds = [ CUSTOM_GRAPH_AREA => __('Area'), CUSTOM_GRAPH_STACKED_AREA => __('Stacked area'), CUSTOM_GRAPH_LINE => __('Line'), CUSTOM_GRAPH_STACKED_LINE => __('Stacked line'), CUSTOM_GRAPH_BULLET_CHART => __('Bullet chart'), CUSTOM_GRAPH_GAUGE => __('Gauge'), CUSTOM_GRAPH_HBARS => __('Horizontal bars'), CUSTOM_GRAPH_VBARS => __('Vertical bars'), CUSTOM_GRAPH_PIE => __('Pie'), ]; html_print_select($stackeds, 'stacked', $stacked); echo '
'; echo "".__('Percentil').''; echo "".html_print_checkbox('percentil', 1, $percentil, true).''; echo "
".__('Equalize maximum thresholds').''.ui_print_help_tip(__('If an option is selected, all graphs will have the highest value from all modules included in the graph as a maximum threshold'), true); html_print_checkbox('threshold', CUSTOM_GRAPH_BULLET_CHART_THRESHOLD, $check, false, false, '', false); echo '
'; echo "".__('Add summatory series').ui_print_help_tip( __( 'Adds synthetic series to the graph, using all module values to calculate the summation and/or average in each time interval. This feature could be used instead of synthetic modules if you only want to see a graph.' ), true ).''; echo "".html_print_checkbox('summatory_series', 1, $summatory_series, true)." ".__('Add average series').''; echo "".html_print_checkbox('average_series', 1, $average_series, true).''; echo "".__('Modules and series').''; echo "".html_print_checkbox('modules_series', 1, $modules_series, true).''; echo "".__('Show full scale graph (TIP)').ui_print_help_tip(__('This option may cause performance issues'), true).''; echo "".html_print_checkbox('fullscale', 1, $fullscale, true).''; echo ''; echo ''; if ($edit_graph) { echo "
"; } else { echo "
"; } echo ''; echo '';