X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Femail-customers.html;h=15926308e2bd8a3f19afcd1f4f86a4323a33b833;hb=4e25bd8f9404fa4ff28d3d75e6a0a7453678407c;hp=3b2ac3c5fd4abcf40534930bfe5f9b08a3ae145b;hpb=84919ed60de29dc4ccf42d7930c6178eedc51f36;p=freeside.git
diff --git a/httemplate/misc/email-customers.html b/httemplate/misc/email-customers.html
index 3b2ac3c5f..15926308e 100644
--- a/httemplate/misc/email-customers.html
+++ b/httemplate/misc/email-customers.html
@@ -95,26 +95,21 @@ function toggle(obj) {
Template:
- <% include('/elements/select-table.html',
- 'label' => 'Template:',
- 'table' => 'msg_template',
- 'hashref' => { disabled => '' },
- 'name_col' => 'msgname',
- 'empty_label' => '(none)',
- 'onchange' => 'toggle(this)',
- )
- %>
+ <& /elements/select-msg_template.html,
+ onchange => 'toggle(this)',
+ &>
+
<& /elements/input-text.html, 'field' => 'from_name', - 'value' => $conf->config('company_name'), #? + 'value' => $conf->config('company_name', $agent_virt_agentnum), #? 'size' => 20, &> <\ <& /elements/input-text.html, 'field' => 'from_addr', 'type' => 'email', # HTML5, woot - 'value' => $conf->config('invoice_from'), + 'value' => $conf->config('invoice_from', $agent_virt_agentnum), 'size' => 20, &>> | @@ -159,7 +154,10 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Bulk send customer notices'); my $conf = FS::Conf->new; + my $table = $cgi->param('table') or die "'table' required"; +my $agent_virt_agentnum = $cgi->param('agent_virt_agentnum') || ''; + my %search; if ( $cgi->param('search') ) { %search = %{ thaw(decode_base64($cgi->param('search'))) };