From 8591b5a157a2ee24c1467718eb0ce731a388f5c1 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 21 Mar 2007 01:21:39 +0000 Subject: ticket 1427, automatically email excel a/r report --- httemplate/pref/pref-process.html | 17 ++++++++++++----- httemplate/pref/pref.html | 17 +++++++++++++++++ 2 files changed, 29 insertions(+), 5 deletions(-) (limited to 'httemplate/pref') diff --git a/httemplate/pref/pref-process.html b/httemplate/pref/pref-process.html index ed3350971..a5e13f062 100644 --- a/httemplate/pref/pref-process.html +++ b/httemplate/pref/pref-process.html @@ -27,12 +27,19 @@ % % } % +% #XXX autogen +% my @paramlist = qw( menu_position email_address +% height width availHeight availWidth colorDepth +% ); +% +% foreach (@paramlist) { +% scalar($cgi->param($_)) =~ /^[,.\@\w]*$/ && next; +% $error ||= "Illegal value for parameter $_"; +% last; +% } +% % $error ||= $access_user->replace( { -% map { $_ => scalar($cgi->param($_)) } -% #XXX autogen -% qw( menu_position -% height width availHeight availWidth colorDepth -% ) +% map { $_ => scalar($cgi->param($_)) } @paramlist, % } ); % % if ( $error ) { diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index 229ac0e62..069f914ed 100644 --- a/httemplate/pref/pref.html +++ b/httemplate/pref/pref.html @@ -43,6 +43,20 @@ Interface
+Email Address +<% ntable("#cccccc",2) %> + + + Email Address(es) (comma separated) + + + + + + +
+ + Vonage integration (see Click2Call) <% ntable("#cccccc",2) %> @@ -81,5 +95,8 @@ Vonage integration (see Click2Call ( $FS::CurrentUser::CurrentUser->option('menu_position') || 'left' ) =~ /^(\w+)$/ or die "illegal menu_position"; my $menu_position = $1; +( $FS::CurrentUser::CurrentUser->option('email_address') ) + =~ /^([,\w\@.]*)$/ or die "illegal email_address"; #too late +my $email_address = $1; -- cgit v1.2.1