diff options
Diffstat (limited to 'package/webif/files/usr/lib/webif/common.awk')
-rw-r--r-- | package/webif/files/usr/lib/webif/common.awk | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/package/webif/files/usr/lib/webif/common.awk b/package/webif/files/usr/lib/webif/common.awk deleted file mode 100644 index de3483e15..000000000 --- a/package/webif/files/usr/lib/webif/common.awk +++ /dev/null @@ -1,38 +0,0 @@ -function start_form(title, field_opts, field_opts2) { - print "<div class=\"settings\"" field_opts ">" - if (title != "") print "<div class=\"settings-title\"><h3><strong>" title "</strong></h3></div>" - print "<div class=\"settings-content\"" field_opts2 ">" -} - -function end_form(form_help, form_help_link) { - print "</div>" - if (form_help != "") form_help = "<dl>" form_help "</dl>" - print "<div class=\"settings-help\"><blockquote><h3><strong>@TR<<Short help>>:</strong></h3>" form_help form_help_link "</blockquote></div>" - print "<div style=\"clear: both\"> </div></div>" -} - -function textinput(name, value) { - return "<input type=\"text\" name=\"" name "\" value=\"" value "\" />" -} - -function hidden(name, value) { - return "<input type=\"hidden\" name=\"" name "\" value=\"" value "\" />" -} - -function button(name, caption) { - return "<input type=\"submit\" name=\"" name "\" value=\"@TR<<" caption ">>\" />" -} - -function helpitem(name) { - return "<dt>@TR<<" name ">>: </dt>" -} - -function helptext(short, name) { - return "<dd>@TR<<" short "|" name ">>: </dd>" -} - -function sel_option(name, caption, default, sel) { - if (default == name) sel = " selected=\"selected\"" - else sel = "" - return "<option value=\"" name "\"" sel ">@TR<<" caption ">></option>" -} |