X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Frate.cgi;h=c6cfec074b3eb8ae1f6820d0296fbadcbdd15e03;hb=35965be444639d6d0a99e64c9cbdbb521dfed0ab;hp=b20c45c0c606792cf3d8b8bbf53cca941d3ec5a9;hpb=5e05724a635a22776f1b973f5d7e77989da4e048;p=freeside.git diff --git a/httemplate/browse/rate.cgi b/httemplate/browse/rate.cgi index b20c45c0c..c6cfec074 100644 --- a/httemplate/browse/rate.cgi +++ b/httemplate/browse/rate.cgi @@ -2,12 +2,14 @@ 'title' => 'Rate plans', 'menubar' => [ 'Regions and Prefixes' => $p.'browse/rate_region.html', + 'Time Periods' => + $p.'browse/rate_time.html', ], 'html_init' => $html_init, 'name' => 'rate plans', 'query' => { 'table' => 'rate', 'hashref' => {}, - 'extra_sql' => 'ORDER BY ratenum', + 'order_by' => 'ORDER BY ratenum', }, 'count_query' => $count_query, 'header' => [ '#', 'Rate plan', 'Rates' ], @@ -17,12 +19,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(