diff options
| author | Lars Hjemli <hjemli@gmail.com> | 2006-12-28 02:01:49 +0100 | 
|---|---|---|
| committer | Lars Hjemli <hjemli@gmail.com> | 2006-12-28 02:01:49 +0100 | 
| commit | e39d738c39d37cdef115c145027f3eec85a62272 (patch) | |
| tree | be60a07674a0d118d42f572a35b62ada9529a6bd /html.c | |
| parent | Test for NULL-pointers in html_txt() and friends (diff) | |
| download | cgit-e39d738c39d37cdef115c145027f3eec85a62272.tar.gz cgit-e39d738c39d37cdef115c145027f3eec85a62272.tar.bz2 cgit-e39d738c39d37cdef115c145027f3eec85a62272.zip | |
Add generic support for search box in page header
This adds the ability to show a search box in any pageheader with correct href and
hidden form data, but does not enable the box on any pages.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
| -rw-r--r-- | html.c | 10 | 
1 files changed, 10 insertions, 0 deletions
| @@ -117,6 +117,15 @@ void html_attr(char *txt)  		html(txt);  } +void html_hidden(char *name, char *value) +{ +	html("<input type='hidden' name='"); +	html_attr(name); +	html("' value='"); +	html_attr(value); +	html("'/>"); +} +  void html_link_open(char *url, char *title, char *class)  {  	html("<a href='"); @@ -155,3 +164,4 @@ void html_filemode(unsigned short mode)  	html_fileperm(mode >> 3);  	html_fileperm(mode);  } + | 
