Some cleanup of new till reconciliation page, including adding menu item to sidebar...
[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
42                                 <th>&nbsp;</th>
43                                 <!-- TMPL_LOOP NAME="loopcol" -->
44                                         <th>Item</th>
45                                         <th>Count of Checkouts</th>
46                                 <!-- /TMPL_LOOP -->
47                         
48                                 <!-- TMPL_LOOP NAME="looprow" -->
49                                         
50                                                 <!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
51                                                 <!-- TMPL_VAR NAME="rowtitle" --></td>
52                                                 <!-- TMPL_LOOP NAME="loopcell" -->
53                                                         <!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td ><!-- /TMPL_IF -->
54                                                                 <!-- TMPL_IF NAME="reference" --><a href="javascript:Dopop('../catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="reference" -->')" ><!-- /TMPL_IF -->
55                                                                 <!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" --><!-- TMPL_ELSE -->Item<!-- /TMPL_IF -->
56                                                                 <!-- TMPL_IF NAME="reference" --></a><!-- /TMPL_IF -->
57                                                         </td>
58                                                         <!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td ><!-- /TMPL_IF -->
59                                                                 <!-- TMPL_IF NAME="count" --><!-- TMPL_VAR NAME="count" --><!-- /TMPL_IF -->
60                                                         </td>
61                                                 <!-- /TMPL_LOOP -->
62                                         
63                                 <!-- /TMPL_LOOP -->
64                 </table>
65         <!-- /TMPL_LOOP -->
66 <!-- TMPL_ELSE -->
67         <h1>Most-Circulated Items</h1>
68         <form method="post" action="/cgi-bin/koha/reports/cat_issues_top.pl">
69         <fieldset class="rows">
70         <ol>
71                 <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 for="to" class="inline">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" alt="Show Calendar" border="0" id="openCalendarFromRO" style="cursor: pointer;" />
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 for="toRO" class="inline">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" alt="Show Calendar" id="openCalendarToRO" style="cursor: pointer;"  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><label for="branch">Branch: </label> <input type="text" name="Filter" id="branch" value="" /></li>
188                                 <li><label for="documenttype">Document Type: </label> <input type="text" name="Filter" id="documenttype" value="" /></li>
189                                 <li><label for="patroncategory">Patron Category: </label> <input type="text" name="Filter" id="patroncategory" value="" /></li>
190                                 <li><label for="day">Day: </label> <input type="text" name="Filter" id="day" value="" /></li>
191                                 <li><label for="month">Month: </label> <input type="text" name="Filter" id="month" value="" /></li>
192                                 <li><label for="year">Year: </label> <input type="text" name="Filter" id="year" value="" /></li>
193         </ol>
194         </fieldset>
195         
196         <fieldset class="rows">
197         <legend>Limits</legend>
198         <ol><li><label for="numberlimit">Limit to:</label><select name="Limit" id="numberlimit">
199                         <option value ="" selected="selected">None</option>
200                                                 <option value="5" selected="selected"> 5</option>
201                                                 <option value ="10">10</option>
202                                                 <option value ="15">15</option>
203                                                 <option value ="20">20</option>
204                                                 <option value ="25">25</option>
205                                                 <option value ="40">40</option>
206                                                 <option value ="50">50</option>
207                                                 <option value ="100">100</option>
208                                         </select></li>
209         <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
210                                                 <option value ="" selected="selected">None</option>
211                                                 <option value ="issuingbranch">Branch</option>
212                                                 <option value ="categorycode">Categorycode</option>
213                                                 <option value ="itemtype">Itemtype</option>
214                                                 <option value ="Day">Day</option>
215                                                 <option value ="Week">Week</option>
216                                                 <option value ="Month">Month</option>
217                                                 <option value ="Year">Year</option>
218                                         </select></li></ol>
219         </fieldset>
220         
221         <fieldset class="rows">
222         <legend>Output</legend>
223 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
224 <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  
225                 </label><!-- TMPL_VAR NAME="CGIextChoice" -->
226                 <!-- TMPL_VAR NAME="CGIsepChoice" --></li></ol>
227         </fieldset>
228
229         <fieldset class="action">
230         <input type="submit" value="Submit" />
231         <input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->" />
232         <input type="hidden" name="do_it" value="1" />
233         </fieldset>
234         </form>
235 <!-- /TMPL_IF -->
236
237 </div>
238 </div>
239 <div class="yui-b">
240 <!-- TMPL_INCLUDE NAME="reports-menu.inc" -->
241 </div>
242 </div>
243 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->