source: branches/whiterussian/openwrt/package/webif/files/usr/lib/webif/common.awk @ 2088

Last change on this file since 2088 was 2088, checked in by nbd, 11 years ago

move some code in a shared awk script, add fast replacement functions for [ -z ] and [ = ], make code a bit more readable

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 532 bytes
Line 
1function start_form(title, field_opts) {
2        print "<div class=\"settings\">"
3        if (title != "") print "<div class=\"settings-title\"><h3><strong>" title "</strong></h3></div>"
4        print "<div class=\"settings-content\">"
5}
6
7function end_form(form_help, form_help_link) {
8        print "</div>"
9        if (form_help != "") form_help = "<dl>" form_help "</dl>"
10        print "<div class=\"settings-help\"><blockquote><h3><strong>Short help:</strong></h3>" form_help form_help_link "</blockquote></div>"
11        print "<div style=\"clear: both\">&nbsp;</div></div>"
12}
Note: See TracBrowser for help on using the repository browser.