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