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