BugFixing : 1299 /displaying lists for document types and borrower categories
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / bor_issues_top.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Reports &rsaquo; Patrons with the most Checkouts</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
5 </head>
6 <body>
7 <!-- TMPL_INCLUDE NAME="header.inc" -->
8 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
9
10 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> <!-- TMPL_IF NAME="do_it" -->&rsaquo; <a href="/cgi-bin/koha/reports/bor_issues_top.pl">Patrons with the most checkouts</a> &rsaquo; Results<!-- TMPL_ELSE -->&rsaquo; Patrons with the most checkouts<!-- /TMPL_IF --></div>
11
12 <div id="doc3" class="yui-t2">
13    
14    <div id="bd">
15         <div id="yui-main">
16         <div class="yui-b">
17
18 <!-- TMPL_IF NAME="do_it" -->
19 <script language="JavaScript" type="text/javascript">
20 function Dopop(link) {
21         newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
22 }
23 </script>
24
25
26         <!-- TMPL_LOOP NAME="mainloop" -->
27                 <h1>Top <!-- TMPL_VAR NAME="limit"--> List patrons for Checkouts</h1>
28                 <!-- TMPL_IF NAME="loopfilter"-->
29                         <p>Filtered on</p>
30                         <!-- TMPL_LOOP NAME="loopfilter" -->
31                                         <p><!-- TMPL_IF NAME="err" -->  <!--/TMPL_IF --> <!-- TMPL_VAR NAME="crit"--> =<!-- TMPL_VAR NAME="filter"--><!-- TMPL_IF NAME="err" -->  <!--/TMPL_IF --></p>
32                         <!-- /TMPL_LOOP -->
33                 <!-- /TMPL_IF -->
34                 
35                 <table>
36                         <tr >
37                                 <th>Rank/Patrons</th>
38                                 <!-- TMPL_LOOP NAME="loopcol" -->
39                                         <th colspan="2"><!-- TMPL_VAR NAME="coltitle" --></th>
40                                 <!-- /TMPL_LOOP -->
41                         </tr>
42                         <tr >
43                                 <th>&nbsp;</th>
44                                 <!-- TMPL_LOOP NAME="loopcol" -->
45                                         <th>Patron</th>
46                                         <th>Issues count</th>
47                                 <!-- /TMPL_LOOP -->
48                         </tr>
49                                 <!-- TMPL_LOOP NAME="looprow" -->
50                                         <tr>
51                                                 <!-- TMPL_IF NAME="hilighted" --><td><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
52                                                 <!-- TMPL_VAR NAME="rowtitle" --></td>
53                                                 <!-- TMPL_LOOP NAME="loopcell" -->
54                                                         <!-- TMPL_IF NAME="hilighted" --><td><!-- TMPL_ELSE --><td ><!-- /TMPL_IF -->
55                                                                 <!-- TMPL_IF NAME="reference" --><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="reference" -->"><!-- /TMPL_IF -->
56                                                                 <!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
57                                                                 <!-- TMPL_IF NAME="reference" --></a><!-- /TMPL_IF -->
58                                                         </td>
59                                                         <!-- TMPL_IF NAME="hilighted" --><td><!-- TMPL_ELSE --><td ><!-- /TMPL_IF -->
60                                                                 <!-- TMPL_IF NAME="count" --><!-- TMPL_VAR NAME="count" --><!-- /TMPL_IF -->
61                                                         </td>
62                                                 <!-- /TMPL_LOOP -->
63                                         </tr>
64                                 <!-- /TMPL_LOOP -->
65                 </table>
66         <!-- /TMPL_LOOP -->
67 <!-- TMPL_ELSE -->
68         <h1>Patrons with the most Checkouts</h1>
69         <form method="post" action="/cgi-bin/koha/reports/bor_issues_top.pl">
70         <fieldset class="rows">
71         <ol><li><label for="from">Checkout date from:</label> <input type="text" readonly="readonly" size="10" id="from" name="Filter" />
72                                                         <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendarFrom" style="cursor: pointer;" />
73                                                                 <script language="JavaScript" type="text/javascript">
74                                                                         function validate1(date) {
75                                                                                 var day = date.getDate();
76                                                                                 var month = date.getMonth() + 1;
77                                                                                 var year = date.getFullYear();
78                                                                                 var weekDay = date.getDay();
79                                                                                 var dayMonth = month + '-' + day;
80                                                                                 var dateString = year + '-' + month + '-' + day;
81                                                                                 var dateTo = document.getElementById('to').value.split("-");
82                                                                                 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
83                                                                                 if (date > limitDate) {
84                                                                                         return true;
85                                                                                 } else {
86                                                                                         return false;
87                                                                                 }
88                                                                         }
89                                         
90                                                                         Calendar.setup(
91                                                                                 {
92                                                                                         inputField : "from",
93                                                                                         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
94                                                                                         button : "openCalendarFrom",
95                                                                                         disableFunc : validate1,
96                                                                                         dateStatusFunc : validate1
97                                                                                 }
98                                                                         );
99                                                                 </script>
100                                         <label class="inline" for="to">To: </label> <input readonly="readonly" size="10" id="to" name="Filter" value="" type="text" />
101                                                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" id="openCalendarTo" style="cursor: pointer;" border="0" />
102                                                         <script type="text/javascript">
103                                                                 function validate2(date) {
104                                                                         var day = date.getDate();
105                                                                         var month = date.getMonth() + 1;
106                                                                         var year = date.getFullYear();
107                                                                         var weekDay = date.getDay();
108                                                                         var dayMonth = month + '-' + day;
109                                                                         var dateString = year + '-' + month + '-' + day;
110                                                                         var dateFrom = document.getElementById('from').value.split("-");
111                                                                         var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
112                                                                         if (limitDate > date) {
113                                                                                 return true;
114                                                                         } else {
115                                                                                 return false;
116                                                                         }
117                                                                 }
118                 
119                                                                 Calendar.setup(
120                                                                         {
121                                                                                 inputField : "to",
122                                                                                 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
123                                                                                 button : "openCalendarTo",
124                                                                                 disableFunc : validate2,
125                                                                                 dateStatusFunc : validate2
126                                                                         }
127                                                                 );
128                                                         </script></li>
129                                 <li> <label for="fromRO">Check-in date from:</label> <input type="text" readonly="readonly" size="10" id="fromRO" name="Filter" />
130                                                         <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" id="openCalendarFromRO" style="cursor: pointer;" alt="Show Calendar" />
131                                                                 <script language="JavaScript" type="text/javascript">
132                                                                         function validate1(date) {
133                                                                                 var day = date.getDate();
134                                                                                 var month = date.getMonth() + 1;
135                                                                                 var year = date.getFullYear();
136                                                                                 var weekDay = date.getDay();
137                                                                                 var dayMonth = month + '-' + day;
138                                                                                 var dateString = year + '-' + month + '-' + day;
139                                                                                 var dateTo = document.getElementById('toRO').value.split("-");
140                                                                                 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
141                                                                                 if (date > limitDate) {
142                                                                                         return true;
143                                                                                 } else {
144                                                                                         return false;
145                                                                                 }
146                                                                         }
147                                         
148                                                                         Calendar.setup(
149                                                                                 {
150                                                                                         inputField : "fromRO",
151                                                                                         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
152                                                                                         button : "openCalendarFromRO",
153                                                                                         disableFunc : validate1,
154                                                                                         dateStatusFunc : validate1
155                                                                                 }
156                                                                         );
157                                                                 </script>
158                                         <label class="inline" for="toRO">To: </label> <input type="text" readonly="readonly" size="10" id="toRO" name="Filter" value="" />
159                                                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="openCalendarToRO" style="cursor: pointer;" alt="Show Calendar" border="0" />
160                                                         <script type="text/javascript">
161                                                                 function validate2(date) {
162                                                                         var day = date.getDate();
163                                                                         var month = date.getMonth() + 1;
164                                                                         var year = date.getFullYear();
165                                                                         var weekDay = date.getDay();
166                                                                         var dayMonth = month + '-' + day;
167                                                                         var dateString = year + '-' + month + '-' + day;
168                                                                         var dateFrom = document.getElementById('fromRO').value.split("-");
169                                                                         var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
170                                                                         if (limitDate > date) {
171                                                                                 return true;
172                                                                         } else {
173                                                                                 return false;
174                                                                         }
175                                                                 }
176                 
177                                                                 Calendar.setup(
178                                                                         {
179                                                                                 inputField : "toRO",
180                                                                                 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
181                                                                                 button : "openCalendarToRO",
182                                                                                 disableFunc : validate2,
183                                                                                 dateStatusFunc : validate2
184                                                                         }
185                                                                 );
186                                                         </script></li>
187                         <li> 
188                                 <label for="branch">Branch: </label>
189 <select name="Filter" id="branch"><option value="" > Any Branch</option>
190     <!--TMPL_LOOP Name="branchloop"-->
191         <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="branchname"--> </option>  
192      <!--/TMPL_LOOP --> 
193     </select>                   </li>
194                         <li> 
195                                 <label for="documenttype">Document Type: </label><select name="Filter" id="documenttype"><option value="" > Any Document type</option>
196     <!--TMPL_LOOP Name="itemtypeloop"-->
197         <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="description"--> </option>  
198      <!--/TMPL_LOOP --> 
199     </select>
200                         </li>
201                         <li> 
202                                 <label for="patroncategory">Patron Category: </label><select name="Filter" id="patroncategory"><option value="" > Any Category code</option>
203     <!--TMPL_LOOP Name="borcatloop"-->
204         <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="description"--> </option>  
205      <!--/TMPL_LOOP --> 
206     </select>
207                         </li>
208                         <li> 
209                                 <label for="day">Day: </label>
210                                 <input type="text" name="Filter" id="day" value="" />
211                         </li>
212                         <li> 
213                                 <label for="month">Month: </label>
214                                 <input type="text" name="Filter" id="month" value="" />
215                         </li>
216                         <li> 
217                                 <label for="year">Year: </label>
218                                 <input type="text" name="Filter" id="year" value="" />
219                         </li>
220                                                         
221                                                         </ol>   
222         </fieldset>
223         
224         
225         <fieldset class="rows">
226         <ol>
227                 <li><label for="numlimit">Limit to: </label> <select name="Limit" id="numlimit">
228                                                 <option value ="5" selected="selected"> 5</option>
229                                                 <option value ="10">10</option>
230                                                 <option value ="15">15</option>
231                                                 <option value ="20">20</option>
232         <!--                                    <option value ="25">25</option>
233                                                 <option value ="40">40</option>
234                                                 <option value ="50">50</option>
235                                                 <option value ="100">100</option>-->
236                                         </select></li>
237                 <li><label for="criteria">By: </label> <select name="Criteria" id="criteria">
238                                                 <option value ="" selected="selected">None</option>
239                                                 <option value ="issuingbranch">Branch</option>
240                                                 <option value ="categorycode">Categorycode</option>
241                                                 <option value ="itemtype">Itemtype</option>
242                                                 <option value ="Day">Day</option>
243                                                 <option value ="Week">Week</option>
244                                                 <option value ="Month">Month</option>
245                                                 <option value ="Year">Year</option>
246                                         </select></li>
247         </ol>
248         </fieldset>
249
250 <fieldset class="rows">
251         <legend>Output</legend>
252 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
253 <li><label for="outputfile">To a file:</label>          <input type="radio" name="output" value="file" id="outputfile" /> <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" /> <label class="inline" for="MIME">Into an application  
254                 </label><!-- TMPL_VAR NAME="CGIextChoice" -->
255                 <!-- TMPL_VAR NAME="CGIsepChoice" --></li></ol>
256         </fieldset>
257
258         <fieldset class="action">
259         <input type="submit" value="Submit" />
260         <input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->" />
261         <input type="hidden" name="do_it" value="1" />
262         </fieldset>
263         </form>
264 <!-- /TMPL_IF -->
265
266 </div>
267 </div>
268 <div class="yui-b">
269 <!-- TMPL_INCLUDE NAME="reports-menu.inc" -->
270 </div>
271 </div>
272 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->