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

Diff for /mandoc/cgi.c between version 1.131 and 1.132

version 1.131, 2016/04/29 10:45:36 version 1.132, 2016/05/28 13:40:48
Line 385  resp_searchform(const struct req *req, enum focus focu
Line 385  resp_searchform(const struct req *req, enum focus focu
   
         /* Write query input box. */          /* Write query input box. */
   
         printf( "<table><tr><td>\n"          printf("<input type=\"text\" name=\"query\" value=\"");
                 "<input type=\"text\" name=\"query\" value=\"");  
         if (req->q.query != NULL)          if (req->q.query != NULL)
                 html_print(req->q.query);                  html_print(req->q.query);
         printf( "\" size=\"40\"");          printf( "\" size=\"40\"");
Line 394  resp_searchform(const struct req *req, enum focus focu
Line 393  resp_searchform(const struct req *req, enum focus focu
                 printf(" autofocus");                  printf(" autofocus");
         puts(">");          puts(">");
   
         /* Write submission and reset buttons. */          /* Write submission buttons. */
   
         printf( "<input type=\"submit\" value=\"Submit\">\n"          printf( "<button type=\"submit\" name=\"apropos\" value=\"0\">"
                 "<input type=\"reset\" value=\"Reset\">\n");                  "man</button>\n"
                   "<button type=\"submit\" name=\"apropos\" value=\"1\">"
                   "apropos</button>\n<br/>\n");
   
         /* Write show radio button */  
   
         printf( "</td><td>\n"  
                 "<input type=\"radio\" ");  
         if (req->q.equal)  
                 printf("checked=\"checked\" ");  
         printf( "name=\"apropos\" id=\"show\" value=\"0\">\n"  
                 "<label for=\"show\">Show named manual page</label>\n");  
   
         /* Write section selector. */          /* Write section selector. */
   
         puts(   "</td></tr><tr><td>\n"          puts("<select name=\"sec\">");
                 "<select name=\"sec\">");  
         for (i = 0; i < sec_MAX; i++) {          for (i = 0; i < sec_MAX; i++) {
                 printf("<option value=\"%s\"", sec_numbers[i]);                  printf("<option value=\"%s\"", sec_numbers[i]);
                 if (NULL != req->q.sec &&                  if (NULL != req->q.sec &&
Line 454  resp_searchform(const struct req *req, enum focus focu
Line 445  resp_searchform(const struct req *req, enum focus focu
                 puts("</select>");                  puts("</select>");
         }          }
   
         /* Write search radio button */          puts("</fieldset>\n"
   
         printf( "</td><td>\n"  
                 "<input type=\"radio\" ");  
         if (0 == req->q.equal)  
                 printf("checked=\"checked\" ");  
         printf( "name=\"apropos\" id=\"search\" value=\"1\">\n"  
                 "<label for=\"search\">Search with apropos query</label>\n");  
   
         puts("</td></tr></table>\n"  
              "</fieldset>\n"  
              "</form>\n"               "</form>\n"
              "</div>");               "</div>");
         puts("<!-- End search form. //-->");          puts("<!-- End search form. //-->");

Legend:
Removed from v.1.131  
changed lines
  Added in v.1.132

CVSweb