index b58d6bb2a2aebe59f33e3c972b8efab1a06eed44..0e7b963187e1202444bc31267ef388b5e13a3b86 100644 (file)
--- a/src/action_list_hosts.c
+++ b/src/action_list_hosts.c
#include <fcgiapp.h>
#include <fcgi_stdio.h>
+static int left_menu (__attribute__((unused)) void *user_data) /* {{{ */
+{
+ printf ("\n<ul class=\"menu left\">\n"
+ " <li><a href=\"%s?action=search\">Search</a></li>\n"
+ " <li><a href=\"%s?action=list_graphs\">All graphs</a></li>\n"
+ "</ul>\n",
+ script_name (), script_name ());
+
+ return (0);
+} /* }}} int left_menu */
+
static int print_one_host (const char *host, /* {{{ */
__attribute__((unused)) void *user_data)
{
int action_list_hosts (void) /* {{{ */
{
- gl_update ();
-
page_callbacks_t pg_callbacks = PAGE_CALLBACKS_INIT;
char title[512];
title[sizeof (title) - 1] = 0;
pg_callbacks.top_right = html_print_search_box;
+ pg_callbacks.middle_left = left_menu;
pg_callbacks.middle_center = print_all_hosts;
html_print_page (title, &pg_callbacks, /* user data = */ NULL);