2 <% include('email-customers.html',
3 'form_action' => 'email-customers-history.html',
4 'sub_param_process' => $sub_param_process,
5 'alternate_form' => $alternate_form,
6 'title' => 'Send payment history',
12 my $sub_param_process = sub {
15 foreach my $field ( qw( start_date end_date ) ) {
16 $sub_param{'payment_history'}->{$field} = parse_datetime($cgi->param($field));
19 $cgi->param('msgnum',$conf->config('payment_history_msgnum'));
23 my $alternate_form = sub {
25 # this could maaaybe be a separate element, for cleanliness
26 # but it's really only for use by this page, and it's not overly complicated
32 my $label = ucfirst($_);
34 include('/elements/tr-input-date-field.html',{
36 'value' => $sub_param{'payment_history'}->{$_} || '',
41 qw( start_date end_date )
44 '<INPUT TYPE="hidden" NAME="msgnum" VALUE="' . $cgi->param('msgnum') . '">',
45 '<INPUT TYPE="hidden" NAME="action" VALUE="preview">',
46 '<INPUT TYPE="submit" VALUE="Preview notice">',