mirror of
https://git.zx2c4.com/cgit
synced 2025-07-24 12:45:10 +02:00
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>
This commit is contained in:
parent
27cd3b2a70
commit
e39d738c39
7 changed files with 51 additions and 5 deletions
10
html.c
10
html.c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue