- printf ("<a href=\"%s?action=list_graphs;q=%s\">%s</a>",
- script_name (), str_html, str_html);
+
+ if (field_name != NULL)
+ printf ("<a href=\"%s?action=list_graphs;q=%s:%s\">%s</a>",
+ script_name (), field_name, str_html, str_html);
+ else
+ printf ("<a href=\"%s?action=list_graphs;q=%s\">%s</a>",
+ script_name (), str_html, str_html);
+