51 |
, qq|<select type=select name=$name>| |
, qq|<select type=select name=$name>| |
52 |
, join("\n", map { my $selected = $_ eq $selected_option ? 'selected' : ''; qq|<option name=$_ $selected>$_</option>| } @_ ) |
, join("\n", map { my $selected = $_ eq $selected_option ? 'selected' : ''; qq|<option name=$_ $selected>$_</option>| } @_ ) |
53 |
, qq|</select>| |
, qq|</select>| |
|
, qq|</form>| |
|
54 |
); |
); |
55 |
} |
} |
56 |
|
|
99 |
$html =~ s{\s(\S{16}).+(\S{16})\s}{ $1..$2 }; |
$html =~ s{\s(\S{16}).+(\S{16})\s}{ $1..$2 }; |
100 |
chomp($html); |
chomp($html); |
101 |
} |
} |
102 |
$html = qq|<pre style="display: inline">$html</pre>| |
$html = qq|<tt>$html</tt>| |
103 |
unless |
unless |
104 |
$html =~ s{\b(\S+)\t(\S+)\t(\S+)\b}{<b title="$1/$2">$3</b> }gs; |
$html =~ s{\b(\S+)\t(\S+)\t(\S+)\b}{<b title="$1/$2">$3</b> }gs; |
105 |
|
|
106 |
if ( $format =~ /edit|table/ ) { |
if ( $format =~ /edit|table/ ) { |
107 |
( $name, $html ); |
( $name, $html ); |
108 |
} else { |
} else { |
109 |
qq|<em>$name</em> $html<br>| |
qq|<div class="config $name"><em>$name</em> $html</div>| |
110 |
} |
} |
111 |
} |
} |
112 |
} grep { length($conf->{$_}) > 0 } sort keys %$conf; |
} grep { length($conf->{$_}) > 0 } sort keys %$conf; |