2 <% if self.widget ==
"select" then %
>
3 <select onchange=
"cbi_d_update(this.id)" id=
"cbid.<%=self.config..".
"..section..".
"..self.option%>" name=
"cbid.<%=self.config..".
"..section..".
"..self.option%>"<% if self.size then %
> size=
"<%=self.size%>"<% end %
>>
4 <%for i, key in pairs(self.keylist) do%
>
5 <option<% if self:cfgvalue(section) == key then %
> selected=
"selected"<% end %
> value=
"<%=key%>"><%=self.vallist[i]%
></option>
8 <% elseif self.widget ==
"radio" then
10 for i, key in pairs(self.keylist) do
12 <%=self.vallist[i]%
><input type=
"radio" name=
"cbid.<%=self.config..".
"..section..".
"..self.option%>"<% if self:cfgvalue(section) == key then %
> checked=
"checked"<% end %
> value=
"<%=key%>" />
13 <% if c == self.size then c =
0 %
><br />