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);
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);
}
{
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 (),