Bug Fix : 1898 Replaces the previous commit : More fixes.
[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</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; Most-Circulated Items</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                                 <th>Rank/Biblioitemnumbers</th>
38                                 <!-- TMPL_LOOP NAME="loopcol" -->
39                                         <th colspan="2"><!-- TMPL_VAR NAME="coltitle" --></th>
40                                 <!-- /TMPL_LOOP -->
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_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
52                                                 <!-- TMPL_VAR NAME="rowtitle" --></td>
53                                                 <!-- TMPL_LOOP NAME="loopcell" -->
54                                                         <td>
55
56 <!-- TMPL_IF NAME="reference" -->
57 <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
58         <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="reference" ESCAPE="URL" -->">
59 <!-- TMPL_ELSIF name="BiblioDefaultViewisbd"-->
60         <a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="reference" ESCAPE="URL" -->">
61 <!-- TMPL_ELSE -->
62         <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="reference" ESCAPE="URL" -->">
63  <!-- /TMPL_IF -->
64  <!-- /TMPL_IF -->                                        
65                                                                 <!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_IF -->
66                                                                 <!-- TMPL_IF NAME="reference" --></a><!-- /TMPL_IF -->
67                                                         </td>
68                                                         <td>
69                                                                 <!-- TMPL_IF NAME="count" --><!-- TMPL_VAR NAME="count" --><!-- /TMPL_IF -->
70                                                         </td>
71                                                 <!-- /TMPL_LOOP -->
72                                         </tr>
73                                 <!-- /TMPL_LOOP -->
74                 </table>
75         <!-- /TMPL_LOOP -->
76 <!-- TMPL_ELSE -->
77         <h1>Most-Circulated Items</h1>
78         <form method="post" action="/cgi-bin/koha/reports/cat_issues_top.pl">
79         <fieldset class="rows">
80         <ol>
81                 <li><label for="from">Checkout date from: </label> <input type="text" readonly="readonly" size="10" id="from" name="Filter" />
82                                                         <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendarFrom" style="cursor: pointer;" />
83                                                                 <script language="JavaScript" type="text/javascript">
84                                                                         function validate1(date) {
85                                                                                 var day = date.getDate();
86                                                                                 var month = date.getMonth() + 1;
87                                                                                 var year = date.getFullYear();
88                                                                                 var weekDay = date.getDay();
89                                                                                 var dayMonth = month + '-' + day;
90                                                                                 var dateString = year + '-' + month + '-' + day;
91                                                                                 var dateTo = document.getElementById('to').value.split("-");
92                                                                                 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
93                                                                                 if (date > limitDate) {
94                                                                                         return true;
95                                                                                 } else {
96                                                                                         return false;
97                                                                                 }
98                                                                         }
99                                         
100                                                                         Calendar.setup(
101                                                                                 {
102                                                                                         inputField : "from",
103                                                                                         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
104                                                                                         button : "openCalendarFrom",
105                                                                                         disableFunc : validate1,
106                                                                                         dateStatusFunc : validate1
107                                                                                 }
108                                                                         );
109                                                                 </script>
110                                         <label for="to" class="inline">To:</label> <input readonly="readonly" size="10" id="to" name="Filter" value="" type="text" />
111                                                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" id="openCalendarTo" style="cursor: pointer;" border="0" />
112                                                         <script type="text/javascript">
113                                                                 function validate2(date) {
114                                                                         var day = date.getDate();
115                                                                         var month = date.getMonth() + 1;
116                                                                         var year = date.getFullYear();
117                                                                         var weekDay = date.getDay();
118                                                                         var dayMonth = month + '-' + day;
119                                                                         var dateString = year + '-' + month + '-' + day;
120                                                                         var dateFrom = document.getElementById('from').value.split("-");
121                                                                         var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
122                                                                         if (limitDate > date) {
123                                                                                 return true;
124                                                                         } else {
125                                                                                 return false;
126                                                                         }
127                                                                 }
128                 
129                                                                 Calendar.setup(
130                                                                         {
131                                                                                 inputField : "to",
132                                                                                 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
133                                                                                 button : "openCalendarTo",
134                                                                                 disableFunc : validate2,
135                                                                                 dateStatusFunc : validate2
136                                                                         }
137                                                                 );
138                                                         </script></li>
139                 <li><label for="fromRO">Check-in date from</label> <input type="text" readonly="readonly" size="10" id="fromRO" name="Filter" />
140                                                         <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendarFromRO" style="cursor: pointer;" />
141                                                                 <script language="JavaScript" type="text/javascript">
142                                                                         function validate1(date) {
143                                                                                 var day = date.getDate();
144                                                                                 var month = date.getMonth() + 1;
145                                                                                 var year = date.getFullYear();
146                                                                                 var weekDay = date.getDay();
147                                                                                 var dayMonth = month + '-' + day;
148                                                                                 var dateString = year + '-' + month + '-' + day;
149                                                                                 var dateTo = document.getElementById('toRO').value.split("-");
150                                                                                 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
151                                                                                 if (date > limitDate) {
152                                                                                         return true;
153                                                                                 } else {
154                                                                                         return false;
155                                                                                 }
156                                                                         }
157                                         
158                                                                         Calendar.setup(
159                                                                                 {
160                                                                                         inputField : "fromRO",
161                                                                                         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
162                                                                                         button : "openCalendarFromRO",
163                                                                                         disableFunc : validate1,
164                                                                                         dateStatusFunc : validate1
165                                                                                 }
166                                                                         );
167                                                                 </script>
168                                         <label for="toRO" class="inline">To: </label> <input type="text" readonly="readonly" size="10" id="toRO" name="Filter" value="" />
169                                                 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" id="openCalendarToRO" style="cursor: pointer;"  border="0" />
170                                                         <script type="text/javascript">
171                                                                 function validate2(date) {
172                                                                         var day = date.getDate();
173                                                                         var month = date.getMonth() + 1;
174                                                                         var year = date.getFullYear();
175                                                                         var weekDay = date.getDay();
176                                                                         var dayMonth = month + '-' + day;
177                                                                         var dateString = year + '-' + month + '-' + day;
178                                                                         var dateFrom = document.getElementById('fromRO').value.split("-");
179                                                                         var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
180                                                                         if (limitDate > date) {
181                                                                                 return true;
182                                                                         } else {
183                                                                                 return false;
184                                                                         }
185                                                                 }
186                 
187                                                                 Calendar.setup(
188                                                                         {
189                                                                                 inputField : "toRO",
190                                                                                 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
191                                                                                 button : "openCalendarToRO",
192                                                                                 disableFunc : validate2,
193                                                                                 dateStatusFunc : validate2
194                                                                         }
195                                                                 );
196                                                         </script></li>
197                                 <li><label for="branch">Branch: </label>
198 <select name="Filter" id="branch"><option value="" > Any Branch</option>
199     <!--TMPL_LOOP Name="branchloop"-->
200         <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="branchname"--> </option>  
201      <!--/TMPL_LOOP --> 
202     </select>     </li>
203       <li> 
204         <label for="documenttype">Document Type: </label><select name="Filter" id="documenttype"><option value="" > Any Document type</option>
205     <!--TMPL_LOOP Name="itemtypeloop"-->
206         <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="description"--> </option>  
207      <!--/TMPL_LOOP --> 
208     </select>
209       </li>
210       <li> 
211         <label for="patroncategory">Patron Category: </label><select name="Filter" id="patroncategory"><option value="" > Any Category code</option>
212     <!--TMPL_LOOP Name="borcatloop"-->
213         <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="description"--> </option>  
214      <!--/TMPL_LOOP --> 
215     </select>
216         </li>
217                                 <li><label for="day">Day: </label> <input type="text" name="Filter" id="day" value="" /></li>
218                                 <li><label for="month">Month: </label> <input type="text" name="Filter" id="month" value="" /></li>
219                                 <li><label for="year">Year: </label> <input type="text" name="Filter" id="year" value="" /></li>
220         </ol>
221         </fieldset>
222         
223         <fieldset class="rows">
224         <legend>Limits</legend>
225         <ol><li><label for="numberlimit">Limit to:</label><select name="Limit" id="numberlimit">
226                         <option value ="" selected="selected">None</option>
227                                                 <option value="5" selected="selected"> 5</option>
228                                                 <option value ="10">10</option>
229                                                 <option value ="15">15</option>
230                                                 <option value ="20">20</option>
231                                                 <option value ="25">25</option>
232                                                 <option value ="40">40</option>
233                                                 <option value ="50">50</option>
234                                                 <option value ="100">100</option>
235                                         </select></li>
236         <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
237                                                 <option value ="" selected="selected">None</option>
238                                                 <option value ="issuingbranch">Branch</option>
239                                                 <option value ="categorycode">Categorycode</option>
240                                                 <option value ="itemtype">Itemtype</option>
241                                                 <option value ="Day">Day</option>
242                                                 <option value ="Week">Week</option>
243                                                 <option value ="Month">Month</option>
244                                                 <option value ="Year">Year</option>
245                                         </select></li></ol>
246         </fieldset>
247         
248         <fieldset class="rows">
249         <legend>Output</legend>
250 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
251 <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  
252                 </label><!-- TMPL_VAR NAME="CGIextChoice" -->
253                 <!-- TMPL_VAR NAME="CGIsepChoice" --></li></ol>
254         </fieldset>
255
256         <fieldset class="action">
257         <input type="submit" value="Submit" />
258         <input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->" />
259         <input type="hidden" name="do_it" value="1" />
260         </fieldset>
261         </form>
262 <!-- /TMPL_IF -->
263
264 </div>
265 </div>
266 <div class="yui-b">
267 <!-- TMPL_INCLUDE NAME="reports-menu.inc" -->
268 </div>
269 </div>
270 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->