mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 03:19:05 +02:00
New function pandora ux with metaconsole #90
This commit is contained in:
parent
7fc30b3275
commit
74fe9a0228
@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if(check_login()){
|
||||||
|
|
||||||
//Pandora FMS- http://pandorafms.com
|
//Pandora FMS- http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
|
||||||
@ -292,7 +294,7 @@ if ($get_module_detail) {
|
|||||||
$data[] = 'No data';
|
$data[] = 'No data';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$data[] = io_safe_input($row[$attr[0]]);
|
$data[] = "<a target='_blank' href='".io_safe_input($row[$attr[0]])."'><img style='width:300px' src='".io_safe_input($row[$attr[0]])."'></a>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1063,5 +1065,6 @@ if ($get_type) {
|
|||||||
echo $graph_type;
|
echo $graph_type;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -1315,11 +1315,16 @@ if (!empty($result)) {
|
|||||||
$handle = 'snapshot_' . $row['id_agente_modulo'];
|
$handle = 'snapshot_' . $row['id_agente_modulo'];
|
||||||
$url = 'include/procesos.php?agente=' . $row['id_agente_modulo'];
|
$url = 'include/procesos.php?agente=' . $row['id_agente_modulo'];
|
||||||
$win_handle = dechex(crc32($handle));
|
$win_handle = dechex(crc32($handle));
|
||||||
|
if (! defined ('METACONSOLE')) {
|
||||||
$link = "winopeng_var('operation/agentes/snapshot_view.php?" .
|
$link = "winopeng_var('operation/agentes/snapshot_view.php?" .
|
||||||
"id=" . $row['id_agente_modulo'] .
|
"id=" . $row['id_agente_modulo'] .
|
||||||
"&refr=" . $row['current_interval'] .
|
"&refr=" . $row['current_interval'] .
|
||||||
"&label=" . rawurlencode(urlencode(io_safe_output($row['module_name']))) . "','" . $win_handle . "', 700,480)";
|
"&label=" . rawurlencode(urlencode(io_safe_output($row['module_name']))) . "','" . $win_handle . "', 700,480)";
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$link = "winopeng_var('$row[datos]','',700,480)";
|
||||||
|
|
||||||
|
}
|
||||||
if(!is_snapshot_data($row['datos'])){
|
if(!is_snapshot_data($row['datos'])){
|
||||||
$salida = '<a href="javascript:' . $link . '">' .
|
$salida = '<a href="javascript:' . $link . '">' .
|
||||||
html_print_image('images/default_list.png', true,
|
html_print_image('images/default_list.png', true,
|
||||||
@ -1480,11 +1485,8 @@ $('#moduletype').click(function(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var server_name = '';
|
|
||||||
var extra_parameters = '';
|
|
||||||
if ($('input[name=selection_mode]:checked').val()) {
|
|
||||||
|
|
||||||
period = $('#period').val();
|
if ($('input[name=selection_mode]:checked').val()) {
|
||||||
|
|
||||||
var selection_mode = $('input[name=selection_mode]:checked').val();
|
var selection_mode = $('input[name=selection_mode]:checked').val();
|
||||||
var date_from = $('#text-date_from').val();
|
var date_from = $('#text-date_from').val();
|
||||||
@ -1492,7 +1494,7 @@ $('#moduletype').click(function(){
|
|||||||
var date_to = $('#text-date_to').val();
|
var date_to = $('#text-date_to').val();
|
||||||
var time_to = $('#text-time_to').val();
|
var time_to = $('#text-time_to').val();
|
||||||
|
|
||||||
extra_parameters = '&selection_mode=' + selection_mode + '&date_from=' + date_from + '&date_to=' + date_to + '&time_from=' + time_from + '&time_to=' + time_to;
|
var extra_parameters = '&selection_mode=' + selection_mode + '&date_from=' + date_from + '&date_to=' + date_to + '&time_from=' + time_from + '&time_to=' + time_to;
|
||||||
|
|
||||||
}
|
}
|
||||||
title = <?php echo "\"" . __("Module: ") . "\"" ?>;
|
title = <?php echo "\"" . __("Module: ") . "\"" ?>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user