[SIGNED-OFF]Bug 2780 - Capitalize strings consistently (reports)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / itemtypes.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Reports &rsaquo; Catalog by item types</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/javascript">
6 //<![CDATA[
7 $(document).ready(function() {
8         $("#itemtypest").tablesorter();
9 });
10 //]]>
11 </script>
12 </head>
13 <body id="rep_itemtypes" class="rep">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'cat-search.inc' %]
16
17 <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>
18
19 <div id="doc3" class="yui-t2">
20    
21    <div id="bd">
22         <div id="yui-main">
23         <div class="yui-b">
24
25 [% IF ( do_it ) %]
26 [% FOREACH mainloo IN mainloop %]
27         <h1>Reports on item types [% IF ( mainloo.branchname ) %] held at [% mainloo.branchname %][% END %]</h1>
28         <table id="itemtypest">
29                 <thead>
30                 <tr>
31                         <th>Item type</th>
32                         <th>Count</th>
33                 </tr>
34                 </thead>
35                 <tfoot>
36                         <tr>
37                                 <th>TOTAL</th>
38                                 <th>[% mainloo.total %]</th>
39                         </tr>
40                 </tfoot>
41                 <tbody>
42                         [% FOREACH loopitemtyp IN mainloo.loopitemtype %]
43                                 <tr>
44                                         <td>[% loopitemtyp.itemtype %]</td>
45                                         <td>[% loopitemtyp.count %]</td>
46                                 </tr>
47                         [% END %]
48                 </tbody>
49         </table>
50 [% END %]
51 [% ELSE %]
52         <h3>View a count of items held at your library grouped by item type</h3>
53         <form method="post" action="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">
54                 <fieldset class="rows"><ol><li><label for="value">Select a library</label> [% CGIbranch %]
55                 <span class="tip">Select none to see all libraries</span></li></ol></fieldset>
56                 <fieldset class="action"><input type="submit" value="Submit" />
57                 <input type="hidden" name="report_name" value="[% report_name %]" />
58                 <input type="hidden" name="do_it" value="1" /></fieldset>
59         </form>
60 [% END %]
61
62 </div>
63 </div>
64 <div class="yui-b">
65 [% INCLUDE 'reports-menu.inc' %]
66 </div>
67 </div>
68 [% INCLUDE 'intranet-bottom.inc' %]