Bug 12706: Remove CGI::scrolling_list from serial_stats.pl
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / serials_stats.tt
1 [% USE KohaDates %]
2 [% USE Branches %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Reports &rsaquo; Serials subscriptions stats</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 <style type="text/css">
7         .sql {display: none;}
8 </style>
9 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
10 [% INCLUDE 'datatables.inc' %]
11 <script type="text/javascript">
12         //<![CDATA[
13                 $(document).ready(function() {
14             $("#resulttable").dataTable($.extend(true, {}, dataTablesDefaults, {
15                 "sDom": 't',
16                 "bPaginate": false,
17                 "aoColumns": [
18                     null,{ "sType": "anti-the" },null,null,null,{ "sType": "title-string" },{ "sType": "title-string" },null
19                 ],
20             }));
21         });
22         //]]>
23 </script>
24 </head>
25 <body id="rep_serials_stats" class="rep">
26 [% INCLUDE 'header.inc' %]
27 [% INCLUDE 'cat-search.inc' %]
28
29 <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; Serials subscriptions stats</div>
30
31 <div id="doc3" class="yui-t2">
32    <div id="bd">
33         <div id="yui-main">
34         <div class="yui-b">
35
36         <h1>Serials subscriptions</h1>
37 [% IF ( do_it ) %]
38         <table id="resulttable">
39                 <thead>
40                         <tr>
41                                 <th>Vendor</th>
42                                 <th>Title</th>
43                                 <th>Subscription id</th>
44                                 <th>Branch</th>
45                 <th>Call number</th>
46                 <th>Subscription begin</th>
47                 <th>Subscription end</th>
48                 <th>Expired? / Closed?</th>
49                         </tr>
50                 </thead>
51                 <tbody>
52                         <tr>
53                                 [% FOREACH data IN datas %]
54                     <td><a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% data.aqbooksellerid %]">[% data.name %]</a></td>
55                     <td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=[% data.subscriptionid %]">[% data.title |html %]</a></td>
56                                         <td>[% data.subscriptionid %]</td>
57                     <td>[% Branches.GetName( data.branchcode ) %]</td>
58                                         <td>[% data.callnumber %]</td>
59                     <td><span title="[% data.startdate %]">[% data.startdate | $KohaDates %]</span></td>
60                     <td><span title="[% data.enddate %]">[% data.enddate | $KohaDates %]</span></td>
61                     <td>
62                         [% IF data.closed %]
63                             Closed
64                         [% ELSIF data.expired %]
65                             Expired
66                         [% END %]
67                     </td>
68                                 </tr>
69                                 [% END %]
70                         </tr>
71                 </tbody>
72         </table>
73
74 [% ELSE %]
75         <form method="post" action="/cgi-bin/koha/reports/serials_stats.pl">
76
77         <fieldset class="rows">
78                 <ol>
79                         <li>
80
81                                 <label for="bookseller">
82                                         Vendor:
83                             </label>
84                                 <select name="bookseller" id="bookseller">
85                     <option value="">Any vendor</option>
86                                 [% FOREACH bookseller IN booksellers %]
87                                                 <option value="[% bookseller.aqbooksellerid %]">[% bookseller.name %]</option>
88                                         [% END %]
89                             </select>
90                         </li><li>
91                 <label for="branchcode">
92                                         Library:
93                         </label>
94                         <select name="branchcode"  id="branchcode">
95                                 <option value="">Any library</option>
96                     [% FOREACH branche IN branches %]
97                         [% IF ( branche.selected ) %]
98                             <option value="[% branche.value %]" selected="selected">[% branche.branchname %]</option>
99                         [% ELSE %]
100                             <option value="[% branche.value %]">[% branche.branchname %]</option>
101                         [% END %]
102                                         [% END %]
103                         </select>
104
105                     </li>
106                     <li>
107                         <label for="expired">Include expired subscriptions: </label>
108                 <input type="checkbox" name="expired" id="expired" />
109                     </li>
110                 </ol>
111         </fieldset>
112
113
114         <fieldset class="rows">
115         <legend>Output</legend>
116     <ol>
117         <li>
118             <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
119         </li>
120         <li>
121             <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
122             <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
123             <label class="inline" for="MIME">Into an application</label>
124             <select name="MIME" id="MIME" size="1">
125             [% FOREACH value IN CGIextChoice %]
126                 <option value="[% value %]">[% value %]</option>
127             [% END %]
128             </select>
129             <select name="sep" id="sep" size="1">
130             [% FOREACH value IN CGIsepChoice.values.sort() %]
131               [% IF ( value == CGIsepChoice.default ) %]
132                 <option value="[% value %]" selected="selected">[% value %]</option>
133               [% ELSE %]
134                 <option value="[% value %]">[% value %]</option>
135               [% END %]
136             [% END %]
137             </select>
138         </li>
139     </ol>
140         </fieldset>
141
142         <fieldset class="action">
143         <input type="submit" value="Submit" />
144         <input type="hidden" name="report_name" value="[% report_name %]" />
145         <input type="hidden" name="do_it" value="1" />
146         </fieldset>
147         </form>
148 [% END %]
149 </div>
150 </div>
151 <div class="yui-b">
152 [% INCLUDE 'reports-menu.inc' %]
153 </div>
154 </div>
155 [% INCLUDE 'intranet-bottom.inc' %]