diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 29dfba44ad..5de9acb768 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -11,6 +11,12 @@ * images/reporting_edit.png: Added icon for creating reports in administration mode. + * godmode/reporting/graph_builder.php: Updated text styles. + + * operation/agentes/datos_agente.php: Updated table length and delete text. + + * godmode/modules/manage_network_templates_form.php: Updated with new table style. + 2007-06-07 Raul Mateos * operation/agentes/status_monitor.php, estado_alertas.php, diff --git a/pandora_console/godmode/modules/manage_network_templates_form.php b/pandora_console/godmode/modules/manage_network_templates_form.php index 887bffac1f..a921e20acd 100644 --- a/pandora_console/godmode/modules/manage_network_templates_form.php +++ b/pandora_console/godmode/modules/manage_network_templates_form.php @@ -126,6 +126,11 @@ echo ""; if ($id_np != -1){ // Show associated modules, allow to delete, and to add + + $sql1 = "SELECT * FROM tnetwork_profile_component where id_np = $id_np"; + $result = mysql_query ($sql1); + if ($row=mysql_num_rows($result)) { + echo ''; echo ''; echo ""; @@ -134,8 +139,7 @@ if ($id_np != -1){ echo ""; echo ""; $color =0; - $sql1 = "SELECT * FROM tnetwork_profile_component where id_np = $id_np"; - $result = mysql_query ($sql1); + while ( $row = mysql_fetch_array($result)) { $id_nc = $row["id_nc"]; $id_npc = $row["id_npc"]; @@ -166,6 +170,9 @@ if ($id_np != -1){ echo ""; } } + } else { + echo "
No modules
"; + } echo "
".$lang_label["module_name"]."".$lang_label["nc.group"]."X
"; } diff --git a/pandora_console/godmode/reporting/graph_builder.php b/pandora_console/godmode/reporting/graph_builder.php index c659b52752..a559d4707a 100644 --- a/pandora_console/godmode/reporting/graph_builder.php +++ b/pandora_console/godmode/reporting/graph_builder.php @@ -202,7 +202,11 @@ if (isset($chunk1)) { echo ""; echo ""; - echo " + + + + "; $color=0; for ($a=0; $a < count($module_array); $a++){ // Calculate table line color @@ -216,15 +220,15 @@ if (isset($chunk1)) { } echo ""; echo ""; echo ""; echo ""; } - echo "
AgentModuleWeightDelete"; + echo "
".$lang_label["agent"]."".$lang_label["module"]."Weight".$lang_label["delete"]."
"; - echo dame_nombre_agente($agent_array[$a]); + echo dame_nombre_agente($agent_array[$a]).""; - echo dame_nombre_modulo_agentemodulo($module_array[$a]); + echo dame_nombre_modulo_agentemodulo($module_array[$a]).""; - echo $weight_array[$a]; + echo $weight_array[$a].""; - echo ""; + echo "
"; + echo "
"; echo "
"; echo ""; } @@ -234,7 +238,7 @@ if (isset($chunk1)) { // -------------------------------------- if (($render == 1) && (isset($modules))) { // parse chunk - echo $lang_label["combined_image"].""; + echo "

".$lang_label["combined_image"]."

"; echo ""; echo "
"; echo ""; @@ -245,7 +249,7 @@ if (($render == 1) && (isset($modules))) { // ----------------------- // SOURCE AGENT TABLE/FORM // ----------------------- -echo $lang_label["graph_builder"].""; +echo "

".$lang_label["graph_builder"]."

"; echo ""; echo ""; @@ -253,7 +257,7 @@ if (isset($period)) echo ""; echo ""; -echo ""; echo ""; // Show combo with agents @@ -299,29 +303,29 @@ if ($id_agent != 0){ echo ""; echo ""; echo ""; echo ""; echo ""; +echo ""; echo ""; echo ""; echo ""; +echo ""; /* echo "
".$lang_label["source_agent"]; +echo "".$lang_label["source_agent"]."
"; -echo "Factor"; +echo "Factor"; -echo ""; +echo ""; echo "Width"; echo ""; -echo ""; +echo "
"; -echo "Render now"; -echo ""; +echo "Render now"; echo ""; +echo ""; -echo "Height"; +echo "Height"; echo ""; @@ -360,40 +364,41 @@ switch ($period) { echo "
"; -echo "Period"; +echo "Period"; echo ""; -echo ""; -echo "Show events"; -echo ""; +echo ""; +echo "Show events"; echo ""; +echo ""; diff --git a/pandora_console/operation/agentes/datos_agente.php b/pandora_console/operation/agentes/datos_agente.php index 999e46a049..0cbd097590 100644 --- a/pandora_console/operation/agentes/datos_agente.php +++ b/pandora_console/operation/agentes/datos_agente.php @@ -68,9 +68,9 @@ function datos_raw($id_agente_modulo, $periodo){ if (mysql_num_rows($result)){ echo ""; $color=1; - echo ""; echo ""; - echo ""; + echo ""; while ($row=mysql_fetch_array($result)){ if ($color == 1){ $tdcolor = "datos"; @@ -83,11 +83,11 @@ function datos_raw($id_agente_modulo, $periodo){ echo ""; if (give_acl($id_user, $id_group, "AW") ==1) { echo ""; echo ""; } echo "
"; + echo "".$lang_label["delete"]."".$lang_label["timestamp"]."".$lang_label["data"]."".$lang_label["data"]."
"; - echo ""; + echo ""; } else { echo ""; } - echo "".$row["timestamp"]; + echo "".$row["timestamp"].""; if (is_numeric($row["datos"])) { $mytempdata = fmod($row["datos"], 1); @@ -96,8 +96,10 @@ function datos_raw($id_agente_modulo, $periodo){ else $myvalue = $row["datos"]; echo format_for_graph($myvalue ); - } else - echo salida_limpia($row["datos"]); + } else { + echo salida_limpia($row["datos"]); + } + echo "
"; }