"" . html_print_image("images/operating_system.png", true, array("title" => __('OS'))) . "", 'active' => ($tab == "os")); $tabs['group'] = array( 'text' => "" . html_print_image("images/group.png", true, array("title" => __('Groups'))) . "", 'active' => ($tab == "group")); $tabs['module_group'] = array( 'text' => "" . html_print_image("images/module_group.png", true, array("title" => __('Module groups'))) . "", 'active' => ($tab == "module_group")); $tabs['module'] = array( 'text' => "" . html_print_image("images/brick.png", true, array("title" => __('Modules'))) . "", 'active' => ($tab == "module")); $tabs['tag'] = array( 'text' => "" . html_print_image("images/tag.png", true, array("title" => __('Tags'))) . "", 'active' => ($tab == "tag")); $header_title = ""; switch ($tab) { case 'os': $header_title = __('Tree view - Sort the agents by OS'); break; case 'group': $header_title = __('Tree view - Sort the agents by groups'); break; case 'module_group': $header_title = __('Tree view - Sort the agents by module groups'); break; case 'module': $header_title = __('Tree view - Sort the agents by modules'); break; case 'tag': $header_title = __('Tree view - Sort the agents by tags'); break; } ui_print_page_header( $header_title, "images/extensions.png", false, "", false, $tabs); // ---------------------Tabs ------------------------------------------- // --------------------- form filter ----------------------------------- $table = null; $table->width = "100%"; $table->data[0][0] = __('Agent status'); $fields = array (); $fields[AGENT_STATUS_ALL] = __('All'); //default $fields[AGENT_STATUS_NORMAL] = __('Normal'); $fields[AGENT_STATUS_WARNING] = __('Warning'); $fields[AGENT_STATUS_CRITICAL] = __('Critical'); $fields[AGENT_STATUS_UNKNOWN] = __('Unknown'); $fields[AGENT_STATUS_NOT_INIT] = __('Not init'); $table->data[0][1] = html_print_select($fields, "status", $status, '', '', 0, true); $table->data[0][2] = __('Search agent'); $table->data[0][3] = html_print_input_text( "search", $search, '', 40, 30, true); $table->data[0][4] = html_print_submit_button( __('Filter'), "uptbutton", false, 'class="sub search"', true); html_print_table($table); // --------------------- form filter ----------------------------------- ui_require_javascript_file("TreeController", "include/javascript/tree/"); html_print_image('images/spinner.gif', false, array('class' => "loading_tree")); echo "
"; echo "
"; echo "
"; echo "
"; ?>