Lines 46-110
Link Here
|
46 |
|
46 |
|
47 |
<h2>Average checkout period</h2> |
47 |
<h2>Average checkout period</h2> |
48 |
[% IF ( do_it ) %] |
48 |
[% IF ( do_it ) %] |
49 |
[% FOREACH mainloo IN mainloop %] |
49 |
[% FOREACH mainloo IN mainloop %] |
50 |
[% IF ( mainloo.loopfilter ) %] |
50 |
[% IF ( mainloo.loopfilter ) %] |
51 |
<p>Filtered on:</p> |
51 |
<p>Filtered on:</p> |
52 |
[% FOREACH loopfilte IN mainloo.loopfilter %] |
52 |
[% FOREACH loopfilte IN mainloo.loopfilter %] |
53 |
<p>[% IF ( loopfilte.err ) %] [% END %] [% loopfilte.crit | html %] =[% loopfilte.filter | html %][% IF ( loopfilte.err ) %] [% END %]</p> |
53 |
<p>[% IF ( loopfilte.err ) %] [% END %] [% loopfilte.crit | html %] =[% loopfilte.filter | html %][% IF ( loopfilte.err ) %] [% END %]</p> |
54 |
[% END %] |
54 |
[% END %] |
55 |
[% END %] |
55 |
[% END %] |
56 |
|
56 |
|
57 |
<table> |
57 |
<table> |
58 |
<tr> |
58 |
<tr> |
59 |
<th>[% mainloo.line | html %] / [% mainloo.column | html %]</th> |
59 |
<th>[% mainloo.line | html %] / [% mainloo.column | html %]</th> |
60 |
[% FOREACH loopco IN mainloo.loopcol %] |
60 |
[% FOREACH loopco IN mainloo.loopcol %] |
61 |
<th>[% loopco.coltitle | html %]</th> |
61 |
<th>[% loopco.coltitle | html %]</th> |
62 |
[% END %] |
62 |
[% END %] |
63 |
<th>TOTAL</th> |
63 |
<th>TOTAL</th> |
64 |
</tr> |
64 |
</tr> |
65 |
[% FOREACH loopro IN mainloo.looprow %] |
65 |
[% FOREACH loopro IN mainloo.looprow %] |
66 |
<tr> |
66 |
<tr> |
67 |
[% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %] |
67 |
[% IF ( loopro.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %] |
68 |
[% loopro.rowtitle | html %]</td> |
68 |
[% loopro.rowtitle | html %]</td> |
69 |
[% FOREACH loopcel IN loopro.loopcell %] |
69 |
[% FOREACH loopcel IN loopro.loopcell %] |
70 |
[% IF ( loopcel.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %] |
70 |
[% IF ( loopcel.hilighted ) %]<td class="hilighted">[% ELSE %]<td>[% END %] |
71 |
[% IF ( loopcel.value ) %][% loopcel.value | html %][% END %] |
71 |
[% IF ( loopcel.value ) %][% loopcel.value | html %][% END %] |
72 |
</td> |
72 |
</td> |
73 |
[% END %] |
73 |
[% END %] |
74 |
[% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %] |
74 |
[% IF ( loopro.hilighted ) %]<td>[% ELSE %]<td>[% END %] |
75 |
[% loopro.totalrow | html %] |
75 |
[% loopro.totalrow | html %] |
76 |
</td> |
76 |
</td> |
77 |
</tr> |
77 |
</tr> |
78 |
[% END %] |
78 |
[% END %] |
79 |
<tr> |
79 |
<tr> |
80 |
<th>TOTAL</th> |
80 |
<th>TOTAL</th> |
81 |
[% FOREACH loopfoote IN mainloo.loopfooter %] |
81 |
[% FOREACH loopfoote IN mainloo.loopfooter %] |
82 |
<th> |
82 |
<th> |
83 |
[% loopfoote.totalcol | html %] |
83 |
[% loopfoote.totalcol | html %] |
84 |
</th> |
84 |
</th> |
85 |
[% END %] |
85 |
[% END %] |
86 |
<th>[% mainloo.total | html %]</th> |
86 |
<th>[% mainloo.total | html %]</th> |
87 |
</tr> |
87 |
</tr> |
88 |
</table> |
88 |
</table> |
89 |
[% END %] |
89 |
[% END %] |
90 |
[% ELSE %] |
90 |
[% ELSE %] |
91 |
|
91 |
|
92 |
<form method="post" action="/cgi-bin/koha/reports/issues_avg_stats.pl"> |
92 |
<form method="post" action="/cgi-bin/koha/reports/issues_avg_stats.pl"> |
93 |
<fieldset class="rows"> |
93 |
<fieldset class="rows"> |
94 |
<h3>Average checkout period statistics</h3> |
94 |
<h3>Average checkout period statistics</h3> |
95 |
<table> |
95 |
<table> |
96 |
<thead> |
96 |
<thead> |
97 |
<tr> |
97 |
<tr> |
98 |
<th>Title</th> |
98 |
<th>Title</th> |
99 |
<th>Row</th> |
99 |
<th>Row</th> |
100 |
<th>Column</th> |
100 |
<th>Column</th> |
101 |
<th>Filter</th> |
101 |
<th>Filter</th> |
102 |
</tr> |
102 |
</tr> |
103 |
</thead> |
103 |
</thead> |
104 |
<tbody> |
104 |
<tbody> |
105 |
<tr class="hilighted"> |
105 |
<tr class="hilighted"> |
106 |
<td>Checkout date</td> |
106 |
<td>Checkout date</td> |
107 |
<td><input type="radio" name="Line" value="timestamp" /></td> |
107 |
<td><input type="radio" name="Line" value="timestamp" /></td> |
108 |
<td><input type="radio" checked="checked" name="Column" value="timestamp" /></td> |
108 |
<td><input type="radio" checked="checked" name="Column" value="timestamp" /></td> |
109 |
<td> |
109 |
<td> |
110 |
<label for="checkoutfrom">From</label> |
110 |
<label for="checkoutfrom">From</label> |
Lines 113-136
Link Here
|
113 |
<label for="checkouto">To</label> |
113 |
<label for="checkouto">To</label> |
114 |
<input size="10" id="checkouto" name="Filter" value="" type="text" class="flatpickr" /> |
114 |
<input size="10" id="checkouto" name="Filter" value="" type="text" class="flatpickr" /> |
115 |
<span class="hint">[% INCLUDE 'date-format.inc' %]</span> |
115 |
<span class="hint">[% INCLUDE 'date-format.inc' %]</span> |
116 |
</td> |
116 |
</td> |
117 |
</tr> |
117 |
</tr> |
118 |
<tr class="hilighted"> |
118 |
<tr class="hilighted"> |
119 |
<td> </td> |
119 |
<td> </td> |
120 |
<td colspan="2">by <select name="IssueDisplay"> |
120 |
<td colspan="2">by <select name="IssueDisplay"> |
121 |
<option value=""> </option> |
121 |
<option value=""> </option> |
122 |
<option value ="1">Day</option> |
122 |
<option value ="1">Day</option> |
123 |
<option value ="2">Month</option> |
123 |
<option value ="2">Month</option> |
124 |
<option value ="3">Year</option> |
124 |
<option value ="3">Year</option> |
125 |
</select> |
125 |
</select> |
126 |
|
126 |
|
127 |
</td> |
127 |
</td> |
128 |
<td><!--Preparing Month and Day Selection--><input type="hidden" name="Filter" value="" /><input type="hidden" name="Filter" value="" /></td> |
128 |
<td><!--Preparing Month and Day Selection--><input type="hidden" name="Filter" value="" /><input type="hidden" name="Filter" value="" /></td> |
129 |
</tr> |
129 |
</tr> |
130 |
<tr> |
130 |
<tr> |
131 |
<td>Returns</td> |
131 |
<td>Returns</td> |
132 |
<td><input type="radio" name="Line" value="returndate" /></td> |
132 |
<td><input type="radio" name="Line" value="returndate" /></td> |
133 |
<td><input type="radio" name="Column" value="returndate" /></td> |
133 |
<td><input type="radio" name="Column" value="returndate" /></td> |
134 |
<td> |
134 |
<td> |
135 |
<label for="checkinfrom">From</label> |
135 |
<label for="checkinfrom">From</label> |
136 |
<input type="text" size="10" id="checkinfrom" name="Filter" data-date_to="checkinto" class="flatpickr" /> |
136 |
<input type="text" size="10" id="checkinfrom" name="Filter" data-date_to="checkinto" class="flatpickr" /> |
Lines 138-161
Link Here
|
138 |
<label for="checkinto">To</label> |
138 |
<label for="checkinto">To</label> |
139 |
<input type="text" size="10" id="checkinto" name="Filter" value="" class="flatpickr" /> |
139 |
<input type="text" size="10" id="checkinto" name="Filter" value="" class="flatpickr" /> |
140 |
<span class="hint">[% INCLUDE 'date-format.inc' %]</span> |
140 |
<span class="hint">[% INCLUDE 'date-format.inc' %]</span> |
141 |
</td> |
141 |
</td> |
142 |
</tr> |
142 |
</tr> |
143 |
<tr> |
143 |
<tr> |
144 |
<td> </td> |
144 |
<td> </td> |
145 |
<td colspan="2">by <select name="ReturnDisplay"> |
145 |
<td colspan="2">by <select name="ReturnDisplay"> |
146 |
<option value=""> </option> |
146 |
<option value=""> </option> |
147 |
<option value ="1">Day</option> |
147 |
<option value ="1">Day</option> |
148 |
<option value ="2">Month</option> |
148 |
<option value ="2">Month</option> |
149 |
<option value ="3">Year</option> |
149 |
<option value ="3">Year</option> |
150 |
</select> |
150 |
</select> |
151 |
|
151 |
|
152 |
</td> |
152 |
</td> |
153 |
<td><input type="hidden" name="Filter" value="" /><input type="hidden" name="Filter" value="" /></td> |
153 |
<td><input type="hidden" name="Filter" value="" /><input type="hidden" name="Filter" value="" /></td> |
154 |
</tr> |
154 |
</tr> |
155 |
<tr class="hilighted"> |
155 |
<tr class="hilighted"> |
156 |
<td>Patron category</td> |
156 |
<td>Patron category</td> |
157 |
<td><input type="radio" checked="checked" name="Line" value="borrowers.categorycode" /></td> |
157 |
<td><input type="radio" checked="checked" name="Line" value="borrowers.categorycode" /></td> |
158 |
<td><input type="radio" name="Column" value="borrowers.categorycode" /></td> |
158 |
<td><input type="radio" name="Column" value="borrowers.categorycode" /></td> |
159 |
<td> |
159 |
<td> |
160 |
<select name="Filter" id="borcat"> |
160 |
<select name="Filter" id="borcat"> |
161 |
<option value=""></option> |
161 |
<option value=""></option> |
Lines 164-174
Link Here
|
164 |
[% END %] |
164 |
[% END %] |
165 |
</select> |
165 |
</select> |
166 |
</td> |
166 |
</td> |
167 |
</tr> |
167 |
</tr> |
168 |
<tr> |
168 |
<tr> |
169 |
<td>Item type</td> |
169 |
<td>Item type</td> |
170 |
<td><input type="radio" name="Line" value="itemtype" /></td> |
170 |
<td><input type="radio" name="Line" value="itemtype" /></td> |
171 |
<td><input type="radio" name="Column" value="itemtype" /></td> |
171 |
<td><input type="radio" name="Column" value="itemtype" /></td> |
172 |
<td> |
172 |
<td> |
173 |
<select name="Filter" id="itemtypes"> |
173 |
<select name="Filter" id="itemtypes"> |
174 |
<option value=""></option> |
174 |
<option value=""></option> |
Lines 177-199
Link Here
|
177 |
[% END %] |
177 |
[% END %] |
178 |
</select> |
178 |
</select> |
179 |
</td> |
179 |
</td> |
180 |
</tr> |
180 |
</tr> |
181 |
<tr class="hilighted"> |
181 |
<tr class="hilighted"> |
182 |
<td>Library</td> |
182 |
<td>Library</td> |
183 |
<td><input type="radio" name="Line" value="branchcode" /></td> |
183 |
<td><input type="radio" name="Line" value="branchcode" /></td> |
184 |
<td><input type="radio" name="Column" value="branchcode" /></td> |
184 |
<td><input type="radio" name="Column" value="branchcode" /></td> |
185 |
<td> |
185 |
<td> |
186 |
<select name="Filter" id="branch"> |
186 |
<select name="Filter" id="branch"> |
187 |
<option value=""></option> |
187 |
<option value=""></option> |
188 |
[% PROCESS options_for_libraries libraries => Branches.all() %] |
188 |
[% PROCESS options_for_libraries libraries => Branches.all() %] |
189 |
</select> |
189 |
</select> |
190 |
</td> |
190 |
</td> |
191 |
</tr> |
191 |
</tr> |
192 |
[% IF ( hassort1 ) %] |
192 |
[% IF ( hassort1 ) %] |
193 |
<tr class="hilighted"> |
193 |
<tr class="hilighted"> |
194 |
<td>Sort1</td> |
194 |
<td>Sort1</td> |
195 |
<td><input type="radio" name="Line" value="borrowers.sort1" /></td> |
195 |
<td><input type="radio" name="Line" value="borrowers.sort1" /></td> |
196 |
<td><input type="radio" name="Column" value="borrowers.sort1" /></td> |
196 |
<td><input type="radio" name="Column" value="borrowers.sort1" /></td> |
197 |
<td> |
197 |
<td> |
198 |
<select name="Filter" id="sort1"> |
198 |
<select name="Filter" id="sort1"> |
199 |
<option value=""></option> |
199 |
<option value=""></option> |
Lines 202-214
Link Here
|
202 |
[%- END %] |
202 |
[%- END %] |
203 |
</select> |
203 |
</select> |
204 |
</td> |
204 |
</td> |
205 |
</tr> |
205 |
</tr> |
206 |
[% END %] |
206 |
[% END %] |
207 |
[% IF ( hassort2 ) %] |
207 |
[% IF ( hassort2 ) %] |
208 |
[% IF ( HglghtSort2 ) %]<tr class="hilighted"> [% ELSE %]<tr>[% END %] |
208 |
[% IF ( HglghtSort2 ) %]<tr class="hilighted"> [% ELSE %]<tr>[% END %] |
209 |
<td>Sort2</td> |
209 |
<td>Sort2</td> |
210 |
<td><input type="radio" name="Line" value="borrowers.sort2" /></td> |
210 |
<td><input type="radio" name="Line" value="borrowers.sort2" /></td> |
211 |
<td><input type="radio" name="Column" value="borrowers.sort2" /></td> |
211 |
<td><input type="radio" name="Column" value="borrowers.sort2" /></td> |
212 |
<td> |
212 |
<td> |
213 |
<select name="Filter" id="sort2"> |
213 |
<select name="Filter" id="sort2"> |
214 |
<option value=""></option> |
214 |
<option value=""></option> |
Lines 217-230
Link Here
|
217 |
[%- END %] |
217 |
[%- END %] |
218 |
</select> |
218 |
</select> |
219 |
</td> |
219 |
</td> |
220 |
</tr> |
220 |
</tr> |
221 |
[% END %] |
221 |
[% END %] |
222 |
</tbody> |
222 |
</tbody> |
223 |
</table><br /></fieldset> |
223 |
</table><br /></fieldset> |
224 |
|
224 |
|
225 |
|
225 |
|
226 |
<fieldset class="rows"> |
226 |
<fieldset class="rows"> |
227 |
<h3>Output</h3> |
227 |
<h3>Output</h3> |
228 |
<ol> |
228 |
<ol> |
229 |
<li> |
229 |
<li> |
230 |
<label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> |
230 |
<label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> |
Lines 247-261
Link Here
|
247 |
</select> |
247 |
</select> |
248 |
</li> |
248 |
</li> |
249 |
</ol> |
249 |
</ol> |
250 |
</fieldset> |
250 |
</fieldset> |
251 |
|
251 |
|
252 |
<fieldset class="action"> |
252 |
<fieldset class="action"> |
253 |
<input type="hidden" name="Filter" value="" /> |
253 |
<input type="hidden" name="Filter" value="" /> |
254 |
<input type="hidden" name="report_name" value="[% report_name | html %]" /> |
254 |
<input type="hidden" name="report_name" value="[% report_name | html %]" /> |
255 |
<input type="hidden" name="do_it" value="1" /> |
255 |
<input type="hidden" name="do_it" value="1" /> |
256 |
<input type="submit" class="principal" value="Submit" /> |
256 |
<input type="submit" class="principal" value="Submit" /> |
257 |
</fieldset> |
257 |
</fieldset> |
258 |
</form> |
258 |
</form> |
259 |
[% END %] |
259 |
[% END %] |
260 |
|
260 |
|
261 |
</main> |
261 |
</main> |