[freeside-commits] freeside/httemplate/pref pref.html, 1.3, 1.3.2.1 pref-process.html, 1.4, 1.4.2.1

Jeff Finucane,420,, jeff at wavetail.420.am
Tue Mar 20 18:35:35 PDT 2007


Update of /home/cvs/cvsroot/freeside/httemplate/pref
In directory wavetail:/tmp/cvs-serv26255/httemplate/pref

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	pref.html pref-process.html 
Log Message:
ticket 1427, automatically email excel a/r report (backport)

Index: pref-process.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/pref/pref-process.html,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -d -r1.4 -r1.4.2.1
--- pref-process.html	8 Feb 2007 22:08:15 -0000	1.4
+++ pref-process.html	21 Mar 2007 01:35:32 -0000	1.4.2.1
@@ -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 ) {

Index: pref.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/pref/pref.html,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -d -r1.3 -r1.3.2.1
--- pref.html	29 Jan 2007 18:50:10 -0000	1.3
+++ pref.html	21 Mar 2007 01:35:32 -0000	1.3.2.1
@@ -41,6 +41,20 @@
 </TABLE>
 <BR>
 
+Email Address
+ <% ntable("#cccccc",2) %>
+ 
+   <TR>
+     <TH>Email Address(es) (comma separated) </TH>
+     <TD>
+    <TD><INPUT TYPE="text" NAME="email_address" VALUE="<% $email_address %>">
+     </TD>
+   </TR>
+ 
+ </TABLE>
+ <BR>
+ 
+ 
 % foreach my $prop (qw( height width availHeight availWidth colorDepth )) {
   <INPUT TYPE="hidden" NAME="<% $prop %>" VALUE="">
   <SCRIPT TYPE="text/javascript">
@@ -57,5 +71,8 @@
 ( $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;
 
 </%init>



More information about the freeside-commits mailing list