diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 55b315f557..3d6e7c709f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -8,7 +8,16 @@ * images/groups_small/applications.png: New icon for applications group. + * images/copy.png: New icon for copy data. + * pandoradb_data.sql: Updated default applications icon name. + + * include/styles/pandora.css: Added style for copy icon. + + * include/languages/language_en.php: Added template text. + + * godmode/agentes/agent_template.php, manage_config.php: Updated with new + table styles. Updated texts and closed html tags. 2007-06-02 Raul Mateos diff --git a/pandora_console/godmode/agentes/agent_template.php b/pandora_console/godmode/agentes/agent_template.php index 28d6eb024f..75156b14ae 100644 --- a/pandora_console/godmode/agentes/agent_template.php +++ b/pandora_console/godmode/agentes/agent_template.php @@ -81,9 +81,7 @@ if (isset($_POST["template_id"])){ mysql_query ($module_sql); } } - echo "
"; - echo "Modules added successfully"; - echo "
"; + echo "

".$lang_label["add_mod_ok"]."

"; } // Main header @@ -96,17 +94,18 @@ echo ""; // ========================== echo "

".$lang_label["available_templates"]."

"; -echo ""; -echo "

"; - echo "
"; -echo ""; +echo ""; echo "
".$lang_label['template'].""; + +echo ""; + echo ""; +echo ""; echo ""; @@ -122,12 +121,12 @@ $sql1='SELECT * FROM tagente_modulo WHERE id_agente = "'.$id_agente.'" ORDER BY id_module_group, nombre '; $result=mysql_query($sql1); if ($row=mysql_num_rows($result)){ - echo ''; + echo '
'; echo ''; - echo ""; + echo ""; + echo ""; + echo ""; $color=1;$last_modulegroup = "0"; while ($row=mysql_fetch_array($result)){ if ($color == 1){ @@ -162,7 +161,7 @@ if ($row=mysql_num_rows($result)){ update_module=".$row["id_agente_modulo"]."#modules'> ".$lang_label["update"].""; } - echo ""; + echo ""; echo "
".$lang_label["module_name"]; - echo "".$lang_label["type"]; - echo "".$lang_label["description"]; - echo "".$lang_label["action"]; + echo "".$lang_label["module_name"]."".$lang_label["type"]."".$lang_label["description"]."".$lang_label["action"]."
"; } else echo "
No modules
"; diff --git a/pandora_console/godmode/agentes/manage_config.php b/pandora_console/godmode/agentes/manage_config.php index 172960c036..fdab0c9a67 100644 --- a/pandora_console/godmode/agentes/manage_config.php +++ b/pandora_console/godmode/agentes/manage_config.php @@ -26,7 +26,7 @@ if (comprueba_login() == 0) if ((isset($_GET["operacion"])) AND (! isset($_POST["update_agent"]))){ // DATA COPY - if (isset($_POST["copiar"])) { + if (isset($_POST["copy"])) { echo "

".$lang_label["datacopy"]."

"; // Initial checkings @@ -112,7 +112,7 @@ if (comprueba_login() == 0) echo "
  ".$lang_label["copymod"]." ->".$o_nombre; } } - } + } } if ($multiple == 0) $b=-1; @@ -176,11 +176,11 @@ if (comprueba_login() == 0) } //while } // for } - } + } } //end if copy modules or alerts // DELETE DATA - elseif (isset($_POST["eliminar"])) { + elseif (isset($_POST["delete"])) { echo "

".$lang_label["deletedata"]."

"; // Initial checkings @@ -209,7 +209,7 @@ if (comprueba_login() == 0) for ($a=0;$a ".$lang_label["deletingdata"]." -> ".dame_nombre_agente($id_agente); + echo "
".$lang_label["deleting_data"]." -> ".dame_nombre_agente($id_agente); // Deleting data $sql1='SELECT * FROM tagente_modulo WHERE id_agente = '.$id_agente; @@ -233,7 +233,7 @@ if (comprueba_login() == 0) } // delete alerts definitions if ($alertas == 1){ - echo "
".$lang_label["deletingdata"]." -> ".dame_nombre_agente($id_agente); + echo "
".$lang_label["deleting_data"]." -> ".dame_nombre_agente($id_agente); // delete data $sql1='SELECT * FROM tagente_modulo WHERE id_agente = '.$id_agente; @@ -280,7 +280,7 @@ if (comprueba_login() == 0) $sql1="SELECT * FROM tagente_modulo WHERE id_agente = ".$agente_modulo. " order by nombre"; $result = mysql_query($sql1); while ($row=mysql_fetch_array($result)){ - echo ""; } } echo ""; @@ -299,14 +299,14 @@ if (comprueba_login() == 0) $sql1='SELECT * FROM tagente'; $result=mysql_query($sql1); while ($row=mysql_fetch_array($result)){ - echo ""; } ?>
- '; ?> - '; ?> + '; ?> + '; ?>
diff --git a/pandora_console/images/copy.png b/pandora_console/images/copy.png new file mode 100644 index 0000000000..e252606d3e Binary files /dev/null and b/pandora_console/images/copy.png differ diff --git a/pandora_console/include/languages/language_en.php b/pandora_console/include/languages/language_en.php index 7cd0635f83..967c506b43 100644 --- a/pandora_console/include/languages/language_en.php +++ b/pandora_console/include/languages/language_en.php @@ -792,6 +792,8 @@ $lang_label["min_valid_value_help"]="Min. possible value to consider 'valid' val $lang_label["max_valid_value_help"]="Max. possible value to consider 'valid' values, above this limit, Pandora FMS will fire the alert"; $lang_label["alert_time_threshold_help"]="This value must be al least Module Interval * (Min.Number of Alerts + 1)"; $lang_label["style_template"]="Style template"; +$lang_label["template"]="Template"; +$lang_label["add_mod_ok"]="Modules added successfully"; global $lang_label; global $help_label; diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 044d76d0ff..c3fa470c95 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -266,6 +266,10 @@ input.search { padding-right: 21px; background: #e5e5e5 url(../../images/zoom.png) no-repeat right 3px; } +input.copy { + padding-right: 21px; + background: #e5e5e5 url(../../images/copy.png) no-repeat right 3px; +} table, img { border: 0px; }