Bug 19623: (follow-up) Correct footer include in pop-up windows
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / itemtypes.tt
1 [% USE Branches %]
2 [% USE ItemTypes %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha &rsaquo; Reports &rsaquo; Catalog by item types</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% IF ( do_it ) %]
8 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
9 [% END %]
10 </head>
11
12 <body id="rep_itemtypes" class="rep">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'cat-search.inc' %]
15
16 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>[% IF ( do_it ) %] &rsaquo; <a href="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">Catalog by item type</a> &rsaquo; Results[% ELSE %] &rsaquo; Catalog by item type[% END %]</div>
17
18 <div id="doc3" class="yui-t2">
19    
20    <div id="bd">
21         <div id="yui-main">
22         <div class="yui-b">
23
24 [% IF ( do_it ) %]
25 [% FOREACH mainloo IN mainloop %]
26     <h1>Reports on item types [% IF branch %] held at [% Branches.GetName( branch ) %][% END %]</h1>
27         <table id="itemtypest">
28                 <thead>
29                 <tr>
30                         <th>Item type</th>
31                         <th>Count</th>
32                 </tr>
33                 </thead>
34                 <tfoot>
35                         <tr>
36                                 <th>TOTAL</th>
37                                 <th>[% mainloo.total %]</th>
38                         </tr>
39                 </tfoot>
40                 <tbody>
41                         [% FOREACH loopitemtyp IN mainloo.loopitemtype %]
42                                 <tr>
43                     <td>[% ItemTypes.GetDescription( loopitemtyp.itemtype ) %]</td>
44                                         <td>[% loopitemtyp.count %]</td>
45                                 </tr>
46                         [% END %]
47                 </tbody>
48         </table>
49 [% END %]
50 [% ELSE %]
51         <h3>View a count of items held at your library grouped by item type</h3>
52         <form method="post" action="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">
53           <fieldset class="rows">
54             <ol>
55               <li>
56                 <label for="value">Select a library:</label>
57                 <select name="value" size="1" id="value">
58                   <option value=""></option>
59                   [% PROCESS options_for_libraries libraries => Branches.all() %]
60                 </select>
61                 <span class="tip">Select none to see all libraries</span>
62               </li>
63             </ol>
64           </fieldset>
65           <fieldset class="action"><input type="submit" value="Submit" />
66             <input type="hidden" name="report_name" value="[% report_name %]" />
67             <input type="hidden" name="do_it" value="1" />
68           </fieldset>
69         </form>
70 [% END %]
71
72 </div>
73 </div>
74 <div class="yui-b">
75 [% INCLUDE 'reports-menu.inc' %]
76 </div>
77 </div>
78
79 [% MACRO jsinclude BLOCK %]
80     [% IF ( do_it ) %]
81         [% INCLUDE 'datatables.inc' %]
82         <script type="text/javascript">
83             $(document).ready(function(){
84                 $("#itemtypest").dataTable($.extend(true, {}, dataTablesDefaults, {
85                     "sDom": 't',
86                     "bPaginate": false
87                 }));
88             });
89         </script>
90     [% END %]
91 [% END %]
92
93 [% INCLUDE 'intranet-bottom.inc' %]