\n".
$replyblock.
" | $text{'index_astart'} | ".
"".&ui_date_input($stm[3], $stm[4], $stm[5],
"dstart", "mstart", "ystart")." ".
&date_chooser_button("dstart", "mstart", "ystart")." |
\n".
" | $text{'index_aend'} | ".
"".&ui_date_input($etm[3], $etm[4], $etm[5],
"dend", "mend", "yend")." ".
&date_chooser_button("dend", "mend", "yend")." |
\n".
" | $text{'index_charset'} | ".
"".&ui_opt_textbox("charset", $cs, 20,
$text{'default'}." ($default_charset)")." |
\n".
" | $text{'index_subject'} | ".
"".&ui_opt_textbox("subject", $in{'new'} ? "" : $r->{'subject'}, 20,
$text{'default'}." (Autoreply to \$SUBJECT)")." |
\n".
"
",
undef, \@tds);
# Continue checkbox
print &ui_table_row(
undef, &ui_checkbox("continue", 1, $text{'edit_continue'},
$filter->{'continue'}), 2);
print &ui_table_end();
# End of the form, with buttons
if ($in{'new'}) {
@buts = ( [ "create", $text{'create'} ] );
}
else {
@buts = ( [ "save", $text{'save'} ],
[ "delete", $text{'delete'} ] );
($inbox) = grep { $_->{'inbox'} } @folders;
if ($cmode == 4 || $cmode == 5 || $cmode == 6) {
# Add button to show results of a search for the filter's
# conditions
push(@buts, undef,
[ "apply", $text{'edit_apply'},
&ui_select("applyfrom",
$inbox ? &mailbox::folder_name($inbox) : "",
[ map { [ &mailbox::folder_name($_),
&html_escape($_->{'name'}) ] }
@folders ]) ]);
}
if (($cmode == 4 || $cmode == 5 || $cmode == 6) && $amode == 0) {
# Add button to apply the action to matching emails
push(@buts, undef,
[ "move", $text{'edit_move'},
&ui_select("movefrom",
$inbox ? &mailbox::folder_name($inbox) : "",
[ map { [ &mailbox::folder_name($_),
&html_escape($_->{'name'}) ] }
@folders ]) ]);
}
}
print &ui_form_end(\@buts);
# Show page footer
&ui_print_footer("", $text{'index_return'});