Adding lists for borrowers and items with no issues.
[koha.git] / koha-tmpl / intranet-tmpl / default / en / reports / bor_issues_top.tmpl
1 <!-- TMPL_INCLUDE NAME="reportswcal-top.inc" -->
2 <div id="mainbloc" >
3
4 <!-- TMPL_IF NAME="do_it" -->
5         <!-- TMPL_LOOP NAME="mainloop" -->
6                 <h1 class="reports">Koha : Top <!-- TMPL_VAR NAME="limit"--> List borrowers for Issues </h1>
7                 <!-- TMPL_IF NAME="loopfilter"-->
8                         <p>Filtered on</p>
9                         <!-- TMPL_LOOP NAME="loopfilter" -->
10                                         <p><!-- TMPL_IF NAME="err" --> <font color="red"> <b><!--/TMPL_IF --><label class="label100"> <!-- TMPL_VAR NAME="crit"--> =</label><!-- TMPL_VAR NAME="filter"--><!-- TMPL_IF NAME="err" --> </font> </b><!--/TMPL_IF --></p>
11                         <!-- /TMPL_LOOP -->
12                 <!-- /TMPL_IF NAME="loopfilter"-->
13                 <br>
14                 <table>
15                         <tr >
16                                 <th class="reports">Rank/Borrowers</th>
17                                 <!-- TMPL_LOOP NAME="loopcol" -->
18                                         <th class="reports"><!-- TMPL_VAR NAME="coltitle" --></th>
19                                 <!-- /TMPL_LOOP -->
20                         </tr>
21                                 <!-- TMPL_LOOP NAME="looprow" -->
22                                         <tr>
23                                                 <!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
24                                                 <!-- TMPL_VAR NAME="rowtitle" --></td>
25                                                 <!-- TMPL_LOOP NAME="loopcell" -->
26                                                         <!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td ><!-- /TMPL_IF -->
27                                                                 <!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
28                                                         </td>
29                                                 <!-- /TMPL_LOOP -->
30                                         </tr>
31                                 <!-- /TMPL_LOOP NAME="looprow" -->
32                 </table>
33         <!-- /TMPL_LOOP -->
34 <!-- TMPL_ELSE -->
35         <h1 class = "reports">Koha : Top List borrowers for Issues  </h1>
36         <form method="post">
37         
38         <table>
39                 <thead>
40                         <tr>
41                         <th class="reports">Limit to </th>
42                         <th class="reports">By </th>
43                         <th class="reports" colspan="2">Filters</th>
44                         </tr>
45                 </thead>
46                 <tbody>
47                         <tr>
48                                 <td>
49                                         <select name="Limit">
50                                                 <option value ="5" checked> 5</option>
51                                                 <option value ="10">10</option>
52                                                 <option value ="15">15</option>
53                                                 <option value ="20">20</option>
54         <!--                                    <option value ="25">25</option>
55                                                 <option value ="40">40</option>
56                                                 <option value ="50">50</option>
57                                                 <option value ="100">100</option>-->
58                                         </select>
59                                 </td>
60                                 <td>
61                                         <select name="Criteria">
62                                                 <option value ="" checked>None</option>
63                                                 <option value ="issuingbranch">Branch</option>
64                                                 <option value ="categorycode">Categorycode</option>
65                                                 <option value ="itemtype">Itemtype</option>
66                                                 <option value ="Day">Day</option>
67                                                 <option value ="Week">Week</option>
68                                                 <option value ="Month">Month</option>
69                                                 <option value ="Year">Year</option>
70                                         </select>
71                                 </td>
72                         </tr>
73                         
74                         <tr class="hilighted">
75                                 <td>&nbsp;</td>
76                                 <td>&nbsp;</td>
77                                 <td>Issue date</td>
78                                 <td> From <input type="text" readonly="readonly" size="10" id="from" name="Filter" >
79                                                         <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" border="0" hspace="0" vspace="0" id="openCalendarFrom" style="cursor: pointer;" valign="top">
80                                                                 <script language="JavaScript" type="text/javascript">
81                                                                         function validate1(date) {
82                                                                                 var day = date.getDate();
83                                                                                 var month = date.getMonth() + 1;
84                                                                                 var year = date.getFullYear();
85                                                                                 var weekDay = date.getDay();
86                                                                                 var dayMonth = month + '-' + day;
87                                                                                 var dateString = year + '-' + month + '-' + day;
88                                                                                 var dateTo = document.getElementById('to').value.split("-");
89                                                                                 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
90                                                                                 if (date > limitDate) {
91                                                                                         return true;
92                                                                                 } else {
93                                                                                         return false;
94                                                                                 }
95                                                                         }
96                                         
97                                                                         Calendar.setup(
98                                                                                 {
99                                                                                         inputField : "from",
100                                                                                         ifFormat : "%Y-%m-%d",
101                                                                                         button : "openCalendarFrom",
102                                                                                         disableFunc : validate1,
103                                                                                         dateStatusFunc : validate1
104                                                                                 }
105                                                                         );
106                                                                 </script>
107                                         To <input readonly="readonly" size="10" id="to" name="Filter" value="" type="text">
108                                                 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" valign="top" border="0" hspace="0" vspace="0">
109                                                         <script type="text/javascript">
110                                                                 function validate2(date) {
111                                                                         var day = date.getDate();
112                                                                         var month = date.getMonth() + 1;
113                                                                         var year = date.getFullYear();
114                                                                         var weekDay = date.getDay();
115                                                                         var dayMonth = month + '-' + day;
116                                                                         var dateString = year + '-' + month + '-' + day;
117                                                                         var dateFrom = document.getElementById('from').value.split("-");
118                                                                         var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
119                                                                         if (limitDate > date) {
120                                                                                 return true;
121                                                                         } else {
122                                                                                 return false;
123                                                                         }
124                                                                 }
125                 
126                                                                 Calendar.setup(
127                                                                         {
128                                                                                 inputField : "to",
129                                                                                 ifFormat : "%Y-%m-%d",
130                                                                                 button : "openCalendarTo",
131                                                                                 disableFunc : validate2,
132                                                                                 dateStatusFunc : validate2
133                                                                         }
134                                                                 );
135                                                         </script>
136                                 </td>
137                         </tr>
138                         <tr>
139                                 <td> &nbsp;</td>
140                                 <td> &nbsp;</td>
141                                 <td>Returns</td>
142                                 <td > From <input type="text" readonly="readonly" size="10" id="fromRO" name="Filter" >
143                                                         <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" border="0" hspace="0" vspace="0" id="openCalendarFromRO" style="cursor: pointer;" valign="top">
144                                                                 <script language="JavaScript" type="text/javascript">
145                                                                         function validate1(date) {
146                                                                                 var day = date.getDate();
147                                                                                 var month = date.getMonth() + 1;
148                                                                                 var year = date.getFullYear();
149                                                                                 var weekDay = date.getDay();
150                                                                                 var dayMonth = month + '-' + day;
151                                                                                 var dateString = year + '-' + month + '-' + day;
152                                                                                 var dateTo = document.getElementById('toRO').value.split("-");
153                                                                                 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
154                                                                                 if (date > limitDate) {
155                                                                                         return true;
156                                                                                 } else {
157                                                                                         return false;
158                                                                                 }
159                                                                         }
160                                         
161                                                                         Calendar.setup(
162                                                                                 {
163                                                                                         inputField : "fromRO",
164                                                                                         ifFormat : "%Y-%m-%d",
165                                                                                         button : "openCalendarFromRO",
166                                                                                         disableFunc : validate1,
167                                                                                         dateStatusFunc : validate1
168                                                                                 }
169                                                                         );
170                                                                 </script>
171                                         To <input type="text" readonly="readonly" size="10" id="toRO" name="Filter" value="" >
172                                                 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="openCalendarToRO" style="cursor: pointer;" valign="top" border="0" hspace="0" vspace="0">
173                                                         <script type="text/javascript">
174                                                                 function validate2(date) {
175                                                                         var day = date.getDate();
176                                                                         var month = date.getMonth() + 1;
177                                                                         var year = date.getFullYear();
178                                                                         var weekDay = date.getDay();
179                                                                         var dayMonth = month + '-' + day;
180                                                                         var dateString = year + '-' + month + '-' + day;
181                                                                         var dateFrom = document.getElementById('fromRO').value.split("-");
182                                                                         var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
183                                                                         if (limitDate > date) {
184                                                                                 return true;
185                                                                         } else {
186                                                                                 return false;
187                                                                         }
188                                                                 }
189                 
190                                                                 Calendar.setup(
191                                                                         {
192                                                                                 inputField : "toRO",
193                                                                                 ifFormat : "%Y-%m-%d",
194                                                                                 button : "openCalendarToRO",
195                                                                                 disableFunc : validate2,
196                                                                                 dateStatusFunc : validate2
197                                                                         }
198                                                                 );
199                                                         </script>
200                                 </td>
201                         </tr>
202                         <tr class="hilighted">
203                                 <td>&nbsp;</td>
204                                 <td>&nbsp;</td>
205                                 <td>Branch</td>
206                                 <td><input type="text" name="Filter" value=""></td>
207                         </tr>
208                         <tr>
209                                 <td>&nbsp;</td>
210                                 <td>&nbsp;</td>
211                                 <td>Document Type</td>
212                                 <td><input type="text" name="Filter" value=""></td>
213                         </tr>
214                         <tr class="hilighted">
215                                 <td>&nbsp;</td>
216                                 <td>&nbsp;</td>
217                                 <td>Borrower Category</td>
218                                 <td><input type="text" name="Filter" value=""></td>
219                         </tr>
220                         <tr>
221                                 <td>&nbsp;</td>
222                                 <td>&nbsp;</td>
223                                 <td>Day</td>
224                                 <td><input type="text" name="Filter" value=""></td>
225                         </tr>
226                         <tr class="hilighted">
227                                 <td>&nbsp;</td>
228                                 <td>&nbsp;</td>
229                                 <td>Month</td>
230                                 <td><input type="text" name="Filter" value=""></td>
231                         </tr>
232                         <tr>
233                                 <td>&nbsp;</td>
234                                 <td>&nbsp;</td>
235                                 <td>Year</td>
236                                 <td><input type="text" name="Filter" value=""></td>
237                         </tr>
238                 </tbody>
239         </table>
240         
241         <div id="bloc25">
242                 <h3 class="reports"> Output </h3>
243                 <input type="radio" checked name="output" value="screen" > To screen into the browser
244                 <br>
245                 <input type="radio" name="output" value="file"> To file <input type="text" name="basename" value="Export"> into an application  
246                 <!-- TMPL_VAR NAME="CGIextChoice" -->
247                 <!-- TMPL_VAR NAME="CGIsepChoice" -->
248         </p>
249         </div>
250         <p>
251         <input TYPE="submit" value="OK" class="button reports">
252         <input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->">
253         <input type="hidden" name="do_it" value="1">
254         </form>
255 <!-- /TMPL_IF -->
256 </div>
257 <!-- TMPL_INCLUDE NAME="reports-bottom.inc" -->