-static int print_search_box (void *user_data) /* {{{ */
-{
- page_data_t *data = user_data;
- char *term_html;
-
- if (data == NULL)
- {
- fprintf (stderr, "print_search_box: data == NULL\n");
- return (EINVAL);
- }
-
- term_html = html_escape (data->search_term);
-
- printf ("<form action=\"%s\" method=\"get\">\n"
- " <input type=\"hidden\" name=\"action\" value=\"list_graphs\" />\n"
- " <input type=\"text\" name=\"search\" value=\"%s\" id=\"search-input\" />\n"
- " <input type=\"submit\" name=\"button\" value=\"Search\" />\n"
- "</form>\n",
- script_name (),
- (term_html != NULL) ? term_html : "");
-
- free (term_html);
-
- return (0);
-} /* }}} int print_search_box */
-