[!
use strict;
use Proxmox::Utils;
use Proxmox::RuleDB;
use Proxmox::HTMLTable;
use Proxmox::HTMLDropDown;
use Proxmox::Statistic;
use Proxmox::Config::System;
!]
[- Execute ('date_selection.epl'); -]
[-
my $out = "";
my $system_cfg = $fdat{__system_config};
my $advfilter = $system_cfg->get('administration', 'advfilter');
my $stat = Proxmox::Statistic->new ($udat{statistic_from}, $udat{statistic_to}, $advfilter);
my @cellwidth1 = ('450px', '40px', '70px', '40px');
my @header_sum = (
'1', '450px', __('Domain'),
'1', '40px', '' . __('Count') . '',
'1', '70px', 'MByte',
'1', '40px', '' . __('Virus count') . '',
);
my $table_sum = Proxmox::HTMLTable->new (\@cellwidth1);
$table_sum->add_headline (\@header_sum);
my $rdb = Proxmox::RuleDB->new();
Proxmox::Statistic::update_stats_domainstat_out ($rdb->{dbh}, $fdat{__cinfo});
my $res = $stat->total_domain_stat ($rdb, $fdat{orderby});
$out .="
" . __('Sender domain overview') . "
"; foreach my $ref (@$res) { next if !$ref->{count_out}; $table_sum->add_row ('', Proxmox::Utils::email2html ($ref->{domain}, 0), $ref->{count_out}, sprintf ("%.1f", $ref->{bytes_out}), $ref->{virus_out}); } $out .= $table_sum->out_table(); print OUT $out; -]