2010-08-31 09:27:22 +02:00
|
|
|
<?php
|
|
|
|
|
2023-06-08 13:19:01 +02:00
|
|
|
// Pandora FMS - https://pandorafms.com
|
2010-08-31 09:27:22 +02:00
|
|
|
// ==================================================
|
2023-06-08 11:53:13 +02:00
|
|
|
// Copyright (c) 2005-2023 Pandora FMS
|
2023-06-08 13:19:01 +02:00
|
|
|
// Please see https://pandorafms.com/community/ for full contribution list
|
2010-08-31 09:27:22 +02:00
|
|
|
// This program is free software; you can redistribute it and/or
|
2011-03-23 19:48:26 +01:00
|
|
|
// modify it under the terms of the GNU General Public License
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// as published by the Free Software Foundation; version 2
|
2010-08-31 09:27:22 +02:00
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2010-08-31 09:27:22 +02:00
|
|
|
// GNU General Public License for more details.
|
|
|
|
global $config;
|
|
|
|
|
2023-05-04 16:01:08 +02:00
|
|
|
/*
|
|
|
|
enterprise_include_once('include/functions_policies.php');
|
|
|
|
require_once $config['homedir'].'/include/functions_users.php';*/
|
|
|
|
|
|
|
|
// Datatables list.
|
|
|
|
try {
|
|
|
|
$columns = [
|
|
|
|
'agent',
|
|
|
|
'comentarios',
|
|
|
|
'os',
|
|
|
|
'interval',
|
|
|
|
'group_icon',
|
|
|
|
'module',
|
|
|
|
'status',
|
|
|
|
'alert',
|
|
|
|
'last_contact',
|
|
|
|
];
|
|
|
|
|
|
|
|
$column_names = [
|
|
|
|
__('Agent'),
|
|
|
|
__('Description'),
|
|
|
|
__('OS'),
|
|
|
|
__('Interval'),
|
|
|
|
__('Group'),
|
|
|
|
__('Modules'),
|
|
|
|
__('Status'),
|
|
|
|
__('Alerts'),
|
|
|
|
__('Last contact'),
|
|
|
|
];
|
|
|
|
|
|
|
|
$tableId = 'agents_search';
|
2023-07-11 10:24:50 +02:00
|
|
|
$stringSearchSQL = $_SESSION['stringSearchSQL'];
|
2023-05-04 16:01:08 +02:00
|
|
|
|
2023-07-11 10:24:50 +02:00
|
|
|
unset($_SESSION['stringSearchSQL']);
|
2023-05-04 16:01:08 +02:00
|
|
|
// Load datatables user interface.
|
|
|
|
ui_print_datatable(
|
2023-03-10 12:40:21 +01:00
|
|
|
[
|
2023-05-04 16:01:08 +02:00
|
|
|
'id' => $tableId,
|
|
|
|
'class' => 'info_table',
|
|
|
|
'style' => 'width: 99%',
|
|
|
|
'columns' => $columns,
|
|
|
|
'column_names' => $column_names,
|
|
|
|
'ajax_url' => 'operation/search_agents.getdata',
|
2023-07-07 09:21:52 +02:00
|
|
|
'ajax_data' => [
|
|
|
|
'search_agents' => 1,
|
|
|
|
'stringSearchSQL' => $stringSearchSQL,
|
|
|
|
],
|
2023-05-04 16:01:08 +02:00
|
|
|
'order' => [
|
|
|
|
'field' => 'alias',
|
|
|
|
'direction' => 'asc',
|
|
|
|
],
|
|
|
|
'search_button_class' => 'sub filter float-right',
|
|
|
|
'filter_main_class' => 'box-flat white_table_graph fixed_filter_bar',
|
2023-03-10 12:40:21 +01:00
|
|
|
]
|
|
|
|
);
|
2013-05-14 11:33:13 +02:00
|
|
|
|
2023-05-08 09:42:17 +02:00
|
|
|
html_print_action_buttons('');
|
2023-05-04 16:01:08 +02:00
|
|
|
} catch (Exception $e) {
|
|
|
|
echo $e->getMessage();
|
2010-08-31 09:27:22 +02:00
|
|
|
}
|