summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2c85f87)
raw | patch | inline | side by side (parent: 2c85f87)
author | Florian Forster <ff@octo.it> | |
Sat, 19 Jun 2010 06:15:54 +0000 (08:15 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 19 Jun 2010 06:15:54 +0000 (08:15 +0200) |
src/action_list_graphs.c | patch | blob | history |
index b360c1ddbab1400739306b770740e6962c23e708..cb2e31de143a6e123b2fea81d75e1eb4337cdac3 100644 (file)
--- a/src/action_list_graphs.c
+++ b/src/action_list_graphs.c
callback_data_t data = { NULL };
printf ("Content-Type: text/html\n\n");
- printf ("<ul>\n");
+ printf ("<html>\n <head>\n");
+ if (term != NULL)
+ printf (" <title>c4: Graphs matching "%s"</title>\n", term);
+ else
+ printf (" <title>c4: List of all graphs</title>\n");
+ printf (" </head>\n <body>\n");
+
+ printf ("<form action=\"%s\" method=\"get\">\n"
+ " <input type=\"hidden\" name=\"action\" value=\"list_graphs\" />\n"
+ " <input type=\"text\" name=\"search\" value=\"%s\" />\n"
+ " <input type=\"submit\" name=\"button\" value=\"Search\" />\n"
+ "</form>\n",
+ script_name (), (term != NULL) ? term : "");
+
+ printf (" <ul>\n");
if (term == NULL)
gl_instance_get_all (print_graph_inst_html, /* user_data = */ &data);
else
gl_search (term, print_graph_inst_html, /* user_data = */ &data);
if (data.cfg != NULL)
- printf (" </ul></li>\n");
+ printf (" </ul></li>\n");
+
+ printf (" </ul>\n");
- printf ("</ul>\n");
+ printf (" </body>\n</html>\n");
return (0);
} /* }}} int list_graphs_html */