Changeset 3174


Ignore:
Timestamp:
2006-02-07T05:36:56+01:00 (10 years ago)
Author:
nbd
Message:

webif: add more useful functions to the shared awk file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/whiterussian/openwrt/package/webif/files/usr/lib/webif/common.awk

    r3140 r3174  
    1111        print "<div style=\"clear: both\">&nbsp;</div></div>" 
    1212} 
     13 
     14function textinput(name, value) { 
     15        return "<input type=\"text\" name=\"" name "\" value=\"" value "\" />" 
     16} 
     17 
     18function button(name, caption) { 
     19        return "<input type=\"submit\" name=\"" name "\" value=\"@TR<<" caption ">>\" />" 
     20} 
     21 
     22function sel_option(name, caption, default, sel) { 
     23        if (default == name) sel = " selected=\"selected\"" 
     24        else sel = "" 
     25        return "<option value=\"" name "\"" sel ">" caption "</option>" 
     26} 
Note: See TracChangeset for help on using the changeset viewer.