2011-07-06 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* include/functions_html.php
	include/styles/dialog.css
	include/styles/pandora_blackmetal.css
	include/styles/menu.css
	include/styles/pandora_black.css
	include/styles/pandora.css
	include/functions_ui.php
	extensions/update_manager/main.php
	operation/visual_console/index.php
	operation/agentes/status_monitor.php
	operation/agentes/estado_ultimopaquete.php
	operation/agentes/alerts_status.php
	operation/agentes/estado_generalagente.php
	operation/agentes/estado_agente.php
	operation/agentes/gis_view.php
	operation/agentes/estado_monitores.php
	operation/agentes/ver_agente.php
	operation/agentes/graphs.php
	operation/agentes/group_view.php
	operation/users/user_edit.php
	operation/events/events_list.php
	operation/messages/message.php
	operation/reporting/graph_viewer.php
	pandoradb.data.postgreSQL.sql
	pandoradb.data.oracle.sql
	images/agents_group.png
	images/application_double.png
	images/sitemap.png
	images/application_edit.png
	images/file.png
	images/page_white_text.png
	images/zoom.png
	images/page_refresh.png
	images/cog_del.png
	images/setup.png
	images/tag_red.png
	images/computer_error.png
	images/ok.png
	images/link_delete.png
	images/attachment.png
	images/god5.png
	images/god9.png
	images/down.png
	images/lightbulb.png
	images/help.png
	images/brick.png
	images/pill.png
	images/link_edit.png
	images/database_gear.png
	images/b_white.png
	images/wrench_orange.png
	images/up.png
	images/link_add.png
	images/chart_curve.png
	images/email_open.png
	images/page_white.png
	images/link2.png
	images/box.png
	images/clock.png
	images/note.png
	images/rss.png
	images/skin/skin_default/include/styles/pandora.css
	images/extensions.png
	images/flag_red.png
	images/database.png
	images/images.png
	images/cog.png
	images/b_yellow.png
	images/groups_small/clock.png
	images/groups_small/world.png
	images/groups_small/server_database.png
	images/groups_small/computer.png
	images/cancel.png
	images/add.png
	images/mouse.png
	images/server_database.png
	images/computer.png
	images/book_edit.png
	images/lupa.png
	images/heart.png
	images/database_lightning.png
	images/user.png
	images/link_break.png
	images/edit.png
	images/page_white_magnify.png
	images/normalscreen.png
	images/sitemap_color.png
	images/go.png
	images/config.png
	images/database_refresh.png
	images/link_go.png
	images/comments.png
	images/email.png
	images/lock.png
	images/os_icons/so_linux.png
	images/os_icons/android_small.png
	images/os_icons/android.png
	images/os_icons/so_linux_small.png
	images/error.png
	images/god3.png
	images/god7.png
	images/calendar_view_day.png
	images/data.png
	images/fullscreen.png
	images/server_web.png
	images/lupa_15x15.png
	images/lightning_go.png
	images/star.png
	images/user_suit.png
	images/upd.png
	images/application.png
	images/music_note.png
	images/lightbulb_off.png
	images/application_not_writable.png
	images/sort_down.png
	images/eye.png
	images/lightning.png
	images/header.jpg
	images/wrench.png
	images/mimetypes/unknown.png
	images/mimetypes/image.png
	images/mimetypes/zip.png
	images/mimetypes/directory.png
	images/mimetypes/text.png
	images/delete.png
	images/bricks.png
	images/world.png
	images/wand.png
	images/delete_modules.png
	images/disk.png
	images/group.png
	images/god8.png
	images/server.png
	images/bug.png
	images/page_lightning.png
	images/house.png
	images/log-out.png
	images/monitor.png
	images/information.png
	images/cross.png
	images/sort_up.png
	general/login_page.php
	general/logon_ok.php
	general/logoff.php
	godmode/groups/group_list.php
	godmode/admin_access_logs.php
	godmode/db/db_audit.php
	godmode/db/db_refine.php
	godmode/db/db_event.php
	godmode/agentes/agent_template.php
	godmode/agentes/module_manager_editor_common.php
	godmode/agentes/fields_manager.php
	godmode/agentes/module_manager.php
	godmode/agentes/modificar_agente.php
	godmode/agentes/agent_manager.php
	godmode/servers/recon_script.php
	godmode/servers/plugin.php
	godmode/servers/manage_recontask.php
	godmode/servers/modificar_server.php
	godmode/alerts/alert_list.list.php
	godmode/alerts/alert_templates.php
	godmode/alerts/alert_actions.php
	godmode/alerts/alert_commands.php
	godmode/snmpconsole/snmp_alert.php
	godmode/snmpconsole/snmp_filters.php
	godmode/users/user_list.php
	godmode/users/profile_list.php
	godmode/gis_maps/index.php
	godmode/massive/massive_operations.php
	godmode/modules/manage_network_templates.php
	godmode/modules/manage_network_components.php
	godmode/reporting/reporting_builder.list_items.php
	godmode/reporting/reporting_builder.main.php
	godmode/reporting/visual_console_builder.data.php
	godmode/reporting/reporting_builder.php
	godmode/reporting/graph_builder.preview.php
	godmode/tag/tag.php
	godmode/tag/edit_tag.php: Improved Css styles.

	* images/splash_pandora.png
	images/black_red_header.png
	images/black_background.png: Added images for new styles. 
	
	*include/styles/pandora_red.css
	include/styles/pandora_width.css: Deleted old styles.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4514 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2011-07-06 11:57:27 +00:00
parent 183e4cb627
commit a206db6db7
184 changed files with 714 additions and 1143 deletions

View File

@ -1,3 +1,191 @@
2011-07-06 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_html.php
include/styles/dialog.css
include/styles/pandora_blackmetal.css
include/styles/menu.css
include/styles/pandora_black.css
include/styles/pandora.css
include/functions_ui.php
extensions/update_manager/main.php
operation/visual_console/index.php
operation/agentes/status_monitor.php
operation/agentes/estado_ultimopaquete.php
operation/agentes/alerts_status.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/gis_view.php
operation/agentes/estado_monitores.php
operation/agentes/ver_agente.php
operation/agentes/graphs.php
operation/agentes/group_view.php
operation/users/user_edit.php
operation/events/events_list.php
operation/messages/message.php
operation/reporting/graph_viewer.php
pandoradb.data.postgreSQL.sql
pandoradb.data.oracle.sql
images/agents_group.png
images/application_double.png
images/sitemap.png
images/application_edit.png
images/file.png
images/page_white_text.png
images/zoom.png
images/page_refresh.png
images/cog_del.png
images/setup.png
images/tag_red.png
images/computer_error.png
images/ok.png
images/link_delete.png
images/attachment.png
images/god5.png
images/god9.png
images/down.png
images/lightbulb.png
images/help.png
images/brick.png
images/pill.png
images/link_edit.png
images/database_gear.png
images/b_white.png
images/wrench_orange.png
images/up.png
images/link_add.png
images/chart_curve.png
images/email_open.png
images/page_white.png
images/link2.png
images/box.png
images/clock.png
images/note.png
images/rss.png
images/skin/skin_default/include/styles/pandora.css
images/extensions.png
images/flag_red.png
images/database.png
images/images.png
images/cog.png
images/b_yellow.png
images/groups_small/clock.png
images/groups_small/world.png
images/groups_small/server_database.png
images/groups_small/computer.png
images/cancel.png
images/add.png
images/mouse.png
images/server_database.png
images/computer.png
images/book_edit.png
images/lupa.png
images/heart.png
images/database_lightning.png
images/user.png
images/link_break.png
images/edit.png
images/page_white_magnify.png
images/normalscreen.png
images/sitemap_color.png
images/go.png
images/config.png
images/database_refresh.png
images/link_go.png
images/comments.png
images/email.png
images/lock.png
images/os_icons/so_linux.png
images/os_icons/android_small.png
images/os_icons/android.png
images/os_icons/so_linux_small.png
images/error.png
images/god3.png
images/god7.png
images/calendar_view_day.png
images/data.png
images/fullscreen.png
images/server_web.png
images/lupa_15x15.png
images/lightning_go.png
images/star.png
images/user_suit.png
images/upd.png
images/application.png
images/music_note.png
images/lightbulb_off.png
images/application_not_writable.png
images/sort_down.png
images/eye.png
images/lightning.png
images/header.jpg
images/wrench.png
images/mimetypes/unknown.png
images/mimetypes/image.png
images/mimetypes/zip.png
images/mimetypes/directory.png
images/mimetypes/text.png
images/delete.png
images/bricks.png
images/world.png
images/wand.png
images/delete_modules.png
images/disk.png
images/group.png
images/god8.png
images/server.png
images/bug.png
images/page_lightning.png
images/house.png
images/log-out.png
images/monitor.png
images/information.png
images/cross.png
images/sort_up.png
general/login_page.php
general/logon_ok.php
general/logoff.php
godmode/groups/group_list.php
godmode/admin_access_logs.php
godmode/db/db_audit.php
godmode/db/db_refine.php
godmode/db/db_event.php
godmode/agentes/agent_template.php
godmode/agentes/module_manager_editor_common.php
godmode/agentes/fields_manager.php
godmode/agentes/module_manager.php
godmode/agentes/modificar_agente.php
godmode/agentes/agent_manager.php
godmode/servers/recon_script.php
godmode/servers/plugin.php
godmode/servers/manage_recontask.php
godmode/servers/modificar_server.php
godmode/alerts/alert_list.list.php
godmode/alerts/alert_templates.php
godmode/alerts/alert_actions.php
godmode/alerts/alert_commands.php
godmode/snmpconsole/snmp_alert.php
godmode/snmpconsole/snmp_filters.php
godmode/users/user_list.php
godmode/users/profile_list.php
godmode/gis_maps/index.php
godmode/massive/massive_operations.php
godmode/modules/manage_network_templates.php
godmode/modules/manage_network_components.php
godmode/reporting/reporting_builder.list_items.php
godmode/reporting/reporting_builder.main.php
godmode/reporting/visual_console_builder.data.php
godmode/reporting/reporting_builder.php
godmode/reporting/graph_builder.preview.php
godmode/tag/tag.php
godmode/tag/edit_tag.php: Improved Css styles.
* images/splash_pandora.png
images/black_red_header.png
images/black_background.png: Added images for new styles.
*include/styles/pandora_red.css
include/styles/pandora_width.css: Deleted old styles.
2011-07-06 Sergio Martin <sergio.martin@artica.es>
* include/functions_servers.php: Fixed divison by zero

