[freeside-commits] freeside/httemplate/search cust_main.html, 1.11, 1.12
Ivan,,,
ivan at wavetail.420.am
Mon Jun 16 20:35:58 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv32518/httemplate/search
Modified Files:
cust_main.html
Log Message:
finish adding a feature to easily list all email addresses for an agent & send them email
Index: cust_main.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_main.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- cust_main.html 5 Jun 2008 10:36:42 -0000 1.11
+++ cust_main.html 17 Jun 2008 03:35:56 -0000 1.12
@@ -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 @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>
More information about the freeside-commits
mailing list