mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Add new view when no have data in this view
(cherry picked from commit 15fb6f20a4e0e26fc2cf8f895f4d54d58ba792e6)
This commit is contained in:
parent
ba091112f6
commit
06b56d80c8
26
pandora_console/general/firts_task/custom_graphs.php
Normal file
26
pandora_console/general/firts_task/custom_graphs.php
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
global $config;
|
||||||
|
check_login ();
|
||||||
|
ui_require_css_file ('firts_task');
|
||||||
|
?>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no custom graphs defined yet.') ) );
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="new_task">
|
||||||
|
<div class="image_task">
|
||||||
|
<?php echo html_print_image('images/firts_task/icono_grande_custom_reporting.png', true, array("title" => __('Custom Graphs')));?>
|
||||||
|
</div>
|
||||||
|
<div class="text_task">
|
||||||
|
<h3> <?php echo __('Create Custom Graph'); ?></h3>
|
||||||
|
<p id="description_task"> <?php echo __('The Recon Task definition of Pandora FMS is used to find new elements in the network.
|
||||||
|
If it detects any item, it will add that item to the monitoring, and if that item it is already being monitored, then it will
|
||||||
|
ignore it or will update its information.There are three types of detection: Based on <strong id="fuerte"> ICMP </strong>(pings),
|
||||||
|
<strong id="fuerte">SNMP</strong> (detecting the topology of networks and their interfaces), and other <strong id="fuerte"> customized </strong>
|
||||||
|
type. You can define your own customized recon script.'); ?></p>
|
||||||
|
<form action="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&create" method="post">
|
||||||
|
<input type="submit" class="button_task" value="<?php echo __('Create Custom Graph'); ?>" />
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
26
pandora_console/general/firts_task/incidents.php
Normal file
26
pandora_console/general/firts_task/incidents.php
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
global $config;
|
||||||
|
check_login ();
|
||||||
|
ui_require_css_file ('firts_task');
|
||||||
|
?>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no incidents defined yet.') ) );
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div class="new_task">
|
||||||
|
<div class="image_task">
|
||||||
|
<?php echo html_print_image('images/firts_task/icono_grande_custom_reporting.png', true, array("title" => __('Incidents')));?>
|
||||||
|
</div>
|
||||||
|
<div class="text_task">
|
||||||
|
<h3> <?php echo __('Create Incidents'); ?></h3>
|
||||||
|
<p id="description_task"> <?php echo __('The Recon Task definition of Pandora FMS is used to find new elements in the network.
|
||||||
|
If it detects any item, it will add that item to the monitoring, and if that item it is already being monitored, then it will
|
||||||
|
ignore it or will update its information.There are three types of detection: Based on <strong id="fuerte"> ICMP </strong>(pings),
|
||||||
|
<strong id="fuerte">SNMP</strong> (detecting the topology of networks and their interfaces), and other <strong id="fuerte"> customized </strong>
|
||||||
|
type. You can define your own customized recon script.'); ?></p>
|
||||||
|
<form action="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&create" method="post">
|
||||||
|
<input type="submit" class="button_task" value="<?php echo __('Create Incidents'); ?>" />
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -3,21 +3,21 @@ global $config;
|
|||||||
check_login ();
|
check_login ();
|
||||||
ui_require_css_file ('firts_task');
|
ui_require_css_file ('firts_task');
|
||||||
?>
|
?>
|
||||||
<?php ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no recon task defined yet.') ) ); ?>
|
<?php ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no visual console defined yet.') ) ); ?>
|
||||||
|
|
||||||
<div class="new_task">
|
<div class="new_task">
|
||||||
<div class="image_task">
|
<div class="image_task">
|
||||||
<?php echo html_print_image('images/firts_task/icono_grande_reconserver.png', true, array("alt" => __('Recon server')));?>
|
<?php echo html_print_image('images/firts_task/icono_grande_visualconsole.png', true, array("title" => __('Visual Console')));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="text_task">
|
<div class="text_task">
|
||||||
<h3> <?php echo __('Create Recon Task'); ?></h3>
|
<h3> <?php echo __('Create Visual Console'); ?></h3>
|
||||||
<p id="description_task"> <?php echo __('The Recon Task definition of Pandora FMS is used to find new elements in the network.
|
<p id="description_task"> <?php echo __('The Recon Task definition of Pandora FMS is used to find new elements in the network.
|
||||||
If it detects any item, it will add that item to the monitoring, and if that item it is already being monitored, then it will
|
If it detects any item, it will add that item to the monitoring, and if that item it is already being monitored, then it will
|
||||||
ignore it or will update its information.There are three types of detection: Based on <strong id="fuerte"> ICMP </strong>(pings),
|
ignore it or will update its information.There are three types of detection: Based on <strong id="fuerte"> ICMP </strong>(pings),
|
||||||
<strong id="fuerte">SNMP</strong> (detecting the topology of networks and their interfaces), and other <strong id="fuerte"> customized </strong>
|
<strong id="fuerte">SNMP</strong> (detecting the topology of networks and their interfaces), and other <strong id="fuerte"> customized </strong>
|
||||||
type. You can define your own customized recon script.'); ?></p>
|
type. You can define your own customized recon script.'); ?></p>
|
||||||
<form action="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&create" method="post">
|
<form action="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&create" method="post">
|
||||||
<input type="submit" class="button_task" value="<?php echo __('Create Recon Task'); ?>" />
|
<input type="submit" class="button_task" value="<?php echo __('Create Visual Console'); ?>" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,17 +5,17 @@ ui_require_css_file ('firts_task');
|
|||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no recon task defined yet.') ) );
|
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no network map defined yet.') ) );
|
||||||
$strict_user = db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_user']);
|
$strict_user = db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_user']);
|
||||||
$networkmap_types = networkmap_get_types($strict_user);
|
$networkmap_types = networkmap_get_types($strict_user);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="new_task">
|
<div class="new_task">
|
||||||
<div class="image_task">
|
<div class="image_task">
|
||||||
<?php echo html_print_image('images/firts_task/icono_grande_reconserver.png', true, array("alt" => __('Recon server')));?>
|
<?php echo html_print_image('images/firts_task/icono_grande_reconserver.png', true, array("title" => __('Network Map')));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="text_task">
|
<div class="text_task">
|
||||||
<h3> <?php echo __('Create Recon Task'); ?></h3>
|
<h3> <?php echo __('Create Network Map'); ?></h3>
|
||||||
<p id="description_task"> <?php echo __("There is also an open-source version of the network map.
|
<p id="description_task"> <?php echo __("There is also an open-source version of the network map.
|
||||||
This functionality allows to graphically display the nodes and relationships, agents, modules and groups available to the user.
|
This functionality allows to graphically display the nodes and relationships, agents, modules and groups available to the user.
|
||||||
There are three types of network maps:
|
There are three types of network maps:
|
||||||
@ -27,7 +27,7 @@ $networkmap_types = networkmap_get_types($strict_user);
|
|||||||
html_print_input_hidden('add_networkmap', 1);
|
html_print_input_hidden('add_networkmap', 1);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<input type="submit" class="button_task" value="<?php echo __('Create Recon Task'); ?>" />
|
<input type="submit" class="button_task" value="<?php echo __('Create Network Map'); ?>" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
23
pandora_console/general/firts_task/planned_downtime.php
Normal file
23
pandora_console/general/firts_task/planned_downtime.php
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
global $config;
|
||||||
|
check_login ();
|
||||||
|
ui_require_css_file ('firts_task');
|
||||||
|
?>
|
||||||
|
<?php ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no planned downtime defined yet.') ) ); ?>
|
||||||
|
|
||||||
|
<div class="new_task">
|
||||||
|
<div class="image_task">
|
||||||
|
<?php echo html_print_image('images/firts_task/icono_grande_visualconsole.png', true, array("title" => __('Planned Downtime')));?>
|
||||||
|
</div>
|
||||||
|
<div class="text_task">
|
||||||
|
<h3> <?php echo __('Create Planned Downtime'); ?></h3>
|
||||||
|
<p id="description_task"> <?php echo __('The Recon Task definition of Pandora FMS is used to find new elements in the network.
|
||||||
|
If it detects any item, it will add that item to the monitoring, and if that item it is already being monitored, then it will
|
||||||
|
ignore it or will update its information.There are three types of detection: Based on <strong id="fuerte"> ICMP </strong>(pings),
|
||||||
|
<strong id="fuerte">SNMP</strong> (detecting the topology of networks and their interfaces), and other <strong id="fuerte"> customized </strong>
|
||||||
|
type. You can define your own customized recon script.'); ?></p>
|
||||||
|
<form action="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&create" method="post">
|
||||||
|
<input type="submit" class="button_task" value="<?php echo __('Create Planned Downtime'); ?>" />
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -212,14 +212,14 @@ $module_name = $filter_params['module_name'] = (string) (!empty($module_id) ?
|
|||||||
$filter_params_str = http_build_query($filter_params);
|
$filter_params_str = http_build_query($filter_params);
|
||||||
|
|
||||||
// Table filter
|
// Table filter
|
||||||
$table = new StdClass();
|
$table_form = new StdClass();
|
||||||
$table->class = 'databox filters';
|
$table_form->class = 'databox filters';
|
||||||
$table->width = '100%';
|
$table_form->width = '100%';
|
||||||
$table->rowstyle = array();
|
$table_form->rowstyle = array();
|
||||||
$table->rowstyle[0] = "background-color: #f9faf9;";
|
$table_form->rowstyle[0] = "background-color: #f9faf9;";
|
||||||
$table->rowstyle[1] = "background-color: #f9faf9;";
|
$table_form->rowstyle[1] = "background-color: #f9faf9;";
|
||||||
$table->rowstyle[2] = "background-color: #f9faf9;";
|
$table_form->rowstyle[2] = "background-color: #f9faf9;";
|
||||||
$table->data = array();
|
$table_form->data = array();
|
||||||
|
|
||||||
$row = array();
|
$row = array();
|
||||||
|
|
||||||
@ -231,7 +231,7 @@ $date_inputs .= " ";
|
|||||||
$date_inputs .= __('To') . ' ' . html_print_input_text('date_to', $date_to, '', 10, 10, true);
|
$date_inputs .= __('To') . ' ' . html_print_input_text('date_to', $date_to, '', 10, 10, true);
|
||||||
$row[] = $date_inputs;
|
$row[] = $date_inputs;
|
||||||
|
|
||||||
$table->data[] = $row;
|
$table_form->data[] = $row;
|
||||||
|
|
||||||
$row = array();
|
$row = array();
|
||||||
|
|
||||||
@ -241,7 +241,7 @@ $row[] = __('Execution type') . ' ' . html_print_select($execution_type_fie
|
|||||||
// Show past downtimes
|
// Show past downtimes
|
||||||
$row[] = __('Show past downtimes') . ' ' . html_print_checkbox ("archived", 1, $show_archived, true);
|
$row[] = __('Show past downtimes') . ' ' . html_print_checkbox ("archived", 1, $show_archived, true);
|
||||||
|
|
||||||
$table->data[] = $row;
|
$table_form->data[] = $row;
|
||||||
|
|
||||||
$row = array();
|
$row = array();
|
||||||
|
|
||||||
@ -262,11 +262,8 @@ $row[] = __('Module') . ' ' . html_print_autocomplete_modules('module_name'
|
|||||||
|
|
||||||
$row[] = html_print_submit_button('Search', 'search', false, 'class="sub search"', true);
|
$row[] = html_print_submit_button('Search', 'search', false, 'class="sub search"', true);
|
||||||
|
|
||||||
$table->data[] = $row;
|
$table_form->data[] = $row;
|
||||||
|
|
||||||
echo "<form method='post' action='index.php?sec=estado&sec2=godmode/agentes/planned_downtime.list'>";
|
|
||||||
html_print_table($table);
|
|
||||||
echo "</form>";
|
|
||||||
|
|
||||||
// View available downtimes present in database (if any of them)
|
// View available downtimes present in database (if any of them)
|
||||||
$table = new StdClass();
|
$table = new StdClass();
|
||||||
@ -438,9 +435,13 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!$downtimes) {
|
if (!$downtimes) {
|
||||||
echo '<div class="nf">'.__('No planned downtime').'</div>';
|
require_once ($config['homedir'] . "/general/firts_task/planned_downtime.php");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
echo "<form method='post' action='index.php?sec=estado&sec2=godmode/agentes/planned_downtime.list'>";
|
||||||
|
html_print_table($table_form);
|
||||||
|
echo "</form>";
|
||||||
|
|
||||||
ui_pagination($downtimes_number, "index.php?sec=estado&sec2=godmode/agentes/planned_downtime.list&$filter_params_str", $offset);
|
ui_pagination($downtimes_number, "index.php?sec=estado&sec2=godmode/agentes/planned_downtime.list&$filter_params_str", $offset);
|
||||||
|
|
||||||
foreach ($downtimes as $downtime) {
|
foreach ($downtimes as $downtime) {
|
||||||
@ -571,18 +572,20 @@ else {
|
|||||||
array_push ($table->data, $data);
|
array_push ($table->data, $data);
|
||||||
}
|
}
|
||||||
html_print_table ($table);
|
html_print_table ($table);
|
||||||
}
|
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
|
||||||
|
echo '<br>';
|
||||||
|
echo '<div style="display: inline;">';
|
||||||
|
html_print_button(__('Export to CSV'), 'csv_export', false,
|
||||||
|
"location.href='godmode/agentes/planned_downtime.export_csv.php?$filter_params_str'", 'class="sub next"');
|
||||||
|
echo '</div>';
|
||||||
|
echo ' ';
|
||||||
|
echo '<form method="post" action="index.php?sec=estado&sec2=godmode/agentes/planned_downtime.editor" style="display: inline;">';
|
||||||
|
html_print_submit_button (__('Create'), 'create', false, 'class="sub next"');
|
||||||
|
echo '</form>';
|
||||||
|
echo '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
echo '<br>';
|
|
||||||
echo '<div style="display: inline;">';
|
|
||||||
html_print_button(__('Export to CSV'), 'csv_export', false, "location.href='godmode/agentes/planned_downtime.export_csv.php?$filter_params_str'", 'class="sub next"');
|
|
||||||
echo '</div>';
|
|
||||||
echo ' ';
|
|
||||||
echo '<form method="post" action="index.php?sec=estado&sec2=godmode/agentes/planned_downtime.editor" style="display: inline;">';
|
|
||||||
html_print_submit_button (__('Create'), 'create', false, 'class="sub next"');
|
|
||||||
echo '</form>';
|
|
||||||
echo '</div>';
|
|
||||||
|
|
||||||
|
|
||||||
ui_require_jquery_file("ui.datepicker-" . get_user_language(), "include/javascript/i18n/");
|
ui_require_jquery_file("ui.datepicker-" . get_user_language(), "include/javascript/i18n/");
|
||||||
|
@ -141,11 +141,11 @@ else {
|
|||||||
|
|
||||||
echo '<table width="100%" cellpadding="4" cellspacing="4" class="databox filters">';
|
echo '<table width="100%" cellpadding="4" cellspacing="4" class="databox filters">';
|
||||||
|
|
||||||
echo '<tr><td class="datos">'.__('Name').'</td><td class="datos">';
|
echo '<tr><td class="datos">' . "<b>" . __('Name') . "</b>" . '</td><td class="datos">';
|
||||||
html_print_input_text ("name", $name, '', 63);
|
html_print_input_text ("name", $name, '', 63);
|
||||||
echo '</td></tr>';
|
echo '</td></tr>';
|
||||||
|
|
||||||
echo '<tr><td class="datos2">'.__('Description').'</td>';
|
echo '<tr><td class="datos2">' . "<b>" . __('Description') . "</b>" . '</td>';
|
||||||
echo '<td class="datos2">';
|
echo '<td class="datos2">';
|
||||||
html_print_textarea ("description", 2, 60, $description);
|
html_print_textarea ("description", 2, 60, $description);
|
||||||
echo "</td></tr>";
|
echo "</td></tr>";
|
||||||
@ -233,11 +233,13 @@ if ($id_np > 0) {
|
|||||||
$table->cellspacing = 0;
|
$table->cellspacing = 0;
|
||||||
$table->class = "databox filters";
|
$table->class = "databox filters";
|
||||||
|
|
||||||
|
$table->style[0] = 'font-weight: bold';
|
||||||
|
|
||||||
//The form to submit when adding a list of components
|
//The form to submit when adding a list of components
|
||||||
|
|
||||||
$filter = '<form name="filter_component" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&ncgroup='.$ncgroup.'&id_np='.$id_np.'#filter">';
|
$filter = '<form name="filter_component" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&ncgroup='.$ncgroup.'&id_np='.$id_np.'#filter">';
|
||||||
$filter .= html_print_input_text ('ncfilter', $ncfilter, '', 50, 255, true);
|
$filter .= html_print_input_text ('ncfilter', $ncfilter, '', 50, 255, true);
|
||||||
$filter .= ' '.html_print_submit_button (__('Filter'), 'ncgbutton', false, 'class="sub search"', true);
|
$filter .= ' '.html_print_submit_button (__('Filter'), 'ncgbutton', false, 'class="sub search"', true);
|
||||||
$filter .= '</form>';
|
$filter .= '</form>';
|
||||||
|
|
||||||
$group_filter = '<form name="filter_group" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np='.$id_np.'#filter">';
|
$group_filter = '<form name="filter_group" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np='.$id_np.'#filter">';
|
||||||
|
@ -182,34 +182,31 @@ if (!empty ($graphs)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
html_print_table ($table);
|
html_print_table ($table);
|
||||||
|
|
||||||
|
echo "<table width='100%'>";
|
||||||
|
echo "<tr>";
|
||||||
|
echo "<td>";
|
||||||
|
echo "<div style='float: right;'>";
|
||||||
|
if (!empty($graphs)){
|
||||||
|
echo "<form method='post' style='float:right;' action='index.php?sec=reporting&sec2=godmode/reporting/graphs'>";
|
||||||
|
html_print_input_hidden('multiple_delete', 1);
|
||||||
|
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||||
|
echo "</form>";
|
||||||
|
}
|
||||||
|
if (check_acl ($config['id_user'], 0, "RW")) {
|
||||||
|
echo '<form method="post" style="float:right;" action="index.php?sec=reporting&sec2=godmode/reporting/graph_builder">';
|
||||||
|
html_print_submit_button (__('Create graph'), 'create', false, 'class="sub next" style="margin-right:5px;"');
|
||||||
|
echo "</form>";
|
||||||
|
}
|
||||||
|
echo "</div>";
|
||||||
|
echo "</td>";
|
||||||
|
echo "</tr>";
|
||||||
|
echo "</table>";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no defined graphs.') ) );
|
require_once ($config['homedir'] . "/general/firts_task/custom_graphs.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<table width='100%'>";
|
|
||||||
echo "<tr>";
|
|
||||||
echo "<td>";
|
|
||||||
echo "<div style='float: right;'>";
|
|
||||||
if (!empty($graphs)){
|
|
||||||
echo "<form method='post' style='float:right;' action='index.php?sec=reporting&sec2=godmode/reporting/graphs'>";
|
|
||||||
html_print_input_hidden('multiple_delete', 1);
|
|
||||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
|
||||||
echo "</form>";
|
|
||||||
}
|
|
||||||
if (check_acl ($config['id_user'], 0, "RW")) {
|
|
||||||
echo '<form method="post" style="float:right;" action="index.php?sec=reporting&sec2=godmode/reporting/graph_builder">';
|
|
||||||
html_print_submit_button (__('Create graph'), 'create', false, 'class="sub next" style="margin-right:5px;"');
|
|
||||||
echo "</form>";
|
|
||||||
}
|
|
||||||
echo "</div>";
|
|
||||||
echo "</td>";
|
|
||||||
echo "</tr>";
|
|
||||||
echo "</table>";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -232,9 +232,7 @@ else
|
|||||||
false, false);
|
false, false);
|
||||||
|
|
||||||
if (!$maps) {
|
if (!$maps) {
|
||||||
ui_print_info_message (
|
require_once ($config['homedir'] . "/general/firts_task/map_builder.php");
|
||||||
array('no_close'=>true,
|
|
||||||
'message'=> __('No maps defined')));
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
foreach ($maps as $map) {
|
foreach ($maps as $map) {
|
||||||
@ -274,27 +272,25 @@ else {
|
|||||||
}
|
}
|
||||||
html_print_table ($table);
|
html_print_table ($table);
|
||||||
}
|
}
|
||||||
if (!$maps) {
|
if ($maps) {
|
||||||
if (!defined('METACONSOLE'))
|
if (!defined('METACONSOLE'))
|
||||||
echo '<div class="action-buttons" style="width: 0px;">';
|
echo '<div class="action-buttons" style="width: 0px;">';
|
||||||
else
|
else
|
||||||
echo '<div class="action-buttons" style="width: 500px; text-align: right;">';
|
echo '<div class="action-buttons" style="width: 500px; text-align: right;">';
|
||||||
}
|
}
|
||||||
else {
|
if ($maps) {
|
||||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
if ($vconsoles_write || $vconsoles_manage) {
|
||||||
}
|
if (!defined('METACONSOLE')) {
|
||||||
|
echo '<form action="index.php?sec=reporting&sec2=godmode/reporting/visual_console_builder" method="post">';
|
||||||
if ($vconsoles_write || $vconsoles_manage) {
|
}
|
||||||
if (!defined('METACONSOLE')) {
|
else {
|
||||||
echo '<form action="index.php?sec=reporting&sec2=godmode/reporting/visual_console_builder" method="post">';
|
echo '<form action="index.php?sec=screen&sec2=screens/screens&action=visualmap&action2=new&operation=new_visualmap&tab=data&pure=' . $pure . '" method="post">';
|
||||||
|
}
|
||||||
|
html_print_input_hidden ('edit_layout', 1);
|
||||||
|
html_print_submit_button (__('Create'), '', false,
|
||||||
|
'class="sub next"');
|
||||||
|
echo '</form>';
|
||||||
}
|
}
|
||||||
else {
|
echo '</div>';
|
||||||
echo '<form action="index.php?sec=screen&sec2=screens/screens&action=visualmap&action2=new&operation=new_visualmap&tab=data&pure=' . $pure . '" method="post">';
|
|
||||||
}
|
|
||||||
html_print_input_hidden ('edit_layout', 1);
|
|
||||||
html_print_submit_button (__('Create'), '', false,
|
|
||||||
'class="sub next"');
|
|
||||||
echo '</form>';
|
|
||||||
}
|
}
|
||||||
echo '</div>';
|
|
||||||
?>
|
?>
|
||||||
|
@ -208,80 +208,81 @@ if (empty ($result)) {
|
|||||||
$result = array ();
|
$result = array ();
|
||||||
$count = 0;
|
$count = 0;
|
||||||
}
|
}
|
||||||
|
if ($count >= 1) {
|
||||||
|
echo '<form name="visualizacion" method="post" action="index.php?sec=workspace&sec2=operation/incidents/incident">';
|
||||||
|
|
||||||
echo '<form name="visualizacion" method="post" action="index.php?sec=workspace&sec2=operation/incidents/incident">';
|
echo '<table class="databox filters" cellpadding="4" cellspacing="4" width="100%"><tr>
|
||||||
|
<td valign="middle"><h3>'.__('Filter').'</h3>';
|
||||||
|
|
||||||
echo '<table class="databox filters" cellpadding="4" cellspacing="4" width="100%"><tr>
|
$fields = incidents_get_status ();
|
||||||
<td valign="middle"><h3>'.__('Filter').'</h3>';
|
echo "<b>" . __("Incidents:") . "</b>" . ' ';
|
||||||
|
html_print_select ($fields, "estado", $estado, 'javascript:this.form.submit();', __('All incidents'), -1, false, false, false, 'w155');
|
||||||
|
|
||||||
$fields = incidents_get_status ();
|
//Legend
|
||||||
echo "<b>" . __("Incidents:") . "</b>" . ' ';
|
echo '</td><td valign="middle"><noscript>';
|
||||||
html_print_select ($fields, "estado", $estado, 'javascript:this.form.submit();', __('All incidents'), -1, false, false, false, 'w155');
|
html_print_submit_button (__('Show'), 'submit-estado', false, array ("class" => "sub"));
|
||||||
|
|
||||||
//Legend
|
echo '</noscript></td><td rowspan="7" class="f9" style="padding-left: 30px; vertical-align: top;"><h3>'.__('Status').'</h3>';
|
||||||
echo '</td><td valign="middle"><noscript>';
|
foreach (incidents_get_status () as $id => $str) {
|
||||||
html_print_submit_button (__('Show'), 'submit-estado', false, array ("class" => "sub"));
|
incidents_print_status_img ($id);
|
||||||
|
echo ' - ' . $str . '<br />';
|
||||||
|
}
|
||||||
|
|
||||||
echo '</noscript></td><td rowspan="7" class="f9" style="padding-left: 30px; vertical-align: top;"><h3>'.__('Status').'</h3>';
|
echo '</td><td rowspan="7" class="f9" style="padding-left: 30px; vertical-align: top;"><h3>'.__('Priority').'</h3>';
|
||||||
foreach (incidents_get_status () as $id => $str) {
|
foreach (incidents_get_priorities () as $id => $str) {
|
||||||
incidents_print_status_img ($id);
|
incidents_print_priority_img ($id);
|
||||||
echo ' - ' . $str . '<br />';
|
echo ' - ' . $str . '<br />';
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '</td></tr><tr><td>';
|
||||||
|
|
||||||
|
$fields = incidents_get_priorities ();
|
||||||
|
|
||||||
|
echo "<b>" . __("Priorities:") . "</b>" . ' ';
|
||||||
|
html_print_select ($fields, "prioridad", $prioridad, 'javascript:this.form.submit();', __('All priorities'), -1,false,false,false,'w155');
|
||||||
|
|
||||||
|
echo '</td></tr><tr><td>';
|
||||||
|
|
||||||
|
echo "<b>" . __("Users:") . "</b>" . ' ';
|
||||||
|
html_print_select (users_get_info (), "usuario", $usuario, 'javascript:this.form.submit();', __('All users'), "", false, false, false, "w155");
|
||||||
|
|
||||||
|
echo '</td></tr><tr><td>';
|
||||||
|
|
||||||
|
$agents_incidents = agents_get_agents(false, array('id_agente', 'nombre'));
|
||||||
|
|
||||||
|
if ($agents_incidents === false) {
|
||||||
|
$agents_incidents = array();
|
||||||
|
}
|
||||||
|
|
||||||
|
$result_agent_incidents = array();
|
||||||
|
foreach ($agents_incidents as $agent_incident) {
|
||||||
|
$result_agent_incidents[$agent_incident['id_agente']] = $agent_incident['nombre'];
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "<b>" . __("Agents:") . "</b>" . ' ';
|
||||||
|
html_print_select ($result_agent_incidents, "agent_search",
|
||||||
|
$agent_search, 'javascript:this.form.submit();', __('All agents'),
|
||||||
|
"", false, false, false, "w155");
|
||||||
|
|
||||||
|
echo '</td></tr><tr><td colspan=3>';
|
||||||
|
|
||||||
|
echo "<b>" . __("Groups:") . "</b>" . ' ';
|
||||||
|
html_print_select_groups($config["id_user"], "IR", true, "grupo", $grupo, 'javascript:this.form.submit();', '', '',false,false,false,'w155');
|
||||||
|
|
||||||
|
//echo " ";
|
||||||
|
echo '</td></tr><tr><td colspan=3>';
|
||||||
|
|
||||||
|
echo "<b>" . __("Free text:") . "</b>" . ' ';
|
||||||
|
html_print_input_text ('texto', $texto, '', 45);
|
||||||
|
echo ' ';
|
||||||
|
html_print_input_image ("submit", "images/zoom.png", __('Search'), 'padding:0;', false, array ("alt" => __('Search')));
|
||||||
|
|
||||||
|
echo "</td></tr></table>";
|
||||||
|
echo '</form>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</td><td rowspan="7" class="f9" style="padding-left: 30px; vertical-align: top;"><h3>'.__('Priority').'</h3>';
|
|
||||||
foreach (incidents_get_priorities () as $id => $str) {
|
|
||||||
incidents_print_priority_img ($id);
|
|
||||||
echo ' - ' . $str . '<br />';
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '</td></tr><tr><td>';
|
|
||||||
|
|
||||||
$fields = incidents_get_priorities ();
|
|
||||||
|
|
||||||
echo "<b>" . __("Priorities:") . "</b>" . ' ';
|
|
||||||
html_print_select ($fields, "prioridad", $prioridad, 'javascript:this.form.submit();', __('All priorities'), -1,false,false,false,'w155');
|
|
||||||
|
|
||||||
echo '</td></tr><tr><td>';
|
|
||||||
|
|
||||||
echo "<b>" . __("Users:") . "</b>" . ' ';
|
|
||||||
html_print_select (users_get_info (), "usuario", $usuario, 'javascript:this.form.submit();', __('All users'), "", false, false, false, "w155");
|
|
||||||
|
|
||||||
echo '</td></tr><tr><td>';
|
|
||||||
|
|
||||||
$agents_incidents = agents_get_agents(false, array('id_agente', 'nombre'));
|
|
||||||
|
|
||||||
if ($agents_incidents === false) {
|
|
||||||
$agents_incidents = array();
|
|
||||||
}
|
|
||||||
|
|
||||||
$result_agent_incidents = array();
|
|
||||||
foreach ($agents_incidents as $agent_incident) {
|
|
||||||
$result_agent_incidents[$agent_incident['id_agente']] = $agent_incident['nombre'];
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "<b>" . __("Agents:") . "</b>" . ' ';
|
|
||||||
html_print_select ($result_agent_incidents, "agent_search",
|
|
||||||
$agent_search, 'javascript:this.form.submit();', __('All agents'),
|
|
||||||
"", false, false, false, "w155");
|
|
||||||
|
|
||||||
echo '</td></tr><tr><td colspan=3>';
|
|
||||||
|
|
||||||
echo "<b>" . __("Groups:") . "</b>" . ' ';
|
|
||||||
html_print_select_groups($config["id_user"], "IR", true, "grupo", $grupo, 'javascript:this.form.submit();', '', '',false,false,false,'w155');
|
|
||||||
|
|
||||||
//echo " ";
|
|
||||||
echo '</td></tr><tr><td colspan=3>';
|
|
||||||
|
|
||||||
echo "<b>" . __("Free text:") . "</b>" . ' ';
|
|
||||||
html_print_input_text ('texto', $texto, '', 45);
|
|
||||||
echo ' ';
|
|
||||||
html_print_input_image ("submit", "images/zoom.png", __('Search'), 'padding:0;', false, array ("alt" => __('Search')));
|
|
||||||
|
|
||||||
echo "</td></tr></table>";
|
|
||||||
echo '</form>';
|
|
||||||
|
|
||||||
if ($count < 1) {
|
if ($count < 1) {
|
||||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('No incidents match your search filter.') ) );
|
require_once ($config['homedir'] . "/general/firts_task/incidents.php");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// TOTAL incidents
|
// TOTAL incidents
|
||||||
@ -388,14 +389,15 @@ else {
|
|||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
unset ($table);
|
unset ($table);
|
||||||
|
if (check_acl ($config["id_user"], 0, "IW")) {
|
||||||
|
echo '<div style="text-align:right; float:right; padding-right: 5px;">';
|
||||||
|
echo '<form method="post" action="index.php?sec=workspace&sec2=operation/incidents/incident_detail&insert_form=1">';
|
||||||
|
html_print_submit_button (__('Create incident'), 'crt', false, 'class="sub next"');
|
||||||
|
echo '</form>';
|
||||||
|
echo '</div>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (check_acl ($config["id_user"], 0, "IW")) {
|
|
||||||
echo '<div style="text-align:right; float:right; padding-right: 5px;">';
|
|
||||||
echo '<form method="post" action="index.php?sec=workspace&sec2=operation/incidents/incident_detail&insert_form=1">';
|
|
||||||
html_print_submit_button (__('Create incident'), 'crt', false, 'class="sub next"');
|
|
||||||
echo '</form>';
|
|
||||||
echo '</div>';
|
|
||||||
}
|
|
||||||
echo '<div style="clear:both"> </div>';
|
echo '<div style="clear:both"> </div>';
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user