use strict;
use C4::Auth;
use C4::Output;
-use C4::Charset;
+use C4::Interface::CGI::Output;
use CGI;
use C4::Search;
use HTML::Template;
total => $total,
accounts => \@accountrows );
-print $input->header(
- -type => guesstype($template->output),
- -cookie => $cookie
-),$template->output;
+output_html_with_http_headers $input, $cookie, $template->output;