summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-voip_class.html
blob: afd3e1f8a9a5b8b564a60b772f64facf863f2371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<& tr-td-label.html, label => 'Category', @_ &>
<TD>
<SELECT NAME="<% $opt{'field'} %>">
% while(@options) {
%   my $value = shift @options;
%   my $selected = ($value eq $opt{'curr_value'}) ? 'SELECTED' : '';
  <OPTION VALUE="<% $value %>" <% $selected %>><% shift @options %></OPTION>
% }
</SELECT>
</TD></TR>
<%init>
my %opt = (
  field => 'fcc_voip_class',
  label => 'Category',
  @_
);
my @options = (
  '' => '',
   1 => 'VoIP without Broadband',
   2 => 'VoIP with Broadband',
   3 => 'Wholesale VoIP',
   4 => 'Local Exchange (non-VoIP)',
);

</%init>