diff options
author | ivan <ivan> | 2009-01-05 00:26:54 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-01-05 00:26:54 +0000 |
commit | 125fb1a284ae96b46fe433c418aafa87862c4382 (patch) | |
tree | cb9485c9cfd7e685bc63ea40fe214f80c18407b1 /httemplate/browse | |
parent | c23d6e1673dbec98fe9d778ee55962d2cbd145d5 (diff) |
add rate copying, RT#4431
Diffstat (limited to 'httemplate/browse')
-rw-r--r-- | httemplate/browse/rate.cgi | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/httemplate/browse/rate.cgi b/httemplate/browse/rate.cgi index b20c45c0c..911b2fd28 100644 --- a/httemplate/browse/rate.cgi +++ b/httemplate/browse/rate.cgi @@ -17,12 +17,8 @@ %> <%once> -my $sth = dbh->prepare("SELECT DISTINCT(countrycode) FROM rate_prefix") - or die dbh->errstr; -$sth->execute or die $sth->errstr; -my @all_countrycodes = map $_->[0], @{ $sth->fetchall_arrayref }; my $all_countrycodes = join("\n", map qq(<OPTION VALUE="$_">$_), - @all_countrycodes + FS::rate_prefix->all_countrycodes ); my $rates_sub = sub { @@ -51,6 +47,7 @@ die "access denied" my $html_init = 'Rate plans for VoIP and call billing.<BR><BR>'. qq!<A HREF="${p}edit/rate.cgi"><I>Add a rate plan</I></A>!. + qq! | <A HREF="${p}misc/copy-rate_detail.html"><I>Copy rates between plans</I></A>!. '<BR><BR> <SCRIPT> function rate_areyousure(href) { |