Merge remote-tracking branch 'origin/new/bug_7729'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / borrowers_out.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Reports &rsaquo; Patrons with no checkouts</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <script type="text/javascript">
6 //<![CDATA[
7 $(document).ready(function(){
8     $("#to").datepicker({ maxDate: "-1D" });
9 });
10 //]]>
11 </script>
12 </head>
13 <body id="rep_borrowers_out" class="rep">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE '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; Patrons with no checkouts</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 [% IF ( do_it ) %]
26     [% FOREACH mainloo IN mainloop %]
27         <h1>Patrons with no checkouts</h1>
28         [% IF ( mainloo.loopfilter ) %]
29             <p>Filtered on</p>
30             [% FOREACH loopfilte IN mainloo.loopfilter %]
31                     <p>[% IF ( loopfilte.err ) %]  [% END %] [% loopfilte.crit %] =[% loopfilte.filter %][% IF ( loopfilte.err ) %]  [% END %]</p>
32             [% END %]
33         [% END %]
34         
35         <table>
36             <tr>
37                 <th>Num/Patrons</th>
38                 [% FOREACH loopco IN mainloo.loopcol %]
39                     <th>[% loopco.coltitle %]</th>
40                 [% END %]
41             </tr>
42                 [% FOREACH loopro IN mainloo.looprow %]
43                 [% UNLESS ( loop.odd ) %]
44                     <tr class="highlight">
45                 [% ELSE %]
46                     <tr>
47                 [% END %]
48                         <td>[% loopro.rowtitle %]</td>
49                         [% FOREACH loopcel IN loopro.loopcell %]
50                         <td>[% IF ( loopcel.value ) %][% loopcel.value %][% END %]
51                             </td>
52                         [% END %]
53                     </tr>
54                 [% END %]
55         </table>
56     [% END %]
57 [% ELSE %]
58     <h1>Patrons with no checkouts</h1>
59     <form method="post" action="/cgi-bin/koha/reports/borrowers_out.pl">
60     <fieldset class="rows">
61                 <ol>
62             <li><label for="patroncategory">Patron category: </label> <select name="Filter" id="patroncategory"><option value="" > Any category code</option>
63     [% FOREACH borcatloo IN borcatloop %]
64         <option value="[% borcatloo.value %]" >[% borcatloo.description %] </option>  
65      [% END %] 
66     </select>
67 </li>
68     <li><label for="to">Not checked out since: </label> <input size="10" id="to" name="Filter" value="" type="text" />
69 </li>
70                 </ol>
71         </fieldset>
72         
73     <fieldset class="rows">
74         <legend>Limits</legend>
75                 <ol>
76                         <li><label for="numberlimit">Limit to: </label><select name="Limit" id="numberlimit">
77                         <option value ="" selected="selected">None</option>
78                         <option value ="5"> 5</option>
79                         <option value ="10">10</option>
80                         <option value ="15">15</option>
81                         <option value ="20">20</option>
82                         <option value ="25">25</option>
83                         <option value ="40">40</option>
84                         <option value ="50">50</option>
85                         <option value ="100">100</option>
86                     </select></li>
87                         <li><label for="criteria">By: </label><select name="Criteria" id="criteria">
88                         <option value ="" selected="selected">None</option>
89                         <option value ="categorycode">Patron category</option>
90                         <option value ="branchcode">Library</option>
91                     </select></li>
92                 </ol>
93         </fieldset>
94         
95 <fieldset class="rows">
96         <legend>Output</legend>
97 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
98 <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  
99                 </label>[% CGIextChoice %]
100                 [% CGIsepChoice %]</li></ol>
101         </fieldset>
102
103         <fieldset class="action">
104         <input type="submit" value="Submit" />
105         <input type="hidden" name="report_name" value="[% report_name %]" />
106         <input type="hidden" name="do_it" value="1" />
107         </fieldset>
108         </form>
109 [% END %]
110
111 </div>
112 </div>
113 <div class="yui-b">
114 [% INCLUDE 'reports-menu.inc' %]
115 </div>
116 </div>
117 [% INCLUDE 'intranet-bottom.inc' %]