summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 04aa292)
raw | patch | inline | side by side (parent: 04aa292)
author | Florian Forster <ff@octo.it> | |
Mon, 21 Jun 2010 13:27:59 +0000 (15:27 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 21 Jun 2010 13:27:59 +0000 (15:27 +0200) |
src/action_list_graphs.c | patch | blob | history | |
src/action_show_graph.c | patch | blob | history | |
src/utils_cgi.c | patch | blob | history |
index e32b99983436ae93fe888fe6b71ea7dab2c2a02b..86d6e433e2abe08b11d5f3060d5dde26590f53d3 100644 (file)
--- a/src/action_list_graphs.c
+++ b/src/action_list_graphs.c
host_html = html_escape (host);
- printf (" <li><a href=\"%s?action=list_graphs&search=%s\">%s</a></li>\n",
+ printf (" <li><a href=\"%s?action=list_graphs&q=%s\">%s</a></li>\n",
script_name (), host_html, host_html);
free (host_html);
gl_update ();
- search = strtolower_copy (param ("search"));
-
+ search = strtolower_copy (param ("q"));
status = list_graphs_html (search);
-
free (search);
return (status);
index 5aaf25afc2f4757b5d42739476da078f0491e652..2f124de41974ec2b0ed926355fa29ea57ad060e3 100644 (file)
--- a/src/action_show_graph.c
+++ b/src/action_show_graph.c
else
{
char *str_html = html_escape (str);
- printf ("<a href=\"%s?action=list_graphs;search=%s\">%s</a>",
+ printf ("<a href=\"%s?action=list_graphs;q=%s\">%s</a>",
script_name (), str_html, str_html);
free (str_html);
}
diff --git a/src/utils_cgi.c b/src/utils_cgi.c
index 9030eb8b31a5354f8d0ff8ba45db2e4eef44de95..97dfc7c60b9a9bdd6e8b588d7645fcd9a8ea63c4 100644 (file)
--- a/src/utils_cgi.c
+++ b/src/utils_cgi.c
{
char *term_html;
- term_html = html_escape (param ("search"));
+ term_html = html_escape (param ("q"));
- printf ("<form action=\"%s\" method=\"get\">\n"
+ printf ("<form action=\"%s\" method=\"get\" id=\"search-form\">\n"
" <input type=\"hidden\" name=\"action\" value=\"list_graphs\" />\n"
- " <input type=\"text\" name=\"search\" value=\"%s\" id=\"search-input\" />\n"
+ " <input type=\"text\" name=\"q\" value=\"%s\" id=\"search-input\" />\n"
" <input type=\"submit\" name=\"button\" value=\"Search\" />\n"
"</form>\n",
script_name (),