Bug 15927 - Remove use of <tr class="highlight"> for alternating row colors
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / issues_stats.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Reports &rsaquo; Circulation statistics [% IF ( do_it ) %]&rsaquo; Results[% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <style type="text/css">
6         .sql {display:none;}
7 </style>
8 </head>
9 <body id="rep_issues_stats" class="rep">
10 [% INCLUDE 'header.inc' %]
11 [% INCLUDE 'cat-search.inc' %]
12
13 <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/issues_stats.pl">Circulation statistics</a> &rsaquo; Results [% ELSE %]&rsaquo; Circulation statistics[% END %]</div>
14
15 <div id="doc3" class="yui-t2">
16
17    <div id="bd">
18         <div id="yui-main">
19         <div class="yui-b">
20
21 [% IF ( do_it ) %]
22     [% FOREACH mainloo IN mainloop %]
23         <h1>Circulation statistics</h1>
24         [% IF ( mainloo.loopfilter ) %]
25             <p>Filtered on:</p>
26             <ul>
27             [% FOREACH loopfilte IN mainloo.loopfilter %]
28                 [% IF ( loopfilte.err ) %]<li class="error">Error:
29                                 [% ELSIF ( loopfilte.sql ) %]<li class="sql">
30                                 [% ELSE %]<li>
31                                 [% END %]
32                                         [% loopfilte.crit %] [% loopfilte.filter %]
33                                 </li>
34             [% END %]
35             </ul>
36         [% END %]
37         
38         <table> 
39             <tr>
40                 <th>[% mainloo.line %] / [% mainloo.column %]</th>
41                 [% FOREACH loopco IN mainloo.loopcol %]
42                     <th>[% loopco.coltitle_display |html %]</th>
43                 [% END %]
44                 <th>TOTAL</th>
45                 </tr>
46                 [% FOREACH loopro IN mainloo.looprow %]
47                     <tr>
48                         <td>[% loopro.rowtitle_display or "UNKNOWN VALUE" |html %]</td>
49                     [% FOREACH loopcel IN loopro.loopcell %]
50                                                 <td>[% loopcel.value %]</td>
51                     [% END %]
52                                                 <td>[% loopro.totalrow %]</td>
53                     </tr>
54                 [% END %]
55             <tr>
56                 <th>TOTAL</th>
57                 [% FOREACH loopfoote IN mainloo.loopfooter %]
58                 <th>[% loopfoote.totalcol %]</th>
59                 [% END %]
60                 <th>[% mainloo.total %]</th>
61             </tr>
62         </table>
63     [% END %]
64 [% ELSE %]
65
66     <form method="post" action="/cgi-bin/koha/reports/issues_stats.pl">
67     <fieldset class="rows">
68         <legend>Circulation statistics</legend><table>
69         <thead>
70             <tr>
71                 <th>Title</th>
72                 <th>Row</th>
73                 <th>Column</th>
74                 <th>Filter</th>
75             </tr>
76         </thead>
77         <tbody>
78             <tr>
79                 <td>Period</td>
80                 <td><input type="radio" name="Line" value="datetime" /></td>
81                 <td><input type="radio" name="Column" value="datetime" /></td>
82                 <td><label for="from">From</label> <input type="text" size="10" id="from" name="Filter" class="datepickerfrom" />
83                     <label for="to">To</label> <input size="10" id="to" name="Filter" value="" type="text" class="datepickerto" />
84                     <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
85                     </td>
86                 </tr>
87             <tr>
88                 <td><label for="PeriodTypeSel">Type:</label><select name="PeriodTypeSel" id="PeriodTypeSel">
89                     <option value ="issue">Checkout</option>
90                     <option value ="renew">Renewal</option>
91                     <option value ="return">Checkin</option>
92                     <option value ="localuse">Local Use</option>
93                     </select></td>
94                 <td colspan="2"><label for="DisplayBy">group by</label> <select name="DisplayBy" id="DisplayBy">
95                     <option value="">None</option>
96                     <option value ="1">Day of week</option>
97                     <option value ="2">Month</option>
98                     <option value ="3">Year</option>
99                     </select>
100                 </td>
101                 <td>
102                     <label for="PeriodDaySel">Select day: </label><select name="PeriodDaySel" id="PeriodDaySel">
103                     <option value =""></option>
104                     <option value ="Monday">Monday</option>
105                     <option value ="Tuesday">Tuesday</option>
106                     <option value ="Wednesday">Wednesday</option>
107                     <option value ="Thursday">Thursday</option>
108                     <option value ="Friday">Friday</option>
109                     <option value ="Saturday">Saturday</option>
110                     <option value ="Sunday">Sunday</option>
111                     </select>
112                     <label for="PeriodMonthSel">Select month:</label> <select name="PeriodMonthSel" id="PeriodMonthSel">
113                     <option value =""></option>
114                     <option value ="January">January</option>
115                     <option value ="February">February</option>
116                     <option value ="March">March</option>
117                     <option value ="April">April</option>
118                     <option value ="May">May</option>
119                     <option value ="June">June</option>
120                     <option value ="July">July</option>
121                     <option value ="August">August</option>
122                     <option value ="September">September</option>
123                     <option value ="October">October</option>
124                     <option value ="November">November</option>
125                     <option value ="December">December</option>
126                     </select>
127                 </td>
128         </tr>
129         <tr>
130             <td>Patron category</td>
131             <td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
132             <td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
133            <td><select name="Filter" id="borcat">
134                <option value=""> </option>
135                [% FOREACH categoryloo IN categoryloop %]
136                  [% IF ( categoryloo.selected ) %]<option value="[% categoryloo.categorycode %]" selected="selected">[% categoryloo.description %]</option>[% ELSE %]<option value="[% categoryloo.categorycode %]">[% categoryloo.description %]</option>[% END %]
137                [% END %]
138                </select>
139              </td> 
140         </tr>
141         <tr>
142             <td>Item type</td>
143             <td><input type="radio" name="Line" value="itemtype" /></td>
144             <td><input type="radio" name="Column" value="itemtype" /></td>
145            <td><select name="Filter" id="itemtype">
146                <option value=""> </option>
147                [% FOREACH itemtypeloo IN itemtypeloop %]
148                  [% IF ( itemtypeloo.selected ) %]<option value="[% itemtypeloo.code %]" selected="selected">[% itemtypeloo.description %]</option>[% ELSE %]<option value="[% itemtypeloo.code %]">[% itemtypeloo.description %]</option>[% END %]
149                [% END %]
150                </select>
151              </td> 
152         </tr>
153         <tr>
154             <td>Library</td>
155             <td><input type="radio" name="Line" value="branch" /></td>
156             <td><input type="radio" name="Column" value="branch" /></td>
157             <td><select name="Filter" id="branch">
158                <option value=""> </option>
159                [% FOREACH branchloo IN branchloop %]
160 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
161                                 [% END %]
162                </select>
163              </td> 
164         </tr>
165         <tr>
166             <td>Collection</td>
167             <td><input type="radio" name="Line"   value="items.ccode" /></td>
168             <td><input type="radio" name="Column" value="items.ccode" /></td>
169             <td><select name="Filter" id="ccode">
170                 <option value=""> </option>
171                 [% FOREACH ccodeloo IN ccodeloop %]
172                                         [% IF ( ccodeloo.selected ) %] <option value="[% ccodeloo.code %]" selected="selected">[% ccodeloo.description %]</option>[% ELSE %]<option value="[% ccodeloo.code %]">[% ccodeloo.description %]</option>[% END %]
173                 [% END %]
174                 </select>
175             </td>
176         </tr>
177         <tr>
178             <td>Shelving location</td>
179             <td><input type="radio" name="Line" value="items.location" /></td>
180             <td><input type="radio" name="Column" value="items.location" /></td>
181             <td><select name="Filter" id="location">
182                 <option value=""> </option>
183                 [% FOREACH locationloo IN locationloop %]
184                                         [% IF ( locationloo.selected ) %]<option value="[% locationloo.code %]" selected="selected">[% locationloo.description %]</option>[% ELSE %]<option value="[% locationloo.code %]">[% locationloo.description %]</option>[% END %]
185                                 [% END %]
186                </select>
187             </td> 
188         </tr>
189         <tr>
190             <td>Item call number</td>
191             <td></td>
192             <td></td>
193             <td>From <input type="text" name="Filter" size="10" /> (inclusive) to <input type="text" name="Filter" size="10" /> (exclusive) </td>
194         </tr>
195         [% IF ( hassort1 ) %]
196         <tr><td>Patron sort 1</td>
197                         <td><input type="radio" name="Line" value="borrowers.sort1" /></td>
198                         <td><input type="radio" name="Column" value="borrowers.sort1" /></td>
199                         <td><select name="Filter" id="sort1">
200                <option value=""> </option>
201                [% FOREACH Bsort IN Bsort1 %]
202                            [% IF ( Bsort.selected ) %]<option value="[% Bsort.authorised_value %]" selected="selected">[% Bsort.lib %]</option>[% ELSE %]<option value="[% Bsort.authorised_value %]" >[% Bsort.lib %]</option>[% END %]
203                [% END %]
204                </select>
205             </td> 
206         </tr>
207         [% END %]
208         [% IF ( hassort2 ) %]
209         <tr><td>Patron sort 2</td>
210             <td><input type="radio" name="Line" value="borrowers.sort2" /></td>
211             <td><input type="radio" name="Column" value="borrowers.sort2" /></td>
212                 <td><select name="Filter" id="sort2">
213                <option value=""> </option>
214                [% FOREACH Bsort IN Bsort2 %]
215                            [% IF ( Bsort.selected ) %]<option value="[% Bsort.authorised_value %]" selected="selected">[% Bsort.lib %]</option>[% ELSE %]<option value="[% Bsort.authorised_value %]" >[% Bsort.lib %]</option>[% END %]
216                [% END %]
217                </select>
218             </td> 
219         </tr>
220         [% END %]
221         <tr><td>Home library</td>
222             <td><input type="radio" name="Line" value="items.homebranch" /></td>
223             <td><input type="radio" name="Column" value="items.homebranch" /></td>
224             <td><select name="Filter" id="homebranch">
225                     <option value=""> </option>
226                     [% FOREACH branchloo IN branchloop %]
227                         [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
228                                     [% END %]
229                 </select>
230             </td>
231         </tr>
232
233         <tr><td>Holding library</td>
234             <td><input type="radio" name="Line" value="items.holdingbranch" /></td>
235             <td><input type="radio" name="Column" value="items.holdingbranch" /></td>
236             <td><select name="Filter" id="holdingbranch">
237                     <option value=""> </option>
238                     [% FOREACH branchloo IN branchloop %]
239                         [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
240                                     [% END %]
241                 </select>
242             </td>
243         </tr>
244
245         </tbody>
246     </table><br /></fieldset>
247
248 <fieldset class="rows"><legend>Cell value </legend><ol><li><label for="cellvalue1">Count total items</label> <input type="radio" name="Cellvalue" value="1" id="cellvalue1" checked="checked" /> </li>
249             <li><label for="cellvalue3">Count unique items</label> <input type="radio" name="Cellvalue" id="cellvalue3" value="3" /> </li></ol></fieldset>
250                         
251         <fieldset class="rows">
252         <legend>Output</legend>
253     <ol>
254         <li>
255             <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
256         </li>
257         <li>
258             <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
259             <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
260             <label class="inline" for="MIME">Into an application</label>
261             <select name="MIME" id="MIME" size="1">
262             [% FOREACH value IN CGIextChoice %]
263                 <option value="[% value %]">[% value %]</option>
264             [% END %]
265             </select>
266             <select name="sep" id="sep" size="1">
267             [% FOREACH value IN CGIsepChoice.values.sort() %]
268               [% IF ( value == CGIsepChoice.default ) %]
269                 <option value="[% value %]" selected="selected">[% value %]</option>
270               [% ELSE %]
271                 <option value="[% value %]">[% value %]</option>
272               [% END %]
273             [% END %]
274             </select>
275         </li>
276     </ol>
277         </fieldset>
278
279         <fieldset class="action">
280         <input type="submit" value="Submit" />
281         <input type="hidden" name="report_name" value="[% report_name %]" />
282         <input type="hidden" name="do_it" value="1" />
283         </fieldset>
284         </form>
285 [% END %]
286
287 </div>
288 </div>
289 <div class="yui-b">
290 [% INCLUDE 'reports-menu.inc' %]
291 </div>
292 </div>
293 [% INCLUDE 'intranet-bottom.inc' %]