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