[freeside-commits] freeside/httemplate/browse rate_region.html, 1.7, 1.8
Ivan,,,
ivan at wavetail.420.am
Sun May 3 17:22:46 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv852/browse
Modified Files:
rate_region.html
Log Message:
add menu item and page for d/ling and edit rates with excel. RT#5108
Index: rate_region.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/rate_region.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- rate_region.html 21 Apr 2009 20:59:43 -0000 1.7
+++ rate_region.html 4 May 2009 00:22:44 -0000 1.8
@@ -15,6 +15,7 @@
'header' => \@header,
'fields' => \@fields,
'links' => \@links,
+ 'xls_format' => \@xls_format,
)
%>
<%once>
@@ -40,7 +41,7 @@
" END";
my $prefixes_sql = "SELECT $prefix_sql $fromwhere AND npa IS NOT NULL";
$select .= "( SELECT countrycode $fromwhere LIMIT 1 ) AS ccode,
- ARRAY_TO_STRING( ARRAY($prefixes_sql), ', ' ) AS prefixes";
+ ARRAY_TO_STRING( ARRAY($prefixes_sql), ',' ) AS prefixes";
} elsif ( driver_name =~ /^mysql/i ) {
$join = 'LEFT JOIN rate_prefix USING ( regionnum )';
$select .= "GROUP_CONCAT( DISTINCT countrycode ) AS ccode,
@@ -60,9 +61,10 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
-my @header = ( '#', 'Region', 'Country code', 'Prefixes' );
-my @fields = ( 'regionnum', 'regionname', 'ccode', 'prefixes' );
-my @links = ( $link, $link, $link, $link );
+my @header = ( '#', 'Region', 'Country code', 'Prefixes' );
+my @fields = ( 'regionnum', 'regionname', 'ccode', 'prefixes' );
+my @links = ( ($link) x 4 );
+my @xls_format = ( ({ locked=>1, bg_color=>22 }) x 4 );
$cgi->param('dummy', 1);
my $countrycode_filter_change =
@@ -110,7 +112,8 @@
_rate_detail_factory($rate, 'sec_granularity'),
_rate_detail_factory($rate, 'classnum');
- push @links, '', '', '', '';
+ push @links, ( ('') x 4 );
+ push @xls_format, ( ({}) x 4 );
}
More information about the freeside-commits
mailing list