From e302839db002d614c429d2e7f09526c475324d0f Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Fri, 7 Sep 2012 12:01:23 +0000 Subject: [PATCH] 2012-09-07 Juan Manuel Ramon * include/functions_html.php include/graphs/fgraph.php include/functions_reporting.php include/javascript/pandora.js include/ajax/reporting.ajax.php include/ajax/agent.php pandoradb.sql pandoradb.postgreSQL.sql pandoradb.oracle.sql operation/agentes/ver_agente.php operation/reporting/reporting_viewer.php extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql general/header.php godmode/reporting/reporting_builder.list_items.php godmode/reporting/reporting_builder.php godmode/reporting/reporting_builder.item_editor.php: Integration of reports in metaconsole. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6938 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 22 ++ .../pandoradb_migrate_4.0.x_to_5.0.mysql.sql | 1 + .../pandoradb_migrate_4.0.x_to_5.0.oracle.sql | 1 + ...doradb_migrate_4.0.x_to_5.0.postgreSQL.sql | 1 + pandora_console/general/header.php | 8 +- .../reporting_builder.item_editor.php | 94 +++--- .../reporting_builder.list_items.php | 71 +++-- .../godmode/reporting/reporting_builder.php | 280 ++++++++++++++---- pandora_console/include/ajax/agent.php | 4 +- .../include/ajax/reporting.ajax.php | 20 +- pandora_console/include/functions_html.php | 2 +- .../include/functions_reporting.php | 114 ++++--- pandora_console/include/graphs/fgraph.php | 10 +- pandora_console/include/javascript/pandora.js | 19 +- .../operation/agentes/ver_agente.php | 69 ++++- .../operation/reporting/reporting_viewer.php | 29 +- pandora_console/pandoradb.oracle.sql | 3 +- pandora_console/pandoradb.postgreSQL.sql | 3 +- pandora_console/pandoradb.sql | 1 + 19 files changed, 547 insertions(+), 205 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index bfab299131..1f81e68185 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,25 @@ +2012-09-07 Juan Manuel Ramon + + * include/functions_html.php + include/graphs/fgraph.php + include/functions_reporting.php + include/javascript/pandora.js + include/ajax/reporting.ajax.php + include/ajax/agent.php + pandoradb.sql + pandoradb.postgreSQL.sql + pandoradb.oracle.sql + operation/agentes/ver_agente.php + operation/reporting/reporting_viewer.php + extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql + extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql + extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql + general/header.php + godmode/reporting/reporting_builder.list_items.php + godmode/reporting/reporting_builder.php + godmode/reporting/reporting_builder.item_editor.php: Integration of reports + in metaconsole. + 2012-09-07 Miguel de Dios * include/functions_ui.php: fixed the ui_get_full_url function, because sometimes added two times the php script name. diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql index fa5f1c2c6e..b5920a8e27 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.mysql.sql @@ -190,6 +190,7 @@ ALTER TABLE treport_content_item ADD FOREIGN KEY (`id_report_content`) REFERENCE -- ----------------------------------------------------- ALTER TABLE treport ADD COLUMN `id_template` INTEGER UNSIGNED DEFAULT 0; ALTER TABLE treport ADD COLUMN `id_group_edit` mediumint(8) unsigned NULL DEFAULT 0; +ALTER TABLE treport ADD COLUMN `metaconsole` tinyint(1) DEFAULT 0; -- ----------------------------------------------------- -- Table `tgraph` diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql index bb27221682..7d6c4205dc 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.oracle.sql @@ -194,6 +194,7 @@ ALTER TABLE treport_content_item ADD FOREIGN KEY (id_report_content) REFERENCES -- ----------------------------------------------------- ALTER TABLE treport ADD (id_template NUMBER(10, 0) default 0 NOT NULL); ALTER TABLE treport ADD (id_group_edit NUMBER(19, 0) default 0 NOT NULL); +ALTER TABLE treport ADD (metaconsole NUMBER(5, 0) DEFAULT 0); -- ----------------------------------------------------- -- Table `tgraph` diff --git a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql index d259cacc86..ac0de9d5fa 100644 --- a/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql +++ b/pandora_console/extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql @@ -194,6 +194,7 @@ INSERT INTO "tconfig" ("token", "value") VALUES ('event_fields', 'evento,id_agen -- ----------------------------------------------------- ALTER TABLE "treport" ADD COLUMN "id_template" INTEGER NOT NULL default 0; ALTER TABLE "treport" ADD COLUMN "id_group_edit" BIGINT NOT NULL default 0; +ALTER TABLE "treport" ADD COLUMN "metaconsole" SMALLINT DEFAULT 0; -- ----------------------------------------------------- -- Table `tgraph` diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index f8e3286d11..2a6117d1a3 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -103,7 +103,7 @@ config_check(); '; $servers["all"] = (int) db_get_value ('COUNT(id_server)','tserver'); @@ -123,7 +123,7 @@ config_check(); } unset ($servers); // Since this is the header, we don't like to trickle down variables. echo ''; - } + //} ?> @@ -182,7 +182,7 @@ config_check();