mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge remote-tracking branch 'origin/develop' into features/oracle
This commit is contained in:
commit
7fac872fb8
pandora_agents
unix
win32
pandora_console
DEBIAN
extensions
agents_alerts.phpagents_modules.phpapi_checker.phpdbmanager.phpextension_uploader.php
files_repo
insert_data.phpnet_tools.phpplugin_registration.phpresource_exportation.phpresource_registration.phpsystem_info.phpusers_connected.phpextras
general
firts_task
collections.phpfields_manager.phpmap_builder.phpnetwork_map.phprecon_view.phpservice_list.phpsnmp_filters.phptags.php
login_page.phplogon_ok.phpgodmode
admin_access_logs.php
agentes
agent_manager.phpconfigure_field.phpfields_manager.phpmodificar_agente.phpmodule_manager_editor_common.phpplanned_downtime.editor.phpplanned_downtime.list.php
alerts
alert_actions.phpalert_commands.phpalert_list.builder.phpalert_special_days.phpalert_templates.phpconfigure_alert_action.phpconfigure_alert_command.phpconfigure_alert_special_days.phpconfigure_alert_template.php
category
db
events
gis_maps
groups
massive
massive_add_alerts.phpmassive_add_profiles.phpmassive_copy_modules.phpmassive_delete_action_alerts.phpmassive_delete_agents.phpmassive_delete_alerts.phpmassive_delete_modules.phpmassive_delete_profiles.phpmassive_edit_agents.phpmassive_edit_modules.phpmassive_enable_disable_alerts.phpmassive_operations.phpmassive_standby_alerts.php
modules
manage_nc_groups.phpmanage_nc_groups_form.phpmanage_network_components.phpmanage_network_components_form.phpmanage_network_templates.phpmanage_network_templates_form.phpmodule_list.php
netflow
reporting
graph_builder.graph_editor.phpgraph_builder.main.phpgraphs.phpmap_builder.phpreporting_builder.item_editor.phpreporting_builder.list_items.phpreporting_builder.main.phpreporting_builder.phpvisual_console_builder.data.phpvisual_console_builder.elements.php
servers
@ -1,5 +1,5 @@
|
||||
package: pandorafms-agent-unix
|
||||
Version: 6.0dev-150622
|
||||
Version: 6.0dev-150625
|
||||
Architecture: all
|
||||
Priority: optional
|
||||
Section: admin
|
||||
|
@ -14,7 +14,7 @@
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
pandora_version="6.0dev-150622"
|
||||
pandora_version="6.0dev-150625"
|
||||
|
||||
echo "Test if you has the tools for to make the packages."
|
||||
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
|
||||
|
@ -41,7 +41,7 @@ my $Sem = undef;
|
||||
my $ThreadSem = undef;
|
||||
|
||||
use constant AGENT_VERSION => '6.0dev';
|
||||
use constant AGENT_BUILD => '150622';
|
||||
use constant AGENT_BUILD => '150625';
|
||||
|
||||
# Commands to retrieve total memory information in kB
|
||||
use constant TOTALMEMORY_CMDS => {
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
%define name pandorafms_agent_unix
|
||||
%define version 6.0dev
|
||||
%define release 150622
|
||||
%define release 150625
|
||||
|
||||
Summary: Pandora FMS Linux agent, PERL version
|
||||
Name: %{name}
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
%define name pandorafms_agent_unix
|
||||
%define version 6.0dev
|
||||
%define release 150622
|
||||
%define release 150625
|
||||
|
||||
Summary: Pandora FMS Linux agent, PERL version
|
||||
Name: %{name}
|
||||
|
@ -186,7 +186,7 @@ UpgradeApplicationID
|
||||
{}
|
||||
|
||||
Version
|
||||
{150622}
|
||||
{150625}
|
||||
|
||||
ViewReadme
|
||||
{Yes}
|
||||
|
@ -30,7 +30,7 @@ using namespace Pandora;
|
||||
using namespace Pandora_Strutils;
|
||||
|
||||
#define PATH_SIZE _MAX_PATH+1
|
||||
#define PANDORA_VERSION ("6.0dev(Build 150622)")
|
||||
#define PANDORA_VERSION ("6.0dev(Build 150625)")
|
||||
|
||||
string pandora_path;
|
||||
string pandora_dir;
|
||||
|
@ -11,7 +11,7 @@ BEGIN
|
||||
VALUE "LegalCopyright", "Artica ST"
|
||||
VALUE "OriginalFilename", "PandoraAgent.exe"
|
||||
VALUE "ProductName", "Pandora FMS Windows Agent"
|
||||
VALUE "ProductVersion", "(6.0dev(Build 150622))"
|
||||
VALUE "ProductVersion", "(6.0dev(Build 150625))"
|
||||
VALUE "FileVersion", "1.0.0.0"
|
||||
END
|
||||
END
|
||||
|
@ -1,5 +1,5 @@
|
||||
package: pandorafms-console
|
||||
Version: 6.0dev-150622
|
||||
Version: 6.0dev-150625
|
||||
Architecture: all
|
||||
Priority: optional
|
||||
Section: admin
|
||||
|
@ -14,7 +14,7 @@
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
pandora_version="6.0dev-150622"
|
||||
pandora_version="6.0dev-150625"
|
||||
|
||||
package_pear=0
|
||||
package_pandora=1
|
||||
|
@ -211,7 +211,7 @@ function mainAgentsAlerts() {
|
||||
if ($tname == '') {
|
||||
continue;
|
||||
}
|
||||
echo '<th width="20px" >'. io_safe_output($tname) . html_print_image('images/information.png', true, array('title' => io_safe_output($tname))) ."</th>";
|
||||
echo '<th width="20px" >'. io_safe_output($tname) . html_print_image('images/information_alerts.png', true, array('title' => io_safe_output($tname),'style' => 'margin-left:5px' )) ."</th>";
|
||||
}
|
||||
|
||||
if (($hor_offset + $block) < $ntemplates) {
|
||||
|
@ -191,7 +191,7 @@ function mainAgentsModules() {
|
||||
|
||||
echo "<tr>";
|
||||
|
||||
echo "<th width='140px' style='text-align: right !important;'>" . __("Agents") . " / " . __("Modules") . "</th>";
|
||||
echo "<th width='140px' style='text-align: right !important; padding-right:13px;'>" . __("Agents") . " / " . __("Modules") . "</th>";
|
||||
|
||||
if ($hor_offset > 0) {
|
||||
$new_hor_offset = $hor_offset-$block;
|
||||
@ -224,7 +224,7 @@ function mainAgentsModules() {
|
||||
|
||||
echo '<th align="center" width="20px" id="th_module_r_' . $nmodules . '" class="th_class_module_r">
|
||||
<div style="width: 30px;">
|
||||
<div id="div_module_r_' . $nmodules . '" style="display: none;" class="rotate_text_module">' .
|
||||
<div id="div_module_r_' . $nmodules . '" style="display: none;padding-left:10px" class="rotate_text_module">' .
|
||||
$text .
|
||||
'</div>
|
||||
</div>
|
||||
|
@ -169,7 +169,7 @@ function extension_api_checker() {
|
||||
echo "</fieldset>";
|
||||
echo "<div style='text-align: right;'>";
|
||||
html_print_input_hidden('api_execute', 1);
|
||||
html_print_submit_button(__('Call'), 'submit', false, 'class="sub"');
|
||||
html_print_submit_button(__('Call'), 'submit', false, 'class="sub next"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
|
||||
@ -182,7 +182,7 @@ function extension_api_checker() {
|
||||
|
||||
echo "<div style='text-align: right;'>";
|
||||
html_print_input_hidden('api_execute', 1);
|
||||
html_print_submit_button(__('Call'), 'submit', false, 'class="sub"');
|
||||
html_print_submit_button(__('Call'), 'submit', false, 'class="sub next"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
|
||||
|
@ -115,9 +115,10 @@ function dbmgr_extension_main () {
|
||||
|
||||
echo "<br /><br />";
|
||||
echo "<form method='post' action=''>";
|
||||
html_print_textarea ('sql', 5, 40, html_entity_decode($sql, ENT_QUOTES));
|
||||
html_print_textarea ('sql', 5, 50, html_entity_decode($sql, ENT_QUOTES));
|
||||
echo '<br />';
|
||||
echo '<div class="action-buttons" style="width: 100%">';
|
||||
echo '<br />';
|
||||
echo '<div class="action-buttons" style="width: 96%">';
|
||||
html_print_submit_button (__('Execute SQL'), '', false, 'class="sub next"');
|
||||
echo '</div>';
|
||||
echo "</form>";
|
||||
@ -151,9 +152,8 @@ function dbmgr_extension_main () {
|
||||
}
|
||||
|
||||
echo "<div style='overflow: auto;'>";
|
||||
$table = new stdClass();
|
||||
$table->width = '90%';
|
||||
$table->class = 'dbmanager';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head = array_keys ($result[0]);
|
||||
|
||||
$table->data = $result;
|
||||
|
@ -67,7 +67,8 @@ function extension_uploader_extensions() {
|
||||
|
||||
$table = null;
|
||||
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->data = array();
|
||||
$table->data[0][0] = __('Upload extension');
|
||||
$table->data[0][1] = html_print_input_file('extension', true) .
|
||||
|
@ -35,7 +35,8 @@ if (isset($file_id) && $file_id > 0) {
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '99.5%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->style = array();
|
||||
$table->style[0] = "font-weight: bold;";
|
||||
$table->style[2] = "text-align: center;";
|
||||
|
@ -32,8 +32,6 @@ $files = files_repo_get_files($filter);
|
||||
|
||||
if (!empty($files)) {
|
||||
|
||||
echo "<br>";
|
||||
|
||||
if (!isset($manage)) {
|
||||
$manage = false;
|
||||
}
|
||||
@ -49,7 +47,8 @@ if (!empty($files)) {
|
||||
ui_pagination($total_files, $url, $offset);
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->style = array();
|
||||
$table->style[1] = "max-width: 200px;";
|
||||
$table->style[2] = "text-align: center;";
|
||||
|
@ -131,13 +131,14 @@ function mainInsertData() {
|
||||
}
|
||||
}
|
||||
|
||||
echo '<div class="notify">';
|
||||
echo '<div class="notify" style="margin-bottom:15px;">';
|
||||
echo sprintf(__("Please check that the directory \"%s\" is writeable by the apache user. <br /><br />The CSV file format is date;value<newline>date;value<newline>... The date in CSV is in format Y/m/d H:i:s."),
|
||||
$config['remote_config']);
|
||||
echo '</div>';
|
||||
|
||||
$table = null;
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->style = array();
|
||||
$table->style[0] = 'font-weight: bolder;';
|
||||
|
||||
|
@ -293,7 +293,7 @@ function godmode_net_tools() {
|
||||
}
|
||||
|
||||
$table = null;
|
||||
$table->width = "80%";
|
||||
$table->width = "100%";
|
||||
|
||||
$table->data = array();
|
||||
|
||||
|
@ -411,7 +411,7 @@ function pluginreg_extension_main () {
|
||||
|
||||
// Upload form
|
||||
echo "<form name='submit_plugin' method='post' enctype='multipart/form-data'>";
|
||||
echo '<table class="databox" id="table1" width="98%" border="0" cellpadding="4" cellspacing="4">';
|
||||
echo '<table class="databox" id="table1" width="100%" border="0" cellpadding="4" cellspacing="4">';
|
||||
echo "<tr><td class='datos'><input type='file' name='plugin_upload' />";
|
||||
echo "<td class='datos'><input type='submit' class='sub next' value='".__('Upload')."' />";
|
||||
echo "</form></table>";
|
||||
|
@ -341,16 +341,16 @@ function resource_exportation_extension_main() {
|
||||
echo "<br /><br />";
|
||||
|
||||
$table = null;
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->style[0] = 'width: 30%;';
|
||||
$table->style[1] = 'width: 10%;';
|
||||
$table->class = "databox_color";
|
||||
$table->class = "databox filters";
|
||||
$table->data[0][0] = __('Report');
|
||||
$table->data[0][1] = html_print_select_from_sql('SELECT id_report, name FROM treport', 'report', '', '', '', 0, true);
|
||||
$table->data[0][2] = html_print_button(__('Export'), '', false, 'export_to_ptr(\'report\');', 'class="sub"', true);
|
||||
$table->data[0][2] = html_print_button(__('Export'), '', false, 'export_to_ptr(\'report\');', 'class="sub config"', true);
|
||||
$table->data[1][0] = __('Visual console');
|
||||
$table->data[1][1] = html_print_select_from_sql('SELECT id, name FROM tlayout', 'visual_console', '', '', '', 0, true);
|
||||
$table->data[1][2] = html_print_button(__('Export'), '', false, 'export_to_ptr(\'visual_console\');', 'class="sub"', true);
|
||||
$table->data[1][2] = html_print_button(__('Export'), '', false, 'export_to_ptr(\'visual_console\');', 'class="sub config"', true);
|
||||
|
||||
if ($hook_enterprise === true)
|
||||
add_rows_for_enterprise($table->data);
|
||||
|
@ -853,8 +853,6 @@ function resource_registration_extension_main() {
|
||||
echo '<table class="databox" id="table1" width="98%" border="0" cellpadding="4" cellspacing="4">';
|
||||
echo "<tr>";
|
||||
echo "<td colspan='2' class='datos'><input type='file' name='resource_upload' />";
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td>" . __('Group filter: ') . "</td>";
|
||||
echo "<td>";
|
||||
html_print_select_groups(false, "AW", true, 'group');
|
||||
|
@ -221,8 +221,8 @@ function getLastLog($numLines = 2000) {
|
||||
function show_array($title, $anchor, $array = array()) {
|
||||
|
||||
$table = new StdClass();
|
||||
$table->width = '98%';
|
||||
$table->class = "databox";
|
||||
$table->width = '100%';
|
||||
$table->class = "databox filters";
|
||||
$table->head = array();
|
||||
$table->head[0] = $title;
|
||||
$table->data = array();
|
||||
@ -417,8 +417,9 @@ function mainSystemInfo() {
|
||||
echo __("This extension can run as PHP script in a shell for extract more information, but it must be run as root or across sudo. For example: <i>sudo php /var/www/pandora_console/extensions/system_info.php -d -s -c</i>");
|
||||
echo '</div>';
|
||||
|
||||
$table = null;
|
||||
$table->width = '99%';
|
||||
$table = new StdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->align = array();
|
||||
$table->align[1] = 'right';
|
||||
if ($pandora_diag) {
|
||||
@ -452,7 +453,8 @@ function mainSystemInfo() {
|
||||
|
||||
$table_file = new StdClass();
|
||||
$table_file->id = "table_file";
|
||||
$table_file->width = '99%';
|
||||
$table_file->class = "databox filters";
|
||||
$table_file->width = '100%';
|
||||
$table_file->style = array();
|
||||
$table_file->style[0] = "font-weight: bold";
|
||||
$table_file->data = array();
|
||||
@ -487,7 +489,6 @@ function mainSystemInfo() {
|
||||
html_print_table($table_file);
|
||||
echo "</div>";
|
||||
|
||||
echo "<br>";
|
||||
echo "<div style='width: " . $table->width . "; text-align: right;'>";
|
||||
html_print_submit_button(__('Generate file'), 'generate', false, 'class="sub next"');
|
||||
html_print_image('images/spinner.gif', false, array('id' => 'spinner_img', 'title' => __('Loading'), 'style' => 'display: none;'));
|
||||
|
@ -68,8 +68,8 @@ function users_extension_main_god ($god = true) {
|
||||
else {
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->width = '98%';
|
||||
$table->class = "databox";
|
||||
$table->width = '100%';
|
||||
$table->class = "databox data";
|
||||
$table->size = array ();
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
|
File diff suppressed because one or more lines are too long
@ -3,42 +3,23 @@ global $config;
|
||||
check_login ();
|
||||
ui_require_css_file ('firts_task');
|
||||
?>
|
||||
<?php ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no collections defined yet.') ) ); ?>
|
||||
|
||||
<div class="Table">
|
||||
<div class="Title">
|
||||
<p>This is a Table</p>
|
||||
<div class="new_task">
|
||||
<div class="image_task">
|
||||
<?php echo html_print_image('images/icono_grande_reconserver.png', true, array("alt" => __('Recon server')));?>
|
||||
</div>
|
||||
<div class="Heading">
|
||||
<div class="Cell">
|
||||
<p>Heading 1</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Heading 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Heading 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Row">
|
||||
<div class="Cell">
|
||||
<a href="index.php?sec=gagente&sec2=enterprise/godmode/agentes/collections&action=new">Crear una nueva colección</a>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 1 Column 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 1 Column 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Row">
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 1</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 3</p>
|
||||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Collections'); ?></h3>
|
||||
<p id="description_task"> <?php echo __("A file collection is a group of files (e.g. scripts or executables) which are
|
||||
automatically copied to a specific directory of the agent (under Windows or UNIX). The file collections allow to be propagated
|
||||
along with the policies in order to be used by a group of agents, using a 'package' of scripts and modules which use them.
|
||||
First we learn how to use the file collections in the agent's view, how to conduct it manually, agent by agent, without using collections,
|
||||
and how to do the same thing by using policies.Our first task is to arrange a compilation of files. In order to do this, please go to the agent's
|
||||
administrator. Subsequently, we're going to see a 'sub option' called 'Collections'. Please click on it in order to create a new collection as we can see on
|
||||
the picture below. "); ?></p>
|
||||
<form action="index.php?sec=gagente&sec2=enterprise/godmode/agentes/collections&action=new" method="post">
|
||||
<input type="submit" class="button_task" value="<?php echo __('Create Collections'); ?>" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,42 +3,21 @@ global $config;
|
||||
check_login ();
|
||||
ui_require_css_file ('firts_task');
|
||||
?>
|
||||
<?php ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no recon task defined yet.') ) ); ?>
|
||||
|
||||
<div class="Table">
|
||||
<div class="Title">
|
||||
<p>This is a Table</p>
|
||||
<div class="new_task">
|
||||
<div class="image_task">
|
||||
<?php echo html_print_image('images/firts_task/icono_grande_reconserver.png', true, array("alt" => __('Recon server')));?>
|
||||
</div>
|
||||
<div class="Heading">
|
||||
<div class="Cell">
|
||||
<p>Heading 1</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Heading 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Heading 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Row">
|
||||
<div class="Cell">
|
||||
<a href="index.php?sec=gagente&sec2=godmode/agentes/configure_field">Crear un nuevo campo</a>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 1 Column 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 1 Column 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Row">
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 1</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 3</p>
|
||||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Recon Task'); ?></h3>
|
||||
<p id="description_task"> <?php echo __('The Recon Task definition of Pandora FMS is used to find new elements in the network.
|
||||
If it detects any item, it will add that item to the monitoring, and if that item it is already being monitored, then it will
|
||||
ignore it or will update its information.There are three types of detection: Based on <strong id="fuerte"> ICMP </strong>(pings),
|
||||
<strong id="fuerte">SNMP</strong> (detecting the topology of networks and their interfaces), and other <strong id="fuerte"> customized </strong>
|
||||
type. You can define your own customized recon script.'); ?></p>
|
||||
<form action="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&create" method="post">
|
||||
<input type="submit" class="button_task" value="<?php echo __('Create Recon Task'); ?>" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,42 +3,21 @@ global $config;
|
||||
check_login ();
|
||||
ui_require_css_file ('firts_task');
|
||||
?>
|
||||
<?php ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no recon task defined yet.') ) ); ?>
|
||||
|
||||
<div class="Table">
|
||||
<div class="Title">
|
||||
<p>This is a Table</p>
|
||||
<div class="new_task">
|
||||
<div class="image_task">
|
||||
<?php echo html_print_image('images/firts_task/icono_grande_reconserver.png', true, array("alt" => __('Recon server')));?>
|
||||
</div>
|
||||
<div class="Heading">
|
||||
<div class="Cell">
|
||||
<p>Heading 1</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Heading 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Heading 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Row">
|
||||
<div class="Cell">
|
||||
<a href="?sec=gservers&sec2=godmode/reporting/visual_console_builder">Crear un mapa de consola</a>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 1 Column 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 1 Column 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Row">
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 1</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 3</p>
|
||||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Recon Task'); ?></h3>
|
||||
<p id="description_task"> <?php echo __('The Recon Task definition of Pandora FMS is used to find new elements in the network.
|
||||
If it detects any item, it will add that item to the monitoring, and if that item it is already being monitored, then it will
|
||||
ignore it or will update its information.There are three types of detection: Based on <strong id="fuerte"> ICMP </strong>(pings),
|
||||
<strong id="fuerte">SNMP</strong> (detecting the topology of networks and their interfaces), and other <strong id="fuerte"> customized </strong>
|
||||
type. You can define your own customized recon script.'); ?></p>
|
||||
<form action="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&create" method="post">
|
||||
<input type="submit" class="button_task" value="<?php echo __('Create Recon Task'); ?>" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,42 +3,31 @@ global $config;
|
||||
check_login ();
|
||||
ui_require_css_file ('firts_task');
|
||||
?>
|
||||
<?php
|
||||
|
||||
<div class="Table">
|
||||
<div class="Title">
|
||||
<p>This is a Table</p>
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no recon task defined yet.') ) );
|
||||
$strict_user = db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_user']);
|
||||
$networkmap_types = networkmap_get_types($strict_user);
|
||||
?>
|
||||
|
||||
<div class="new_task">
|
||||
<div class="image_task">
|
||||
<?php echo html_print_image('images/firts_task/icono_grande_reconserver.png', true, array("alt" => __('Recon server')));?>
|
||||
</div>
|
||||
<div class="Heading">
|
||||
<div class="Cell">
|
||||
<p>Heading 1</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Heading 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Heading 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Row">
|
||||
<div class="Cell">
|
||||
<a href="index.php?sec=network&sec2=operation/agentes/networkmap&add_networkmap=1&tab=groups">Crear un mapa de red de grupo</a>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 1 Column 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 1 Column 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Row">
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 1</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 3</p>
|
||||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Recon Task'); ?></h3>
|
||||
<p id="description_task"> <?php echo __("There is also an open-source version of the network map.
|
||||
This functionality allows to graphically display the nodes and relationships, agents, modules and groups available to the user.
|
||||
There are three types of network maps:
|
||||
<li><ul>Topology Map</ul>
|
||||
<ul>Group Map</ul>
|
||||
<ul>Policy Map</ul></li> "); ?></p>
|
||||
<form id="networkmap_action" method="post" action="index.php?sec=network&sec2=operation/agentes/networkmap&action=create">
|
||||
<?php echo html_print_select($networkmap_types, 'tab', 'topology', '', '', 0);
|
||||
html_print_input_hidden('add_networkmap', 1);
|
||||
?>
|
||||
|
||||
<input type="submit" class="button_task" value="<?php echo __('Create Recon Task'); ?>" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,25 +3,21 @@ global $config;
|
||||
check_login ();
|
||||
ui_require_css_file ('firts_task');
|
||||
?>
|
||||
<?php ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no recon task defined yet.') ) ); ?>
|
||||
|
||||
<div class="new_task">
|
||||
<div>
|
||||
<div class="title_task"> <?php echo __('There are no recon task defined yet'); ?> </div>
|
||||
<div class="image_task">
|
||||
<?php echo html_print_image('images/firts_task/icono_grande_reconserver.png', true, array("alt" => __('Recon server')));?>
|
||||
</div>
|
||||
<div>
|
||||
<div class="image_task">
|
||||
<?php echo html_print_image('images/icono_grande_reconserver.png', true, array("alt" => __('Recon server')));?>
|
||||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Recon Task'); ?></h3>
|
||||
<p id="description_task"> <?php echo __('The Recon Task definition of Pandora FMS is used to find new elements in the network.
|
||||
If it detects any item, it will add that item to the monitoring, and if that item it is already being monitored, then it will
|
||||
ignore it or will update its information.There are three types of detection: Based on <strong id="fuerte"> ICMP </strong>(pings),
|
||||
<strong id="fuerte">SNMP</strong> (detecting the topology of networks and their interfaces), and other <strong id="fuerte"> customized </strong>
|
||||
type. You can define your own customized recon script.'); ?></p>
|
||||
<form action="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&create" method="post">
|
||||
<button class="button_task" > <?php echo __('Create Recon Task'); ?></button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Recon Task'); ?></h3>
|
||||
<p id="description_task"> <?php echo __('The Recon Task definition of Pandora FMS is used to find new elements in the network.
|
||||
If it detects any item, it will add that item to the monitoring, and if that item it is already being monitored, then it will
|
||||
ignore it or will update its information.There are three types of detection: Based on <strong id="fuerte"> ICMP </strong>(pings),
|
||||
<strong id="fuerte">SNMP</strong> (detecting the topology of networks and their interfaces), and other <strong id="fuerte"> customized </strong>
|
||||
type. You can define your own customized recon script.'); ?></p>
|
||||
<form action="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&create" method="post">
|
||||
<input type="submit" class="button_task" value="<?php echo __('Create Recon Task'); ?>" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,42 +3,22 @@ global $config;
|
||||
check_login ();
|
||||
ui_require_css_file ('firts_task');
|
||||
?>
|
||||
<?php ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no services defined yet.') ) ); ?>
|
||||
|
||||
<div class="Table">
|
||||
<div class="Title">
|
||||
<p>This is a Table</p>
|
||||
<div class="new_task">
|
||||
<div class="image_task">
|
||||
<?php echo html_print_image('images/firts_task/icono_grande_servicios.png', true, array("alt" => __('Recon server')));?>
|
||||
</div>
|
||||
<div class="Heading">
|
||||
<div class="Cell">
|
||||
<p>Heading 1</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Heading 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Heading 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Row">
|
||||
<div class="Cell">
|
||||
<a href="?sec=estado&sec2=enterprise/godmode/services/services.service&action=new_service">Crear un nuevo servicio</a>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 1 Column 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 1 Column 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Row">
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 1</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 3</p>
|
||||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Services'); ?></h3>
|
||||
<p id="description_task"> <?php echo __("A service is a way to group your IT resources based on their functionalities.
|
||||
A service could be e.g. your official website, your CRM system, your support application, or even your printers.
|
||||
Services are logical groups which can include hosts, routers, switches, firewalls, CRMs, ERPs, websites and numerous other services.
|
||||
By the following example, you're able to see more clearly what a service is:
|
||||
A chip manufacturer sells computers by its website all around the world.
|
||||
His company consists of three big departments: A management, an on-line shop and support."); ?></p>
|
||||
<form action="index.php?sec=estado&sec2=enterprise/godmode/services/services.service&action=new_service" method="post">
|
||||
<input type="submit" class="button_task" value="<?php echo __('Create Services'); ?>" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,42 +3,21 @@ global $config;
|
||||
check_login ();
|
||||
ui_require_css_file ('firts_task');
|
||||
?>
|
||||
<?php ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no recon task defined yet.') ) ); ?>
|
||||
|
||||
<div class="Table">
|
||||
<div class="Title">
|
||||
<p>This is a Table</p>
|
||||
<div class="new_task">
|
||||
<div class="image_task">
|
||||
<?php echo html_print_image('images/firts_task/icono_grande_reconserver.png', true, array("alt" => __('Recon server')));?>
|
||||
</div>
|
||||
<div class="Heading">
|
||||
<div class="Cell">
|
||||
<p>Heading 1</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Heading 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Heading 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Row">
|
||||
<div class="Cell">
|
||||
<a href="index.php?sec=snmpconsole&sec2=godmode/snmpconsole/snmp_filters&edit_filter=-1">Crear un nuevo filtro snmp</a>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 1 Column 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 1 Column 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Row">
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 1</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 3</p>
|
||||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Recon Task'); ?></h3>
|
||||
<p id="description_task"> <?php echo __('The Recon Task definition of Pandora FMS is used to find new elements in the network.
|
||||
If it detects any item, it will add that item to the monitoring, and if that item it is already being monitored, then it will
|
||||
ignore it or will update its information.There are three types of detection: Based on <strong id="fuerte"> ICMP </strong>(pings),
|
||||
<strong id="fuerte">SNMP</strong> (detecting the topology of networks and their interfaces), and other <strong id="fuerte"> customized </strong>
|
||||
type. You can define your own customized recon script.'); ?></p>
|
||||
<form action="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&create" method="post">
|
||||
<input type="submit" class="button_task" value="<?php echo __('Create Recon Task'); ?>" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,42 +3,21 @@ global $config;
|
||||
check_login ();
|
||||
ui_require_css_file ('firts_task');
|
||||
?>
|
||||
<?php ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no recon task defined yet.') ) ); ?>
|
||||
|
||||
<div class="Table">
|
||||
<div class="Title">
|
||||
<p>This is a Table</p>
|
||||
<div class="new_task">
|
||||
<div class="image_task">
|
||||
<?php echo html_print_image('images/firts_task/icono_grande_reconserver.png', true, array("alt" => __('Recon server')));?>
|
||||
</div>
|
||||
<div class="Heading">
|
||||
<div class="Cell">
|
||||
<p>Heading 1</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Heading 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Heading 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Row">
|
||||
<div class="Cell">
|
||||
<a href="index.php?sec=$sec&sec2=godmode/tag/edit_tag&action=new">Crear un nuevo tag</a>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 1 Column 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 1 Column 3</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Row">
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 1</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 2</p>
|
||||
</div>
|
||||
<div class="Cell">
|
||||
<p>Row 2 Column 3</p>
|
||||
</div>
|
||||
<div class="text_task">
|
||||
<h3> <?php echo __('Create Recon Task'); ?></h3>
|
||||
<p id="description_task"> <?php echo __('The Recon Task definition of Pandora FMS is used to find new elements in the network.
|
||||
If it detects any item, it will add that item to the monitoring, and if that item it is already being monitored, then it will
|
||||
ignore it or will update its information.There are three types of detection: Based on <strong id="fuerte"> ICMP </strong>(pings),
|
||||
<strong id="fuerte">SNMP</strong> (detecting the topology of networks and their interfaces), and other <strong id="fuerte"> customized </strong>
|
||||
type. You can define your own customized recon script.'); ?></p>
|
||||
<form action="index.php?sec=gservers&sec2=godmode/servers/manage_recontask_form&create" method="post">
|
||||
<input type="submit" class="button_task" value="<?php echo __('Create Recon Task'); ?>" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -103,7 +103,7 @@ echo '<div id="login_in">';
|
||||
// For stable/live function it might be wise to comment it out
|
||||
|
||||
/* CUSTOM BRANDING ENDS HERE */
|
||||
echo '</td><td style="padding-top: 15px;">';
|
||||
echo '</td><td style="padding-top: 15px; position:fixed;">';
|
||||
|
||||
switch ($login_screen) {
|
||||
case 'login':
|
||||
|
@ -121,8 +121,8 @@ if (tags_has_user_acl_tags()) {
|
||||
//////////////////NEWS BOARD/////////////////////////////
|
||||
echo '<div id="news_board">';
|
||||
|
||||
echo '<table cellpadding="4" width=100% cellspacing="4" class="databox">';
|
||||
echo '<tr><th><span>' . __('News board') . '</span></th></tr>';
|
||||
echo '<table cellpadding="0" width=100% cellspacing="0" class="databox filters">';
|
||||
echo '<tr><th style="text-align:center;"><span >' . __('News board') . '</span></th></tr>';
|
||||
if ($config["prominent_time"] == "timestamp") {
|
||||
$comparation_suffix = "";
|
||||
}
|
||||
@ -133,7 +133,7 @@ if (tags_has_user_acl_tags()) {
|
||||
$text = io_safe_output($article["text"]);
|
||||
|
||||
|
||||
echo '<tr><th><b>'.$article["subject"].'</b></th></tr>';
|
||||
echo '<tr><th class="green_title">'.$article["subject"].'</th></tr>';
|
||||
echo '<tr><td>' . __('by') . ' <b>' .
|
||||
$article["author"] . '</b> <i>' . ui_print_timestamp ($article["timestamp"], true).'</i> ' . $comparation_suffix . '</td></tr>';
|
||||
echo '<tr><td class="datos">';
|
||||
|
@ -39,7 +39,7 @@ $filter_text = get_parameter('filter_text', '');
|
||||
$filter_hours_old = get_parameter('filter_hours_old', 24);
|
||||
$filter_ip = get_parameter('filter_ip', '');
|
||||
|
||||
echo "<table width='98%' border='0' cellspacing='4' cellpadding='4' class='databox'>";
|
||||
echo "<table width='100%' border='0' cellspacing='4' cellpadding='4' class='databox filters'>";
|
||||
echo '<tr><td class="datost">';
|
||||
echo '<div style="float: left; width: 400px;">';
|
||||
echo '<b>'.__('Filter').'</b><br><br>';
|
||||
@ -174,10 +174,11 @@ if (empty ($result)) {
|
||||
$result = array ();
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->width = '98%';
|
||||
$table->class = "databox";
|
||||
$table->width = '100%';
|
||||
$table->class = "databox data";
|
||||
$table->size = array ();
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
@ -299,7 +300,7 @@ echo '<div style="width: '.$table->width.'" class="action-buttons">';
|
||||
echo '<a href="' .
|
||||
ui_get_full_url(false, false, false, false) . 'godmode/audit_log_csv.php?tipo_log='.$tipo_log.'&user_filter='.$user_filter.'&filter_text='.$filter_text.'&filter_hours_old='.$filter_hours_old.'&filter_ip='.$filter_ip.'"'.
|
||||
'target="_new">' .
|
||||
html_print_button (__('Export to CSV '), 'export_csv', false, '', 'class=sub next', true, false). '</a>';
|
||||
html_print_button (__('Export to CSV '), 'export_csv', false, '', 'class=sub upd', true, false). '</a>';
|
||||
echo '</div>';
|
||||
|
||||
if ($enterprise_include !== ENTERPRISE_NOT_HOOK) {
|
||||
|
@ -285,7 +285,8 @@ $table->class = "databox filters";
|
||||
|
||||
$table->head = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold; width: 150px;';
|
||||
$table->style[0] = 'font-weight: bold; ';
|
||||
$table->style[2] = 'font-weight: bold;';
|
||||
$table->data = array ();
|
||||
|
||||
// Custom ID
|
||||
@ -344,7 +345,7 @@ foreach ($listIcons as $index => $value)
|
||||
$arraySelectIcon[$index] = $index;
|
||||
|
||||
$path = 'images/gis_map/icons/'; //TODO set better method the path
|
||||
$table->data[4][0] = __('Agent icon') . ui_print_help_tip(__('Agent icon for GIS Maps.'), true);
|
||||
$table->data[0][2] = __('Agent icon') . ui_print_help_tip(__('Agent icon for GIS Maps.'), true);
|
||||
if ($icon_path == '') {
|
||||
$display_icons = 'none';
|
||||
// Hack to show no icon. Use any given image to fix not found image errors
|
||||
@ -363,7 +364,7 @@ else {
|
||||
$path_warning = $path . $icon_path . ".warning.png";
|
||||
}
|
||||
|
||||
$table->data[4][1] = html_print_select($arraySelectIcon, "icon_path",
|
||||
$table->data[0][3] = html_print_select($arraySelectIcon, "icon_path",
|
||||
$icon_path, "changeIcons();", __('None'), '', true) .
|
||||
' ' . html_print_image($path_ok, true,
|
||||
array("id" => "icon_ok", "style" => "display:".$display_icons.";")) .
|
||||
@ -373,23 +374,23 @@ $table->data[4][1] = html_print_select($arraySelectIcon, "icon_path",
|
||||
array("id" => "icon_warning", "style" => "display:".$display_icons.";"));
|
||||
|
||||
if ($config['activate_gis']) {
|
||||
$table->data[5][0] = __('Ignore new GIS data:');
|
||||
$table->data[5][1] = __('Yes') . ' ' .
|
||||
$table->data[1][2] = __('Ignore new GIS data:');
|
||||
$table->data[1][3] = __('Yes') . ' ' .
|
||||
html_print_radio_button_extended ("update_gis_data", 0, '',
|
||||
$update_gis_data, false, '', 'style="margin-right: 40px;"', true);
|
||||
$table->data[5][1] .= __('No') . ' ' .
|
||||
$table->data[1][3] .= __('No') . ' ' .
|
||||
html_print_radio_button_extended ("update_gis_data", 1, '',
|
||||
$update_gis_data, false, '', 'style="margin-right: 40px;"', true);
|
||||
}
|
||||
|
||||
$table->data[6][0] = __('Url address');
|
||||
$table->data[6][1] = html_print_input_text ('url_description',
|
||||
$table->data[2][2] = __('Url address');
|
||||
$table->data[2][3] = html_print_input_text ('url_description',
|
||||
$url_description, '', 45, 255, true);
|
||||
|
||||
$table->data[7][0] = __('Quiet');
|
||||
$table->data[7][0] .= ui_print_help_tip(
|
||||
$table->data[3][2] = __('Quiet');
|
||||
$table->data[3][3] .= ui_print_help_tip(
|
||||
__('The agent still runs but the alerts and events will be stop'), true);
|
||||
$table->data[7][1] = html_print_checkbox('quiet', 1, $quiet, true);
|
||||
$table->data[3][3] = html_print_checkbox('quiet', 1, $quiet, true);
|
||||
|
||||
ui_toggle(html_print_table ($table, true), __('Advanced options'));
|
||||
unset($table);
|
||||
@ -400,7 +401,7 @@ $table->class = "databox filters";
|
||||
|
||||
$table->head = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold; width: 150px;';
|
||||
$table->style[0] = 'font-weight: bold; width: 100px;';
|
||||
$table->data = array ();
|
||||
|
||||
$fields = db_get_all_fields_in_table('tagent_custom_fields');
|
||||
@ -420,7 +421,7 @@ foreach ($fields as $field) {
|
||||
}
|
||||
|
||||
$data[1] = html_print_textarea ('customvalue_'.$field['id_field'],
|
||||
2, 65, $custom_value, 'style="min-height: 30px;"', true);
|
||||
2, 65, $custom_value, 'style="min-height: 30px; width:96%;"', true);
|
||||
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
@ -536,7 +537,7 @@ ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/');
|
||||
|
||||
echo '"' . implode(', ', $elements) . '"';
|
||||
?>,
|
||||
width: '100%',
|
||||
width: '95%',
|
||||
theme : "advanced",
|
||||
theme_advanced_path : false,
|
||||
statusbar : false,
|
||||
|
@ -39,13 +39,17 @@ else {
|
||||
ui_print_page_header (__("Create agent custom field"), "images/custom_field.png", false, "", true, "");
|
||||
}
|
||||
|
||||
$table->width = '98%';
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
$table->data = array ();
|
||||
$table->data[0][0] = __('Name');
|
||||
$table->data[0][1] = html_print_input_text ('name', $name, '', 35, 100, true);
|
||||
|
||||
$table->data[1][0] = __('Display on front').ui_print_help_tip (__('The fields with display on front enabled will be displayed into the agent details'), true);
|
||||
$table->data[1][1] = html_print_checkbox ('display_on_front', 1, $display_on_front, true);
|
||||
$table->data[0][2] = __('Display on front').ui_print_help_tip (__('The fields with display on front enabled will be displayed into the agent details'), true);
|
||||
$table->data[0][3] = html_print_checkbox ('display_on_front', 1, $display_on_front, true);
|
||||
|
||||
echo '<form name="field" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/fields_manager">';
|
||||
html_print_table ($table);
|
||||
|
@ -86,7 +86,9 @@ if ($delete_field) {
|
||||
|
||||
$fields = db_get_all_fields_in_table('tagent_custom_fields');
|
||||
|
||||
$table->width = '98%';
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
if ($fields) {
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('ID');
|
||||
@ -94,13 +96,14 @@ if ($fields) {
|
||||
$table->head[2] = __('Display on front').ui_print_help_tip (__('The fields with display on front enabled will be displayed into the agent details'), true);
|
||||
$table->head[3] = __('Actions');
|
||||
$table->align = array ();
|
||||
$table->align[0] = 'right';
|
||||
$table->align[2] = 'center';
|
||||
$table->align[3] = 'center';
|
||||
$table->align[0] = 'left';
|
||||
$table->align[2] = 'left';
|
||||
$table->align[3] = 'left';
|
||||
$table->size[3] = '8%';
|
||||
$table->data = array ();
|
||||
}
|
||||
else {
|
||||
echo '<div class="nf">'. __('No fields defined') .'</div>';
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('No fields defined') ) );
|
||||
}
|
||||
|
||||
if ($fields === false) $fields = array();
|
||||
|
@ -419,7 +419,6 @@ if ($agents !== false) {
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&recursion='.$recursion.'&search='.$search .'&offset='.$offset.'&sort_field=name&sort=up&disabled=$disabled">' . html_print_image("images/sort_up.png", true, array("style" => $selectNameUp)) . '</a>' .
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&recursion='.$recursion.'&search='.$search .'&offset='.$offset.'&sort_field=name&sort=down&disabled=$disabled">' . html_print_image("images/sort_down.png", true, array("style" => $selectNameDown)) . '</a>';
|
||||
echo "</th>";
|
||||
echo "<th title='".__('Remote agent configuration')."'>".__('R')."</th>";
|
||||
echo "<th>".__('OS'). ' ' .
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&recursion='.$recursion.'&search='.$search .'&offset='.$offset.'&sort_field=os&sort=up&disabled=$disabled">' . html_print_image("images/sort_up.png", true, array("style" => $selectOsUp)) . '</a>' .
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&recursion='.$recursion.'&search='.$search .'&offset='.$offset.'&sort_field=os&sort=down&disabled=$disabled">' . html_print_image("images/sort_down.png", true, array("style" => $selectOsDown)) . '</a>';
|
||||
@ -429,7 +428,7 @@ if ($agents !== false) {
|
||||
'<a href="index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&group_id='.$ag_group.'&recursion='.$recursion.'&search='.$search .'&offset='.$offset.'&sort_field=group&sort=down&disabled=$disabled">' . html_print_image("images/sort_down.png", true, array("style" => $selectGroupDown)) . '</a>';
|
||||
echo "</th>";
|
||||
echo "<th>" . __('Description') . "</th>";
|
||||
echo "<th>" . __('Actions') . "</th>";
|
||||
echo "<th style='text-align:left'>" . __('Actions') . "</th>";
|
||||
$color=1;
|
||||
|
||||
$rowPair = true;
|
||||
@ -505,31 +504,14 @@ if ($agents !== false) {
|
||||
&id_agente='.$agent["id_agente"].'">'.__('View').'</a>';
|
||||
|
||||
echo '</div>';
|
||||
echo "</td>";
|
||||
|
||||
echo "<td align='center' class='$tdcolor'>";
|
||||
// Has remote configuration ?
|
||||
if (enterprise_installed()) {
|
||||
enterprise_include_once('include/functions_config_agents.php');
|
||||
if (config_agents_has_remote_configuration($agent["id_agente"])) {
|
||||
echo "<a href='index.php?" .
|
||||
"sec=gagente&" .
|
||||
"sec2=godmode/agentes/configurar_agente&" .
|
||||
"tab=remote_configuration&" .
|
||||
"id_agente=" . $agent["id_agente"] . "&disk_conf=1'>";
|
||||
echo html_print_image("images/application_edit.png", true, array("align" => 'middle', "title" => __('Edit remote config')));
|
||||
echo "</a>";
|
||||
}
|
||||
}
|
||||
echo "</td>";
|
||||
|
||||
echo "</td>";
|
||||
|
||||
// Operating System icon
|
||||
echo "<td class='$tdcolor' align='center' valign='middle'>";
|
||||
echo "<td class='$tdcolor' align='left' valign='middle'>";
|
||||
ui_print_os_icon ($agent["id_os"], false);
|
||||
echo "</td>";
|
||||
// Group icon and name
|
||||
echo "<td class='$tdcolor' align='center' valign='middle'>" . ui_print_group_icon ($id_grupo, true)."</td>";
|
||||
echo "<td class='$tdcolor' align='left' valign='middle'>" . ui_print_group_icon ($id_grupo, true)."</td>";
|
||||
// Description
|
||||
echo "<td class='".$tdcolor."f9'>" .
|
||||
ui_print_truncate_text($agent["comentarios"], 'description', true, true, true, '[…]', 'font-size: 6.5pt;')."</td>";
|
||||
@ -540,7 +522,7 @@ if ($agents !== false) {
|
||||
else
|
||||
$offsetArg = $offset;
|
||||
|
||||
echo "<td class='$tdcolor' align='center' valign='middle'>";
|
||||
echo "<td class='$tdcolor' align='left' style='width:7%' valign='middle'>";
|
||||
|
||||
if ($agent['disabled']) {
|
||||
echo "<a href='index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&
|
||||
@ -567,8 +549,7 @@ if ($agents !== false) {
|
||||
echo "<table width='100%'><tr><td align='right'>";
|
||||
}
|
||||
else {
|
||||
echo "<div class='nf'>" . __('There are no defined agents') . "</div>";
|
||||
echo " </td></tr><tr><td>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no defined agents') ) );
|
||||
}
|
||||
|
||||
if (check_acl ($config["id_user"], 0, "AW")) {
|
||||
|
@ -112,7 +112,7 @@ if (strstr($page, "policy_modules") === false && $id_agent_module) {
|
||||
}
|
||||
|
||||
$update_module_id = (int) get_parameter_get ('update_module');
|
||||
|
||||
$table_simple = new stdClass();
|
||||
$table_simple->id = 'simple';
|
||||
$table_simple->width = '100%';
|
||||
$table_simple->class = 'databox';
|
||||
@ -291,9 +291,10 @@ else {
|
||||
}
|
||||
|
||||
/* Advanced form part */
|
||||
$table_advanced = new stdClass();
|
||||
$table_advanced->id = 'advanced';
|
||||
$table_advanced->width = '100%';
|
||||
$table_advanced->class = 'databox';
|
||||
$table_advanced->class = 'databox filters';
|
||||
$table_advanced->data = array ();
|
||||
$table_advanced->style = array ();
|
||||
$table_advanced->style[0] =
|
||||
@ -555,13 +556,14 @@ else {
|
||||
}
|
||||
|
||||
/* Advanced form part */
|
||||
$table_macros = new stdClass();
|
||||
$table_macros->id = 'module_macros';
|
||||
$table_macros->width = '98%';
|
||||
$table_macros->class = 'databox_color';
|
||||
$table_macros->width = '100%';
|
||||
$table_macros->class = 'databox filters';
|
||||
$table_macros->data = array ();
|
||||
$table_macros->style = array ();
|
||||
$table_macros->style[0] = 'font-weight: bold; vertical-align: top';
|
||||
$table_macros->style[2] = 'font-weight: bold; vertical-align: top';
|
||||
$table_macros->style[0] = 'font-weight: bold;';
|
||||
$table_macros->style[2] = 'font-weight: bold;';
|
||||
$table_macros->style[5] = 'width: 10px';
|
||||
$table_macros->colspan = array ();
|
||||
|
||||
@ -588,8 +590,8 @@ html_print_input_hidden ('module_macro_count', $macro_count);
|
||||
// Add relationships
|
||||
$table_new_relations = new stdClass();
|
||||
$table_new_relations->id = 'module_new_relations';
|
||||
$table_new_relations->width = '98%';
|
||||
$table_new_relations->class = 'databox_color';
|
||||
$table_new_relations->width = '100%';
|
||||
$table_new_relations->class = 'databox filters';
|
||||
$table_new_relations->data = array ();
|
||||
$table_new_relations->style = array ();
|
||||
$table_new_relations->style[0] = 'width: 10%; font-weight: bold;';
|
||||
@ -616,8 +618,8 @@ $table_new_relations->data[0][4] .= " <div id='add_relation_status' s
|
||||
// Relationship list
|
||||
$table_relations = new stdClass();
|
||||
$table_relations->id = 'module_relations';
|
||||
$table_relations->width = '98%';
|
||||
$table_relations->class = 'databox';
|
||||
$table_relations->width = '100%';
|
||||
$table_relations->class = 'databox data';
|
||||
$table_relations->head = array ();
|
||||
$table_relations->data = array ();
|
||||
$table_relations->rowstyle = array ();
|
||||
|
@ -367,8 +367,8 @@ if ($id_downtime > 0) {
|
||||
$disabled_in_execution = $executed ? 1 : 0;
|
||||
|
||||
$table = new StdClass();
|
||||
$table->class = 'databox_color';
|
||||
$table->width = '98%';
|
||||
$table->class = 'databox filters';
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->data[0][0] = __('Name');
|
||||
$table->data[0][1] = html_print_input_text ('name', $name, '', 25, 40, true, $disabled_in_execution);
|
||||
@ -512,7 +512,7 @@ if ($id_downtime > 0) {
|
||||
html_print_table ($table);
|
||||
|
||||
html_print_input_hidden ('id_agent', $id_agent);
|
||||
echo '<div class="action-buttons" style="width: 90%">';
|
||||
echo '<div class="action-buttons" style="width: 100%">';
|
||||
if ($id_downtime > 0) {
|
||||
html_print_input_hidden ('update_downtime', 1);
|
||||
html_print_input_hidden ('id_downtime', $id_downtime);
|
||||
@ -602,9 +602,10 @@ if ($id_downtime > 0) {
|
||||
__('There are no scheduled downtimes') . '</div>';
|
||||
}
|
||||
else {
|
||||
$table = new stdClass();
|
||||
$table->id = 'list';
|
||||
$table->class = 'databox';
|
||||
$table->width = '98%';
|
||||
$table->class = 'databox data';
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
@ -665,8 +666,9 @@ if ($id_downtime > 0) {
|
||||
}
|
||||
}
|
||||
|
||||
$table = new StdClass();
|
||||
$table = new stdClass();
|
||||
$table->id = 'loading';
|
||||
$table->width = '100%';
|
||||
$table->colspan['loading'][0] = '6';
|
||||
$table->style[0] = 'text-align: center;';
|
||||
$table->data = array();
|
||||
@ -676,8 +678,9 @@ echo "<div style='display: none;'>";
|
||||
html_print_table ($table);
|
||||
echo "</div>";
|
||||
|
||||
$table = new StdClass();
|
||||
$table = new stdClass();
|
||||
$table->id = 'editor';
|
||||
$table->width = '100%';
|
||||
$table->colspan['module'][1] = '5';
|
||||
$table->data = array();
|
||||
$table->data['module'] = array();
|
||||
@ -686,7 +689,7 @@ $table->data['module'][1] = "<h4>" . __('Modules') . "</h4>";
|
||||
|
||||
//List of modules, empty, it is populated by javascript.
|
||||
$table->data['module'][1] = "
|
||||
<table cellspacing='4' cellpadding='4' border='0' width='98%'
|
||||
<table cellspacing='4' cellpadding='4' border='0' width='100%'
|
||||
id='modules_in_agent' class='databox_color'>
|
||||
<thead>
|
||||
<tr>
|
||||
@ -697,7 +700,7 @@ $table->data['module'][1] = "
|
||||
<tbody>
|
||||
<tr class='datos' id='template' style='display: none;'>
|
||||
<td class='name_module' style=''></td>
|
||||
<td class='cell_delete_button' style='text-align: center; width:10%;' id=''>"
|
||||
<td class='cell_delete_button' style='text-align: right; width:10%;' id=''>"
|
||||
. '<a class="link_delete"
|
||||
onclick="if(!confirm(\'' . __('Are you sure?') . '\')) return false;"
|
||||
href="">'
|
||||
@ -711,7 +714,7 @@ $table->data['module'][1] = "
|
||||
. html_print_select(array(),
|
||||
'modules', '', '', '', 0, true)
|
||||
. "</td>
|
||||
<td class='datos2 button_cell' style='text-align: center; width:10%;' id=''>"
|
||||
<td class='datos2 button_cell' style='text-align: right; width:10%;' id=''>"
|
||||
. '<div id="add_button_div">'
|
||||
. '<a class="add_button" href="">'
|
||||
. html_print_image("images/add.png", true,
|
||||
|
@ -213,8 +213,8 @@ $filter_params_str = http_build_query($filter_params);
|
||||
|
||||
// Table filter
|
||||
$table = new StdClass();
|
||||
$table->class = 'databox';
|
||||
$table->width = '99%';
|
||||
$table->class = 'databox filters';
|
||||
$table->width = '100%';
|
||||
$table->rowstyle = array();
|
||||
$table->rowstyle[0] = "background-color: #f9faf9;";
|
||||
$table->rowstyle[1] = "background-color: #f9faf9;";
|
||||
@ -270,9 +270,9 @@ echo "</form>";
|
||||
|
||||
// View available downtimes present in database (if any of them)
|
||||
$table = new StdClass();
|
||||
$table->class = 'databox';
|
||||
$table->class = 'databox data';
|
||||
//Start Overview of existing planned downtime
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->cellstyle = array();
|
||||
$table->data = array();
|
||||
$table->head = array();
|
||||
|
@ -333,9 +333,8 @@ if ($delete_action) {
|
||||
__('Could not be deleted'));
|
||||
}
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined('METACONSOLE'))
|
||||
$table->width = '100%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
@ -349,9 +348,9 @@ $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';
|
||||
$table->align[1] = 'left';
|
||||
$table->align[2] = 'left';
|
||||
$table->align[3] = 'left';
|
||||
|
||||
$filter = array();
|
||||
if (!is_user_admin($config['id_user']))
|
||||
@ -396,7 +395,7 @@ if (isset($data)) {
|
||||
html_print_table ($table);
|
||||
}
|
||||
else {
|
||||
echo "<div class='nf'>".__('No alert actions configured')."</div>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('No alert actions configured') ) );
|
||||
}
|
||||
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
|
@ -266,9 +266,9 @@ if ($delete_command) {
|
||||
|
||||
}
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined('METACONSOLE'))
|
||||
$table->width = '100%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
@ -280,7 +280,7 @@ $table->style[0] = 'font-weight: bold';
|
||||
$table->size = array ();
|
||||
$table->size[3] = '40px';
|
||||
$table->align = array ();
|
||||
$table->align[3] = 'center';
|
||||
$table->align[3] = 'left';
|
||||
|
||||
$commands = db_get_all_rows_in_table ('talert_commands');
|
||||
if ($commands === false)
|
||||
@ -313,9 +313,7 @@ if (isset($data)) {
|
||||
html_print_table ($table);
|
||||
}
|
||||
else {
|
||||
echo "<div class='nf'>" .
|
||||
__('No alert commands configured') .
|
||||
"</div>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('No alert commands configured') ) );
|
||||
}
|
||||
|
||||
echo '<div class="action-buttons" style="width: ' . $table->width . '">';
|
||||
|
@ -98,7 +98,7 @@ $table->data[0][3] .= ' <a class="template_details invisible" href="#">' .
|
||||
if (check_acl ($config['id_user'], 0, "LM")) {
|
||||
$table->data[0][3] .= '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_template&pure='.$pure.'">';
|
||||
$table->data[0][3] .= html_print_image ('images/add.png', true);
|
||||
$table->data[0][3] .= __('Create Template');
|
||||
$table->data[0][3] .= "<div style='float:right;padding-top:5px;' >" . __('Create Template') . "</div>";
|
||||
$table->data[0][3] .= '</a>';
|
||||
}
|
||||
|
||||
@ -124,9 +124,9 @@ $table->data[1][1] .= ui_print_help_icon ("alert-matches", true,
|
||||
ui_get_full_url(false, false, false, false));
|
||||
$table->data[1][1] .= '</span>';
|
||||
if (check_acl ($config['id_user'], 0, "LM")) {
|
||||
$table->data[1][1] .= '' . html_print_image ('images/add.png', true);
|
||||
|
||||
$table->data[1][1] .= '<a href="index.php?sec=galertas&sec2=godmode/alerts/configure_alert_action&pure='.$pure.'">';
|
||||
$table->data[1][1] .= __('Create Action');
|
||||
$table->data[1][1] .= ' ' . __('Create Action');
|
||||
$table->data[1][1] .= '</a>';
|
||||
}
|
||||
$table->data[1][2] = __('Threshold');
|
||||
|
@ -145,7 +145,10 @@ if ($delete_special_day) {
|
||||
__('Could not be deleted'));
|
||||
}
|
||||
|
||||
$table->width = '98%';
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Date');
|
||||
@ -162,8 +165,8 @@ $table->size[2] = '55%';
|
||||
$table->size[3] = '5%';
|
||||
$table->size[4] = '5%';
|
||||
$table->align = array ();
|
||||
$table->align[3] = 'center';
|
||||
$table->align[4] = 'center';
|
||||
$table->align[3] = 'left';
|
||||
$table->align[4] = 'left';
|
||||
|
||||
$filter = array();
|
||||
if (!is_user_admin($config['id_user']))
|
||||
@ -217,7 +220,7 @@ if(isset($data)) {
|
||||
html_print_table ($table);
|
||||
}
|
||||
else {
|
||||
echo "<div class='nf'>".__('No special days configured')."</div>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('No special days configured') ) );
|
||||
}
|
||||
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
|
@ -229,8 +229,9 @@ $url = ui_get_url_refresh (array ('offset' => false));
|
||||
|
||||
$search_string = (string) get_parameter ('search_string');
|
||||
$search_type = (string) get_parameter ('search_type');
|
||||
|
||||
$table->width = '98%';
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
if (defined("METACONSOLE")) {
|
||||
$table->width = '96%';
|
||||
$table->class = 'databox_filters';
|
||||
@ -287,10 +288,9 @@ $templates = alerts_get_alert_templates ($filter,
|
||||
array ('id', 'name', 'description', 'type', 'id_group'));
|
||||
if ($templates === false)
|
||||
$templates = array ();
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined("METACONSOLE"))
|
||||
$table->width = '100%';
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
@ -303,8 +303,8 @@ $table->style[0] = 'font-weight: bold';
|
||||
$table->size = array ();
|
||||
$table->size[4] = '85px';
|
||||
$table->align = array ();
|
||||
$table->align[1] = 'center';
|
||||
$table->align[4] = 'center';
|
||||
$table->align[1] = 'left';
|
||||
$table->align[4] = 'left';
|
||||
|
||||
$rowPair = true;
|
||||
$iterator = 0;
|
||||
@ -354,8 +354,7 @@ if (isset($data)) {
|
||||
html_print_table ($table);
|
||||
}
|
||||
else {
|
||||
echo "<div class='nf'>" . __('No alert templates defined') .
|
||||
"</div>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('No alert templates defined') ) );
|
||||
}
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
echo '<form method="post" action="index.php?sec='.$sec.'&sec2=godmode/alerts/configure_alert_template&pure='.$pure.'">';
|
||||
|
@ -88,8 +88,11 @@ html_print_div(
|
||||
'content' => ui_print_help_icon ('alert_macros', true),
|
||||
'hidden' => true));
|
||||
|
||||
$table = new stdClass();
|
||||
$table->id = 'table_macros';
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
$table->class = 'databox data';
|
||||
$table->width = '100%';
|
||||
|
@ -118,7 +118,10 @@ if (!empty($fields_values)) {
|
||||
$fields_values = json_decode($fields_values, true);
|
||||
}
|
||||
|
||||
$table->width = '98%';
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
@ -51,7 +51,10 @@ if ($date == '') {
|
||||
// Header
|
||||
ui_print_page_header (__('Alerts').' » '.__('Configure special day'), "images/gm_alerts.png", false, "", true);
|
||||
|
||||
$table->width = '98%';
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->size = array ();
|
||||
|
@ -469,10 +469,11 @@ if ($id && ! $create_template) {
|
||||
|
||||
print_alert_template_steps ($step, $id);
|
||||
|
||||
$table = new stdClass();
|
||||
$table->id = 'template';
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
if(defined("METACONSOLE")) {
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __('Create Template');
|
||||
$table->head_colspan[0] = 4;
|
||||
@ -480,8 +481,8 @@ if(defined("METACONSOLE")) {
|
||||
}
|
||||
$table->style = array ();
|
||||
if(!defined("METACONSOLE")) {
|
||||
$table->style[0] = 'font-weight: bold; vertical-align: top';
|
||||
$table->style[2] = 'font-weight: bold; vertical-align: top';
|
||||
$table->style[0] = 'font-weight: bold;';
|
||||
$table->style[2] = 'font-weight: bold;';
|
||||
}
|
||||
$table->size = array ();
|
||||
$table->size[0] = '20%';
|
||||
|
@ -88,33 +88,19 @@ $result = false;
|
||||
|
||||
$result = categories_get_all_categories ();
|
||||
|
||||
// Form to add new categories or search categories
|
||||
if (!defined('METACONSOLE')) {
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class='databox' width=98%>";
|
||||
echo "<tr>";
|
||||
echo "<td align=right>";
|
||||
echo '<form method="post" action="index.php?sec=gmodules&sec2=godmode/category/edit_category&action=new&pure='.(int)$config['pure'].'">';
|
||||
html_print_input_hidden ("create_category", "1", true);
|
||||
html_print_submit_button (__('Create category'),
|
||||
'create_button', false, 'class="sub next"');
|
||||
echo "</form>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
}
|
||||
|
||||
// Prepare pagination
|
||||
ui_pagination ($total_categories, $url);
|
||||
|
||||
// Display categories previously filtered or not
|
||||
$rowPair = true;
|
||||
$iterator = 0;
|
||||
|
||||
if (!empty($result)) {
|
||||
|
||||
$table->width = '98%';
|
||||
if(defined('METACONSOLE'))
|
||||
$table->width = '100%';
|
||||
// Prepare pagination
|
||||
ui_pagination ($total_categories, $url);
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->align = array ();
|
||||
@ -167,9 +153,22 @@ if (!empty($result)) {
|
||||
}
|
||||
else {
|
||||
// No categories available or selected
|
||||
echo "<div class='nf'>".__('No categories found')."</div>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('No categories found') ) );
|
||||
}
|
||||
// Form to add new categories or search categories
|
||||
if (!defined('METACONSOLE')) {
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class='' width=100%>";
|
||||
echo "<tr>";
|
||||
echo "<td align=right>";
|
||||
echo '<form method="post" action="index.php?sec=gmodules&sec2=godmode/category/edit_category&action=new&pure='.(int)$config['pure'].'">';
|
||||
html_print_input_hidden ("create_category", "1", true);
|
||||
html_print_submit_button (__('Create category'),
|
||||
'create_button', false, 'class="sub next"');
|
||||
echo "</form>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
}
|
||||
|
||||
enterprise_hook('close_meta_frame');
|
||||
|
||||
?>
|
||||
|
@ -123,12 +123,12 @@ else {
|
||||
echo '<form method="post" action="index.php?sec=gmodules&sec2=godmode/category/edit_category&action=' . $action . '&id_category=' . $id_category . '&pure='.(int)$config['pure'].'" enctype="multipart/form-data">';
|
||||
|
||||
if(!defined('METACONSOLE'))
|
||||
echo '<div align=left style="width: 98%" class="pandora_form">';
|
||||
echo '<div align=left style="width: 100%" class="pandora_form">';
|
||||
else
|
||||
echo '<div align=left style="width: 100%" class="pandora_form">';
|
||||
|
||||
if(!defined('METACONSOLE'))
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=100%>";
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class='databox filters' width=100%>";
|
||||
else
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class='databox data' width=100%>";
|
||||
if (defined("METACONSOLE")) {
|
||||
@ -152,59 +152,34 @@ else
|
||||
}
|
||||
}
|
||||
echo "<tr>";
|
||||
if(defined('METACONSOLE'))
|
||||
echo "<td>";
|
||||
else
|
||||
echo "<td align=center>";
|
||||
echo "<td style='font-weight: bold'>";
|
||||
|
||||
html_print_label (__("Name"),'name');
|
||||
echo "</td>";
|
||||
if(defined('METACONSOLE'))
|
||||
echo "<td>";
|
||||
else
|
||||
echo "<td align=center>";
|
||||
echo "<td>";
|
||||
html_print_input_text ('name_category', $name_category);
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
if (!defined('METACONSOLE')) {
|
||||
echo "<tr>";
|
||||
if ($action == "update") {
|
||||
echo "<td align=center>";
|
||||
html_print_input_hidden ('update_category', 1);
|
||||
echo "</td>";
|
||||
echo "<td align=right>";
|
||||
html_print_submit_button (__('Update'), 'update_button',
|
||||
false, 'class="sub next"');
|
||||
echo "</td>";
|
||||
}
|
||||
if ($action == "new") {
|
||||
echo "<td align=center>";
|
||||
html_print_input_hidden ('create_category', 1);
|
||||
echo "</td>";
|
||||
echo "<td align=right>";
|
||||
html_print_submit_button (__('Create'), 'create_button', false, 'class="sub next"');
|
||||
echo "</td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
if (defined('METACONSOLE')) {
|
||||
echo "<table border=0 cellpadding=0 cellspacing=0 class='' width=100%>";
|
||||
echo "<tr>";
|
||||
echo "<td align=right>";
|
||||
if ($action == "update") {
|
||||
html_print_input_hidden ('update_category', 1);
|
||||
html_print_submit_button (__('Update'), 'update_button', false,
|
||||
'class="sub next"');
|
||||
}
|
||||
if ($action == "new") {
|
||||
html_print_input_hidden ('create_category', 1);
|
||||
html_print_submit_button (__('Create'), 'create_button', false,
|
||||
'class="sub next"');
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
echo "<table border=0 cellpadding=0 cellspacing=0 class='' width=100%>";
|
||||
echo "<tr>";
|
||||
echo "<td align=right>";
|
||||
if ($action == "update") {
|
||||
html_print_input_hidden ('update_category', 1);
|
||||
html_print_submit_button (__('Update'), 'update_button', false,
|
||||
'class="sub next"');
|
||||
}
|
||||
if ($action == "new") {
|
||||
html_print_input_hidden ('create_category', 1);
|
||||
html_print_submit_button (__('Create'), 'create_button', false,
|
||||
'class="sub next"');
|
||||
}
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
|
||||
|
@ -73,7 +73,7 @@ if (isset($_POST["purgedb"])) { # Fixed 2005-1-13, nil
|
||||
}
|
||||
# End of get parameters block
|
||||
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox' width='98%'>";
|
||||
echo "<table cellpadding='4' cellspacing='4' class='databox filters' width='100%'>";
|
||||
echo "<tr><td class='datos'>";
|
||||
$result = db_get_row_sql ("SELECT COUNT(*) AS total, MIN(fecha) AS first_date, MAX(fecha) AS latest_date FROM tsesion");
|
||||
|
||||
@ -91,7 +91,7 @@ echo "</tr></table>";
|
||||
?>
|
||||
<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'>
|
||||
<table width='100%' cellpadding='4' cellspacing='4' class='databox filters'>
|
||||
<tr><td class='datos'>
|
||||
<select name="date_purge">
|
||||
<option value="<?php echo $time["3month"] ?>"><?php echo __('Purge audit data over 90 days') ?></option>
|
||||
|
@ -51,11 +51,12 @@ $row = db_get_row_sql ("
|
||||
MAX(timestamp) AS latest_date
|
||||
FROM tevento");
|
||||
|
||||
$table = new stdClass();
|
||||
$table->data = array ();
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->class = "databox";
|
||||
$table->width = '98%';
|
||||
$table->class = "databox filters";
|
||||
$table->width = '100%';
|
||||
|
||||
$table->data[0][0] = '<b>'.__('Total').':</b>';
|
||||
$table->data[0][1] = $row["total"].' '.__('Records');
|
||||
@ -72,7 +73,7 @@ unset ($table);
|
||||
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">
|
||||
echo '<table width="100%" cellpadding="4" cellspacing="4" class="databox filters">
|
||||
<tr><td class="datos">';
|
||||
|
||||
$time = get_system_time ();
|
||||
|
@ -76,7 +76,7 @@ if ((isset ($_GET["operacion"])) && (!isset ($_POST["update_agent"]))) {
|
||||
ui_print_success_message(__('Filtering completed'));
|
||||
}
|
||||
echo '<form method="post" action="index.php?sec=gdbman&sec2=godmode/db/db_refine&operacion=1">';
|
||||
echo "<table width='98%' border='0' cellspacing='4' cellpadding='4' class='databox'>";
|
||||
echo "<table width='100%' border='0' cellspacing='4' cellpadding='4' class='databox filters'>";
|
||||
|
||||
echo '<tr><td class="datost">';
|
||||
echo '<div style="float:left; width: 250px;">';
|
||||
|
@ -133,7 +133,9 @@ echo ' <a href="index.php?sec=geventos&sec2=godmode/events/events§ion=f
|
||||
html_print_image ('images/clean.png', false, array ('title' => __('Load default event fields'), 'onclick' => "if (! confirm ('" . __('Default event fields will be loaded. Do you want to continue?') ."')) return false"));
|
||||
echo '</a></h3>';
|
||||
|
||||
$table->width = '90%';
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
$table->size = array();
|
||||
//~ $table->size[0] = '20%';
|
||||
|
@ -96,9 +96,10 @@ $filters = db_get_all_rows_sql($sql);
|
||||
if ($filters === false)
|
||||
$filters = array ();
|
||||
|
||||
$table->width = '98%';
|
||||
if(defined("METACONSOLE"))
|
||||
$table->width = '100%';
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
$table->head[1] = __('Group');
|
||||
@ -113,7 +114,7 @@ $table->align = array ();
|
||||
$table->align[1] = 'center';
|
||||
$table->align[2] = 'center';
|
||||
if(!defined("METACONSOLE"))
|
||||
$table->align[3] = 'center';
|
||||
$table->align[3] = 'left';
|
||||
$table->align[4] = 'center';
|
||||
$table->align[5] = 'center';
|
||||
$table->size = array ();
|
||||
@ -159,8 +160,7 @@ if (isset($data)) {
|
||||
echo "</form>";
|
||||
}
|
||||
else {
|
||||
echo "<div class='nf'>" .
|
||||
__('There are no defined filters') . "</div>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no defined filters') ) );
|
||||
}
|
||||
|
||||
echo '<form method="post" action="index.php?sec=geventos&sec2=godmode/events/events§ion=edit_filter&pure='.$config['pure'].'">';
|
||||
|
@ -55,7 +55,9 @@ else {
|
||||
$event_response['params'] = '';
|
||||
}
|
||||
|
||||
$table->width = '90%';
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
if(defined('METACONSOLE')) {
|
||||
$table->width = '100%';
|
||||
@ -128,7 +130,7 @@ if ($event_response_id == 0) {
|
||||
echo '<form method="post" action="index.php?sec=geventos&sec2=godmode/events/events§ion=responses&mode=list&action=create_response&pure='.$config['pure'].'">';
|
||||
html_print_table($table);
|
||||
if(!defined('METACONSOLE'))
|
||||
echo '<br><br><div style="width:90%;text-align:right;">';
|
||||
echo '<div style="width:100%;text-align:right;">';
|
||||
else
|
||||
echo '<br><br><div style="width:100%;text-align:right;">';
|
||||
html_print_submit_button(__('Create'), 'create_response_button', false, array('class' => 'sub next'));
|
||||
@ -139,7 +141,7 @@ else {
|
||||
echo '<form method="post" action="index.php?sec=geventos&sec2=godmode/events/events§ion=responses&mode=list&action=update_response&pure='.$config['pure'].'">';
|
||||
html_print_table($table);
|
||||
if(!defined('METACONSOLE'))
|
||||
echo '<br><br><div style="width:90%;text-align:right;">';
|
||||
echo '<div style="width:100%;text-align:right;">';
|
||||
else
|
||||
echo '<br><br><div style="width:100%;text-align:right;">';
|
||||
html_print_submit_button(__('Update'), 'update_response_button', false, array('class' => 'sub next'));
|
||||
|
@ -25,14 +25,6 @@ if (! check_acl($config['id_user'], 0, "PM")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(!defined('METACONSOLE')) {
|
||||
echo '<br><br><div style="width:99%;text-align:right;">';
|
||||
echo '<form method="post" action="index.php?sec=geventos&sec2=godmode/events/events§ion=responses&mode=editor&pure='.$config['pure'].'">';
|
||||
html_print_submit_button(__('Create response'), 'create_response_button', false, array('class' => 'sub next'));
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
if (!is_user_admin($config['id_user'])) {
|
||||
$id_groups = array_keys(users_get_groups(false, "PM"));
|
||||
$event_responses = db_get_all_rows_filter('tevent_response',
|
||||
@ -43,21 +35,21 @@ else {
|
||||
}
|
||||
|
||||
if(empty($event_responses)) {
|
||||
ui_print_info_message(__('No responses found'));
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('No responses found') ) );
|
||||
$event_responses = array();
|
||||
return;
|
||||
}
|
||||
|
||||
$table->width = '99%';
|
||||
if(defined('METACONSOLE'))
|
||||
$table->width = '100%';
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
||||
$table->size = array();
|
||||
$table->size[0] = '200px';
|
||||
$table->size[2] = '70px';
|
||||
$table->size[2] = '100px';
|
||||
$table->size[3] = '70px';
|
||||
|
||||
$table->style[2] = 'text-align:center;';
|
||||
$table->style[2] = 'text-align:center;';
|
||||
$table->style[2] = 'text-align:left;';
|
||||
|
||||
$table->head[0] = __('Name');
|
||||
$table->head[1] = __('Description');
|
||||
@ -78,11 +70,11 @@ foreach($event_responses as $response) {
|
||||
|
||||
html_print_table($table);
|
||||
|
||||
if(defined('METACONSOLE')) {
|
||||
echo '<br><br><div style="width:100%;text-align:right;">';
|
||||
echo '<form method="post" action="index.php?sec=geventos&sec2=godmode/events/events§ion=responses&mode=editor&pure='.$config['pure'].'">';
|
||||
html_print_submit_button(__('Create response'), 'create_response_button', false, array('class' => 'sub next'));
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
echo '<div style="width:100%;text-align:right;">';
|
||||
echo '<form method="post" action="index.php?sec=geventos&sec2=godmode/events/events§ion=responses&mode=editor&pure='.$config['pure'].'">';
|
||||
html_print_submit_button(__('Create response'), 'create_response_button', false, array('class' => 'sub next'));
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
|
||||
?>
|
||||
|
@ -307,11 +307,11 @@ switch ($action) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
$table->width = '98%';
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
$table->data = array ();
|
||||
$table->valign[0] = 'top';
|
||||
|
||||
$table->data[0][0] = __('Map Name') . ui_print_help_tip (__('Descriptive name for the map'), true). ':';
|
||||
$table->data[0][1] = html_print_input_text ('map_name', $map_name, '', 30, 60, true);
|
||||
@ -333,12 +333,12 @@ foreach ($listConnectionTemp as $connectionTemp) {
|
||||
}
|
||||
|
||||
$table->data[1][0] = __("Add Map connection") . ui_print_help_tip (__('At least one map connection must be defined, it will be possible to change between the connections in the map'), true). ": " . $iconError;
|
||||
$table->data[1][1] = "<table class='databox' border='0' id='map_connection'>
|
||||
$table->data[1][1] = "<table style='padding:0px;' class='no-class' border='0' id='map_connection'>
|
||||
<tr>
|
||||
<td>
|
||||
<td style='padding:0px;' >
|
||||
" . html_print_select($listConnection, 'map_connection', '', '', '', '0', true) ."
|
||||
</td>
|
||||
<td>
|
||||
<td style='padding:0px;' >
|
||||
<a href='javascript: addConnectionMap();'>" . html_print_image ("images/add.png", true) . "</a>
|
||||
<input type='hidden' name='map_connection_list' value='' id='map_connection_list' />
|
||||
<input type='hidden' name='layer_list' value='' id='layer_list' />
|
||||
@ -374,27 +374,13 @@ $table->data[8][1] = html_print_input_text ('map_default_longitude', $map_defaul
|
||||
$table->data[9][0] = __('Default Altitude') . ':';
|
||||
$table->data[9][1] = html_print_input_text ('map_default_altitude', $map_default_altitude, '', 8, 8, true);
|
||||
|
||||
echo '<div class="action-buttons" style="margin-top: 20px; width: '.$table->width.'">';
|
||||
switch ($action) {
|
||||
case 'save_new':
|
||||
case 'edit_map':
|
||||
case 'update_saved':
|
||||
html_print_submit_button(_('Update map'), 'update_button', false, 'class="sub upd"');
|
||||
break;
|
||||
case 'new_map':
|
||||
html_print_submit_button(_('Save map'), 'save_button', false, 'class="sub wand"');
|
||||
break;
|
||||
}
|
||||
echo '</div>';
|
||||
|
||||
html_print_table($table);
|
||||
|
||||
echo "<h3>" . __('Layers') . ui_print_help_tip (__('Each layer can show agents from one group or the agents added to that layer or both.'), true). "</h3>";
|
||||
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->data = array ();
|
||||
$table->valign[0] = 'top';
|
||||
$table->valign[1] = 'top';
|
||||
|
||||
$table->data[0][0] = "<h4>" .__('List of layers') . ui_print_help_tip (__('It is possible to edit, delete and reorder the layers.'), true) . "</h4>";
|
||||
$table->data[0][1] = '<div style="text-align: right;">' . html_print_button(__('New layer'), 'new_layer', false, 'newLayer();', 'class="sub add"', true) . '</div>';
|
||||
@ -403,7 +389,7 @@ $table->data[1][0] = '<table class="databox" border="0" cellpadding="4" cellspac
|
||||
gis_add_layer_list($layer_list) .
|
||||
'</table>';
|
||||
$table->data[1][1] = '<div id="form_layer">
|
||||
<table id="form_layer_table" class="databox" border="0" cellpadding="4" cellspacing="4" style="visibility: hidden;">
|
||||
<table id="form_layer_table" class="" border="0" cellpadding="4" cellspacing="4" style="visibility: hidden;">
|
||||
<tr>
|
||||
<td>' . __('Layer name') . ':</td>
|
||||
<td>' . html_print_input_text ('layer_name_form', '', '', 20, 40, true) . '</td>
|
||||
|
@ -64,7 +64,9 @@ switch ($action) {
|
||||
|
||||
ui_print_page_header (__('GIS Maps builder'), "images/gm_gis.png", false, "gis_map_builder", true);
|
||||
|
||||
$table->width = '98%';
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __('Map name');
|
||||
$table->head[1] = __('Group');
|
||||
$table->head[2] = __('View');
|
||||
@ -72,12 +74,12 @@ if ($display_default_column)
|
||||
$table->head[3] = __('Default');
|
||||
$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->align[1] = 'left';
|
||||
$table->align[2] = 'left';
|
||||
$table->align[3] = 'left';
|
||||
$table->headstyle[4] = 'text-align:center';
|
||||
$table->size = array();
|
||||
$table->size[4] = '60px';
|
||||
$table->size[4] = '80px';
|
||||
|
||||
$maps = db_get_all_rows_in_table ('tgis_map','map_name');
|
||||
|
||||
|
@ -97,9 +97,10 @@ else {
|
||||
}
|
||||
|
||||
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
if (defined("METACONSOLE")) {
|
||||
$table->width = '100%';
|
||||
|
||||
$table->class = 'databox data';
|
||||
if ($id_group)
|
||||
$table->head[0] = __('Update Group');
|
||||
|
@ -58,7 +58,9 @@ if ($id_group) {
|
||||
}
|
||||
|
||||
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->data = array ();
|
||||
$table->data[0][0] = __('Name');
|
||||
$table->data[0][1] = html_print_input_text ('name', $name, '', 35, 100, true);
|
||||
|
@ -294,9 +294,7 @@ if (($delete_group) && (check_acl($config['id_user'], 0, "PM"))) {
|
||||
db_clean_cache();
|
||||
$groups = users_get_groups_tree ($config['id_user'], "AR", true);
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined("METACONSOLE"))
|
||||
$table->width = '100%';
|
||||
$table->width = '100%';
|
||||
|
||||
$all_parents = array();
|
||||
$groups_count = 0;
|
||||
@ -322,19 +320,8 @@ foreach ($all_parents as $parent) {
|
||||
|
||||
$groups_count = count($groups);
|
||||
|
||||
if (check_acl($config['id_user'], 0, "PM")) {
|
||||
if (!defined("METACONSOLE")) {
|
||||
echo '<br />';
|
||||
echo '<form method="post" action="index.php?sec='.$sec.'&sec2=godmode/groups/configure_group&pure='.$pure.'">';
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
html_print_submit_button(__('Create group'), 'crt', false,
|
||||
'class="sub next"');
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($groups)) {
|
||||
$table->class = "databox data";
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
$table->head[1] = __('ID');
|
||||
@ -343,8 +330,8 @@ if (!empty($groups)) {
|
||||
$table->head[4] = __('Description');
|
||||
$table->head[5] = __('Actions');
|
||||
$table->align = array ();
|
||||
$table->align[2] = 'center';
|
||||
$table->align[5] = 'center';
|
||||
$table->align[2] = 'left';
|
||||
$table->align[5] = 'left';
|
||||
$table->data = array ();
|
||||
|
||||
$offset = (int)get_parameter('offset', 0);
|
||||
@ -388,7 +375,7 @@ if (!empty($groups)) {
|
||||
echo $pagination;
|
||||
}
|
||||
else {
|
||||
echo "<div class='nf'>".__('There are no defined groups')."</div>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no defined groups') ) );
|
||||
}
|
||||
|
||||
if (check_acl($config['id_user'], 0, "PM")) {
|
||||
|
@ -173,7 +173,8 @@ switch ($config["dbtype"]) {
|
||||
|
||||
$groups = db_get_all_rows_sql($sql);
|
||||
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
||||
if (!empty($groups)) {
|
||||
$table->head = array ();
|
||||
@ -182,7 +183,8 @@ if (!empty($groups)) {
|
||||
$table->head[2] = __('Delete');
|
||||
$table->align = array ();
|
||||
$table->align[1] = 'left';
|
||||
$table->align[2] = 'center';
|
||||
$table->align[2] = 'left';
|
||||
$table->size[2] = '5%';
|
||||
$table->data = array ();
|
||||
|
||||
foreach ($groups as $id_group ) {
|
||||
@ -198,7 +200,7 @@ if (!empty($groups)) {
|
||||
html_print_table ($table);
|
||||
}
|
||||
else {
|
||||
echo "<div class='nf'>".__('There are no defined module groups')."</div>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no defined module groups') ) );
|
||||
}
|
||||
|
||||
echo '<form method="post" action="index.php?sec=gmodules&sec2=godmode/groups/configure_modu_group">';
|
||||
|
@ -142,7 +142,8 @@ else
|
||||
$return_all_group = true;
|
||||
|
||||
$table->id = 'add_table';
|
||||
$table->width = '98%';
|
||||
$table->class = 'databox filters';
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold; vertical-align:top';
|
||||
|
@ -77,7 +77,8 @@ html_print_table ($table);
|
||||
|
||||
unset($table);
|
||||
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->align = array ();
|
||||
@ -87,7 +88,7 @@ $table->style[1] = 'font-weight: bold';
|
||||
$table->head[0] = __('Profile name');
|
||||
$table->head[1] = __('Group');
|
||||
$table->head[2] = __('Users');
|
||||
$table->align[2] = 'center';
|
||||
$table->align[2] = 'left';
|
||||
$table->size[0] = '34%';
|
||||
$table->size[1] = '33%';
|
||||
$table->size[2] = '33%';
|
||||
|
@ -57,11 +57,11 @@ if ($do_operation) {
|
||||
|
||||
$groups = users_get_groups ();
|
||||
|
||||
$table->class = 'databox';
|
||||
$table->width = '98%';
|
||||
$table->class = 'databox filters';
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold; vertical-align:top';
|
||||
$table->style[0] = 'font-weight: bold;';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
$table->style[4] = 'font-weight: bold';
|
||||
$table->style[6] = 'font-weight: bold';
|
||||
@ -113,6 +113,7 @@ echo '</fieldset>';
|
||||
|
||||
/* Target selection */
|
||||
$table->id = 'target_table';
|
||||
$table->class = 'databox filters';
|
||||
$table->data = array ();
|
||||
|
||||
$modules = array ();
|
||||
@ -171,6 +172,7 @@ echo '</fieldset>';
|
||||
|
||||
/* Destiny selection */
|
||||
$table->id = 'destiny_table';
|
||||
$table->class = 'databox filters';
|
||||
$table->data = array ();
|
||||
$table->size[0] = '20%';
|
||||
$table->size[1] = '30%';
|
||||
|
@ -122,10 +122,11 @@ else
|
||||
$return_all_group = true;
|
||||
|
||||
$table->id = 'delete_table';
|
||||
$table->width = '98%';
|
||||
$table->class = 'databox filters';
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold; vertical-align:top';
|
||||
$table->style[0] = 'font-weight: bold;';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
$table->size = array ();
|
||||
$table->size[0] = '15%';
|
||||
|
@ -89,10 +89,11 @@ if ($delete) {
|
||||
$groups = users_get_groups ();
|
||||
|
||||
$table->id = 'delete_table';
|
||||
$table->width = '98%';
|
||||
$table->class = 'databox filters';
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold; vertical-align:top';
|
||||
$table->style[0] = 'font-weight: bold;';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
$table->size = array ();
|
||||
$table->size[0] = '15%';
|
||||
|
@ -188,11 +188,12 @@ else
|
||||
$return_all_group = true;
|
||||
|
||||
$table->id = 'delete_table';
|
||||
$table->width = '98%';
|
||||
$table->class = 'databox filters';
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold; vertical-align:top';
|
||||
$table->style[2] = 'font-weight: bold; vertical-align:top';
|
||||
$table->style[0] = 'font-weight: bold;';
|
||||
$table->style[2] = 'font-weight: bold;';
|
||||
$table->size = array ();
|
||||
$table->size[0] = '15%';
|
||||
$table->size[1] = '40%';
|
||||
|
@ -239,8 +239,10 @@ foreach ($module_types as $type) {
|
||||
$types[$type['id_tipo']] = $type['description'];
|
||||
}
|
||||
|
||||
$table->width = '99%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->data = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
|
||||
|
||||
@ -248,8 +250,7 @@ $table->style[2] = 'font-weight: bold';
|
||||
$table->data['selection_mode'][0] = __('Selection mode');
|
||||
$table->data['selection_mode'][1] = __('Select modules first') . ' ' .
|
||||
html_print_radio_button_extended ("selection_mode", 'modules', '', $selection_mode, false, '', 'style="margin-right: 40px;"', true);
|
||||
$table->data['selection_mode'][2] = '';
|
||||
$table->data['selection_mode'][3] = __('Select agents first') . ' ' .
|
||||
$table->data['selection_mode'][1] .= __('Select agents first') . ' ' .
|
||||
html_print_radio_button_extended ("selection_mode", 'agents', '', $selection_mode, false, '', 'style="margin-right: 40px;"', true);
|
||||
|
||||
|
||||
|
@ -92,13 +92,13 @@ html_print_table ($table);
|
||||
|
||||
unset($table);
|
||||
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->align = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'vertical-align: top';
|
||||
$table->style[1] = 'vertical-align: top';
|
||||
|
||||
$table->head[0] = __('Profile name');
|
||||
$table->head[1] = __('Group');
|
||||
$table->head[2] = __('Users');
|
||||
|
@ -184,10 +184,11 @@ $id_group = 0;
|
||||
$groups = users_get_groups();
|
||||
|
||||
$table->id = 'delete_table';
|
||||
$table->width = '98%';
|
||||
$table->class = 'databox filters';
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold; vertical-align:top';
|
||||
$table->style[0] = 'font-weight: bold;';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
$table->size = array ();
|
||||
$table->size[0] = '15%';
|
||||
@ -241,8 +242,8 @@ $description = "";
|
||||
|
||||
echo '<div id="form_agents" style="display: none;">';
|
||||
|
||||
$table->width = '95%';
|
||||
$table->class = "databox_color";
|
||||
$table->width = '100%';
|
||||
$table->class = "databox filters";
|
||||
|
||||
$table->head = array ();
|
||||
$table->style = array ();
|
||||
@ -300,8 +301,8 @@ $update_gis_data = -1;
|
||||
$cascade_protection = -1;
|
||||
$quiet_select = -1;
|
||||
|
||||
$table->width = '95%';
|
||||
$table->class = "databox_color";
|
||||
$table->width = '100%';
|
||||
$table->class = "databox filters";
|
||||
|
||||
$table->head = array ();
|
||||
$table->style = array ();
|
||||
@ -382,8 +383,8 @@ $table->data[6][1] = html_print_select(array(-1 => __('No change'),
|
||||
ui_toggle(html_print_table ($table, true), __('Advanced options'));
|
||||
unset($table);
|
||||
|
||||
$table->width = '95%';
|
||||
$table->class = "databox_color";
|
||||
$table->width = '100%';
|
||||
$table->class = "databox filters";
|
||||
|
||||
$table->head = array ();
|
||||
$table->style = array ();
|
||||
|
@ -112,7 +112,8 @@ if ($update) {
|
||||
$module_name = array();
|
||||
}
|
||||
foreach($module_name as $mod_name) {
|
||||
$result = process_manage_edit($mod_name['nombre'], $id_agent);
|
||||
$result = process_manage_edit($mod_name['nombre'],
|
||||
$id_agent);
|
||||
$count ++;
|
||||
$success += (int)$result;
|
||||
}
|
||||
@ -123,6 +124,8 @@ if ($update) {
|
||||
$agents_ = array();
|
||||
}
|
||||
|
||||
|
||||
|
||||
foreach ($agents_ as $agent_) {
|
||||
|
||||
if ($modules_ == false) {
|
||||
@ -141,20 +144,24 @@ if ($update) {
|
||||
"(" . $success . "/" . $count . ")",
|
||||
__('Could not be updated'));
|
||||
|
||||
$info = 'Modules: ' . json_encode($modules_) . ' Agents: ' . json_encode($agents_);
|
||||
$info = 'Modules: ' . json_encode($modules_) .
|
||||
' Agents: ' . json_encode($agents_);
|
||||
if ($success > 0) {
|
||||
db_pandora_audit("Massive management", "Edit module", false, false, $info);
|
||||
db_pandora_audit("Massive management", "Edit module", false,
|
||||
false, $info);
|
||||
}
|
||||
else {
|
||||
db_pandora_audit("Massive management", "Fail try to edit module", false, false, $info);
|
||||
db_pandora_audit("Massive management",
|
||||
"Fail try to edit module", false, false, $info);
|
||||
}
|
||||
}
|
||||
|
||||
$table->id = 'delete_table';
|
||||
$table->width = '98%';
|
||||
$table->class = 'databox filters';
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold; vertical-align:top';
|
||||
$table->style[0] = 'font-weight: bold;';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
$table->rowstyle = array ();
|
||||
$table->size = array ();
|
||||
@ -173,7 +180,8 @@ if (! $module_type) {
|
||||
$table->rowstyle['edit6'] = 'display: none';
|
||||
$table->rowstyle['edit7'] = 'display: none';
|
||||
}
|
||||
$agents = agents_get_group_agents (array_keys (users_get_groups ()), false, "none");
|
||||
$agents = agents_get_group_agents (array_keys (users_get_groups ()),
|
||||
false, "none");
|
||||
switch ($config["dbtype"]) {
|
||||
case "mysql":
|
||||
case "oracle":
|
||||
@ -217,8 +225,7 @@ $table->data = array ();
|
||||
$table->data['selection_mode'][0] = __('Selection mode');
|
||||
$table->data['selection_mode'][1] = __('Select modules first') . ' ' .
|
||||
html_print_radio_button_extended ("selection_mode", 'modules', '', $selection_mode, false, '', 'style="margin-right: 40px;"', true);
|
||||
$table->data['selection_mode'][2] = '';
|
||||
$table->data['selection_mode'][3] = __('Select agents first') . ' ' .
|
||||
$table->data['selection_mode'][1] .= __('Select agents first') . ' ' .
|
||||
html_print_radio_button_extended ("selection_mode", 'agents', '', $selection_mode, false, '', 'style="margin-right: 40px;"', true);
|
||||
|
||||
|
||||
@ -235,7 +242,8 @@ $table->data['form_modules_1'][1] = html_print_select ($types,
|
||||
'module_type', '', false, __('Select'), -1, true, false, true);
|
||||
|
||||
$table->data['form_modules_1'][3] = __('Select all modules of this type') . ' ' .
|
||||
html_print_checkbox_extended ("force_type", 'type', '', '', false, '', 'style="margin-right: 40px;"', true);
|
||||
html_print_checkbox_extended ("force_type", 'type', '', '', false,
|
||||
'', 'style="margin-right: 40px;"', true);
|
||||
|
||||
$modules = array ();
|
||||
if ($module_type != '') {
|
||||
@ -263,7 +271,8 @@ $table->data['form_agents_1'][1] = html_print_select ($groups, 'groups_select',
|
||||
' ' . __('Group recursion') . ' ' .
|
||||
html_print_checkbox ("recursion", 1, false, true, false);
|
||||
$table->data['form_agents_1'][3] = __('Select all modules of this group') . ' ' .
|
||||
html_print_checkbox_extended ("force_group", 'group', '', '', false, '', 'style="margin-right: 40px;"', true);
|
||||
html_print_checkbox_extended ("force_group", 'group', '', '', false,
|
||||
'', 'style="margin-right: 40px;"', true);
|
||||
|
||||
|
||||
|
||||
@ -327,8 +336,8 @@ $table->data['edit1'][1] = '<table width="100%">';
|
||||
$table->data['edit1'][1] .= '<em>' . __('Min.') . '</em>';
|
||||
$table->data['edit1'][1] .= '</td>';
|
||||
$table->data['edit1'][1] .= '<td align="right">';
|
||||
$table->data['edit1'][1] .= html_print_input_text('min_warning',
|
||||
'', '', 5, 15, true);
|
||||
$table->data['edit1'][1] .= html_print_input_text(
|
||||
'min_warning', '', '', 5, 15, true);
|
||||
$table->data['edit1'][1] .= '</td>';
|
||||
$table->data['edit1'][1] .= '</tr>';
|
||||
$table->data['edit1'][1] .= '<tr>';
|
||||
@ -336,25 +345,29 @@ $table->data['edit1'][1] = '<table width="100%">';
|
||||
$table->data['edit1'][1] .= '<em>' . __('Max.') . '</em>';
|
||||
$table->data['edit1'][1] .= '</td>';
|
||||
$table->data['edit1'][1] .= '<td align="right">';
|
||||
$table->data['edit1'][1] .= html_print_input_text ('max_warning', '', '', 5, 15, true);
|
||||
$table->data['edit1'][1] .= html_print_input_text (
|
||||
'max_warning', '', '', 5, 15, true);
|
||||
$table->data['edit1'][1] .= '</td>';
|
||||
$table->data['edit1'][1] .= '</tr>';
|
||||
$table->data['edit1'][1] .= '<tr>';
|
||||
$table->data['edit1'][1] .= '<td>';
|
||||
$table->data['edit1'][1] .= '<em>'.__('Str.').'</em>';
|
||||
$table->data['edit1'][1] .= '<em>' . __('Str.') . '</em>';
|
||||
$table->data['edit1'][1] .= '</td>';
|
||||
$table->data['edit1'][1] .= '<td align="right">';
|
||||
$table->data['edit1'][1] .= html_print_input_text ('str_warning', '', '', 5, 15, true);
|
||||
$table->data['edit1'][1] .= html_print_input_text (
|
||||
'str_warning', '', '', 5, 15, true);
|
||||
$table->data['edit1'][1] .= '</td>';
|
||||
$table->data['edit1'][1] .= '</tr>';
|
||||
$table->data['edit1'][1] .= '<tr>';
|
||||
$table->data['edit1'][1] .= '<td>';
|
||||
$table->data['edit1'][1] .= '<em>'.__('Inverse interval').'</em>';
|
||||
$table->data['edit1'][1] .= '<em>' .
|
||||
__('Inverse interval') . '</em>';
|
||||
$table->data['edit1'][1] .= '</td>';
|
||||
$table->data['edit1'][1] .= '<td align="right">';
|
||||
$table->data['edit1'][1] .=
|
||||
html_print_select(
|
||||
array('' => __('No change'),
|
||||
array(
|
||||
'' => __('No change'),
|
||||
'1' => __('Yes'),
|
||||
'0' => __('No')),
|
||||
'warning_inverse','','','', '', true);
|
||||
@ -369,8 +382,8 @@ $table->data['edit1'][3] = '<table width="100%">';
|
||||
$table->data['edit1'][3] .= '<em>' . __('Min.') . '</em>';
|
||||
$table->data['edit1'][3] .= '</td>';
|
||||
$table->data['edit1'][3] .= '<td align="right">';
|
||||
$table->data['edit1'][3] .= html_print_input_text('min_critical',
|
||||
'', '', 5, 15, true);
|
||||
$table->data['edit1'][3] .= html_print_input_text(
|
||||
'min_critical', '', '', 5, 15, true);
|
||||
$table->data['edit1'][3] .= '</td>';
|
||||
$table->data['edit1'][3] .= '</tr>';
|
||||
$table->data['edit1'][3] .= '<tr>';
|
||||
@ -378,7 +391,8 @@ $table->data['edit1'][3] = '<table width="100%">';
|
||||
$table->data['edit1'][3] .= '<em>' . __('Max.') . '</em>';
|
||||
$table->data['edit1'][3] .= '</td>';
|
||||
$table->data['edit1'][3] .= '<td align="right">';
|
||||
$table->data['edit1'][3] .= html_print_input_text ('max_critical', '', '', 5, 15, true);
|
||||
$table->data['edit1'][3] .= html_print_input_text(
|
||||
'max_critical', '', '', 5, 15, true);
|
||||
$table->data['edit1'][3] .= '</td>';
|
||||
$table->data['edit1'][3] .= '</tr>';
|
||||
$table->data['edit1'][3] .= '<tr>';
|
||||
@ -386,12 +400,14 @@ $table->data['edit1'][3] = '<table width="100%">';
|
||||
$table->data['edit1'][3] .= '<em>'.__('Str.').'</em>';
|
||||
$table->data['edit1'][3] .= '</td>';
|
||||
$table->data['edit1'][3] .= '<td align="right">';
|
||||
$table->data['edit1'][3] .= html_print_input_text ('str_critical', '', '', 5, 15, true);
|
||||
$table->data['edit1'][3] .= html_print_input_text(
|
||||
'str_critical', '', '', 5, 15, true);
|
||||
$table->data['edit1'][3] .= '</td>';
|
||||
$table->data['edit1'][3] .= '</tr>';
|
||||
$table->data['edit1'][3] .= '<tr>';
|
||||
$table->data['edit1'][3] .= '<td>';
|
||||
$table->data['edit1'][3] .= '<em>'.__('Inverse interval').'</em>';
|
||||
$table->data['edit1'][3] .= '<em>' .
|
||||
__('Inverse interval') . '</em>';
|
||||
$table->data['edit1'][3] .= '</td>';
|
||||
$table->data['edit1'][3] .= '<td align="right">';
|
||||
$table->data['edit1'][3] .=
|
||||
@ -405,27 +421,40 @@ $table->data['edit1'][3] = '<table width="100%">';
|
||||
$table->data['edit1'][3] .= '</table>';
|
||||
|
||||
$table->data['edit1_1'][0] = '<b>'.__('Description'). '</b>';
|
||||
$table->data['edit1_1'][1] = html_print_textarea ('descripcion', 2, 50, '', '', true);
|
||||
$table->data['edit1_1'][1] = html_print_textarea ('descripcion', 2, 50,
|
||||
'', '', true);
|
||||
$table->colspan['edit1_1'][1] = 3;
|
||||
|
||||
$table->data['edit2'][0] = __('Interval');
|
||||
$table->data['edit2'][1] = html_print_extended_select_for_time ('module_interval', 0, '', __('No change'), '0', 10, true, 'width: 150px');
|
||||
$table->data['edit2'][1] = html_print_extended_select_for_time(
|
||||
'module_interval', 0, '', __('No change'), '0', 10, true, 'width: 150px');
|
||||
$table->data['edit2'][2] = __('Disabled');
|
||||
$table->data['edit2'][3] = html_print_select(array('' => __('No change'), '1' => __('Yes'), '0' => __('No')),'disabled','','','', '', true);
|
||||
$table->data['edit2'][3] = html_print_select(
|
||||
array(
|
||||
'' => __('No change'),
|
||||
'1' => __('Yes'),
|
||||
'0' => __('No')),
|
||||
'disabled', '', '', '', '', true);
|
||||
|
||||
$table->data['edit3'][0] = __('Post process') .
|
||||
ui_print_help_icon ('postprocess', true);
|
||||
$table->data['edit3'][1] = html_print_input_text ('post_process', '', '', 10, 15, true);
|
||||
$table->data['edit3'][1] = html_print_input_text ('post_process', '',
|
||||
'', 10, 15, true);
|
||||
$table->data['edit3'][2] = __('SMNP community');
|
||||
$table->data['edit3'][3] = html_print_input_text ('snmp_community', '', '', 10, 15, true);
|
||||
$table->data['edit3'][3] = html_print_input_text ('snmp_community', '',
|
||||
'', 10, 15, true);
|
||||
|
||||
$table->data['edit35'][0] = __('Target IP');
|
||||
$table->data['edit35'][1] = html_print_input_text ('ip_target', '', '', 15, 60, true);
|
||||
$table->data['edit35'][1] = html_print_input_text ('ip_target', '', '',
|
||||
15, 60, true);
|
||||
$table->data['edit35'][2] = __('SNMP version');
|
||||
$table->data['edit35'][3] = html_print_select ($snmp_versions, 'tcp_send', '', '', __('No change'), '', true, false, false, '');
|
||||
$table->data['edit35'][3] = html_print_select ($snmp_versions,
|
||||
'tcp_send', '', '', __('No change'), '', true, false, false, '');
|
||||
$table->data['edit36'][0] = __('Auth user');
|
||||
$table->data['edit36'][1] = html_print_input_text ('plugin_user_snmp', '', '', 15, 60, true);
|
||||
$table->data['edit36'][2] = __('Auth password') . ui_print_help_tip(__("The pass length must be eight character minimum."), true);
|
||||
$table->data['edit36'][1] = html_print_input_text ('plugin_user_snmp',
|
||||
'', '', 15, 60, true);
|
||||
$table->data['edit36'][2] = __('Auth password') .
|
||||
ui_print_help_tip(__("The pass length must be eight character minimum."), true);
|
||||
$table->data['edit36'][3] = html_print_input_text ('plugin_pass_snmp', '', '', 15, 60, true);
|
||||
$table->data['edit37'][0] = __('Privacy method');
|
||||
$table->data['edit37'][1] = html_print_select(array('DES' => __('DES'), 'AES' => __('AES')), 'custom_string_1', '', '', __('No change'), '', true);
|
||||
@ -922,6 +951,7 @@ $(document).ready (function () {
|
||||
</script>
|
||||
<?php
|
||||
function process_manage_edit ($module_name, $agents_select = null) {
|
||||
|
||||
if (is_int ($module_name) && $module_name < 0) {
|
||||
ui_print_error_message(__('No modules selected'));
|
||||
|
||||
@ -1026,7 +1056,7 @@ function process_manage_edit ($module_name, $agents_select = null) {
|
||||
else {
|
||||
$modules = db_get_all_rows_filter ('tagente_modulo',
|
||||
array ('id_agente' => $agents_select,
|
||||
'nombre' => io_safe_input($module_name)),
|
||||
'nombre' => $module_name),
|
||||
array ('id_agente_modulo'));
|
||||
}
|
||||
}
|
||||
|
@ -116,10 +116,11 @@ else
|
||||
$return_all_group = true;
|
||||
|
||||
$table->id = 'delete_table';
|
||||
$table->width = '98%';
|
||||
$table->class = 'databox filters';
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold; vertical-align:top';
|
||||
$table->style[0] = 'font-weight: bold;';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
$table->size = array ();
|
||||
$table->size[0] = '15%';
|
||||
|
@ -140,25 +140,33 @@ if ($option == '') {
|
||||
$option = array_shift(array_keys($options));
|
||||
}
|
||||
|
||||
$alertstab = array('text' => '<a href="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&tab=massive_alerts">'
|
||||
. html_print_image ('images/op_alerts.png', true,
|
||||
array ('title' => __('Alerts operations')))
|
||||
. '</a>', 'active' => $tab == 'massive_alerts');
|
||||
$alertstab = array(
|
||||
'text' => '<a href="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&tab=massive_alerts">'
|
||||
. html_print_image ('images/op_alerts.png', true,
|
||||
array ('title' => __('Alerts operations')))
|
||||
. '</a>',
|
||||
'active' => $tab == 'massive_alerts');
|
||||
|
||||
$userstab = array('text' => '<a href="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&tab=massive_users">'
|
||||
. html_print_image ('images/op_workspace.png', true,
|
||||
array ('title' => __('Users operations')))
|
||||
. '</a>', 'active' => $tab == 'massive_users');
|
||||
$userstab = array(
|
||||
'text' => '<a href="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&tab=massive_users">'
|
||||
. html_print_image ('images/op_workspace.png', true,
|
||||
array ('title' => __('Users operations')))
|
||||
. '</a>',
|
||||
'active' => $tab == 'massive_users');
|
||||
|
||||
$agentstab = array('text' => '<a href="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&tab=massive_agents">'
|
||||
. html_print_image ('images/bricks.png', true,
|
||||
array ('title' => __('Agents operations')))
|
||||
. '</a>', 'active' => $tab == 'massive_agents');
|
||||
$agentstab = array(
|
||||
'text' => '<a href="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&tab=massive_agents">'
|
||||
. html_print_image ('images/bricks.png', true,
|
||||
array ('title' => __('Agents operations')))
|
||||
. '</a>',
|
||||
'active' => $tab == 'massive_agents');
|
||||
|
||||
$modulestab = array('text' => '<a href="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&tab=massive_modules">'
|
||||
. html_print_image ('images/brick.png', true,
|
||||
array ('title' => __('Modules operations')))
|
||||
. '</a>', 'active' => $tab == 'massive_modules');
|
||||
$modulestab = array(
|
||||
'text' => '<a href="index.php?sec=gmassive&sec2=godmode/massive/massive_operations&tab=massive_modules">'
|
||||
. html_print_image ('images/brick.png', true,
|
||||
array ('title' => __('Modules operations')))
|
||||
. '</a>',
|
||||
'active' => $tab == 'massive_modules');
|
||||
|
||||
|
||||
|
||||
@ -213,7 +221,8 @@ $submit_template_standby = get_parameter('id_alert_template_standby');
|
||||
$submit_add = get_parameter('crtbutton');
|
||||
|
||||
echo '<div id="loading" display="none">';
|
||||
echo html_print_image("images/wait.gif", true, array("border" => '0')) . '<br />';
|
||||
echo html_print_image("images/wait.gif", true, array("border" => '0')) .
|
||||
'<br />';
|
||||
echo '<strong>' . __('Please wait...') . '</strong>';
|
||||
echo '</div>';
|
||||
?>
|
||||
@ -245,14 +254,19 @@ echo '</div>';
|
||||
<?php
|
||||
echo "<br />";
|
||||
echo '<form method="post" id="form_options" action="index.php?sec=gmassive&sec2=godmode/massive/massive_operations">';
|
||||
echo '<table border="0"><tr><td>';
|
||||
echo '<table border="0">';
|
||||
echo '<tr>';
|
||||
echo '<td>';
|
||||
echo __("Action");
|
||||
echo '</td><td>';
|
||||
echo '</td>';
|
||||
echo '<td>';
|
||||
html_print_select($options, 'option', $option, 'this.form.submit()', '',
|
||||
0, false, false, false);
|
||||
if ($option == 'edit_agents' || $option == 'edit_modules')
|
||||
ui_print_help_tip(__("The blank fields will not be updated"));
|
||||
echo '</td></tr></table>';
|
||||
echo '</td>';
|
||||
echo '</tr>';
|
||||
echo '</table>';
|
||||
echo '</form>';
|
||||
echo "<br />";
|
||||
|
||||
|
@ -116,7 +116,8 @@ else
|
||||
$return_all_group = true;
|
||||
|
||||
$table->id = 'delete_table';
|
||||
$table->width = '98%';
|
||||
$table->class = 'databox filters';
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold; vertical-align:top';
|
||||
|
@ -187,9 +187,8 @@ foreach ($groups as $group_key => $group_val) {
|
||||
// Format component groups in tree form
|
||||
$groups = component_groups_get_groups_tree_recursive($groups_clean,0,0);
|
||||
|
||||
$table->width = '98%';
|
||||
if (defined('METACONSOLE'))
|
||||
$table->width = '100%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
$table->head[1] = __('Action') .
|
||||
@ -197,7 +196,7 @@ $table->head[1] = __('Action') .
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->align = array ();
|
||||
$table->align[1] = 'center';
|
||||
$table->align[1] = 'left';
|
||||
$table->size = array ();
|
||||
$table->size[0] = '80%';
|
||||
$table->size[1] = '50px';
|
||||
@ -229,13 +228,13 @@ if (isset($data)) {
|
||||
echo "<form method='post' action='index.php?sec=".$sec."&sec2=godmode/modules/manage_nc_groups'>";
|
||||
html_print_input_hidden('multiple_delete', 1);
|
||||
html_print_table ($table);
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:" . $table->width . "'>";
|
||||
echo "<div style='padding-bottom: 10px; text-align: right; width:" . $table->width . "'>";
|
||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
}
|
||||
else {
|
||||
echo "<div class='nf'>".__('There are no defined component groups')."</div>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no defined component groups') ) );
|
||||
}
|
||||
|
||||
|
||||
|
@ -44,9 +44,10 @@ else {
|
||||
$parent = '';
|
||||
}
|
||||
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
if ($id) {
|
||||
$table->head[0] = __('Update Group Component');
|
||||
@ -59,13 +60,14 @@ if (defined('METACONSOLE')) {
|
||||
}
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->style[2] = 'font-weight: bold';
|
||||
$table->data = array ();
|
||||
|
||||
$table->data[0][0] = __('Name');
|
||||
$table->data[0][1] = html_print_input_text ('name', $name, '', 15, 255, true);
|
||||
|
||||
$table->data[1][0] = __('Parent');
|
||||
$table->data[1][1] = html_print_select (network_components_get_groups (),
|
||||
$table->data[0][2] = __('Parent');
|
||||
$table->data[0][3] = html_print_select (network_components_get_groups (),
|
||||
'parent', $parent, false, __('None'), 0, true, false, false);
|
||||
|
||||
echo '<form method="post" action="index.php?sec='.$sec.'&sec2=godmode/modules/manage_nc_groups">';
|
||||
|
@ -441,7 +441,9 @@ $url = ui_get_url_refresh (array ('offset' => false,
|
||||
$search_id_group = (int) get_parameter ('search_id_group');
|
||||
$search_string = (string) get_parameter ('search_string');
|
||||
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
if(defined("METACONSOLE")) {
|
||||
$table->width = '50%';
|
||||
$table->class = 'databox_filters';
|
||||
@ -537,6 +539,7 @@ unset ($table);
|
||||
|
||||
$table->width = '100%';
|
||||
$table->head = array ();
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __('Module name');
|
||||
$table->head[1] = __('Type');
|
||||
$table->head[3] = __('Description');
|
||||
@ -548,7 +551,7 @@ $table->head[6] = __('Action') .
|
||||
$table->size = array ();
|
||||
$table->size[1] = '75px';
|
||||
$table->size[6] = '80px';
|
||||
$table->align[6] = 'center';
|
||||
$table->align[6] = 'left';
|
||||
$table->data = array ();
|
||||
|
||||
foreach ($components as $component) {
|
||||
@ -606,8 +609,7 @@ if (isset($data)) {
|
||||
echo "</form>";
|
||||
}
|
||||
else {
|
||||
echo "<div class='nf'>" .
|
||||
__('There are no defined network components') . "</div>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no defined network components') ) );
|
||||
}
|
||||
|
||||
echo '<form method="post" action="' . $url . '">';
|
||||
|
@ -232,9 +232,10 @@ else {
|
||||
|
||||
echo '<form name="component" method="post">';
|
||||
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
/* $table came from manage_network_components_form_common.php */
|
||||
if (defined('METACONSOLE')) {
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
if ($id) {
|
||||
$table->head[0] = __('Update Network Component');
|
||||
|
@ -172,10 +172,10 @@ if($result === false) {
|
||||
$result = array();
|
||||
}
|
||||
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->width = "98%";
|
||||
$table->class = "databox";
|
||||
$table->cellpadding = 0;
|
||||
$table->cellspacing = 0;
|
||||
$table->width = "100%";
|
||||
$table->class = "databox data";
|
||||
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
@ -187,7 +187,7 @@ $table->size[1] = '65%';
|
||||
$table->size[2] = '15%';
|
||||
|
||||
$table->align = array ();
|
||||
$table->align[2] = "center";
|
||||
$table->align[2] = "left";
|
||||
|
||||
$table->data = array ();
|
||||
|
||||
@ -220,7 +220,7 @@ if (!empty ($table->data)) {
|
||||
echo "</form>";
|
||||
}
|
||||
else {
|
||||
echo '<div class="nf" style="width:'.$table->width.'">'.__('There are no defined network profiles').'</div>';
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no defined network profiles') ) );
|
||||
}
|
||||
|
||||
echo '<form method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form">';
|
||||
|
@ -139,7 +139,7 @@ else {
|
||||
echo '<form name="mod_temp" method="post" action="index.php?sec=gmodules&sec2=godmode/modules/manage_network_templates_form&id_np='.$id_np.'&update='.$id_np.'">';
|
||||
}
|
||||
|
||||
echo '<table width="98%" cellpadding="4" cellspacing="4" class="databox_color">';
|
||||
echo '<table width="100%" cellpadding="4" cellspacing="4" class="databox filters">';
|
||||
|
||||
echo '<tr><td class="datos">'.__('Name').'</td><td class="datos">';
|
||||
html_print_input_text ("name", $name, '', 63);
|
||||
@ -181,26 +181,26 @@ if ($id_np > 0) {
|
||||
$result = db_get_all_rows_sql ($sql);
|
||||
|
||||
if (empty ($result)) {
|
||||
echo '<div style="width:550px;" class="error">' . __("No modules for this profile") . '</div>';
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('No modules for this profile') ) );
|
||||
$result = array ();
|
||||
}
|
||||
|
||||
$table->head = array ();
|
||||
$table->data = array ();
|
||||
$table->align = array ();
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->class = "databox";
|
||||
$table->class = "databox data";
|
||||
|
||||
$table->head[0] = __('Module name');
|
||||
$table->head[1] = __('Type');
|
||||
$table->align[1] = "center";
|
||||
$table->head[2] = __('Description');
|
||||
$table->head[3] = __('Group');
|
||||
$table->align[3] = "center";
|
||||
$table->align[3] = "left";
|
||||
$table->head[4] = html_print_checkbox_extended ('allbox', '', false, false, 'CheckAll();', '', true);
|
||||
$table->align[4] = "center";
|
||||
$table->align[4] = "left";
|
||||
|
||||
foreach ($result as $row) {
|
||||
$data = array ();
|
||||
@ -228,10 +228,10 @@ if ($id_np > 0) {
|
||||
$table->head = array ();
|
||||
$table->data = array ();
|
||||
$table->align = array ();
|
||||
$table->width = '98%';
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->class = "databox";
|
||||
$table->width = '100%';
|
||||
$table->cellpadding = 0;
|
||||
$table->cellspacing = 0;
|
||||
$table->class = "databox filters";
|
||||
|
||||
//The form to submit when adding a list of components
|
||||
|
||||
|
@ -53,7 +53,7 @@ if ($update_module) {
|
||||
}
|
||||
|
||||
|
||||
echo "<table cellpadding='4' cellspacing='4' width='98%' class='databox'>";
|
||||
echo "<table cellpadding='4' cellspacing='4' width='100%' class='databox data'>";
|
||||
echo "<th>".__('Icon')."</th>";
|
||||
echo "<th>".__('ID')."</th>";
|
||||
echo "<th>".__('Name')."</th>";
|
||||
@ -76,7 +76,7 @@ foreach ($rows as $row) {
|
||||
}
|
||||
echo "
|
||||
<tr>
|
||||
<td class='$tdcolor' align='center'>" .
|
||||
<td class='$tdcolor' align=''>" .
|
||||
html_print_image("images/".$row["icon"], true, array("border" => '0')) .
|
||||
"</td>
|
||||
<td class='$tdcolor'>
|
||||
|
@ -111,10 +111,9 @@ $filters = db_get_all_rows_sql($sql);
|
||||
if ($filters === false)
|
||||
$filters = array ();
|
||||
|
||||
$table->width = '90%';
|
||||
if (defined('METACONSOLE')) {
|
||||
$table->width = '100%';
|
||||
}
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
$table->head[1] = __('Group');
|
||||
@ -124,10 +123,7 @@ $table->head[2] = __('Action') .
|
||||
$table->style = array ();
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
$table->align = array ();
|
||||
if (!defined('METACONSOLE'))
|
||||
$table->align[1] = 'center';
|
||||
|
||||
$table->align[2] = 'center';
|
||||
$table->size = array ();
|
||||
$table->size[0] = '60%';
|
||||
$table->size[1] = '30%';
|
||||
@ -156,21 +152,18 @@ if (isset($data)) {
|
||||
echo "<form method='post' action='" . $config['homeurl'] . "index.php?sec=netf&sec2=godmode/netflow/nf_edit&pure=$pure'>";
|
||||
html_print_input_hidden('multiple_delete', 1);
|
||||
html_print_table ($table);
|
||||
if (defined('METACONSOLE'))
|
||||
echo "<div style='text-align: right; width:100%'>";
|
||||
else
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:" . $table->width . "'>";
|
||||
echo "<div style=' text-align: right; width:" . $table->width . "'>";
|
||||
|
||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
}
|
||||
else {
|
||||
echo "<div class='nf'>".__('There are no defined filters')."</div>";
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no defined filters') ) );
|
||||
}
|
||||
|
||||
echo '<form method="post" action="' . $config['homeurl'] . 'index.php?sec=netf&sec2=godmode/netflow/nf_edit_form&pure='.$pure.'">';
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:" . $table->width . "'>";
|
||||
echo "<div style='padding-top: 20px; text-align: right; width:" . $table->width . "'>";
|
||||
html_print_submit_button (__('Create filter'), 'crt', false, 'class="sub wand"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
|
@ -168,11 +168,13 @@ if ($create) {
|
||||
}
|
||||
|
||||
$table->id = 'table1';
|
||||
$table->width = '80%';
|
||||
$table->width = '100%';
|
||||
$table->border = 0;
|
||||
$table->cellspacing = 3;
|
||||
$table->cellpadding = 5;
|
||||
$table->class = "databox_color";
|
||||
$table->cellspacing = 0;
|
||||
$table->cellpadding = 0;
|
||||
$table->class = "databox filters";
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
@ -183,9 +185,6 @@ if (defined('METACONSOLE')) {
|
||||
$table->head_colspan[0] = 5;
|
||||
$table->headstyle[0] = 'text-align: center';
|
||||
}
|
||||
else {
|
||||
$table->style[0] = 'vertical-align: top;';
|
||||
}
|
||||
|
||||
$table->data = array ();
|
||||
|
||||
|
@ -74,7 +74,7 @@ if ($editGraph) {
|
||||
|
||||
// Modules table
|
||||
if (count($module_array) > 0) {
|
||||
echo "<table width='98%' cellpadding=4 cellpadding=4 class='databox'>";
|
||||
echo "<table width='100%' cellpadding=4 cellpadding=4 class='databox filters'>";
|
||||
echo "<tr>
|
||||
<th>".__('Agent')."</th>
|
||||
<th>".__('Module')."</th>
|
||||
@ -118,7 +118,7 @@ if (count($module_array) > 0) {
|
||||
echo '<span id ="none_text" style="display: none;">' . __('None') . '</span>';
|
||||
echo "<form method='post' action='index.php?sec=reporting&sec2=godmode/reporting/graph_builder&tab=graph_editor&add_module=1&edit_graph=1&id=" . $id_graph . "'>";
|
||||
|
||||
echo "<table width='98%' cellpadding='4' cellpadding='4' class='databox_color'>";
|
||||
echo "<table width='100%' cellpadding='4' cellpadding='4' class='databox filters'>";
|
||||
echo "<tr>";
|
||||
echo "<td colspan='3'>".__('Filter group')."</td>";
|
||||
echo "</tr><tr>";
|
||||
@ -139,8 +139,9 @@ echo "<td><input type='text' name='weight' value='1' size=3></td>";
|
||||
echo "</tr></table>";
|
||||
echo "</td>";
|
||||
echo "</tr><tr>";
|
||||
echo "<td colspan='3' align='right'><input type=submit name='store' class='sub add' value='".__('Add')."'></td>";
|
||||
echo "</tr></table></form>";
|
||||
echo "<td colspan='3' align='right'></td>";
|
||||
echo "</tr></table>";
|
||||
echo "<div style='width:100%'><input style='float:right;' type=submit name='store' class='sub add' value='".__('Add')."'></div></form>";
|
||||
|
||||
ui_require_jquery_file ('pandora.controls');
|
||||
ui_require_jquery_file ('ajaxqueue');
|
||||
|
@ -83,7 +83,7 @@ else {
|
||||
// CREATE/EDIT GRAPH FORM
|
||||
// -----------------------
|
||||
|
||||
echo "<table width='98%' cellpadding=4 cellspacing=4 class='databox_color'>";
|
||||
echo "<table width='100%' cellpadding=4 cellspacing=4 class='databox filters'>";
|
||||
|
||||
if ($edit_graph)
|
||||
echo "<form method='post' action='index.php?sec=reporting&sec2=godmode/reporting/graph_builder&edit_graph=1&update_graph=1&id=" . $id_graph . "'>";
|
||||
@ -144,12 +144,12 @@ $stackeds = array(
|
||||
html_print_select ($stackeds, 'stacked', $stacked);
|
||||
echo "</td>";
|
||||
|
||||
echo "<tr><td colspan='4' align='right'>";
|
||||
echo "</table>";
|
||||
|
||||
if ($edit_graph) {
|
||||
echo "<input type=submit name='store' class='sub upd' value='".__('Update')."'>";
|
||||
echo "<div style='width:100%'><input style='float:right;' type=submit name='store' class='sub upd' value='".__('Update')."'></div>";
|
||||
}
|
||||
else {
|
||||
echo "<input type=submit name='store' class='sub next' value='".__('Create')."'>";
|
||||
echo "<div style='width:100%'><input style='float:right;' type=submit name='store' class='sub next' value='".__('Create')."'></div>";
|
||||
}
|
||||
echo "</td></tr></table>";
|
||||
echo "</form>";
|
||||
|
@ -135,20 +135,21 @@ $graphs = custom_graphs_get_user ($config['id_user'], false, true, "RR");
|
||||
|
||||
if (!empty ($graphs)) {
|
||||
$table = new stdClass();
|
||||
$table->width = '98%';
|
||||
$table->class = 'databox_frame';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->align = array ();
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Graph name');
|
||||
$table->head[1] = __('Description');
|
||||
$table->head[2] = __('Number of Graphs');
|
||||
$table->head[3] = __('Group');
|
||||
$table->size[2] = '80px';
|
||||
$table->size[3] = '50px';
|
||||
$table->align[2] = 'center';
|
||||
$table->align[3] = 'center';
|
||||
$table->size[0] = '30%';
|
||||
$table->size[2] = '200px';
|
||||
$table->size[3] = '200px';
|
||||
$table->align[2] = 'left';
|
||||
$table->align[3] = 'left';
|
||||
if (check_acl ($config['id_user'], 0, "RW")) {
|
||||
$table->align[4] = 'center';
|
||||
$table->align[4] = 'left';
|
||||
$table->head[4] = __('Op.');
|
||||
$table->size[4] = '90px';
|
||||
}
|
||||
@ -194,7 +195,7 @@ else {
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "RW")) {
|
||||
echo '<form method="post" action="index.php?sec=reporting&sec2=godmode/reporting/graph_builder">';
|
||||
echo '<div class="action-buttons" style="width: 98%;">';
|
||||
echo '<div class="action-buttons" style="width: 100%;">';
|
||||
html_print_submit_button (__('Create graph'), 'create', false, 'class="sub next"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
|
@ -199,6 +199,7 @@ if ($delete_layout || $copy_layout) {
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Map name');
|
||||
@ -210,6 +211,8 @@ $table->head[2] = __('Items');
|
||||
if ($vconsoles_write || $vconsoles_manage) {
|
||||
$table->head[3] = __('Copy');
|
||||
$table->head[4] = __('Delete');
|
||||
$table->size[3] = "6%";
|
||||
$table->size[4] = "6%";
|
||||
}
|
||||
|
||||
$table->align = array ();
|
||||
|
@ -14,6 +14,7 @@
|
||||
global $config;
|
||||
|
||||
require_once ($config['homedir'] . '/include/functions_custom_graphs.php');
|
||||
require_once ($config['homedir'] . '/include/db/oracle.php');
|
||||
|
||||
// Login check
|
||||
check_login ();
|
||||
@ -540,7 +541,7 @@ html_print_input_hidden('id_item', $idItem);
|
||||
if (defined("METACONSOLE"))
|
||||
$class = 'databox data';
|
||||
else
|
||||
$class = 'databox';
|
||||
$class = 'databox filters';
|
||||
|
||||
?>
|
||||
<table style="" class="<?php echo $class;?>" id="" border="0" cellpadding="4" cellspacing="4" width="100%">
|
||||
@ -1232,8 +1233,8 @@ else
|
||||
<br />
|
||||
<br />
|
||||
<?php
|
||||
print_SLA_list('95%', $action, $idItem);
|
||||
print_General_list('95%', $action, $idItem, $type);
|
||||
print_SLA_list('100%', $action, $idItem);
|
||||
print_General_list('100%', $action, $idItem, $type);
|
||||
echo '<div class="action-buttons" style="width: 100%">';
|
||||
if ($action == 'new') {
|
||||
html_print_submit_button(__('Create item'), 'create_item', false, 'class="sub wand"');
|
||||
@ -1263,7 +1264,7 @@ function print_SLA_list($width, $action, $idItem = null) {
|
||||
oracle_encapsule_fields_with_same_name_to_instructions('type'),
|
||||
'treport_content', 'id_rc', $idItem);
|
||||
?>
|
||||
<table class="databox" id="sla_list" border="0" cellpadding="4" cellspacing="4" width="100%">
|
||||
<table class="databox data" id="sla_list" border="0" cellpadding="4" cellspacing="4" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="header sla_list_agent_col" scope="col"><?php echo __('Agent');?></th>
|
||||
@ -1450,7 +1451,7 @@ function print_General_list($width, $action, $idItem = null, $type = 'general')
|
||||
|
||||
include_once($config['homedir'] . '/include/functions_html.php');
|
||||
?>
|
||||
<table class="databox" id="general_list" border="0" cellpadding="4" cellspacing="4" width="100%">
|
||||
<table class="databox data" id="general_list" border="0" cellpadding="4" cellspacing="4" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<?php
|
||||
|
@ -118,8 +118,6 @@ else {
|
||||
$modules[$row['id_agent_module']] = $row['nombre'];
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Filter report items created from metaconsole in normal console list and the opposite
|
||||
if (defined('METACONSOLE') and $config['metaconsole'] == 1) {
|
||||
$where_types = ' AND ((server_name IS NOT NULL AND length(server_name) != 0) OR ' . $type_escaped . ' IN (\'general\',\'SLA\',\'exception\',\'top_n\'))';
|
||||
@ -144,8 +142,6 @@ else {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$agentFilter = get_parameter('agent_filter', 0);
|
||||
$moduleFilter = get_parameter('module_filter', 0);
|
||||
$typeFilter = get_parameter('type_filter', 0);
|
||||
@ -158,33 +154,28 @@ if (($agentFilter == 0) && ($moduleFilter == 0) && ($typeFilter == 0)) {
|
||||
|
||||
$urlFilter = '&agent_filter=' . $agentFilter . '&module_filter=' . $moduleFilter . '&type_filter=' . $typeFilter;
|
||||
|
||||
if (!defined("METACONSOLE"))
|
||||
echo '<a href="javascript: toggleFormFilter();"><b>' .
|
||||
__('Items filter') . '</b> ' .
|
||||
html_print_image("images/down.png", true,
|
||||
array("title" => __('Toggle filter(s)'),
|
||||
"id" => 'image_form_filter')) . '</a>';
|
||||
|
||||
if (!defined("METACONSOLE")) {
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->data[0][0] = __('Agents');
|
||||
$table->data[0][1] = html_print_select($agents, 'agent_filter', $agentFilter, '', __('All'), 0, true);
|
||||
$table->data[0][2] = __('Modules');
|
||||
$table->data[0][3] = html_print_select($modules, 'module_filter', $moduleFilter, '', __('All'), 0, true);
|
||||
$table->data[1][0] = __('Type');
|
||||
$table->data[1][1] = html_print_select($types, 'type_filter', $typeFilter, '', __('All'), 0, true);
|
||||
$table->data[1][2] = $table->data[1][3] = '';
|
||||
$table->data[0][0] .= html_print_select($agents, 'agent_filter', $agentFilter, '', __('All'), 0, true);
|
||||
$table->data[0][1] = __('Modules');
|
||||
$table->data[0][1] .= html_print_select($modules, 'module_filter', $moduleFilter, '', __('All'), 0, true);
|
||||
$table->data[0][2] = __('Type');
|
||||
$table->data[0][2] .= html_print_select($types, 'type_filter', $typeFilter, '', __('All'), 0, true);
|
||||
//$table->data[1][2] = $table->data[1][3] = '';
|
||||
|
||||
echo '<div id="form_filter" style="display: none;">';
|
||||
echo '<form method="post" action ="index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=filter&id_report=' . $idReport . '">';
|
||||
html_print_table ($table);
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
html_print_submit_button(__('Filter'), 'filter', false, 'class="sub upd"');
|
||||
html_print_input_hidden('action', 'filter');
|
||||
echo '</div>';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
|
||||
$form = '<form method="post" action ="index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=filter&id_report=' . $idReport . '">';
|
||||
$form .= html_print_table ($table,true);
|
||||
$form .= '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
$form .= html_print_submit_button(__('Filter'), 'filter', false, 'class="sub upd"',true);
|
||||
$form .= html_print_input_hidden('action', 'filter',true);
|
||||
$form .= '</div>';
|
||||
$form .= '</form>';
|
||||
|
||||
ui_toggle($form, __("Filters") );
|
||||
}
|
||||
else {
|
||||
$table = new stdClass();
|
||||
@ -318,7 +309,7 @@ if ($items) {
|
||||
$table->align[7] = 'center';
|
||||
}
|
||||
else {
|
||||
echo '<br><br><div class="nf">'. __('No items') . '</div>';
|
||||
ui_print_info_message ( array ( 'no_close' => true, 'message' => __('No items.') ) );
|
||||
}
|
||||
|
||||
$lastPage = true;
|
||||
@ -455,10 +446,8 @@ if (defined("METACONSOLE")) {
|
||||
ui_pagination ($countItems, 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
||||
echo "<form action='index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=delete_items&id_report=" . $idReport . "'
|
||||
method='post' onSubmit='return added_ids_deleted_items_to_hidden_input();'>";
|
||||
if (defined("METACONSOLE"))
|
||||
echo "<div style='text-align: right; width:100%'>";
|
||||
else
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:100%'>";
|
||||
echo "<div style='text-align: right; width:100%'>";
|
||||
|
||||
if (check_acl ($config['id_user'], 0, "RM")) {
|
||||
html_print_input_hidden('ids_items_to_delete', '');
|
||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||
@ -468,23 +457,22 @@ if (defined("METACONSOLE")) {
|
||||
}
|
||||
}
|
||||
else {
|
||||
ui_pagination ($countItems,
|
||||
'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
||||
html_print_table($table);
|
||||
ui_pagination ($countItems,
|
||||
'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
||||
|
||||
echo "<form action='index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=delete_items&id_report=" . $idReport . "'
|
||||
method='post' onSubmit='return added_ids_deleted_items_to_hidden_input();'>";
|
||||
if (defined("METACONSOLE"))
|
||||
echo "<div style='text-align: right; width:100%'>";
|
||||
else
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:100%'>";
|
||||
if ($items != false) {
|
||||
ui_pagination ($countItems,
|
||||
'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
||||
html_print_table($table);
|
||||
ui_pagination ($countItems,
|
||||
'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
||||
|
||||
html_print_input_hidden('ids_items_to_delete', '');
|
||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
echo "<form action='index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=delete_items&id_report=" . $idReport . "'
|
||||
method='post' onSubmit='return added_ids_deleted_items_to_hidden_input();'>";
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:100%'>";
|
||||
|
||||
html_print_input_hidden('ids_items_to_delete', '');
|
||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
}
|
||||
}
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
|
@ -42,9 +42,9 @@ switch ($action) {
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->id = 'add_alert_table';
|
||||
$table->class = 'databox';
|
||||
$table->class = 'databox filters';
|
||||
$table->head = array ();
|
||||
|
||||
if (defined("METACONSOLE")) {
|
||||
|
@ -466,6 +466,7 @@ switch ($action) {
|
||||
$table = new stdClass();
|
||||
$table->width = '0px';
|
||||
if (sizeof ($reports)) {
|
||||
$table = new stdClass();
|
||||
$table->id = 'report_list';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
@ -520,7 +521,8 @@ switch ($action) {
|
||||
|
||||
//$table->size = array ();
|
||||
$table->size[$next] = '5%';
|
||||
$table->style[$next] = 'text-align:center;';
|
||||
$table->align[$next] = 'center';
|
||||
$table->headstyle[$next] = 'text-align:center;';
|
||||
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,6 @@ switch ($action) {
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
if (defined('METACONSOLE')) {
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __("Create visual console");
|
||||
$table->head_colspan[0] = 5;
|
||||
@ -95,6 +94,7 @@ if (defined('METACONSOLE')) {
|
||||
$table->align[0] = 'left';
|
||||
$table->align[1] = 'left';
|
||||
}
|
||||
$table->class = 'databox filters';
|
||||
$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);
|
||||
|
@ -71,6 +71,7 @@ foreach ($all_images as $image_file) {
|
||||
$table = new stdClass();
|
||||
if (!defined('METACONSOLE')) {
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
}
|
||||
else {
|
||||
$table->width = '100%';
|
||||
@ -84,9 +85,9 @@ $table->head[2] = __('Width x Height<br>Max value');
|
||||
$table->head[3] = __('Period') . ' / ' . __('Position');
|
||||
$table->head[4] = __('Parent') . ' / ' . __('Map linked');
|
||||
$table->head[5] = "";
|
||||
$table->head[5] .= html_print_checkbox('head_multiple_delete',
|
||||
$table->head[5] .= ' ' . html_print_checkbox('head_multiple_delete',
|
||||
'', false, true, false, 'toggle_checkbox_multiple_delete();');
|
||||
$table->head[5] .= '<span title="' . __('Action') . '">' .
|
||||
$table->head[5] .= ' <span title="' . __('Action') . '">' .
|
||||
__('A.') . '</span>';
|
||||
|
||||
$table->size = array();
|
||||
@ -95,24 +96,27 @@ $table->size[0] = '25%';
|
||||
$table->align = array();
|
||||
|
||||
if (!defined('METACONSOLE')) {
|
||||
$table->headstyle[0] = "text-align:left;";
|
||||
$table->headstyle[1] = "text-align:left";
|
||||
$table->headstyle[2] = "text-align:left";
|
||||
$table->headstyle[3] = "text-align:left";
|
||||
$table->headstyle[4] = "text-align:left";
|
||||
$table->headstyle[5] = "text-align:left";
|
||||
$table->align[0] = "left";
|
||||
$table->align[1] = "right";
|
||||
$table->align[2] = "center";
|
||||
$table->align[3] = "center";
|
||||
$table->align[4] = "right";
|
||||
$table->align[5] = "center";
|
||||
$table->align[1] = "left";
|
||||
$table->align[2] = "left";
|
||||
$table->align[3] = "left";
|
||||
$table->align[4] = "left";
|
||||
$table->align[5] = "left";
|
||||
}
|
||||
$table->data = array();
|
||||
|
||||
//Background
|
||||
$table->data[0]['icon'] = '';
|
||||
$table->data[0][0] = __('Background');
|
||||
$table->data[0][1] = html_print_select($backgrounds_list, 'background',
|
||||
$visualConsole['background'], '', 'None', '', true, false, true, '',
|
||||
false, 'width: 120px;');
|
||||
$table->data[0][2] = html_print_input_text('width',
|
||||
$visualConsole['width'], '', 3, 5, true) .
|
||||
'x' .
|
||||
$table->data[0][1] = html_print_select($backgrounds_list, 'background', $visualConsole['background'], '', 'None', '', true, false, true, '', false, 'width: 120px;');
|
||||
$table->data[0][2] = html_print_input_text('width', $visualConsole['width'], '', 3, 5, true) .
|
||||
' x ' .
|
||||
html_print_input_text('height', $visualConsole['height'], '', 3, 5, true);
|
||||
$table->data[0][3] = $table->data[0][4] = $table->data[0][5] = '';
|
||||
|
||||
@ -256,9 +260,8 @@ foreach ($layoutDatas as $layoutData) {
|
||||
$table->data[$i + 1][2] = '';
|
||||
break;
|
||||
default:
|
||||
$table->data[$i + 1][2] = html_print_input_text(
|
||||
'width_' . $idLayoutData, $layoutData['width'], '', 2, 5, true) .
|
||||
'x' .
|
||||
$table->data[$i + 1][2] = html_print_input_text('width_' . $idLayoutData, $layoutData['width'], '', 2, 5, true) .
|
||||
' x ' .
|
||||
html_print_input_text('height_' . $idLayoutData, $layoutData['height'], '', 2, 5, true);
|
||||
break;
|
||||
}
|
||||
@ -270,11 +273,9 @@ foreach ($layoutDatas as $layoutData) {
|
||||
$table->data[$i + 1][3] = '';
|
||||
break;
|
||||
default:
|
||||
$table->data[$i + 1][3] = '(' .
|
||||
html_print_input_text('left_' . $idLayoutData,
|
||||
$layoutData['pos_x'], '', 2, 5, true) .
|
||||
',' . html_print_input_text('top_' . $idLayoutData, $layoutData['pos_y'], '', 2, 5, true) .
|
||||
')';
|
||||
$table->data[$i + 1][3] = '( ' . html_print_input_text('left_' . $idLayoutData, $layoutData['pos_x'], '', 2, 5, true) .
|
||||
' , ' . html_print_input_text('top_' . $idLayoutData, $layoutData['pos_y'], '', 2, 5, true) .
|
||||
' )';
|
||||
break;
|
||||
}
|
||||
|
||||
@ -497,22 +498,14 @@ else {
|
||||
echo "<form method='post' action='index.php?operation=edit_visualmap&sec=screen&sec2=screens/screens&action=visualmap&pure=0&tab=list_elements&id_visual_console=" . $idVisualConsole . "'>";
|
||||
}
|
||||
if (!defined('METACONSOLE'))
|
||||
echo '<div class="action-buttons" style="width: ' . $table->width . '">';
|
||||
echo '<div class="action-buttons" style="width: ' . $table->width . '; margin-bottom:15px;">';
|
||||
if (!defined('METACONSOLE')) {
|
||||
html_print_input_hidden ('action', 'update');
|
||||
}
|
||||
else {
|
||||
html_print_input_hidden ('action2', 'update');
|
||||
}
|
||||
if (!defined('METACONSOLE')) {
|
||||
echo "<br>";
|
||||
|
||||
html_print_input_hidden ('id_visual_console', $visualConsole["id"]);
|
||||
html_print_submit_button (__('Update'), 'go', false, 'class="sub next"');
|
||||
echo " ";
|
||||
html_print_button(__('Delete'), 'delete', false, 'submit_delete_multiple_items();', 'class="sub delete"');
|
||||
echo '</div>';
|
||||
}
|
||||
html_print_table($table);
|
||||
|
||||
echo '<div class="action-buttons" style="width: ' . $table->width . '">';
|
||||
|
@ -249,14 +249,15 @@ $color=1;
|
||||
if ($result !== false) {
|
||||
$table = new StdClass();
|
||||
$table->head = array (__('Name'), __('Network'), __('Mode'), __('Group'), __('Incident'), __('OS'), __('Interval'), __('Ports'), __('Action'));
|
||||
$table->align = array ("","","","center","","","center","center");
|
||||
$table->width = "99%";
|
||||
$table->align = array ("left","left","left","left","left","left","left","left");
|
||||
$table->width = "100%";
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->class = "databox";
|
||||
$table->class = "databox data";
|
||||
$table->data = array ();
|
||||
|
||||
$table->style[8] = 'text-align: center;';
|
||||
$table->style[8] = 'text-align: left;';
|
||||
$table->size[8] = '15%';
|
||||
|
||||
foreach ($result as $row) {
|
||||
$data = array();
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user