$bweb->can_do('r_view_stat');
print "<div><table border='0'><tr><td valign='top'>\n";
my $fields = $bweb->get_form(qw/since age
- db_client_groups qclient_groups/); # drop this to hide
+ db_client_groups qclient_groups/);
$fields->{action}='group_stats';
$fields->{hide_level}=1;
$fields->{hide_type}=1;
my $filter = $self->get_client_group_filter();
my ($limit, $label) = $self->get_limit(%$arg);
+ my ($where, undef) = $self->get_param('client_groups', 'level');
my $query = "
SELECT client_group_name AS name, nb_byte, nb_file, nb_job, nb_resto
FROM job_old JOIN client_group_member USING (ClientId)
JOIN client_group USING (client_group_id) $filter
WHERE JobStatus = 'T' AND Type IN ('M', 'B', 'g')
- $limit
+ $where $limit
GROUP BY client_group_name ORDER BY client_group_name
) AS T1 LEFT JOIN (
FROM job_old JOIN client_group_member USING (ClientId)
JOIN client_group USING (client_group_id)
WHERE JobStatus = 'T' AND Type = 'R'
- $limit
+ $where $limit
GROUP BY client_group_name ORDER BY client_group_name
) AS T2 USING (client_group_name)
+10Apr08
+ebl Fix group statistics to use client_group param
+
03Apr08
ebl Tweak progress bar and add Backuped files count to job status
ebl Remove progress bar from restore