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