View | Details | Raw Unified | Return to bug 11668
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/borrowers_stats.tt (+15 lines)
Lines 11-16 Link Here
11
[% INCLUDE 'header.inc' %]
11
[% INCLUDE 'header.inc' %]
12
[% INCLUDE 'cat-search.inc' %]
12
[% INCLUDE 'cat-search.inc' %]
13
13
14
<script type="text/javascript">
15
//<![CDATA[
16
var NTOTALMSG = _("Total");
17
var UTOTALMSG = _("TOTAL");
18
19
$(document).ready(function() {
20
    $('input[name=ntotal]').val(NTOTALMSG);
21
    $('input[name=utotal]').val(UTOTALMSG);
22
});
23
24
//]]>
25
</script>
26
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; <a href="/cgi-bin/koha/reports/borrowers_stats.pl">Patrons statistics</a>[% IF ( do_it ) %] &rsaquo; Results[% END %]</div>
27
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; <a href="/cgi-bin/koha/reports/borrowers_stats.pl">Patrons statistics</a>[% IF ( do_it ) %] &rsaquo; Results[% END %]</div>
15
28
16
<div id="doc3" class="yui-t2">
29
<div id="doc3" class="yui-t2">
Lines 283-288 Link Here
283
	<input type="submit" value="Submit" />
296
	<input type="submit" value="Submit" />
284
	<input type="hidden" name="report_name" value="[% report_name %]" />
297
	<input type="hidden" name="report_name" value="[% report_name %]" />
285
	<input type="hidden" name="do_it" value="1" />
298
	<input type="hidden" name="do_it" value="1" />
299
    <input type="hidden" name="ntotal" value="" />
300
    <input type="hidden" name="utotal" value="" />
286
	</fieldset>
301
	</fieldset>
287
	</form>
302
	</form>
288
[% END %]
303
[% END %]
(-)a/reports/borrowers_stats.pl (-3 / +4 lines)
Lines 64-69 my $basename = $input->param("basename"); Link Here
64
our $sep     = $input->param("sep");
64
our $sep     = $input->param("sep");
65
$sep = "\t" if ($sep and $sep eq 'tabulation');
65
$sep = "\t" if ($sep and $sep eq 'tabulation');
66
my $selected_branch; # = $input->param("?");
66
my $selected_branch; # = $input->param("?");
67
my $ntotal = $input->param("ntotal");
68
my $utotal = $input->param("utotal");
67
69
68
our $branches = GetBranches;
70
our $branches = GetBranches;
69
71
Lines 96-102 if ($do_it) { Link Here
96
		foreach my $col ( @$cols ) {
98
		foreach my $col ( @$cols ) {
97
			print $col->{coltitle}.$sep;
99
			print $col->{coltitle}.$sep;
98
		}
100
		}
99
		print "Total\n";
101
        print "$ntotal\n";
100
		foreach my $line ( @$lines ) {
102
		foreach my $line ( @$lines ) {
101
			my $x = $line->{loopcell};
103
			my $x = $line->{loopcell};
102
			print $line->{rowtitle}.$sep;
104
			print $line->{rowtitle}.$sep;
Lines 106-112 if ($do_it) { Link Here
106
			print $line->{totalrow};
108
			print $line->{totalrow};
107
 			print "\n";
109
 			print "\n";
108
	 	}
110
	 	}
109
		print "TOTAL";
111
        print "$utotal";
110
		$cols = @$results[0]->{loopfooter};
112
		$cols = @$results[0]->{loopfooter};
111
		foreach my $col ( @$cols ) {
113
		foreach my $col ( @$cols ) {
112
			print $sep.$col->{totalcol};
114
			print $sep.$col->{totalcol};
113
- 

Return to bug 11668