X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Frate.cgi;h=ea59a0c5bc462312f308fa57ca43dd115ac5d3ff;hb=a6c5bd2d56ad177a8f79ac0aa5c88b389513dc82;hp=b20c45c0c606792cf3d8b8bbf53cca941d3ec5a9;hpb=c371f6e225cfffa667815a51571203b034e4f75c;p=freeside.git diff --git a/httemplate/browse/rate.cgi b/httemplate/browse/rate.cgi index b20c45c0c..ea59a0c5b 100644 --- a/httemplate/browse/rate.cgi +++ b/httemplate/browse/rate.cgi @@ -1,35 +1,33 @@ <% include( 'elements/browse.html', 'title' => 'Rate plans', - 'menubar' => [ 'Regions and Prefixes' => - $p.'browse/rate_region.html', - ], + 'menubar' => \@menubar, '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' ], 'fields' => [ 'ratenum', 'ratename', $rates_sub ], 'links' => [ $link, $link, '' ], + 'agent_virt' => 1, + 'agent_pos' => 1, + 'agent_null_right' => 'Configuration', #'Edit global CDR rates', + 'really_disable_download' => 1 ) %> <%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(