diff options
author | ivan <ivan> | 2008-06-17 03:35:56 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-06-17 03:35:56 +0000 |
commit | 7153190ee1bfeb6d3ad9e6da270a41a949333a7e (patch) | |
tree | 4f3f13115ed182e1d219c136f559eb2fa04a1183 /httemplate/search | |
parent | 97c8cbe1a7645ecce1192a1c3c20807e428f907c (diff) |
finish adding a feature to easily list all email addresses for an agent & send them email
Diffstat (limited to 'httemplate/search')
-rwxr-xr-x | httemplate/search/cust_main.html | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/httemplate/search/cust_main.html b/httemplate/search/cust_main.html index a2ecd047c..cd5e51f25 100755 --- a/httemplate/search/cust_main.html +++ b/httemplate/search/cust_main.html @@ -1,5 +1,6 @@ <% include( 'elements/search.html', 'title' => 'Customer Search Results', + 'menubar' => $menubar, 'name' => 'customers', 'query' => $sql_query, 'count_query' => $count_query, @@ -30,11 +31,6 @@ ], ) %> -<%once> - -my $link = [ "${p}view/cust_main.cgi?", 'custnum' ]; - -</%once> <%init> die "access denied" @@ -89,4 +85,23 @@ my $count_query = delete($sql_query->{'count_query'}); my @extra_headers = @{ delete($sql_query->{'extra_headers'}) }; my @extra_fields = @{ delete($sql_query->{'extra_fields'}) }; +my $link = [ "${p}view/cust_main.cgi?", 'custnum' ]; + +### +# email links +### + +my $menubar = []; + +if ( $FS::CurrentUser::CurrentUser->access_right('Bulk send customer notices') ) { + + my $uri = new URI::URL; + $uri->query_form( \%search_hash ); + my $query = $uri->query; + + push @$menubar, 'Email a notice to these customers' => + "${p}misc/email-customers.html?$query", + +} + </%init> |