class = 'databox filters'; $table->width = '100%'; $table->data = array (); $table->style = array (); $table->style[0] = 'font-weight: bold;'; $table->style[2] = 'font-weight: bold'; $table->style[4] = 'font-weight: bold'; $table->style[6] = 'font-weight: bold'; /* Source selection */ $table->id = 'source_table'; $table->data[0][0] = __('Group'); $table->data[0][1] = html_print_select_groups(false, "AW", true, 'source_id_group', $source_id_group, false, '', '', true); $table->data[0][2] = __('Group recursion'); $table->data[0][3] = html_print_checkbox ("source_recursion", 1, $source_recursion, true, false); $status_list = array (); $status_list[AGENT_STATUS_NORMAL] = __('Normal'); $status_list[AGENT_STATUS_WARNING] = __('Warning'); $status_list[AGENT_STATUS_CRITICAL] = __('Critical'); $status_list[AGENT_STATUS_UNKNOWN] = __('Unknown'); $status_list[AGENT_STATUS_NOT_NORMAL] = __('Not normal'); $status_list[AGENT_STATUS_NOT_INIT] = __('Not init'); $table->data[0][4] = __('Status'); $table->data[0][5] = html_print_select($status_list, 'status_agents_source', 'selected', '', __('All'), AGENT_STATUS_ALL, true); $table->data[0][6] = __('Agent'); $table->data[0][6] .= ' '; $table->data[0][6] .= html_print_image ("images/spinner.png", true); $table->data[0][6] .= ''; // $table->data[0][7] = html_print_select (agents_get_group_agents ($source_id_group, false, "none"), // 'source_id_agent', $source_id_agent, false, __('Select'), 0, true); $agents = ( $source_id_group ? agents_get_group_agents ($source_id_group, false, "none") : agents_get_group_agents (array_keys (users_get_groups ($config["id_user"], "AW", false))) ); $table->data[0][7] = html_print_select ($agents, 'source_id_agent', $source_id_agent, false, __('Select'), 0, true); echo '
'; echo '