View File

@ -191,7 +191,7 @@ if (check_acl ($config['id_user'], 0, 'PM')) {
$table->data = array ();
$table->colspan[0][0] = 2;
$table->data[0][0] = '<h3>'.__('Offline packages loader').'</h3>';
$table->data[0][0] = '<h4>'.__('Offline packages loader').'</h4>';
$table->data[1][0] = '<input type="hidden" name="upload_package" value="1">';
$table->data[1][0] .= '<input type="file" size="55" name="fileloaded">';
$table->data[1][1] = '<input type="submit" name="upload_button" value="'.__('Upload').'">';

View File

@ -22,20 +22,22 @@ if (!empty ($page) && !empty ($sec)) {
}
}
echo '<div class="databox" id="login">';
echo '<div class="databox_login" id="login">';
//echo '<h1>Put here your custom welcome message</h1>";
echo '<br /><br />';
//echo '<br /><br /><br />';
echo '
<div id="login_in">
<form method="post" action="index.php'.$url.'">
<table cellpadding="4" cellspacing="1" width="420">';
if (isset ($login_failed)) {
echo '<tr><td colspan="3">';
// echo '<tr><td colspan="3">';
echo '<div style="margin-top:-35px;">';
echo '<h3 class="error">'.__('Login failed').': '.$config["auth_error"].'</h3>';
echo '</td></tr>';
echo '</div>';
// echo '</td></tr>';
}
echo '<tr><td rowspan="3" align="left">';

View File

@ -15,9 +15,9 @@
// GNU General Public License for more details.
?>
<div class="databox" id="login">
<div class="databox_login" id="login">
<h1 id="log"><?php echo __('Logged out'); ?></h1>
<div class="databox" style="width: 400px;">
<div class="databox" style="width: 400px; margin: 0 auto auto;">
<table cellpadding="4" cellspacing="1" width="400">
<tr><td align="left">
<?php

View File

