'.__('Error').': '.__('Maximum is equal to minimum').''; return; } $origen_modulo = get_parameter_post ("origen_modulo", array ()); if (empty ($origen_modulo)) { echo '

'.__('Error').': '.__('No modules have been selected').'

'; return; } // Source (agent) $id_origen = (int) get_parameter_post ("origen", 0); // Copy foreach ($origen_modulo as $id_agentemodulo) { echo "

".__('Filtering data module')." [".get_agentmodule_name ($id_agentemodulo)."]"; $sql = sprintf ("DELETE FROM tagente_datos WHERE id_agente_modulo = %d AND (datos < '%s' OR datos > '%s')", $id_agentemodulo, $min, $max); process_sql ($sql); } } //if copy modules or alerts echo '

'.__('Filtering completed').'

'; } echo '
'; echo ""; echo '
'; echo '
'; echo ''.__('Source agent').'

'; $agent_selected = get_parameter_post ("origen", 0); $agents = get_group_agents (array_keys (get_user_groups ($config["id_user"], "AW"))); print_select ($agents, "origen", $agent_selected, 'javascript:this.form.update_agent.click();', __('No agent selected'), '0', false, false, false, 'w130'); echo '  '; print_submit_button (__('Get Info'), 'update_agent', false, 'style="display:none;"'); echo '

'; echo ''.__('Modules').'

'; $module_selected = get_parameter_post ("origen", array ()); $modules = get_agent_modules ($module_selected, false, 'delete_pending != 1'); print_select ($modules, "origen_modulo[]", $module_selected, '', '', '0', false, true, false, 'w130'); echo '
'; //Left div echo '
'.__('Purge data out of these limits').'

'; echo ''; echo ''; echo '
'; echo __('Minimum').': '; echo ''; print_input_text ("min", 0, __('Minimum'), 4, 0, false); echo '
'; echo __('Maximum').': '; echo ''; print_input_text ("max", 0, __('Maximum'), 4, 0, false); echo '
'; echo '
'; echo '
 
'; print_submit_button (__('Delete'), 'eliminar', false, 'class="sub delete" onClick="if (!confirm(\''.__('Are you sure?').'\')) return false;"'); echo '
'; ?>