Bug 5917 : Swapping templates over
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / itemtypes.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Reports &rsaquo; Item Types</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body>
6 [% INCLUDE 'header.inc' %]
7 [% INCLUDE 'cat-search.inc' %]
8
9 <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">Item Types</a> &rsaquo; Results[% ELSE %] &rsaquo; Item Types[% END %]</div>
10
11 <div id="doc3" class="yui-t2">
12    
13    <div id="bd">
14         <div id="yui-main">
15         <div class="yui-b">
16
17 [% IF ( do_it ) %]
18 [% FOREACH mainloo IN mainloop %]
19         <h1>Reports on item types [% IF ( mainloo.branch ) %] for branch = [% mainloo.branch %][% END %]</h1>
20         <table>
21                 <tr>
22                         <th>Item type</th>
23                         <th>count</th>
24                 </tr>
25                         [% FOREACH loopitemtyp IN mainloo.loopitemtype %]
26                                 <tr>
27                                         <td>[% loopitemtyp.itemtype %]</td>
28                                         <td>[% loopitemtyp.count %]</td>
29                                 </tr>
30                         [% END %]
31                         <tr>
32                                 <th>TOTAL</th>
33                                 <th>[% mainloo.total %]</th>
34                         </tr>
35         </table>
36 [% END %]
37 [% ELSE %]
38
39         <form method="post" action="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">
40                 <fieldset class="rows"><legend>View catalog group by item types</legend><ol><li><label for="value">Select a branch</label> [% CGIbranch %]
41                 <span class="tip">Select none to see all branches</span></li></ol></fieldset>
42                 <fieldset class="action"><input type="submit" value="Submit" />
43                 <input type="hidden" name="report_name" value="[% report_name %]" />
44                 <input type="hidden" name="do_it" value="1" /></fieldset>
45         </form>
46 [% END %]
47
48 </div>
49 </div>
50 <div class="yui-b">
51 [% INCLUDE 'reports-menu.inc' %]
52 </div>
53 </div>
54 [% INCLUDE 'intranet-bottom.inc' %]