diff --git a/postfix/bcc.cgi b/postfix/bcc.cgi index d452b61c0..257fe72b4 100755 --- a/postfix/bcc.cgi +++ b/postfix/bcc.cgi @@ -6,25 +6,18 @@ $access{'bcc'} || &error($text{'bcc_ecannot'}); &ui_print_header(undef, $text{'bcc_title'}, "", "bcc"); &ReadParse(); -# alias general options +# Start of BCC form +print &ui_form_start("save_opts_bcc.cgi"); +print &ui_table_start($text{'bcc_title'}, "width=100%", 2); -print "
\n"; -print "\n"; +print &ui_table_end(); +print &ui_form_end([ [ undef, $text{'opts_save'} ] ]); + +# Map contents print &ui_hr(); - print &ui_tabs_start([ [ "sender", $text{'bcc_sender'} ], [ "recipient", $text{'bcc_recipient'} ] ], "mode", $in{'mode'} || 'sender', 1); @@ -34,12 +27,12 @@ print &ui_tabs_start_tab("mode", "sender"); print $text{'bcc_senderdesc'},"
\n";
if (&get_current_value("sender_bcc_maps") eq "")
{
- print ($text{'no_map'}."
");
+ print $text{'no_map'},"
\n";
}
else
{
&generate_map_edit("sender_bcc_maps", $text{'map_click'}." ".
- "".&hlink("$text{'help_map_format'}", "virtual")."\n
\n");
+ &hlink($text{'help_map_format'}, "virtual"));
}
print &ui_tabs_end_tab("mode", "sender");
@@ -48,12 +41,12 @@ print &ui_tabs_start_tab("mode", "recipient");
print $text{'bcc_recipientdesc'},"
\n";
if (&get_current_value("recipient_bcc_maps") eq "")
{
- print ($text{'no_map'}."
");
+ print $text{'no_map'},"
\n";
}
else
{
&generate_map_edit("recipient_bcc_maps", $text{'map_click'}." ".
- "".&hlink("$text{'help_map_format'}", "virtual")."\n
\n");
+ &hlink($text{'help_map_format'}, "virtual"));
}
print &ui_tabs_end_tab("mode", "recipient");
diff --git a/postfix/postfix-lib.pl b/postfix/postfix-lib.pl
index a6cd407e0..6d80b7fe5 100644
--- a/postfix/postfix-lib.pl
+++ b/postfix/postfix-lib.pl
@@ -369,10 +369,9 @@ sub option_freefield
my $v = &get_current_value($name);
my $key = 'opts_'.$name;
- printf "