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