]> git.koha-community.org Git - koha.git/blob - koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt
Bug 11554: Capitalization fix in patron account on fines tab
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / statistics.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Patrons &rsaquo;
3 [% IF ( unknowuser ) %]
4     Patron does not exist
5 [% ELSE %]
6     Statistics for [% INCLUDE 'patron-title.inc' %]
7 [% END %]
8 </title>
9 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
10 [% INCLUDE 'doc-head-close.inc' %]
11 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
12 [% INCLUDE 'datatables-strings.inc' %]
13 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
14 [% INCLUDE 'calendar.inc' %]
15 <script type="text/javascript">
16     $(document).ready(function() {
17         $("#statistics").dataTable($.extend(true, {}, dataTablesDefaults, {
18             "sDom": 't',
19             "bPaginate": false
20         }));
21     });
22 </script>
23 </head>
24
25 <body>
26 [% INCLUDE 'header.inc' %]
27 [% INCLUDE 'patron-search.inc' %]
28
29 <div id="breadcrumbs">
30          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
31 &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
32 &rsaquo; [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Statistics for [% firstname %] [% surname %] ([% cardnumber %])[% END %]
33 </div>
34
35 <div id="doc3" class="yui-t1">
36
37    <div id="bd">
38     <div id="yui-main">
39         <div class="yui-b">
40         [% INCLUDE 'members-toolbar.inc' %]
41
42             <h3>Statistics for [% UNLESS ( I ) %][% title %] [% firstname %] [% END %] [% surname %] ([% cardnumber %])</h3>
43             [% IF ( datas.size ) %]
44                 <table id="statistics">
45                 <thead>
46                     <tr>
47                       [% FOREACH cn IN column_names %]
48                           <th>
49                             [% SWITCH cn %]
50                             [% CASE 'itype' %]
51                                 Item type
52                             [% CASE 'ccode' %]
53                                 Collection code
54                             [% CASE 'location' %]
55                                 Shelving location
56                             [% CASE 'homebranch' %]
57                                 Home library
58                             [% CASE 'holdingbranch' %]
59                                 Holding library
60                             [% CASE %]
61                                 [% cn %]
62                             [% END %]
63                           </th>
64                       [% END %]
65                       <th>Total checkouts as of yesterday</th>
66                       <th>Today's checkouts</th>
67                       <th>Today's checkins</th>
68                       <th>Total checkouts</th>
69                     </tr>
70                 </thead>
71
72                 <tbody>
73                     [% FOREACH r IN datas %]
74                         <tr>
75                             [% FOREACH c IN r %]
76                                 <td>[% c %]</td>
77                             [% END %]
78                         </tr>
79                     [% END %]
80                 </tbody>
81                 <tfoot>
82                     <tr>
83                         <td colspan="[% length_keys %]">TOTAL</td>
84                         <td>[% count_total_precedent_state %]</td>
85                         <td>[% count_total_issues %]</td>
86                         <td>[% count_total_issues_returned %]</td>
87                         <td>[% count_total_actual_state %]</td>
88                     </tr>
89                 </tfoot>
90                 </table>
91             [% ELSE %]
92                 <div class="dialog message">There are no statistics for this patron.</div>
93             [% END %]
94         </div>
95     </div>
96 <div class="yui-b">
97 [% INCLUDE 'circ-menu.inc' %]
98 </div>
99 </div>
100 [% INCLUDE 'intranet-bottom.inc' %]