'; echo '
'.__('Group').' | '; echo ''; print_select_groups(false, "AR", true, "ag_group", $ag_group, 'this.form.submit();', '', '0', false, false, false, 'w130', false, 'width:150px;'); echo " | "; echo "".__('Monitor status')." | "; $fields = array (); $fields[0] = __('Normal'); $fields[1] = __('Warning'); $fields[2] = __('Critical'); $fields[3] = __('Unknown'); $fields[4] = __('Not normal'); //default $fields[5] = __('Not init'); print_select ($fields, "status", $status, 'this.form.submit();', __('All'), -1, false, false, true, '', false, 'width: 125px;'); echo ' | '; echo ''.__('Module group').' | '; echo ''; print_select_from_sql ("SELECT * FROM tmodule_group ORDER BY name", 'modulegroup', $modulegroup, '',__('All'), 0, false, false, true, false, 'width: 100px;'); echo ' |
'.__('Module name').' | '; echo ''; $user_groups = implode (",", array_keys (get_user_groups ())); $user_agents = implode (",", array_keys (get_group_agents($user_groups))); $modules = get_db_all_rows_filter ('tagente_modulo', array('id_agente' => $user_agents, 'nombre' => '<>delete_pending'), 'DISTINCT(nombre)'); print_select (index_array ($modules, 'nombre', 'nombre'), "ag_modulename", $ag_modulename, 'this.form.submit();', __('All'), '', false, false, true, '', false, 'width: 150px;'); echo ' | '.__('Search').' | '; echo ''; print_input_text ("ag_freestring", $ag_freestring, '', 15,30, false); echo ' | '; print_submit_button (__('Show'), "uptbutton", false, 'class="sub search"'); echo ""; echo " |