[freeside-commits] freeside/httemplate/browse rate.cgi,1.6,1.7
Ivan,,,
ivan at wavetail.420.am
Sun Jan 4 16:26:56 PST 2009
- Previous message: [freeside-commits] freeside/httemplate/elements checkboxes-table-name.html, 1.4, 1.5 checkboxes.html, NONE, 1.1 select-rate.html, NONE, 1.1 tr-select-rate.html, NONE, 1.1
- Next message: [freeside-commits] freeside/FS/FS rate_prefix.pm,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv7561/httemplate/browse
Modified Files:
rate.cgi
Log Message:
add rate copying, RT#4431
Index: rate.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/rate.cgi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- rate.cgi 10 Jan 2008 21:53:49 -0000 1.6
+++ rate.cgi 5 Jan 2009 00:26:54 -0000 1.7
@@ -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 @@
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) {
- Previous message: [freeside-commits] freeside/httemplate/elements checkboxes-table-name.html, 1.4, 1.5 checkboxes.html, NONE, 1.1 select-rate.html, NONE, 1.1 tr-select-rate.html, NONE, 1.1
- Next message: [freeside-commits] freeside/FS/FS rate_prefix.pm,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list