From d235f96a83c2cd68c891ec53f6e0b4b2d1af3650 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 7 Feb 2006 04:36:56 +0000 Subject: [PATCH] webif: add more useful functions to the shared awk file SVN-Revision: 3174 --- .../package/webif/files/usr/lib/webif/common.awk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/openwrt/package/webif/files/usr/lib/webif/common.awk b/openwrt/package/webif/files/usr/lib/webif/common.awk index f8f44207d3..298dc251dd 100644 --- a/openwrt/package/webif/files/usr/lib/webif/common.awk +++ b/openwrt/package/webif/files/usr/lib/webif/common.awk @@ -10,3 +10,17 @@ function end_form(form_help, form_help_link) { print "

@TR<>:

" form_help form_help_link "
" print "
 
" } + +function textinput(name, value) { + return "" +} + +function button(name, caption) { + return ">\" />" +} + +function sel_option(name, caption, default, sel) { + if (default == name) sel = " selected=\"selected\"" + else sel = "" + return "" +} -- 2.30.2