Synching with rel_2_2.
[koha.git] / koha-tmpl / intranet-tmpl / npl / en / reports / issues_stats.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Reports: Issues Statistics<!-- TMPL_INCLUDE NAME="doc-head-close-calendar.inc" -->
2 <!-- TMPL_INCLUDE NAME="masthead.inc" -->
3 <!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
4
5 <div id="main" >
6
7 <!-- TMPL_IF NAME="do_it" -->
8         <!-- TMPL_LOOP NAME="mainloop" -->
9                 <h1>Issues Statistics Report</h1>
10                 <!-- TMPL_IF NAME="loopfilter"-->
11                         <p>Showing Issues where 
12                         <!-- TMPL_LOOP NAME="loopfilter" -->
13                                         <!-- TMPL_IF NAME="err" --> <span class="error"> <b><!--/TMPL_IF --> <strong><!-- TMPL_VAR NAME="crit"--></strong> = <span class="ex"><!-- TMPL_VAR NAME="filter"--></span>, <!-- TMPL_IF NAME="err" --> </span> </b><!--/TMPL_IF -->
14                         <!-- /TMPL_LOOP --></p>
15                 <!-- /TMPL_IF NAME="loopfilter"-->
16         
17                 <table> 
18                         <tr>
19                                 <th scope="col"><!-- TMPL_VAR name="line" --> / <!-- TMPL_VAR name="column" --></th>
20                                 <!-- TMPL_LOOP NAME="loopcol" -->
21                                         <th scope="col"><!-- TMPL_VAR NAME="coltitle" --></th>
22                                 <!-- /TMPL_LOOP -->
23                                 <th scope="col">Total</th>
24                         </tr>
25                                 <!-- TMPL_LOOP NAME="looprow" -->
26                                         <!-- TMPL_IF NAME="hilighted" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
27                                                 <td>
28                                                 <!-- TMPL_VAR NAME="rowtitle" --></td>
29                                                 <!-- TMPL_LOOP NAME="loopcell" -->
30                                                         <td class="sum">
31                                                                 <!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" -->
32                                                                 <!-- TMPL_ELSE --> &nbsp;
33                                                                 <!-- /TMPL_IF -->
34                                                         </td>
35                                                 <!-- /TMPL_LOOP -->
36                                                 <td class="sum">
37                                                         <!-- TMPL_VAR NAME="totalrow" -->
38                                                 </td>
39                                         </tr>
40                                 <!-- /TMPL_LOOP NAME="looprow" -->
41                                 <tr>
42                                         <td>TOTAL</td>
43                                         <!-- TMPL_LOOP NAME="loopfooter" -->
44                                                 <td class="sum">
45                                                         <!-- TMPL_VAR NAME="totalcol" -->
46                                                 </td>
47                                         <!-- /TMPL_LOOP -->
48                                         <td class="sum"><!-- TMPL_VAR NAME="total" --></td>
49                                 </tr>
50                 </table>
51         <!-- /TMPL_LOOP -->
52         
53 <!-- TMPL_ELSE -->
54         <h1>Build Issues Statistics Report</h1>
55         <div class="help">Choose at least one piece of information to display as a row in the report, and one to display as a column.</div>
56         <form method="post">
57         <div class="data">
58         <table>
59                 <caption>Date Range</caption>
60                 <thead>
61                         <tr>
62                         <th scope="col">Display as Row</th>
63                         <th scope="col">Display as Column</th>
64                         <th scope="col">From...</th>
65                         <th scope="col">...To</th>
66                         </tr>
67                 </thead>
68                 <tbody>
69                         <tr>
70                                 <td><input type="radio" name="Line" value="datetime" /></td>
71                                 <td><input type="radio" name="Column" value="datetime" /></td>
72                                 <td><input type="text" size="10" id="from" name="Filter" />
73                                                         <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" border="0" id="openCalendarFrom" style="cursor: pointer;" valign="top" />
74                                                                 <script language="JavaScript" type="text/javascript">
75                                                                         function validate1(date) {
76                                                                                 var day = date.getDate();
77                                                                                 var month = date.getMonth() + 1;
78                                                                                 var year = date.getFullYear();
79                                                                                 var weekDay = date.getDay();
80                                                                                 var dayMonth = month + '-' + day;
81                                                                                 var dateString = year + '-' + month + '-' + day;
82                                                                                 var dateTo = document.getElementById('to').value.split("-");
83                                                                                 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
84                                                                                 if (date > limitDate) {
85                                                                                         return true;
86                                                                                 } else {
87                                                                                         return false;
88                                                                                 }
89                                                                         }
90                                         
91                                                                         Calendar.setup(
92                                                                                 {
93                                                                                         inputField : "from",
94                                                                                         ifFormat : "%Y-%m-%d",
95                                                                                         button : "openCalendarFrom",
96                                                                                         disableFunc : validate1,
97                                                                                         dateStatusFunc : validate1
98                                                                                 }
99                                                                         );
100                                                                 </script></td><td>
101                                         <input size="10" id="to" name="Filter" value="" type="text" />
102                                                 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" valign="top" border="0" />
103                                                         <script type="text/javascript">
104                                                                 function validate2(date) {
105                                                                         var day = date.getDate();
106                                                                         var month = date.getMonth() + 1;
107                                                                         var year = date.getFullYear();
108                                                                         var weekDay = date.getDay();
109                                                                         var dayMonth = month + '-' + day;
110                                                                         var dateString = year + '-' + month + '-' + day;
111                                                                         var dateFrom = document.getElementById('from').value.split("-");
112                                                                         var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
113                                                                         if (limitDate > date) {
114                                                                                 return true;
115                                                                         } else {
116                                                                                 return false;
117                                                                         }
118                                                                 }
119                 
120                                                                 Calendar.setup(
121                                                                         {
122                                                                                 inputField : "to",
123                                                                                 ifFormat : "%Y-%m-%d",
124                                                                                 button : "openCalendarTo",
125                                                                                 disableFunc : validate2,
126                                                                                 dateStatusFunc : validate2
127                                                                         }
128                                                                 );
129                                                         </script>
130                                 </td>
131                         </tr>
132                         </table>
133                         <table>
134                         <caption>Transaction Type</caption>
135                         <thead><tr><th scope="col">Type</th><th scope="col">Group By</th><th scope="col">Limit by Day of Week</th><th scope="col">Limit by Month</th></tr></thead>
136                         <tr> 
137                                 <td><select id="PeriodTypeSel" name="PeriodTypeSel">
138                                         <option value ="issue">Issue</option>
139                                         <option value ="return">Return</option>
140                                         </select></td>
141                                 <td><select id="DisplayBy" name="DisplayBy">
142                                         <option value="">None</option>
143                                         <option value ="1">Day of week</option>
144                                         <option value ="2">Month</option>
145                                         <option value ="3">Year</option>
146                                         </select>
147                                         
148                                 </td>
149                                 <td><select id="PeriodDaySel" name="PeriodDaySel">
150                                         <option value =""></option>
151                                         <option value ="Monday">Monday</option>
152                                         <option value ="Tuesday">Tuesday</option>
153                                         <option value ="Wednesday">Wednesday</option>
154                                         <option value ="Thursday">Thursday</option>
155                                         <option value ="Friday">Friday</option>
156                                         <option value ="Saturday">Saturday</option>
157                                         <option value ="Sunday">Sunday</option>
158                                         </select></td>
159                                         
160                                         <td><select id="PeriodMonthSel" name="PeriodMonthSel">
161                                         <option value =""></option>
162                                         <option value ="January">January</option>
163                                         <option value ="February">February</option>
164                                         <option value ="March">March</option>
165                                         <option value ="April">April</option>
166                                         <option value ="May">May</option>
167                                         <option value ="June">June</option>
168                                         <option value ="July">July</option>
169                                         <option value ="August">August</option>
170                                         <option value ="September">September</option>
171                                         <option value ="October">October</option>
172                                         <option value ="November">November</option>
173                                         <option value ="December">December</option>
174                                         </select>
175                                 </td>
176                         </tr>
177                         </table>
178                         <table>
179                         <caption>Patron Category</caption>
180                         <thead><tr>
181                         <th scope="col">Display as Row</th><th scope="col">Display as Column</th><th scope="col">Limit by Category</th></tr></thead>
182                                 <td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
183                                 <td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
184                                 <td><!-- TMPL_VAR NAME="CGIBorCat" --></td>
185                         </tr>
186                         </table>
187                         <table>
188                         <caption>Item Type</caption>
189                         <thead><tr><th scope="col">Display as Row</th><th scope="col">Display as Column</th><th scope="col">Limit by Item Type</th></tr></thead>
190                         <tr>
191                                 <td><input type="radio" name="Line" value="itemtype" /></td>
192                                 <td><input type="radio" name="Column" value="itemtype" /></td>
193                                 <td><!-- TMPL_VAR NAME="CGIItemType" --></td>
194                         </tr>
195                         </table>
196                         
197                         <table>
198                         <caption>Branch</caption>
199                         <thead><tr><th scope="col">Display as Row</th><th scope="col">Display as Column</th><th scope="col">Limit by Branch</th></tr></thead>
200                         <tr>
201                                 <td><input type="radio" name="Line" value="branch" /></td>
202                                 <td><input type="radio" name="Column" value="branch" /></td>
203                                 <td><!-- TMPL_VAR NAME="CGIBranch" --></td>
204                         </tr>
205                         </table>
206                         
207                         <!-- TMPL_IF Name="hassort1" -->
208                         <table>
209                                 <caption>Sorting Field 1</caption>
210                                 <thead><tr><th scope="col">Display as Row</th><th scope="col">Display as Column</th><th scope="col">Limit by Sorting Field 1</th></tr></thead>
211                                 <tr> 
212                                         <td><input type="radio" name="Line" value="borrowers.sort1" /></td>
213                                         <td><input type="radio" name="Column" value="borrowers.sort1" /></td>
214                                         <td><!-- TMPL_VAR NAME="CGISort1" --> </td>
215                                 </tr>
216                                 </table>
217                         <!-- /TMPL_IF -->
218                         
219                         <!-- TMPL_IF Name="hassort2" -->
220                         <table>
221                                 <caption>Sorting Field 2</caption>
222                                 <thead><tr><th scope="col">Display as Row</th><th scope="col">Display as Column</th><th scope="col">Limit by Sorting Field 2</th></tr></thead>
223                                 <tr> 
224                                         <td><input type="radio" name="Line" value="borrowers.sort2" /></td>
225                                         <td><input type="radio" name="Column" value="borrowers.sort2" /></td>
226                                         <td><!-- TMPL_VAR NAME="CGISort2" --> </td>
227                                 </tr>
228                                 </table>
229                         <!-- /TMPL_IF -->
230         
231                 <table>
232                 <caption> Cell value</caption>
233                 <tr><th><label for="count">Count issues</label></th><td><input type="radio" id="count" name="Cellvalue" value="1" checked="checked" /></td></tr>
234                 <tr><th><label for="rate">Circulation rate</label></th><td><input type="radio" id="rate" name="Cellvalue" value="3" /></td></tr>
235                 </table>
236
237 <table>
238         <caption>Output Options</caption>
239         <tr><td colspan="2"><label for="screen">To the Screen</label> <input type="radio" checked name="output" value="screen" id="screen" /></td></tr>
240         <tr><td colspan="2"><label for="file">To file a file</label><input type="radio" name="output" value="file" id="file" /></td></tr>
241 <tr><td>&nbsp;</td><td><label for="basename">...named:</label>   <input type="text" id="basename" name="basename" value="Export" /></td></td></tr>
242 <tr><td>&nbsp;</td><td><label for="MIME">File Format:</label> <!-- TMPL_VAR NAME="CGIextChoice" --></td></tr>
243 <tr><td>&nbsp;</td><td><label for="sep">Delimiter:</label> <!-- TMPL_VAR NAME="CGIsepChoice" --></td></tr>
244 </table>
245                 
246         <p>
247         <input type="submit" value="Generate Report" class="submit" />
248         <input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->" />
249         <input type="hidden" name="do_it" value="1" />
250         </form></p>
251         </div>
252 <!-- /TMPL_IF -->
253 </div>
254
255 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->