@ -35,7 +35,7 @@ ui_print_page_header (__('Welcome to Pandora FMS Web Console'));
// ---------------------------------------------------------------------------
echo '<div style="width:50%; float:left; padding-right: 30px;" id="leftcolumn">';
echo '<h2>' . __('Site news') . '</h2>';
switch ($config["dbtype"]) {
case "mysql":
case "postgresql":
@ -149,7 +149,7 @@ echo '<div id="activity" style="width:87%;">';
echo "<br /><br />";
// Show last activity from this user
echo "<h2>" . __('This is your last activity in Pandora FMS console') . "</h2>";
echo "<h4>" . __('This is your last activity in Pandora FMS console') . "</h4>";
$table->width = '98%'; //Don't specify px
$table->data = array ();

View File

@ -76,7 +76,7 @@ $table->data[5][1] = html_print_submit_button(__('Filter'), 'filter', false, 'cl
html_print_table($table);
echo '</form>';
echo '</div>';
echo '<div style="float: right; width: 250px;">';
echo '<div style="float: right; width: 300px;">';
echo graphic_user_activity2(300, 140);
@ -168,7 +168,7 @@ if (empty ($result)) {
$table->cellpadding = 4;
$table->cellspacing = 4;
$table->width = 750;
$table->width = '98%';
$table->class = "databox";
$table->size = array ();
$table->data = array ();

View File

@ -99,7 +99,7 @@ $table->data = array ();
$table->data[0][0] = __('Agent name') .
ui_print_help_tip (__("The agent's name must be the same as the one defined at the console"), true);
$table->data[0][1] = html_print_input_text ('agente', $nombre_agente, '', 30, 100,true);
$table->data[0][1] = html_print_input_text ('agente', $nombre_agente, '', 50, 100,true);
if ($id_agente) {

View File

@ -88,7 +88,7 @@ if (isset ($_POST["template_id"])) {
'estado' => 0,
'id_agente' => $id_agente,
'utimestamp' => 0);
process_sql_insert('tagente_estado', $values);
db_process_sql_insert('tagente_estado', $values);
}
else {
echo '<h3 class="error">'.__('Error adding module').'</h3>';
@ -118,16 +118,21 @@ foreach ($nps as $row) {
$select[$row["id_np"]] = $row["name"];
}
echo '<div>'.__('Template');
html_print_select ($select, "template_id");
echo '&nbsp;';
echo '<table width="98%" cellpadding="2" cellspacing="2" class="databox" >';
echo "<tr><td class='datos' style='width:50%'>";
html_print_select ($select, "template_id", '', '', '', 0, false, false, true, '', false, 'max-width: 200px !important');
echo '</td>';
echo '<td class="datos">';
html_print_submit_button (__('Assign'), 'crt', false, 'class="sub next"');
echo '</div></form>';
echo '</td>';
echo '</tr>';
echo "</form>";
echo "</table>";
echo '</form>';
// ==========================
// MODULE VISUALIZATION TABLE
// ==========================
echo "<h4>".__('Assigned modules')."</h4>";
switch ($config["dbtype"]) {
case "mysql":
@ -143,7 +148,7 @@ if ($result === false) {
$result = array ();
}
$table->width = '95%';
$table->width = '98%';
$table->cellpadding = 4;
$table->cellspacing = 4;
$table->class = "databox";
@ -162,7 +167,7 @@ $table->align[3] = "center";
foreach ($result as $row) {
$data = array ();
$data[0] = $row["nombre"];
$data[0] = '<span style="font-size: 7.2pt">' . $row["nombre"];
if ($row["id_tipo_modulo"] > 0) {
$data[1] = html_print_image("images/" . modules_show_icon_type ($row["id_tipo_modulo"]), true, array("border" => "0"));
} else {
@ -170,9 +175,9 @@ foreach ($result as $row) {
}
$data[2] = mb_substr ($row["descripcion"], 0, 60);
$data[3] = '<a href="index.php?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&tab=template&id_agente='.$id_agente.'&delete_module='.$row["id_agente_modulo"].'">' . html_print_image("images/cross.png", true, array("border" => "0", "alt" => __('Delete'), "onclick" => "if (!confirm('".__('Are you sure?') . "')) return false;")) . '</a>&nbsp;';
$data[3] = '<a href="index.php?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&tab=template&id_agente='.$id_agente.'&delete_module='.$row["id_agente_modulo"].'">' . html_print_image("images/cross.png", true, array("border" => "0", "alt" => __('Delete'), "onclick" => "if (!confirm('".__('Are you sure?') . "')) return false;")) . '</a>&nbsp;&nbsp;';
$data[3] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&edit_module=1&id_agent_module='.$row["id_agente_modulo"].'">' . html_print_image("images/config.png", true, array("border" => '0', "alt" => __('Update'))) . '</a>';
$data[3] .= '&nbsp;&nbsp;<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&edit_module=1&id_agent_module='.$row["id_agente_modulo"].'">' . html_print_image("images/config.png", true, array("border" => '0', "alt" => __('Update'))) . '</a>';
array_push ($table->data, $data);
}

View File

@ -116,7 +116,7 @@ foreach ($fields as $field) {
}
$data[2] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/configure_field&id_field='.$field['id_field'].'">' . html_print_image("images/config.png", true, array("alt" => __('Edit'), "title" => __('Edit'), "border" => '0')) . '</a>';
$data[2] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/fields_manager&delete_field=1&id_field='.$field['id_field'].'" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">' . html_print_image("images/cross.png", true, array("alt" => __('Delete'), "title" => __('Delete'), "border" => '0')) . '</a>';
$data[2] .= '&nbsp;&nbsp;<a href="index.php?sec=gagente&sec2=godmode/agentes/fields_manager&delete_field=1&id_field='.$field['id_field'].'" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">' . html_print_image("images/cross.png", true, array("alt" => __('Delete'), "title" => __('Delete'), "border" => '0')) . '</a>';
array_push ($table->data, $data);
}

View File

@ -373,7 +373,7 @@ if ($agents !== false) {
echo '<span class="left">';
echo "<strong><a href='index.php?sec=gagente&
sec2=godmode/agentes/configurar_agente&tab=main&
id_agente=".$agent["id_agente"]."'>" . ui_print_truncate_text($agent["nombre"], 40, true)."</a></strong>";
id_agente=".$agent["id_agente"]."'>" . ui_print_truncate_text($agent["nombre"], 60, true, true, true, '[&hellip;]', 'font-size: 7pt')."</a></strong>";
if ($agent["disabled"]) {
ui_print_help_tip(__('Disabled'));
echo "</em>";
@ -453,7 +453,7 @@ $(document).ready (function () {
},
function () {
$(".actions", this).css ("visibility", "hidden");
});
});
$("#ag_group").click (
function () {

View File

@ -26,9 +26,9 @@ require_once ('include/functions_agents.php');
require_once ('include/functions_servers.php');
// Create module/type combo
echo '<table width="95%" cellpadding="4" cellspacing="4" class="databox" style="text-align:center; ">';
echo '<table width="98%" cellpadding="2" cellspacing="2" class="databox" >';
echo '<form id="create_module_type" method="post" action="'.$url.'">';
echo "<tr><td class='datos'>";
echo "<tr><td class='datos' style='width:50%'>";
// Check if there is at least one server of each type available to assign that
// kind of modules. If not, do not show server type in combo
@ -153,8 +153,6 @@ if ($multiple_delete) {
// MODULE VISUALIZATION TABLE
// ==========================
echo "<h4>".__('Assigned modules')."</h4>";
$url = 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=module&id_agente=' . $id_agente;
$selectNameUp = '';
$selectNameDown = '';
@ -269,7 +267,7 @@ if ($modules === false) {
return;
}
$table->width = '95%';
$table->width = '98%';
$table->head = array ();
$table->head[0] = __('Name') . ' ' .
'<a href="' . $url . '&sort_field=name&sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectNameUp)) . '</a>' .
@ -296,7 +294,7 @@ $table->style = array ();
$table->style[0] = 'font-weight: bold';
$table->size = array ();
$table->size[2] = '55px';
$table->size[7] = '90px';
$table->size[7] = '100px';
$table->align = array ();
$table->align[2] = 'center';
$table->align[7] = 'left';
@ -345,9 +343,9 @@ foreach ($modules as $module) {
$data[0] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&edit_module=1&id_agent_module='.$module['id_agente_modulo'].'">';
if ($module["disabled"])
$data[0] .= '<em class="disabled_module">' . ui_print_truncate_text($module['nombre'], 25, false).'</em>';
$data[0] .= '<em class="disabled_module">' . ui_print_truncate_text($module['nombre'], 50, false, true, true, '[&hellip;]', 'font-size: 7.2pt').'</em>';
else
$data[0] .= ui_print_truncate_text($module['nombre'], 25, false);
$data[0] .= ui_print_truncate_text($module['nombre'], 50, false, true, true, '[&hellip;]', 'font-size: 7.2pt');
$data[0] .= '</a>';
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
@ -420,12 +418,12 @@ foreach ($modules as $module) {
// Delete module
$data[7] = html_print_checkbox('id_delete[]', $module['id_agente_modulo'], false, true);
$data[7] .= '<a href="index.php?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&delete_module='.$module['id_agente_modulo'].'"
$data[7] .= '&nbsp;<a href="index.php?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&delete_module='.$module['id_agente_modulo'].'"
onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">';
$data[7] .= html_print_image ('images/cross.png', true,
array ('title' => __('Delete')));
$data[7] .= '</a> ';
$data[7] .= '<a href="index.php?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&duplicate_module='.$module['id_agente_modulo'].'"
$data[7] .= '&nbsp;<a href="index.php?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&duplicate_module='.$module['id_agente_modulo'].'"
onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">';
$data[7] .= html_print_image ('images/copy.png', true,
array ('title' => __('Duplicate')));
@ -435,7 +433,7 @@ foreach ($modules as $module) {
if (isset($numericModules[$type])) {
if ($numericModules[$type] === true) {
$data[7] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&fix_module='.$module['id_agente_modulo'].'" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">';
$data[7] .= '&nbsp;<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&fix_module='.$module['id_agente_modulo'].'" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">';
$data[7] .= html_print_image ('images/chart_curve.png', true,
array ('title' => __('Normalize')));
$data[7] .= '</a>';

View File

@ -122,7 +122,7 @@ $table_simple->style[0] = 'font-weight: bold; vertical-align: top';
$table_simple->style[2] = 'font-weight: bold; vertical-align: top';
$table_simple->data[0][0] = __('Name');
$table_simple->data[0][1] = html_print_input_text ('name', $name, '', 20, 100, true, $disabledBecauseInPolicy);
$table_simple->data[0][1] = html_print_input_text ('name', $name, '', 50, 100, true, $disabledBecauseInPolicy);
$table_simple->data[0][2] = __('Disabled');
$table_simple->data[0][3] = html_print_checkbox ("disabled", 1, $disabled, true);
@ -245,14 +245,14 @@ if ($__code_from == 'modules') {
$__id_where = 'b.id_policy_module';
$__id = $__id_pol_mod;
}
$table_advanced->data[6][1] = html_print_select_from_sql ("SELECT id_tag, name
$table_advanced->data[6][1] = html_print_select_from_sql ("SELECT id_tag, name
FROM ttag
WHERE id_tag NOT IN (
SELECT a.id_tag
FROM ttag a, $__table_modules b
WHERE a.id_tag = b.id_tag AND $__id_where = $__id )
ORDER BY name",
'id_tag_available[]', $id_tag, '',__('None'),'0', true, true, false, false);
'id_tag_available[]', $id_tag, '',__('None'),'0', true, true, false, false, 'width: 200px', '5');
$table_advanced->data[6][2] = html_print_image('images/darrowright.png', true, array('id' => 'right', 'title' => __('Add tags to module'))); //html_print_input_image ('add', 'images/darrowright.png', 1, '', true, array ('title' => __('Add tags to module')));
$table_advanced->data[6][2] .= '<br><br><br><br>' . html_print_image('images/darrowleft.png', true, array('id' => 'left', 'title' => __('Delete tags to module'))); //html_print_input_image ('add', 'images/darrowleft.png', 1, '', true, array ('title' => __('Delete tags to module')));
@ -261,7 +261,7 @@ $table_advanced->data[6][4] = html_print_select_from_sql ("SELECT a.id_tag, nam
FROM ttag a, $__table_modules b
WHERE a.id_tag = b.id_tag AND $__id_where = $__id
ORDER BY name",
'id_tag_selected[]', $id_tag, '',__('None'),'0', true, true, false, false);
'id_tag_selected[]', $id_tag, '',__('None'),'0', true, true, false, false, 'width: 200px', '5');
//$table_advanced->data[6][4] .= html_print_input_hidden('id_tag_serialize', '');
?>

View File

@ -260,9 +260,11 @@ $table->head[3] = __('Delete');
$table->style = array ();
$table->style[0] = 'font-weight: bold';
$table->size = array ();
$table->size[1] = '30px';
$table->size[2] = '40px';
$table->size[3] = '40px';
$table->align = array ();
$table->align[1] = 'center';
$table->align[2] = 'center';
$table->align[3] = 'center';
@ -284,7 +286,7 @@ foreach ($actions as $action) {
$data[0] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_action&id='.$action['id'].'">'.
$action['name'].'</a>';
$data[1] = ui_print_group_icon ($action["id_group"], true) .'&nbsp;'. ui_print_truncate_text(groups_get_name ($action["id_group"], true));
$data[1] = ui_print_group_icon ($action["id_group"], true) .'&nbsp;';
$data[2] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/alert_actions&amp;copy_action=1&amp;id='.$action['id'].'"
onClick="if (!confirm(\''.__('Are you sure?').'\')) return false;">' .
html_print_image("images/copy.png", true) . '</a>';

View File

@ -144,11 +144,13 @@ if ($commands === false)
foreach ($commands as $command) {
$data = array ();
$data[0] = '<span style="font-size: 7.5pt">';
if (! $command['internal'])
$data[0] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_command&id='.$command['id'].'">'.
$data[0] .= '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_command&id='.$command['id'].'">'.
$command['name'].'</a>';
else
$data[0] = $command['name'];
$data[0] .= $command['name'];
$data[0] .= '</span>';
$data[1] = $command['id'];
$data[2] = $command['description'];
$data[3] = '';

View File

@ -300,75 +300,67 @@ $table->class = 'alert_list';
$table->width = '98%';
$table->size = array ();
$table->align[0] = 'center';
$table->align[1] = 'center';
$table->align[2] = 'center';
$table->align[3] = 'center';
$table->align[4] = 'center';
$table->align[5] = 'center';
$table->head = array ();
$table->head[0] = "<span title='" . __('Enabled / Disabled') . "'>" . __('E/D') . "</span><br>" .
'<a href="' . $url . '&sort_field=disabled&sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectDisabledUp)) . '</a>' .
'<a href="' . $url . '&sort_field=disabled&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectDisabledDown)) . '</a>';
$table->head[1] = "<span title='" . __('Standby') . "'>" . __('S.') . "</span><br>" .
'<a href="' . $url . '&sort_field=standby&sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectStandbyUp)) . '</a>' .
'<a href="' . $url . '&sort_field=standby&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectStandbyDown)) . '</a>';
if (! $id_agente) {
$table->style = array ();
$table->style[2] = 'font-weight: bold';
$table->head[2] = __('Agent') . '<br>' .
$table->style[0] = 'font-weight: bold';
$table->head[0] = __('Agent') . '<br>' .
'<a href="' . $url . '&sort_field=agent&sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectAgentUp)) . '</a>' .
'<a href="' . $url . '&sort_field=agent&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectAgentDown)) . '</a>';
$table->size[0] = '6%';
$table->size[1] = '6%';
$table->size[2] = '20%';
$table->size[3] = '20%';
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
$table->size[4] = '15%';
}
$table->size[5] = '6%';
$table->size[6] = '15%';
$table->size[0] = '20%';
$table->size[1] = '15%';
$table->size[2] = '15%';
$table->size[3] = '15%';
$table->size[4] = '2%';
$table->size[5] = '8%';
/* if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
$table->size[4] = '8%';
}*/
}
else {
/* Different sizes or the layout screws up */
$table->size[0] = '6%';
$table->size[1] = '6%';
$table->size[0] = '0%';
$table->size[1] = '25%';
$table->size[3] = '25%';
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
/* if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
$table->size[4] = '25%';
}
$table->size[5] = '6%';
$table->size[6] = '25%';
$table->size[7] = '10%';
} */
$table->size[4] = '3%';
$table->size[5] = '10%';
}
$table->head[3] = __('Module') . '<br>' .
$table->head[1] = __('Module') . '<br>' .
'<a href="' . $url . '&sort_field=module&sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectModuleUp)) . '</a>' .
'<a href="' . $url . '&sort_field=module&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectModuleDown)) . '</a>';
$table->head[4] = __('Template') . '<br>' .
$table->head[2] = __('Template') . '<br>' .
'<a href="' . $url . '&sort_field=template&sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectTemplateUp)) . '</a>' .
'<a href="' . $url . '&sort_field=template&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectTemplateDown)) . '</a>';
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
/*if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
$table->head[5] = "<span title='" . __('Policy') . "'>" . __('P.') . "</span>";
}
$table->head[6] = __('Actions');
$table->head[7] = __('Status');
$table->head[8] = "<span title='" . __('Delete') . "'>" . __('D.') . "</span>";
}*/
$table->head[3] = __('Actions');
$table->head[4] = __('Status');
$table->head[5] = "<span title='" . __('Operations') . "'>" . __('Op.') . "</span>";
$table->valign[0] = 'middle';
$table->valign[1] = 'middle';
$table->valign[2] = 'middle';
$table->valign[3] = 'middle';
$table->valign[4] = 'middle';
$table->valign[6] = 'middle';
$table->valign[7] = 'middle';
$table->valign[8] = 'middle';
$table->valign[5] = 'middle';
$table->align[2] = 'center';
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
$table->align[3] = 'center';
/*if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
$table->align[5] = 'center';
}
$table->align[4] = 'center';
$table->align[6] = 'left';
$table->align[7] = 'center';
$table->align[8] = 'center';
}*/
$table->data = array ();
@ -394,7 +386,7 @@ foreach ($simple_alerts as $alert) {
$data = array ();
$data[0] = '<form class="disable_alert_form" method="post" style="display: inline;">';
/* $data[0] = '<form class="disable_alert_form" method="post" style="display: inline;">';
if ($alert['disabled']) {
$data[0] .= html_print_input_image ('enable', 'images/lightbulb_off.png', 1, '', true);
$data[0] .= html_print_input_hidden ('enable_alert', 1, true);
@ -416,28 +408,28 @@ foreach ($simple_alerts as $alert) {
$data[1] .= html_print_input_hidden ('standbyoff_alert', 1, true);
}
$data[1] .= html_print_input_hidden ('id_alert', $alert['id'], true);
$data[1] .= '</form>';
$data[1] .= '</form>'; */
if (! $id_agente) {
$id_agent = modules_get_agentmodule_agent ($alert['id_agent_module']);
$data[2] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=main&id_agente='.$id_agent.'">';
$data[0] = '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=main&id_agente='.$id_agent.'">';
if ($alert['disabled'])
$data[2] .= '<span style="font-style: italic; color: #aaaaaa;">';
$data[2] .= agents_get_name ($id_agent);
$data[0] .= '<span style="font-style: italic; color: #aaaaaa;">';
$data[0] .= '<span style="font-size: 7.2pt">' . agents_get_name ($id_agent) . '</span>';
if ($alert['disabled'])
$data[2] .= '</span>';
$data[2] .= '</a>';
$data[0] .= '</span>';
$data[0] .= '</a>';
}
$data[3] = ui_print_truncate_text(modules_get_agentmodule_name ($alert['id_agent_module']), 25, false);
$data[4] = ' <a class="template_details"
$data[1] = ui_print_truncate_text(modules_get_agentmodule_name ($alert['id_agent_module']), 35, false, true, true, '[&hellip;]', 'font-size: 7.2pt');
$data[2] = ' <a class="template_details"
href="ajax.php?page=godmode/alerts/alert_templates&get_template_tooltip=1&id_template='.$alert['id_alert_template'].'">' .
html_print_image("images/zoom.png", true, array("id" => 'template-details-'.$alert['id_alert_template'], "class" => "img_help")) . '</a> ';
$data[4] .= "<a href='index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id=".$alert['id_alert_template']."'>";
$data[4] .= ui_print_truncate_text(alerts_get_alert_template_name ($alert['id_alert_template']), 15, false);
$data[4] .= "</a>";
$data[2] .= "<a href='index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id=".$alert['id_alert_template']."'>";
$data[2] .= ui_print_truncate_text(alerts_get_alert_template_name ($alert['id_alert_template']), 55, false, true, true, '[&hellip;]', 'font-size: 7.1pt');
$data[2] .= "</a>";
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
/* if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
$policyInfo = policies_is_alert_in_policy2($alert['id'], false);
if ($policyInfo === false)
$data[5] = '';
@ -448,93 +440,93 @@ foreach ($simple_alerts as $alert) {
html_print_image($img,true, array('title' => $policyInfo['name'])) .
'</a>';
}
}
} */
$actions = alerts_get_alert_agent_module_actions ($alert['id']);
$data[6] = '';
$data[3] = '';
if (empty($actions)){
// Get and show default actions for this alert
$default_action = db_get_sql ("SELECT id_alert_action FROM talert_templates WHERE id = ".$alert["id_alert_template"]);
if ($default_action != ""){
$data[6] = __("Default"). " : ".db_get_sql ("SELECT name FROM talert_actions WHERE id = $default_action");
$data[3] = __("Default"). " : ".db_get_sql ("SELECT name FROM talert_actions WHERE id = $default_action");
}
}
else {
$data[6] = '<ul class="action_list">';
$data[3] = '<ul class="action_list">';
foreach ($actions as $action_id => $action) {
$data[6] .= '<li>';
$data[3] .= '<li>';
if ($alert['disabled'])
$data[6] .= '<font class="action_name" style="font-style: italic; color: #aaaaaa;">';
$data[3] .= '<font class="action_name" style="font-style: italic; color: #aaaaaa;">';
else
$data[6] .= '<font class="action_name">';
$data[6] .= ui_print_truncate_text($action['name'], 15, false);
$data[6] .= ' <em>(';
$data[3] .= '<font class="action_name">';
$data[3] .= ui_print_truncate_text($action['name'], 15, false);
$data[3] .= ' <em>(';
if ($action['fires_min'] == $action['fires_max']) {
if ($action['fires_min'] == 0)
$data[6] .= __('Always');
$data[3] .= __('Always');
else
$data[6] .= __('On').' '.$action['fires_min'];
$data[3] .= __('On').' '.$action['fires_min'];
}
else {
if ($action['fires_min'] == 0)
$data[6] .= __('Until').' '.$action['fires_max'];
$data[3] .= __('Until').' '.$action['fires_max'];
else
$data[6] .= __('From').' '.$action['fires_min'].
$data[3] .= __('From').' '.$action['fires_min'].
' '.__('to').' '.$action['fires_max'];
}
if ($action['module_action_threshold'] != 0)
$data[6] .= ' '.__('Threshold').' '.$action['module_action_threshold'];
$data[3] .= ' '.__('Threshold').' '.$action['module_action_threshold'];
$data[6] .= ')</em>';
$data[6] .= '</font>';
$data[3] .= ')</em>';
$data[3] .= '</font>';
// $data[6] .= ' <span class="delete" style="clear:right">';
$data[6] .= '<form method="post" class="delete_link" style="display: inline; vertical-align: -50%;">';
$data[6] .= html_print_input_image ('delete', 'images/cross.png', 1, '', true, array('title' => __('Delete')));
$data[6] .= html_print_input_hidden ('delete_action', 1, true);
$data[6] .= html_print_input_hidden ('id_alert', $alert['id'], true);
$data[6] .= html_print_input_hidden ('id_action', $action_id, true);
$data[6] .= '</form>';
// $data[6] .= '</span>';
$data[6] .= '</li>';
$data[3] .= '<form method="post" class="delete_link" style="display: inline; vertical-align: -50%;">';
$data[3] .= html_print_input_image ('delete', 'images/cross.png', 1, '', true, array('title' => __('Delete')));
$data[3] .= html_print_input_hidden ('delete_action', 1, true);
$data[3] .= html_print_input_hidden ('id_alert', $alert['id'], true);
$data[3] .= html_print_input_hidden ('id_action', $action_id, true);
$data[3] .= '</form>';
// $data[3] .= '</span>';
$data[3] .= '</li>';
}
$data[6] .= '</ul>';
$data[3] .= '</ul>';
}
$data[6] .= '<a class="add_action" id="add-action-'.$alert['id'].'" href="#">';
$data[6] .= html_print_image ('images/add.png', true);
$data[3] .= '<a class="add_action" id="add-action-'.$alert['id'].'" href="#">';
$data[3] .= html_print_image ('images/add.png', true);
if ($alert['disabled'])
$data[6] .= ' '. '<span style="font-style: italic; color: #aaaaaa;">' .__('Add action') . '</span>';
$data[3] .= ' '. '<span style="font-style: italic; color: #aaaaaa;">' .__('Add action') . '</span>';
else
$data[6] .= ' ' . __('Add action');
$data[6] .= '</a>';
$data[3] .= ' ' . __('Add action');
$data[3] .= '</a>';
$data[6] .= '<form id="add_action_form-'.$alert['id'].'" method="post" class="invisible">';
$data[6] .= html_print_input_hidden ('add_action', 1, true);
$data[6] .= html_print_input_hidden ('id_alert_module', $alert['id'], true);
$data[3] .= '<form id="add_action_form-'.$alert['id'].'" method="post" class="invisible">';
$data[3] .= html_print_input_hidden ('add_action', 1, true);
$data[3] .= html_print_input_hidden ('id_alert_module', $alert['id'], true);
$own_info = get_user_info($config['id_user']);
$own_groups = users_get_groups($config['id_user'], 'LW', $own_info['is_admin']);
$filter_groups = '';
$filter_groups = implode(',', array_keys($own_groups));
$actions = alerts_get_alert_actions_filter(true, 'id_group IN (' . $filter_groups . ')');
$data[6] .= html_print_select ($actions, 'action', '', '', __('None'), 0, true);
$data[6] .= '<br />';
$data[6] .= '<span><a href="#" class="show_advanced_actions">'.__('Advanced options').' &raquo; </a></span>';
$data[6] .= '<span class="advanced_actions invisible">';
$data[6] .= __('Number of alerts match from').' ';
$data[6] .= html_print_input_text ('fires_min', -1, '', 4, 10, true);
$data[6] .= ' '.__('to').' ';
$data[6] .= html_print_input_text ('fires_max', -1, '', 4, 10, true);
$data[6] .= ui_print_help_icon ("alert-matches", true);
$data[6] .= '<br />' . __('Threshold');
$data[6] .= html_print_input_text ('module_action_threshold', '', '', 4, 10, true) . ui_print_help_icon ('action_threshold', true);
$data[6] .= '</span>';
$data[6] .= '<div class="right">';
$data[6] .= html_print_submit_button (__('Add'), 'add_action', false, 'class="sub next"', true);
$data[6] .= '</div>';
$data[6] .= '</form>';
$data[3] .= html_print_select ($actions, 'action', '', '', __('None'), 0, true);
$data[3] .= '<br />';
$data[3] .= '<span><a href="#" class="show_advanced_actions">'.__('Advanced options').' &raquo; </a></span>';
$data[3] .= '<span class="advanced_actions invisible">';
$data[3] .= __('Number of alerts match from').' ';
$data[3] .= html_print_input_text ('fires_min', -1, '', 4, 10, true);
$data[3] .= ' '.__('to').' ';
$data[3] .= html_print_input_text ('fires_max', -1, '', 4, 10, true);
$data[3] .= ui_print_help_icon ("alert-matches", true);
$data[3] .= '<br />' . __('Threshold');
$data[3] .= html_print_input_text ('module_action_threshold', '', '', 4, 10, true) . ui_print_help_icon ('action_threshold', true);
$data[3] .= '</span>';
$data[3] .= '<div class="right">';
$data[3] .= html_print_submit_button (__('Add'), 'add_action', false, 'class="sub next"', true);
$data[3] .= '</div>';
$data[3] .= '</form>';
$status = STATUS_ALERT_NOT_FIRED;
$title = "";
@ -552,14 +544,50 @@ foreach ($simple_alerts as $alert) {
$title = __('Alert not fired');
}
$data[7] = ui_print_status_image($status, $title, true);
$data[4] = ui_print_status_image($status, $title, true);
$data[8] = '<form class="delete_alert_form" method="post" style="display: inline;">';
$data[5] = '<form class="disable_alert_form" method="post" style="display: inline;">';
if ($alert['disabled']) {
$data[5] .= html_print_input_image ('enable', 'images/lightbulb_off.png', 1, '', true);
$data[5] .= html_print_input_hidden ('enable_alert', 1, true);
}
else {
$data[5] .= html_print_input_image ('disable', 'images/lightbulb.png', 1, '', true);
$data[5] .= html_print_input_hidden ('disable_alert', 1, true);
}
$data[5] .= html_print_input_hidden ('id_alert', $alert['id'], true);
$data[5] .= '</form>';
$data[8] .= html_print_input_image ('delete', 'images/cross.png', 1, '', true, array('title' => __('Delete')));
$data[8] .= html_print_input_hidden ('delete_alert', 1, true);
$data[8] .= html_print_input_hidden ('id_alert', $alert['id'], true);
$data[8] .= '</form>';
$data[5] .= '&nbsp;&nbsp;<form class="standby_alert_form" method="post" style="display: inline;">';
if (!$alert['standby']) {
$data[5] .= html_print_input_image ('standby_off', 'images/bell.png', 1, '', true);
$data[5] .= html_print_input_hidden ('standbyon_alert', 1, true);
}
else {
$data[5] .= html_print_input_image ('standby_on', 'images/bell_pause.png', 1, '', true);
$data[5] .= html_print_input_hidden ('standbyoff_alert', 1, true);
}
$data[5] .= html_print_input_hidden ('id_alert', $alert['id'], true);
$data[5] .= '</form>';
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
$policyInfo = policies_is_alert_in_policy2($alert['id'], false);
if ($policyInfo === false)
$data[5] .= '';
else {
$img = 'images/policies.png';
$data[5] .= '&nbsp;&nbsp;<a href="?sec=gpolicies&sec2=enterprise/godmode/policies/policies&id=' . $policyInfo['id'] . '">' .
html_print_image($img,true, array('title' => $policyInfo['name'])) .
'</a>';
}
}
$data[5] .= '&nbsp;&nbsp;<form class="delete_alert_form" method="post" style="display: inline;">';
$data[5] .= html_print_input_image ('delete', 'images/cross.png', 1, '', true, array('title' => __('Delete')));
$data[5] .= html_print_input_hidden ('delete_alert', 1, true);
$data[5] .= html_print_input_hidden ('id_alert', $alert['id'], true);
$data[5] .= '</form>';
array_push ($table->data, $data);
}

View File

@ -240,8 +240,9 @@ $table->head[4] = __('Op.');
$table->style = array ();
$table->style[0] = 'font-weight: bold';
$table->size = array ();
$table->size[4] = '50px';
$table->size[4] = '65px';
$table->align = array ();
$table->align[1] = 'center';
$table->align[4] = 'center';
$rowPair = true;
@ -259,7 +260,7 @@ foreach ($templates as $template) {
$data[0] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&id='.$template['id'].'">'.
$template['name'].'</a>';
$data[1] = ui_print_group_icon ($template["id_group"], true) .'&nbsp;'. ui_print_truncate_text(groups_get_name ($template['id_group'], true));
$data[1] = ui_print_group_icon ($template["id_group"], true);
$data[3] = alerts_get_alert_templates_type_name ($template['type']);
$data[4] = '<form method="post" action="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template" style="display: inline; float: left">';
@ -268,7 +269,7 @@ foreach ($templates as $template) {
$data[4] .= html_print_input_image ('dup', 'images/copy.png', 1, '', true, array ('title' => __('Duplicate')));
$data[4] .= '</form> ';
$data[4] .= '<form method="post" style="display: inline; float: right" onsubmit="if (!confirm(\''.__('Are you sure?').'\')) return false;">';
$data[4] .= '&nbsp;&nbsp;<form method="post" style="display: inline; float: right" onsubmit="if (!confirm(\''.__('Are you sure?').'\')) return false;">';
$data[4] .= html_print_input_hidden ('delete_template', 1, true);
$data[4] .= html_print_input_hidden ('id', $template['id'], true);
$data[4] .= html_print_input_image ('del', 'images/cross.png', 1, '', true, array ('title' => __('Delete')));

View File

@ -84,7 +84,7 @@ echo "<b>".__('Latest date')."</b></td>";
echo "<td class='datos'>".$result["latest_date"]."</td>";
echo "</tr></table>";
?>
<h3><?php echo __('Purge data') ?></h3>
<h4><?php echo __('Purge data') ?></h4>
<form name="db_audit" method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_audit">
<table width='98%' cellpadding='4' cellspacing='4' class='databox'>
<tr><td class='datos'>

View File

@ -63,7 +63,7 @@ $table->data[2][1] = $row["latest_date"];
html_print_table ($table);
unset ($table);
echo '<h3>'.__('Purge data').'</h3>';
echo '<h4>'.__('Purge data').'</h4>';
echo '<form name="db_audit" method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_event">';
echo '<table width="98%" cellpadding="4" cellspacing="4" class="databox">

View File

@ -70,7 +70,7 @@ echo '<b>'.__('Source agent').'</b><br /><br />';
$agent_selected = get_parameter_post ("origen", 0);
$agents = agents_get_group_agents (array_keys (users_get_groups ($config["id_user"], "AW")));
html_print_select ($agents, "origen", $agent_selected, 'javascript:this.form.update_agent.click();', __('No agent selected'), '0', false, false, false, 'w130');
html_print_select ($agents, "origen", $agent_selected, 'javascript:this.form.update_agent.click();', __('No agent selected'), '0', false, false, false, '', false, 'max-width:300px !important;');
echo '&nbsp;&nbsp;';
@ -82,11 +82,11 @@ echo '<b>'.__('Modules').'</b><br /><br />';
$module_selected = get_parameter_post ("origen", array ());
$modules = agents_get_modules ($module_selected, false, 'delete_pending != 1');
html_print_select ($modules, "origen_modulo[]", $module_selected, '', '', '0', false, true, false, 'w130');
html_print_select ($modules, "origen_modulo[]", $module_selected, '', '', '0', false, true, false, '', false, 'max-width: 300px !important;');
echo '</div>'; //Left div
echo '<div style="float:left; width:"98%";"><b>'.__('Purge data out of these limits').'</b><br /><br />';
echo '<div style="float:left; width:\'98%\'; margin-left:20% "><b>'.__('Purge data out of these limits').'</b><br /><br />';
echo '<table><tr><td>';
echo __('Minimum').': ';
echo '</td><td>';

View File

@ -70,12 +70,14 @@ $table->head[1] = __('Group');
$table->head[2] = __('View');
if ($display_default_column)
$table->head[3] = __('Default');
$table->head[4] = __('Delete');
$table->head[4] = '<span title="Operations">' . __('Op.') . '</span>';
$table->align[1] = 'center';
$table->align[2] = 'center';
$table->align[3] = 'center';
$table->align[4] = 'center';
$table->size = array();
$table->size[4] = '60px';
$maps = db_get_all_rows_in_table ('tgis_map','map_name');
@ -106,8 +108,9 @@ if (!$maps) {
$default_button = html_print_radio_button_extended('default_map', $map['id_tgis_map'], '', $checked, false, "setDefault(" . $map['id_tgis_map'] . ");", '', true);
array_push($table_info, $default_button);
}
$delete_button = '<a href="index.php?sec=godgismaps&amp;sec2=godmode/gis_maps/index&amp;map_id='.$map['id_tgis_map'].'&amp;action=delete_map" onclick="return confirmDelete();">' . html_print_image ("images/cross.png", true).'</a>';
array_push ($table_info, $delete_button);
$buttons = '<a href="index.php?sec=godgismaps&amp;sec2=godmode/gis_maps/configure_gis_map&map_id='.$map['id_tgis_map'].'&amp;action=edit_map">' . html_print_image ("images/config.png", true).'</a>&nbsp;&nbsp;';
$buttons .= '<a href="index.php?sec=godgismaps&amp;sec2=godmode/gis_maps/index&amp;map_id='.$map['id_tgis_map'].'&amp;action=delete_map" onclick="return confirmDelete();">' . html_print_image ("images/cross.png", true).'</a>';
array_push ($table_info, $buttons);
$table->data[] = $table_info;
}
html_print_table($table);

View File

@ -282,7 +282,7 @@ foreach ($groups as $id_group => $group) {
'<a href="javascript: showBranch(' . $group['id_grupo'] . ', ' . $group['parent'] . ');" title="' . __('Show branch children') . '"><span class="symbol_' . $group['id_grupo'] . ' ' . $symbolBranchs . '">' . $symbol . '</span> '. ui_print_truncate_text($group['nombre']).'</a></strong>';
}
else {
$data[0] = '<strong>'.$tabulation . ' '. ui_print_truncate_text($group['nombre']).'</strong>';
$data[0] = '<strong>'.$tabulation . ' '. ui_print_truncate_text($group['nombre'], 60).'</strong>';
}
$data[1] = $group['id_grupo'];
$data[2] = ui_print_group_icon($group['id_grupo'], true);
@ -292,7 +292,7 @@ foreach ($groups as $id_group => $group) {
}
else {
$data[4] = '<a href="index.php?sec=gagente&sec2=godmode/groups/configure_group&id_group='.$group['id_grupo'].'">' . html_print_image("images/config.png", true, array("alt" => __('Edit'), "title" => __('Edit'), "border" => '0'));
$data[4] .= '<a href="index.php?sec=gagente&sec2=godmode/groups/group_list&id_group='.$id_group.'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">' . html_print_image("images/cross.png", true, array("alt" => __('Delete'), "border" => '0'));
$data[4] .= '&nbsp;&nbsp;<a href="index.php?sec=gagente&sec2=godmode/groups/group_list&id_group='.$id_group.'&delete_group=1" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">' . html_print_image("images/cross.png", true, array("alt" => __('Delete'), "border" => '0'));
}
array_push ($table->data, $data);

View File

@ -132,7 +132,6 @@ ui_print_page_header (__('Massive operations'). ' &raquo; '. $options[$option],
echo '<form method="post" id="form_options" action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations">';
echo '<table border="0"><tr><td>';
echo '<h3>'.__('Massive options').':</h3>';
echo '</td><td>';
html_print_select($options, 'option', $option, 'this.form.submit()', '', 0, false, false, false);
if($option == 'edit_agents' || $option == 'edit_modules')

View File

@ -324,7 +324,7 @@ foreach ($components as $component) {
$data[6] = '<a style="display: inline; float: left" href="' . $url . '&search_id_group=' . $search_id_group .
'search_string=' . $search_string . '&duplicate_network_component=1&source_id=' . $component['id_nc'] . '">' .
html_print_image('images/copy.png', true, array('alt' => __('Duplicate'), 'title' => __('Duplicate'))) . '</a>';
$data[6] .= '<a href="' . $url . '&delete_component=1&id=' . $component['id_nc'] . '&search_id_group=' . $search_id_group .
$data[6] .= '&nbsp;&nbsp;<a href="' . $url . '&delete_component=1&id=' . $component['id_nc'] . '&search_id_group=' . $search_id_group .
'search_string=' . $search_string .
'" onclick="if (! confirm (\''.__('Are you sure?').'\')) return false" >' .
html_print_image('images/cross.png', true, array('alt' => __('Delete'), 'title' => __('Delete'))) . '</a>';

View File

@ -144,6 +144,9 @@ $table->head = array ();
$table->head[0] = __('Name');
$table->head[1] = __('Description');
$table->head[2] = __('Action');
$table->size = array ();
$table->size[1] = '65%';
$table->size[2] = '10%';
$table->align = array ();
$table->align[2] = "center";
@ -153,7 +156,7 @@ $table->data = array ();
foreach ($result as $row) {
$data = array ();
$data[0] = '<a href="index.php?sec=gmodules&amp;sec2=godmode/modules/manage_network_templates_form&amp;id_np='.$row["id_np"].'">'. io_safe_output($row["name"]).'</a>';
$data[1] = ui_print_truncate_text(io_safe_output($row["description"]), 70, true, true, true, true);
$data[1] = ui_print_truncate_text(io_safe_output($row["description"]), 80, true, true, true, '[&hellip;]');
$data[2] = html_print_input_image ("delete_profile", "images/cross.png",
$row["id_np"],'', true,
array ('onclick' => 'if (!confirm(\''.__('Are you sure?').'\')) return false;'));
@ -162,7 +165,7 @@ foreach ($result as $row) {
$data[2] = '<a href="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates' .
'&delete_profile=1&delete_profile=' . $row['id_np'] . '" ' .
'onclick="if (!confirm(\''.__('Are you sure?').'\')) return false;">' . html_print_image("images/cross.png", true) . '</a>';
$data[2] .= '<a href="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates' .
$data[2] .= '&nbsp;&nbsp;<a href="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates' .
'&export_profile=' . $row['id_np'] . '">' . html_print_image("images/lightning_go.png", true) . '</a>';
array_push ($table->data, $data);

View File

@ -133,7 +133,7 @@ foreach ($graphRows as $graphRow) {
$modules = implode(',', $module_array);
$weights = implode(',', $weight_array);
echo "<table class='databox_frame' cellpadding='0' cellspacing='0'>";
echo "<table class='databox_frame' cellpadding='0' cellspacing='0' style='width:98%'>";
echo "<tr><td>";
if(!empty($modules)) {
@ -143,13 +143,13 @@ if(!empty($modules)) {
'Combined%20Sample%20Graph', '', $events, 0, 0, $stacked, $unixdate);
}
else {
echo "<div class='nf'>".__('Empty graph')."</div>";
echo "<div class='nf' style='width: 98%'>".__('Empty graph')."</div>";
}
echo "</td></tr></table>";
echo "<form method = 'POST' action='index.php?sec=greporting&sec2=godmode/reporting/graph_builder&tab=preview&edit_graph=1&id=$id_graph'>";
echo "<table class='databox_frame' cellpadding='4' cellspacing='4'>";
echo "<table class='databox_frame' cellpadding='4' cellspacing='4' style='width: 98%'>";
echo "<tr>";
echo "<td>";
echo "<b>".__('Date')."</b>"." ";

View File

@ -216,7 +216,7 @@ if ($items){
}
$table->head[4] = __('Period');
$table->head[5] = __('Description');
$table->head[6] = '<span title="' . __('Options') . '">' . __('O.') . '</span>';
$table->head[6] = '<span title="' . __('Options') . '">' . __('Op.') . '</span>';
$table->align[6] = 'center';
} else {
@ -307,7 +307,7 @@ foreach ($items as $item) {
}
$row[6] = '<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=item_editor&action=edit&id_report=' . $idReport . '&id_item=' . $item['id_rc'] . '">' . html_print_image("images/wrench_orange.png", true, array("title" => __('Edit'))) . '</a>';
$row[6] .= '&nbsp;';
$row[6] .= '&nbsp;&nbsp;';
$row[6] .= '<a href="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=delete&id_report=' . $idReport . '&id_item=' . $item['id_rc'] . $urlFilter . '">' . html_print_image("images/cross.png", true, array("title" => __('Delete'))) .'</a>';
$table->data[] = $row;

View File

@ -51,7 +51,7 @@ $table->size[1] = '90%';
$table->style[0] = 'font-weight: bold; vertical-align: top;';
$table->data['name'][0] = __('Name');
$table->data['name'][1] = html_print_input_text('name', $reportName, __('Name'), 20, 40, true);
$table->data['name'][1] = html_print_input_text('name', $reportName, __('Name'), 80, 100, true);
$table->data['group'][0] = __('Group');
$own_info = get_user_info ($config['id_user']);

View File

@ -72,9 +72,9 @@ switch ($action) {
$table->head[1] = __('Description');
$table->head[2] = __('Private');
$table->head[3] = __('Group');
$table->head[4] = __('Delete');
$table->head[4] = '<span title="Operations">' . __('Op.') . '</span>';
$table->size = array ();
$table->size[4] = '40px';
$table->size[4] = '60px';
foreach ($reports as $report) {
@ -96,12 +96,17 @@ switch ($action) {
$data[2] = __('No');
$data[3] = ui_print_group_icon($report['id_group'], true);
$data[4] = '<form method="post" style="display:inline" onsubmit="if (!confirm (\''.__('Are you sure?').'\')) return false">';
$data[4] = '<form method="post" action="index.php?sec=greporting&sec2=godmode/reporting/reporting_builder&action=edit" style="display:inline">';
$data[4] .= html_print_input_hidden ('id_report', $report['id_report'], true);
$data[4] .= html_print_input_image ('edit', 'images/config.png', 1, '', true, array ('title' => __('Edit')));
$data[4] .= '</form>';
$data[4] .= '&nbsp;&nbsp;<form method="post" style="display:inline" onsubmit="if (!confirm (\''.__('Are you sure?').'\')) return false">';
$data[4] .= html_print_input_hidden ('id_report', $report['id_report'], true);
$data[4] .= html_print_input_hidden ('action','delete_report', true);
$data[4] .= html_print_input_image ('delete', 'images/cross.png', 1, '',
true, array ('title' => __('Delete')));
$data[4] .= '</form>';
$data[4] .= '</form>';
array_push ($table->data, $data);

View File

@ -47,7 +47,7 @@ $table->width = '98%';
$table->data = array ();
$table->data[0][0] = __('Name:'). ui_print_help_tip (__("Use [ or ( as first character, for example '[*] Map name', to render this map name in main menu"), true);
$table->data[0][1] = html_print_input_text ('name', $visualConsoleName, '', 21, 30, true);
$table->data[0][1] = html_print_input_text ('name', $visualConsoleName, '', 80, 100, true);
$table->data[1][0] = __('Group:');
$groups = users_get_groups ($config['id_user']);

View File

@ -200,6 +200,8 @@ if ($result !== false) {
$table->cellspacing = 4;
$table->class = "databox";
$table->data = array ();
$table->size = array ();
$table->size[8] = '70px';
foreach ($result as $row) {
@ -253,9 +255,9 @@ if ($result !== false) {
}
// ACTION
$data[8] = "<a href='index.php?sec=estado_server&sec2=operation/servers/view_server_detail&server_id=".$row["id_recon_server"]."'>" . html_print_image("images/eye.png", true) . "</a>&nbsp;".
'<a href="index.php?sec=gservers&sec2=godmode/servers/manage_recontask&delete='.$row["id_rt"].'">' . html_print_image("images/cross.png", true, array("border" => '0')) . '</a>&nbsp;<a href="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&update='.$row["id_rt"].'">' .
html_print_image("images/config.png", true) . '</a>';
$data[8] = "<a href='index.php?sec=estado_server&sec2=operation/servers/view_server_detail&server_id=".$row["id_recon_server"]."'>" . html_print_image("images/eye.png", true) . "</a>&nbsp;&nbsp;" .
'<a href="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&update='.$row["id_rt"].'">' . html_print_image("images/config.png", true) . '</a>&nbsp;&nbsp;' .
'<a href="index.php?sec=gservers&sec2=godmode/servers/manage_recontask&delete='.$row["id_rt"].'">' . html_print_image("images/cross.png", true, array("border" => '0')) . '</a>';
$table->data[] = $data;
}

View File

@ -47,7 +47,7 @@ if (isset($_GET["server"])) {
html_print_table ($table);
echo '<div class="action-buttons" style="width: 450px">';
echo '<div class="action-buttons" style="width: 98%">';
echo '<input type="submit" class="sub upd" value="'.__('Update').'">';
echo "</div>";
@ -94,8 +94,7 @@ else {
$table->align[3] = "center";
$table->align[4] = "center";
$table->align[5] = "center";
$table->align[6] = "center";
$table->align[7] = "center";
$table->align[6] = "left";
$table->style = array ();
$table->style[0] = 'font-weight: bold';
$table->head = array ();
@ -106,9 +105,12 @@ else {
$table->head[4] = __('Started');
$table->head[5] = __('Updated');
$table->size = array();
$table->size[6] = '50px';
//Only Pandora Administrator can delete servers
if (check_acl ($config["id_user"], 0, "PM")) {
$table->head[6] = __('Delete');
$table->head[6] = '<span title="Operations">' . __('Op.') . '</span>';
}
foreach ($servers as $server) {
@ -127,9 +129,13 @@ else {
$data[4] = human_time_comparation ($server["laststart"]);
$data[5] = human_time_comparation ($server["keepalive"]);
$data[6] = '<a href="index.php?sec=gservers&sec2=godmode/servers/modificar_server&server='.$server["id_server"].'">';
$data[6] .= html_print_image ('images/config.png', true, array ('title' => __('Edit')));
$data[6] .= '</a>';
//Only Pandora Administrator can delete servers
if (check_acl ($config["id_user"], 0, "PM")) {
$data[6] = '<a href="index.php?sec=gservers&sec2=godmode/servers/modificar_server&server_del='.$server["id_server"].'&amp;delete=1">';
$data[6] .= '&nbsp;&nbsp;<a href="index.php?sec=gservers&sec2=godmode/servers/modificar_server&server_del='.$server["id_server"].'&amp;delete=1">';
$data[6] .= html_print_image ('images/cross.png', true, array ('title' => __('Delete'), 'onclick' => "if (! confirm ('" . __('Modules run by this server will stop working. Do you want to continue?') ."')) return false"));
$data[6] .= '</a>';
}

View File

@ -70,12 +70,12 @@ if ($create != ""){
if (($create != "") OR ($view != "")){
if ($create != "")
ui_print_page_header (__('Plugin creation'), "", false, "", true);
ui_print_page_header (__('Plugin creation') . ui_print_help_icon("plugin_definition", true), "", false, "", true);
else {
ui_print_page_header (__('Plugin update'), "", false, "", true);
ui_print_page_header (__('Plugin update') . ui_print_help_icon("plugin_definition", true), "", false, "", true);
$plugin_id = get_parameter ("view","");
}
ui_print_help_icon("plugin_definition");
if ($create == "")
echo "<form name=plugin method='post' action='index.php?sec=gservers&sec2=godmode/servers/plugin&update_plugin=$plugin_id'>";
@ -86,7 +86,7 @@ if (($create != "") OR ($view != "")){
echo '<tr><td class="datos">'.__('Name');
echo '<td class="datos">';
echo '<input type="text" name="form_name" size=30 value="'.$form_name.'"></td>';
echo '<input type="text" name="form_name" size=100 value="'.$form_name.'"></td>';
echo '<tr><td class="datos2">'.__('Plugin command');
echo '<td class="datos2">';
@ -231,7 +231,7 @@ else {
echo "<th>".__('Name')."</th>";
echo "<th>".__('Type')."</th>";
echo "<th>".__('Command')."</th>";
echo "<th>".__('Delete')."</th>";
echo "<th style='width:50px;'>" . '<span title="Operations">' . __('Op.') . '</span>' . "</th>";
$color = 0;
foreach ($rows as $row) {
@ -256,16 +256,17 @@ else {
echo "</td><td class=$tdcolor>";
echo $row["execute"];
echo "</td><td class=$tdcolor>";
echo "<a href='index.php?sec=gservers&sec2=godmode/servers/plugin&view=".$row["id"]."'>" . html_print_image('images/config.png', true, array("title" => __("Edit"))) . "</a>&nbsp;&nbsp;";
echo "<a href='index.php?sec=gservers&sec2=godmode/servers/plugin&kill_plugin=".$row["id"]."'>" . html_print_image("images/cross.png", true, array("border" => '0')) . "</a>";
echo "</td></tr>";
}
echo "</table>";
}
else {
echo '<div class="nf">'. __('There are no plugins in the system');
echo '<div class="nf">'. __('There are no plugins in the system') . '</div>';
echo "<br>";
}
echo "<table width=730>";
echo "<table width='98%'>";
echo "<tr><td align=right>";
echo "<form name=plugin method='post' action='index.php?sec=gservers&sec2=godmode/servers/plugin&create=1'>";
echo "<input name='crtbutton' type='submit' class='sub next' value='".__('Add')."'>";

View File

@ -58,12 +58,12 @@ if ($create != ""){
if (($create != "") OR ($view != "")){
if ($create != "")
ui_print_page_header (__('Recon script creation'), "", false, "", true);
ui_print_page_header (__('Recon script creation') . ui_print_help_icon("reconscript_definition", true), "", false, "", true);
else {
ui_print_page_header (__('Recon script update'), "", false, "", true);
ui_print_page_header (__('Recon script update') . ui_print_help_icon("reconscript_definition", true), "", false, "", true);
$id_recon_script = get_parameter ("view","");
}
ui_print_help_icon("reconscript_definition");
if ($create == "")
echo "<form name=reconscript method='post' action='index.php?sec=gservers&sec2=godmode/servers/recon_script&update_reconscript=$id_recon_script'>";
@ -195,7 +195,7 @@ else {
echo "</table>";
}
else {
echo '<div class="nf">'. __('There are no recon scripts in the system');
echo '<div class="nf">'. __('There are no recon scripts in the system') . '</div>';
echo "<br>";
}
echo "<table width=98%>";

View File

@ -301,7 +301,7 @@ if (isset ($_GET["update_alert"])) {
foreach ($result as $row) {
$data = array ();
$data[0] = alerts_get_alert_action_name ($row["id_alert"]);
$data[0] = '<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert&update_alert='.$row["id_as"].'">' . alerts_get_alert_action_name ($row["id_alert"]) . '</a>';
$data[1] = __('SNMP Agent');
$data[1] = $row["agent"];
@ -319,10 +319,10 @@ if (isset ($_GET["update_alert"])) {
$data[6] = __('Never');
}
$data[7] = '<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert&delete_alert='.$row["id_as"].'">' .
html_print_image("images/cross.png", true, array("border" => '0', "alt" => __('Delete'))) . '</a>&nbsp;
<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert&update_alert='.$row["id_as"].'">' .
html_print_image("images/config.png", true, array("border" => '0', "alt" => __('Update'))) . '</a>';
$data[7] = '<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert&update_alert='.$row["id_as"].'">' .
html_print_image("images/config.png", true, array("border" => '0', "alt" => __('Update'))) . '</a>' .
'&nbsp;&nbsp;<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_alert&delete_alert='.$row["id_as"].'">' .
html_print_image("images/cross.png", true, array("border" => '0', "alt" => __('Delete'))) . '</a>';
$idx = count ($table->data); //The current index of the table is 1 less than the count of table data so we count before adding to table->data
array_push ($table->data, $data);

View File

@ -131,12 +131,12 @@ if ($edit_filter > -2) {
foreach ($result as $row) {
$data = array ();
$data[0] = $row['description'];
$data[0] = '<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_filters&edit_filter='.$row['id_snmp_filter'].'">' . $row['description'] . '</a>';
$data[1] = $row['filter'];
$data[2] = '<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_filters&delete_filter='.$row['id_snmp_filter'].'">' .
html_print_image("images/cross.png", true, array("border" => '0', "alt" => __('Delete'))) . '</a>&nbsp;
<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_filters&edit_filter='.$row['id_snmp_filter'].'">' .
html_print_image("images/config.png", true, array("border" => '0', "alt" => __('Update'))) . '</a>';
$data[2] = '<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_filters&edit_filter='.$row['id_snmp_filter'].'">' .
html_print_image("images/config.png", true, array("border" => '0', "alt" => __('Update'))) . '</a>' .
'&nbsp;&nbsp;<a href="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_filters&delete_filter='.$row['id_snmp_filter'].'">' .
html_print_image("images/cross.png", true, array("border" => '0', "alt" => __('Delete'))) . '</a>';
array_push ($table->data, $data);
}
@ -146,7 +146,7 @@ if ($edit_filter > -2) {
unset ($table);
echo '<div style="text-align:right; width:740px">';
echo '<div style="text-align:right; width:98%">';
echo '<form name="agente" method="post" action="index.php?sec=gsnmpconsole&sec2=godmode/snmpconsole/snmp_filters&edit_filter=-1">';
html_print_submit_button (__('Create'), 'submit_button', false, 'class="sub next"');
echo '</form></div>';

View File

@ -114,16 +114,6 @@ echo '<form method="post" action="index.php?sec=gtag&sec2=godmode/tag/edit_tag&a
echo '<div align=left style="width: 98%" class="pandora_form">';
echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=98%>";
echo "<tr>";
echo "<td>";
if ($action == "update"){
echo '<h3>'.__("Edit tag").'</h3>';
}
if ($action == "new"){
echo '<h3>'.__("New tag").'</h3>';
}
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td align=center>";
html_print_label (__("Name"),'name');

View File

@ -150,7 +150,7 @@ if (!empty($result)){
$data = array ();
$data[0] = $tag["name"];
$data[0] = "<a href='index.php?sec=gtag&sec2=godmode/tag/edit_tag&action=update&id_tag=".$tag["id_tag"] . "'>" . $tag["name"] . "</a>";
$data[1] = ui_print_truncate_text($tag["description"], 25, false);
$data[2] = '<a href="' . $tag["url"] . '">' . $tag["url"] . '</a>';
$data[3] = ' <a class="tag_details"
@ -160,7 +160,7 @@ if (!empty($result)){
$data[3] .= tags_get_modules_count($tag["id_tag"]);
$data[4] = "<a href='index.php?sec=gtag&sec2=godmode/tag/edit_tag&action=update&id_tag=".$tag["id_tag"] . "'>" . html_print_image("images/config.png", true, array("title" => "Edit")) . "</a>";
$data[4] = "<a href='index.php?sec=gtag&sec2=godmode/tag/edit_tag&action=update&id_tag=".$tag["id_tag"] . "'>" . html_print_image("images/config.png", true, array("title" => "Edit")) . "</a>&nbsp;&nbsp;";
$data[4] .= '<a href="index.php?sec=gtag&sec2=godmode/tag/tag&delete_tag='.$tag["id_tag"] . '"onclick="if (! confirm (\''.__('Are you sure?').'\')) return false">' . html_print_image("images/cross.png", true, array("title" => "Delete")) . '</a>';
array_push ($table->data, $data);
}

View File

@ -69,7 +69,7 @@ $table->head[7] = "UM" . ui_print_help_tip (__('Users management'), true);
$table->head[8] = "DM" . ui_print_help_tip (__('Database management'), true);
$table->head[9] = "LM" . ui_print_help_tip (__('Alerts management'), true);
$table->head[10] = "PM" . ui_print_help_tip (__('Systems management'), true);
$table->head[11] = __('Delete');
$table->head[11] = '<span title="Operations">' . __('Op.') . '</span>';
$table->align = array_fill (1, 11, "center");
$table->size = array_fill (1, 10, 40);
@ -90,7 +90,8 @@ foreach ($profiles as $profile) {
$data[8] = ($profile["db_management"] ? $img : '');
$data[9] = ($profile["alert_management"] ? $img : '');
$data[10] = ($profile["pandora_management"] ? $img : '');
$data[11] = '<a href="index.php?sec=gagente&sec2=godmode/users/configure_profile&delete_profile=1&id='.$profile["id_perfil"].'" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">'. html_print_image("images/cross.png", true) . '</a>';
$data[11] = '<a href="index.php?sec=gusuarios&amp;sec2=godmode/users/configure_profile&id='.$profile["id_perfil"].'"><b>'. html_print_image('images/config.png', true, array('title' => __('Edit'))) .'</b></a>';
$data[11] .= '&nbsp;&nbsp;<a href="index.php?sec=gagente&sec2=godmode/users/configure_profile&delete_profile=1&id='.$profile["id_perfil"].'" onClick="if (!confirm(\' '.__('Are you sure?').'\')) return false;">'. html_print_image("images/cross.png", true) . '</a>';
array_push ($table->data, $data);
}

View File

@ -150,12 +150,12 @@ $table->head[2] = __('Last contact') . ' ' .
'<a href="?sec=gusuarios&sec2=godmode/users/user_list&sort_field=last_connect&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectLastConnectDown)) . '</a>';
$table->head[3] = __('Profile');
$table->head[4] = __('Description');
$table->head[5] = __('Delete');
$table->head[5] = '<span title="Operations">' . __('Op.') . '</span>';
$table->align[2] = "center";
$table->align[3] = "center";
$table->align[5] = "center";
$table->size[5] = 40;
$table->align[5] = "left";
$table->size[5] = '45px';
$info1 = array ();
@ -228,10 +228,11 @@ foreach ($info as $user_id => $user_info) {
$data[4] = ui_print_string_substr ($user_info["comments"], 24, true);
$data[5] = '<a href="index.php?sec=gusuarios&amp;sec2=godmode/users/configure_user&amp;id='.$user_id.'">'.html_print_image('images/config.png', true, array('title' => __('Edit'))).'</a>';
if ($config["admin_can_delete_user"] && $user_info['id_user'] != $config['id_user']) {
$data[5] = "<a href='index.php?sec=gusuarios&sec2=godmode/users/user_list&user_del=1&delete_user=".$user_info['id_user']."'>".html_print_image('images/cross.png', true, array ('title' => __('Delete'), 'onclick' => "if (! confirm ('" .__('Deleting User'). " ". $user_info['id_user'] . ". " . __('Are you sure?') ."')) return false"))."</a>";
$data[5] .= "&nbsp;&nbsp;<a href='index.php?sec=gusuarios&sec2=godmode/users/user_list&user_del=1&delete_user=".$user_info['id_user']."'>".html_print_image('images/cross.png', true, array ('title' => __('Delete'), 'onclick' => "if (! confirm ('" .__('Deleting User'). " ". $user_info['id_user'] . ". " . __('Are you sure?') ."')) return false"))."</a>";
} else {
$data[5] = ''; //Delete button not in this mode
$data[5] .= ''; //Delete button not in this mode
}
array_push ($table->data, $data);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 323 B

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 517 B

After

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 437 B

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 475 B

After

Width:  |  Height:  |  Size: 535 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 623 B

After

Width:  |  Height:  |  Size: 671 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 456 B

After

Width:  |  Height:  |  Size: 580 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 649 B

After

Width:  |  Height:  |  Size: 514 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 824 B

After

Width:  |  Height:  |  Size: 658 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 779 B

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 595 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 795 B

After

Width:  |  Height:  |  Size: 771 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 555 B

After

Width:  |  Height:  |  Size: 877 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 481 B

After

Width:  |  Height:  |  Size: 827 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 738 B

After

Width:  |  Height:  |  Size: 959 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 664 B

After

Width:  |  Height:  |  Size: 790 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 603 B

After

Width:  |  Height:  |  Size: 775 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 587 B

After

Width:  |  Height:  |  Size: 727 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 738 B

After

Width:  |  Height:  |  Size: 759 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 890 B

After

Width:  |  Height:  |  Size: 846 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 629 B

After

Width:  |  Height:  |  Size: 777 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 702 B

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 B

After

Width:  |  Height:  |  Size: 846 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 725 B

After

Width:  |  Height:  |  Size: 715 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 812 B

After

Width:  |  Height:  |  Size: 774 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 457 B

After

Width:  |  Height:  |  Size: 646 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 608 B

After

Width:  |  Height:  |  Size: 473 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 407 B

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 512 B

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 638 B

After

Width:  |  Height:  |  Size: 824 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 693 B

After

Width:  |  Height:  |  Size: 835 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 720 B

After

Width:  |  Height:  |  Size: 868 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 715 B

After

Width:  |  Height:  |  Size: 695 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 882 B

After

Width:  |  Height:  |  Size: 922 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 730 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 723 B

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 574 B

After

Width:  |  Height:  |  Size: 715 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 566 B

After

Width:  |  Height:  |  Size: 530 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 550 B

After

Width:  |  Height:  |  Size: 700 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 603 B

After

Width:  |  Height:  |  Size: 543 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 704 B

After

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 750 B

After

Width:  |  Height:  |  Size: 728 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 730 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 665 B

After

Width:  |  Height:  |  Size: 737 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 650 B

After

Width:  |  Height:  |  Size: 570 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 410 B

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 983 B

After

Width:  |  Height:  |  Size: 940 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 728 B

After

Width:  |  Height:  |  Size: 711 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 440 B

After

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 658 B

After

Width:  |  Height:  |  Size: 782 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 776 B

After

Width:  |  Height:  |  Size: 765 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 911 B

After

Width:  |  Height:  |  Size: 918 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 890 B

After

Width:  |  Height:  |  Size: 846 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 725 B

After

Width:  |  Height:  |  Size: 715 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 613 B

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 928 B

After

Width:  |  Height:  |  Size: 910 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 788 B

After

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 932 B

After

Width:  |  Height:  |  Size: 761 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 606 B

After

Width:  |  Height:  |  Size: 727 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 661 B

After

Width:  |  Height:  |  Size: 727 B

Some files were not shown because too many files have changed in this diff Show More