- <select name="<%= $i->key. $n %>" <%= $type eq 'selectmultiple' ? 'MULTIPLE' : '' %>>
- <%
- my %hash = ();
- if ( $i->select_enum ) {
- tie %hash, 'Tie::IxHash',
- '' => '', map { $_ => $_ } @{ $i->select_enum };
- } elsif ( $i->select_hash ) {
- if ( ref($i->select_hash) eq 'ARRAY' ) {
- tie %hash, 'Tie::IxHash',
- '' => '', @{ $i->select_hash };
- } else {
- tie %hash, 'Tie::IxHash',
- '' => '', %{ $i->select_hash };
- }
- } else {
- %hash = ( '' => 'WARNING: neither select_enum nor select_hash specified in Conf.pm for configuration option "'. $i->key. '"' );
- }
-
- my %saw = ();
- foreach my $value ( keys %hash ) {
- local($^W)=0; next if $saw{$value}++;
- my $label = $hash{$value};
- %>
-
- <option value="<%= $value %>"<%= $value eq $conf->config($i->key) || ( $type eq 'selectmultiple' && grep { $_ eq $value } $conf->config($i->key) ) ? ' SELECTED' : '' %>><%= $label %>
-
- <% } %>
-
- <% my $curvalue = $conf->config($i->key);
- if ( $conf->exists($i->key) && $curvalue
- && ! $hash{$curvalue}
- ) {
- %>
+ <select name="<% $i->key. $n %>" <% $type eq 'selectmultiple' ? 'MULTIPLE' : '' %>>
+%
+% my %hash = ();
+% if ( $i->select_enum ) {
+% tie %hash, 'Tie::IxHash',
+% '' => '', map { $_ => $_ } @{ $i->select_enum };
+% } elsif ( $i->select_hash ) {
+% if ( ref($i->select_hash) eq 'ARRAY' ) {
+% tie %hash, 'Tie::IxHash',
+% '' => '', @{ $i->select_hash };
+% } else {
+% tie %hash, 'Tie::IxHash',
+% '' => '', %{ $i->select_hash };
+% }
+% } else {
+% %hash = ( '' => 'WARNING: neither select_enum nor select_hash specified in Conf.pm for configuration option "'. $i->key. '"' );
+% }
+%
+% my %saw = ();
+% foreach my $value ( keys %hash ) {
+% local($^W)=0; next if $saw{$value}++;
+% my $label = $hash{$value};
+%
+
+
+ <option value="<% $value %>"<% $value eq $conf->config($i->key) || ( $type eq 'selectmultiple' && grep { $_ eq $value } $conf->config($i->key) ) ? ' SELECTED' : '' %>><% $label %>
+% }
+% my $curvalue = $conf->config($i->key);
+% if ( $conf->exists($i->key) && $curvalue
+% && ! $hash{$curvalue}
+% ) {
+%
+