Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / statistics.tt
blob14742eb0f5212eb881502b0b2599656d7e013dd1
1 [% USE Asset %]
2 [% USE Koha %]
3 [% USE AuthorisedValues %]
4 [% USE Branches %]
5 [% SET footerjs = 1 %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha &rsaquo; Patrons &rsaquo;
8 [% UNLESS blocking_error %]
9     Statistics for [% INCLUDE 'patron-title.inc' no_html = 1 %]
10 [% END %]
11 </title>
12 [% INCLUDE 'doc-head-close.inc' %]
13 [% Asset.css("css/datatables.css") %]
14 </head>
16 <body id="pat_statistics" class="pat">
17 [% INCLUDE 'header.inc' %]
18 [% INCLUDE 'patron-search.inc' %]
20 <div id="breadcrumbs">
21          <a href="/cgi-bin/koha/mainpage.pl">Home</a>
22 &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
23 &rsaquo; [% UNLESS blocking_error %]Statistics for [% INCLUDE 'patron-title.inc' invert_name = 1 %][% END %]
24 </div>
26 <div id="doc3" class="yui-t1">
28    <div id="bd">
29     <div id="yui-main">
30         <div class="yui-b">
31         [% INCLUDE 'members-toolbar.inc' %]
33             <h3>Statistics for [% INCLUDE 'patron-title.inc' %]</h3>
34             [% IF ( datas.size ) %]
35                 <table id="statistics">
36                 <thead>
37                     <tr>
38                       [% FOREACH cn IN column_names %]
39                           <th>
40                             [% SWITCH cn %]
41                             [% CASE 'itype' %]
42                                 Item type
43                             [% CASE 'ccode' %]
44                                 Collection code
45                             [% CASE 'location' %]
46                                 Shelving location
47                             [% CASE 'homebranch' %]
48                                 Home library
49                             [% CASE 'holdingbranch' %]
50                                 Holding library
51                             [% CASE %]
52                                 [% cn %]
53                             [% END %]
54                           </th>
55                       [% END %]
56                       <th>Total checkouts as of yesterday</th>
57                       <th>Today's checkouts</th>
58                       <th>Today's checkins</th>
59                       <th>Total checkouts</th>
60                     </tr>
61                 </thead>
63                 <tbody>
64                     [% FOREACH r IN datas %]
65                         <tr>
66                             [% FOREACH c IN r %]
67                                 <td>[% c %]</td>
68                             [% END %]
69                         </tr>
70                     [% END %]
71                 </tbody>
72                 <tfoot>
73                     <tr>
74                         <td colspan="[% column_names.size %]">TOTAL</td>
75                         <td>[% count_total_precedent_state %]</td>
76                         <td>[% count_total_issues %]</td>
77                         <td>[% count_total_issues_returned %]</td>
78                         <td>[% count_total_actual_state %]</td>
79                     </tr>
80                 </tfoot>
81                 </table>
82             [% ELSE %]
83                 <div class="dialog message">There are no statistics for this patron.</div>
84             [% END %]
85         </div>
86     </div>
87 <div class="yui-b">
88 [% INCLUDE 'circ-menu.inc' %]
89 </div>
90 </div>
92 [% MACRO jsinclude BLOCK %]
93     [% Asset.js("js/members-menu.js") %]
94     [% INCLUDE 'datatables.inc' %]
95     <script type="text/javascript">
96         $(document).ready(function() {
97             $("#statistics").dataTable($.extend(true, {}, dataTablesDefaults, {
98                 "sDom": 't',
99                 "bPaginate": false
100             }));
101         });
102     </script>
103 [% END %]
105 [% INCLUDE 'intranet-bottom.inc' %]