mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-16 18:34:55 +02:00
* extensions/module_groups/brick.png images/skin/skin_default/images/agents_group.png images/skin/skin_default/images/note.png images/skin/skin_default/images/os_icons/android_small.png: Added new icons. * include/styles/pandora.css include/functions_ui.php extensions/insert_data.php extensions/system_info.php extensions/pandora_logs.php extensions/agents_modules.php extensions/resource_registration.php extensions/resource_exportation.php extensions/module_groups.php extensions/update_manager/main.php extensions/plugin_registration.php operation/extensions.php operation/visual_console/render_view.php operation/visual_console/index.php operation/agentes/status_monitor.php operation/agentes/alerts_status.php operation/agentes/estado_ultimopaquete.php operation/agentes/custom_fields.php operation/agentes/estado_generalagente.php operation/agentes/estado_agente.php operation/agentes/status_events.php operation/agentes/sla_view.php operation/agentes/exportdata.php operation/agentes/estado_monitores.php operation/agentes/ver_agente.php operation/agentes/group_view.php operation/agentes/networkmap.php operation/users/user_edit.php operation/gis_maps/index.php operation/events/events_list.php operation/messages/message.php operation/reporting/custom_reporting.php images/skin/skin_default/include/styles/pandora.css extras/pandora_diag.php general/logon_ok.php godmode/groups/modu_group_list.php godmode/groups/configure_group.php godmode/groups/configure_modu_group.php godmode/groups/group_list.php godmode/admin_access_logs.php godmode/extensions.php godmode/db/db_main.php godmode/db/db_audit.php godmode/db/db_sanity.php godmode/db/db_refine.php godmode/db/db_info.php godmode/db/db_event.php godmode/db/db_purge.php godmode/agentes/agent_template.php godmode/agentes/module_manager_editor_common.php godmode/agentes/fields_manager.php godmode/agentes/agent_conf_gis.php godmode/agentes/module_manager.php godmode/agentes/modificar_agente.php godmode/agentes/configurar_agente.php godmode/agentes/configure_field.php godmode/agentes/planned_downtime.php godmode/agentes/manage_config_remote.php godmode/agentes/agent_manager.php godmode/servers/recon_script.php godmode/servers/plugin.php godmode/servers/modificar_server.php godmode/servers/manage_recontask_form.php godmode/alerts/alert_list.list.php godmode/alerts/configure_alert_compound.php godmode/alerts/alert_compounds.php godmode/alerts/configure_alert_template.php godmode/alerts/alert_templates.php godmode/alerts/configure_alert_action.php godmode/alerts/configure_alert_command.php godmode/alerts/alert_actions.php godmode/alerts/alert_list.builder.php godmode/alerts/alert_commands.php godmode/snmpconsole/snmp_alert.php godmode/snmpconsole/snmp_filters.php godmode/setup/os.list.php godmode/setup/news.php godmode/setup/links.php godmode/setup/setup.php godmode/setup/performance.php godmode/setup/setup_auth.php godmode/setup/gis.php godmode/setup/os.builder.php godmode/setup/setup_visuals.php godmode/users/user_list.php godmode/users/configure_user.php godmode/gis_maps/configure_gis_map.php godmode/gis_maps/index.php godmode/massive/massive_add_alerts.php godmode/massive/massive_copy_modules.php godmode/massive/massive_delete_agents.php godmode/massive/massive_enable_disable_alerts.php godmode/massive/massive_delete_profiles.php godmode/massive/massive_edit_agents.php godmode/massive/massive_delete_action_alerts.php godmode/massive/massive_delete_modules.php godmode/massive/massive_add_profiles.php godmode/massive/massive_delete_alerts.php godmode/massive/massive_edit_modules.php godmode/massive/massive_standby_alerts.php godmode/massive/massive_add_action_alerts.php godmode/modules/manage_nc_groups_form.php godmode/modules/manage_network_templates.php godmode/modules/module_list.php godmode/modules/manage_network_components_form_common.php godmode/modules/manage_network_components_form_network.php godmode/modules/manage_network_templates_form.php godmode/modules/manage_network_components_form_wmi.php godmode/modules/manage_network_components.php godmode/modules/manage_nc_groups.php godmode/reporting/visual_console_builder.wizard.php godmode/reporting/graph_builder.main.php godmode/reporting/reporting_builder.list_items.php godmode/reporting/reporting_builder.main.php godmode/reporting/visual_console_builder.data.php godmode/reporting/graph_builder.graph_editor.php godmode/reporting/reporting_builder.php godmode/reporting/reporting_builder.item_editor.php godmode/reporting/map_builder.php godmode/reporting/graphs.php godmode/tag/tag.php godmode/tag/edit_tag.php: Css style improvements. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4494 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
93 lines
2.7 KiB
PHP
93 lines
2.7 KiB
PHP
<?php
|
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
// ==================================================
|
|
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
|
|
// Please see http://pandorafms.org for full contribution list
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
// modify it under the terms of the GNU General Public License
|
|
// as published by the Free Software Foundation for version 2.
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// Load global vars
|
|
global $config;
|
|
|
|
check_login ();
|
|
|
|
if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
|
db_pandora_audit("ACL Violation", "Trying to access Setup Management");
|
|
require ("general/noaccess.php");
|
|
return;
|
|
}
|
|
|
|
echo '<form id="form_setup" method="post">';
|
|
$table = null;
|
|
$table->width = '98%';
|
|
|
|
$table->style[0] = 'font-weight: bolder; vertical-align: top;';
|
|
|
|
$table->data[0][0] = __('Name:');
|
|
$table->data[0][1] = html_print_input_text('name', $name, __('Name'), 20, 30, true);
|
|
$table->data[1][0] = __('Description');
|
|
$table->data[1][1] = html_print_textarea('description', 5, 10, $description, '', true);
|
|
$icons = get_list_os_icons_dir();
|
|
$table->data[2][0] = __('Icon');
|
|
$table->data[2][1] = html_print_select($icons, 'icon', $icon, 'show_icon_OS();', __('None'), 0, true);
|
|
$table->data[2][1] .= ' <span id="icon_image">' . ui_print_os_icon($idOS, false, true) . '</span>';
|
|
|
|
echo '<form action="post">';
|
|
html_print_table($table);
|
|
|
|
html_print_input_hidden('id_os', $idOS);
|
|
html_print_input_hidden ('action', $actionHidden);
|
|
|
|
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
|
html_print_submit_button ($textButton, 'update_button', false, $classButton);
|
|
echo '</div>';
|
|
echo '</form>';
|
|
|
|
function get_list_os_icons_dir() {
|
|
global $config;
|
|
|
|
$return = array();
|
|
|
|
$items = scandir($config['homedir'] . '/images/os_icons');
|
|
|
|
foreach ($items as $item) {
|
|
if (strstr($item, '_small.png') || strstr($item, '_small.gif')
|
|
|| strstr($item, '_small.jpg')) {
|
|
continue;
|
|
}
|
|
if (strstr($item, '.png') || strstr($item, '.gif')
|
|
|| strstr($item, '.jpg')) {
|
|
$return[$item] = $item;
|
|
}
|
|
}
|
|
|
|
return $return;
|
|
}
|
|
?>
|
|
<script type="text/javascript">
|
|
|
|
function show_icon_OS() {
|
|
|
|
var params = [];
|
|
params.push("get_image_path=1");
|
|
params.push('img_src=images/os_icons/' + $("#icon").val());
|
|
params.push("page=include/ajax/skins.ajax");
|
|
jQuery.ajax ({
|
|
data: params.join ("&"),
|
|
type: 'POST',
|
|
url: action="ajax.php",
|
|
async: false,
|
|
timeout: 10000,
|
|
success: function (data) {
|
|
$("#icon_image").html(data);
|
|
}
|
|
});
|
|
}
|
|
</script>
|