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