diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 2cee6011d2..2d9459de09 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,40 @@ +2007-04-21 Sancho Lerena + + * include/languages/language_en.php: New strings added. + + * include/functions.php: Added function output_clean_strict(). + + * operation/agentes/estado_ultimopaquete.php: Fixed title when + some ugly characters used (like #). + + * operation/agentes/estado_generalagente.php: OS icon show, + ignoring $agent_type parameter. + + * operation/agentes/estado_agente.php: OS icon show, ignoring + agent_type variable. + + * godmode/grupos/configurar_grupo.php: Now it's possible to define + parent group. + + * godmode/grupos/lista_grupos.php: Parent for group and some code + cleanup. Added confirmation to group delete. + + * godmode/agentes/module_manager.php: Added confirmation to some + items and added "data fix" new feature to delete data above 1.3 of + average value of graph. + + * godmode/agentes/modificar_agente.php: Confirmation before delete + an agent. + + * godmode/agentes/configurar_agente.php: Added fix module data + feature. + + * godmode/modules/manage_network_components_form.php: Some fixes. + + * godmode/modules/manage_network_templates.php: More fixes. + + * godmode/menu.php: Fixed some navigation marks. + 2007-04-19 Sancho Lerena * pandora.css: added some classes for graphical input buttons. diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 1a3fc4a56a..e42e6023fa 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -175,6 +175,25 @@ if (isset($_POST["create_agent"])){ echo "

".$lang_label["create_agent_ok"]."

"; } + +// Fix module data +// =============== +if (isset($_GET["fix_module"])){ + $id_module = $_GET["fix_module"]; + $id_agent = $_GET["id_agente"]; + // get info about this module + $sql1 = "SELECT AVG(datos) FROM tagente_datos WHERE id_agente_modulo = $id_module AND id_agente = $id_agent"; + $result=mysql_query($sql1); + if ($row=mysql_fetch_array($result)){ + $media = $row[0]; + $media = $media * 1.3; + $sql1 = "DELETE FROM tagente_datos WHERE datos > $media AND id_agente_modulo = $id_module AND id_agente = $id_agent"; + $result=mysql_query($sql1); + echo "

".$lang_label["delete_data_above"]." $media

"; + } +} + + // Delete Alert // ============= if (isset($_GET["delete_alert"])){ // if modified some parameter @@ -663,4 +682,4 @@ case "template":require "agent_template.php"; } -?> \ No newline at end of file +?> diff --git a/pandora_console/godmode/agentes/modificar_agente.php b/pandora_console/godmode/agentes/modificar_agente.php index 279aa4abcf..b8472e42f5 100644 --- a/pandora_console/godmode/agentes/modificar_agente.php +++ b/pandora_console/godmode/agentes/modificar_agente.php @@ -183,13 +183,10 @@ if (mysql_num_rows($result)){ // Description echo "".$row["comentarios"].""; // Action - echo " - - "; + echo "'; + echo ""; } } echo "
"; @@ -197,16 +194,17 @@ if (mysql_num_rows($result)){ $endline = ""; } else { $endline = ""; - // If no data... let's show a beautiful button to create agent - // This is a piece of crap because we're duplicanting code above - // of this, don't do again. echo "
".$lang_label["no_agent_def"]."
"; +} + echo $endline; + // Create agent button + echo ""; + echo "
"; echo "
"; - echo ""; echo "
"; - echo $endline; -} + echo "
"; ?> diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index e5b82851e0..8fd29a278b 100644 --- a/pandora_console/godmode/agentes/module_manager.php +++ b/pandora_console/godmode/agentes/module_manager.php @@ -171,7 +171,7 @@ echo "

".$lang_label["agent_conf"]." > ".$lang_label["assigned_modules"]." echo "   ".$lang_label["module_asociation_form"].""; echo "

"; if ($row=mysql_num_rows($result)){ - echo ''; + echo '
'; echo ''; echo ""; echo "
".$lang_label["module_name"]; echo "".$lang_label["type"]; @@ -179,7 +179,7 @@ if ($row=mysql_num_rows($result)){ echo "".$lang_label["description"]; echo "".$lang_label["module_group"]; echo "".$lang_label["max_min"]; - echo "".$lang_label["action"]; + echo "".$lang_label["action"]; $color=1;$last_modulegroup = "0"; while ($row=mysql_fetch_array($result)){ if ($color == 1){ @@ -223,20 +223,19 @@ if ($row=mysql_num_rows($result)){ } echo $module_max." / ".$module_min; echo ""; - if ($id_tipo != -1) - echo " - ".$lang_label["delete"]." -   "; - echo " - ".$lang_label["update"].""; + if ($id_tipo != -1){ + echo "'; + echo "".$lang_label["delete"].""; + echo " "; + echo ""; + echo "".$lang_label["update"].""; + } + // Value arithmetical media fix + if (($id_tipo != 3) AND ($id_tipo != 10) AND ($id_tipo != 17)){ + echo " "; + echo "'; + echo ""; + } } echo "
"; diff --git a/pandora_console/godmode/grupos/configurar_grupo.php b/pandora_console/godmode/grupos/configurar_grupo.php index 48d409836d..7deefa892c 100644 --- a/pandora_console/godmode/grupos/configurar_grupo.php +++ b/pandora_console/godmode/grupos/configurar_grupo.php @@ -30,7 +30,7 @@ if (comprueba_login() == 0) // Inic vars $id_grupo = ""; $nombre = ""; - + $id_parent = ""; if (isset($_GET["creacion_grupo"])){ // $creacion_grupo = entrada_limpia($_GET["creacion_grupo"]); @@ -40,11 +40,12 @@ if (comprueba_login() == 0) if (isset($_GET["id_grupo"])){ // Conecto con la BBDD $id_grupo = entrada_limpia($_GET["id_grupo"]); - $sql1='SELECT nombre, icon FROM tgrupo WHERE id_grupo = '.$id_grupo; + $sql1='SELECT * FROM tgrupo WHERE id_grupo = '.$id_grupo; $result=mysql_query($sql1); if ($row=mysql_fetch_array($result)){ $nombre = $row["nombre"]; $icono = $row["icon"]; + $id_parent = entrada_limpia($row["parent"]); } else { echo "

".$lang_label["group_error"]."

"; @@ -72,52 +73,61 @@ sec2=godmode/grupos/lista_grupos"> echo ""; } ?> - + '; - - echo ''; - if ($icono != ""){ - echo '