2013-01-30 Miguel de Dios <miguel.dedios@artica.es>

* godmode/agentes/modificar_agente.php: fixed the menu to showing
	in the link to view agent.
	
	* operation/agentes/estado_monitores.php: cleaned source code style.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7551 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-01-30 14:09:28 +00:00
parent 4b174a29b0
commit 80bd04ca3c
3 changed files with 19 additions and 16 deletions

View File

@ -1,3 +1,10 @@
2013-01-30 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/modificar_agente.php: fixed the menu to showing
in the link to view agent.
* operation/agentes/estado_monitores.php: cleaned source code style.
2013-01-30 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/planned_downtime.list.php, include/db/oracle.php,

View File

@ -462,7 +462,7 @@ if ($agents !== false) {
sec2=godmode/agentes/configurar_agente&tab=alert&
id_agente='.$agent["id_agente"].'">'.__('Alerts').'</a>';
echo ' | ';
echo '<a href="index.php?sec=gagente
echo '<a href="index.php?sec=estado
&sec2=operation/agentes/ver_agente
&id_agente='.$agent["id_agente"].'">'.__('View').'</a>';

View File

@ -440,26 +440,22 @@ foreach ($modules as $module) {
}
else {
$module_value = io_safe_output($module["datos"]);
// There are carriage returns here ?
// If carriage returns present... then is a "Snapshot" data (full command output)
if (preg_match ("/[\n]+/i", io_safe_output($module["datos"]))){
$handle = "snapshot"."_".$module["id_agente_modulo"];
$url = 'include/procesos.php?agente='.$module["id_agente_modulo"];
$win_handle=dechex(crc32($handle));
$handle = "snapshot"."_".$module["id_agente_modulo"];
$url = 'include/procesos.php?agente='.$module["id_agente_modulo"];
$win_handle=dechex(crc32($handle));
$link ="winopeng_var('operation/agentes/snapshot_view.php?id=".$module["id_agente_modulo"]."&refr=".$module["current_interval"]."&label=".$module["nombre"]."','".$win_handle."', 700,480)";
$salida = '<a href="javascript:'.$link.'">' . html_print_image("images/default_list.png", true, array("border" => '0', "alt" => "", "title" => __("Snapshot view"))) . '</a> &nbsp;&nbsp;';
// $link ="winopeng('operation/agentes/snapshot_view.php?id=".$module["id_agente_modulo"]."',$win_handle)";
// $salida = '<a href="javascript:'.$link.'">' . html_print_image("images/default_list.png", true, array("border" => '0', "alt" => "")) . '</a> &nbsp;&nbsp;';
} else {
$salida = '<a href="javascript:'.$link.'">' . html_print_image("images/default_list.png", true, array("border" => '0', "alt" => "", "title" => __("Snapshot view"))) . '</a> &nbsp;&nbsp;';
}
else {
$sub_string = substr(io_safe_output($module["datos"]),0, 12);
if ($module_value == $sub_string) {
$salida = $module_value;
}