[BACK]Return to cgi.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/cgi.c between version 1.59 and 1.60

version 1.59, 2014/07/09 16:23:01 version 1.60, 2014/07/09 17:03:07
Line 381  resp_searchform(const struct req *req)
Line 381  resp_searchform(const struct req *req)
         html_print(req->q.arch ? req->q.arch : "");          html_print(req->q.arch ? req->q.arch : "");
         printf("\">");          printf("\">");
         if (req->psz > 1) {          if (req->psz > 1) {
                 puts(", <SELECT NAME=\"manpath\">");                  puts(", in <SELECT NAME=\"manpath\">");
                 for (i = 0; i < (int)req->psz; i++) {                  for (i = 0; i < (int)req->psz; i++) {
                         printf("<OPTION ");                          printf("<OPTION ");
                         if (NULL == req->q.manpath ? 0 == i :                          if (NULL == req->q.manpath ? 0 == i :
Line 395  resp_searchform(const struct req *req)
Line 395  resp_searchform(const struct req *req)
                 }                  }
                 puts("</SELECT>");                  puts("</SELECT>");
         }          }
         puts(".\n"          puts("&mdash;\n"
              "<INPUT TYPE=\"reset\" VALUE=\"Reset\">\n"               "<INPUT TYPE=\"reset\" VALUE=\"Reset\">\n"
              "</FIELDSET>\n"               "</FIELDSET>\n"
              "</FORM>\n"               "</FORM>\n"
Line 408  resp_index(const struct req *req)
Line 408  resp_index(const struct req *req)
 {  {
   
         resp_begin_html(200, NULL);          resp_begin_html(200, NULL);
           puts("<H1>\n"
                "Online manuals with "
                "<A HREF=\"http://mdocml.bsd.lv/\">mandoc</A>\n"
                "</H1>");
         resp_searchform(req);          resp_searchform(req);
           puts("<P>\n"
                "The <A HREF=\"search?expr=Nm~^apropos$&amp;sec=1\">"
                "apropos</A> manual explains the query syntax.\n"
                "</P>");
         resp_end_html();          resp_end_html();
 }  }
   

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.60

CVSweb