Merge remote-tracking branch 'origin/new/bug_7412'
[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 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
8 <script type="text/JavaScript" language="JavaScript">
9         //<![CDATA[
10                 $(document).ready(function() {
11                 $("#resulttable").tablesorter({
12                                 widgets : ['zebra']
13                         });
14         });
15         //]]>
16 </script>
17 </head>
18 <body id="rep_serials_stats" class="rep">
19 [% INCLUDE 'header.inc' %]
20 [% INCLUDE 'cat-search.inc' %]
21
22 <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>
23
24 <div id="doc3" class="yui-t2">
25    <div id="bd">
26         <div id="yui-main">
27         <div class="yui-b">
28
29         <h1>Serials subscriptions</h1>
30 [% IF ( do_it ) %]
31         <table id="resulttable">
32                 <thead>
33                         <tr>
34                                 <th>Vendor</th>
35                                 <th>Title</th>
36                                 <th>Subscription id</th>
37                                 <th>Branch</th>
38                 <th>Call number</th>
39                 <th>Subscription begin</th>
40                 <th>Subscription end</th>
41                         </tr>
42                 </thead>
43                 <tbody>
44                         <tr>
45                                 [% FOREACH data IN datas %]
46                                         <td>[% data.name %]</td>
47                                         <td>[% data.title |html %]</td>
48                                         <td>[% data.subscriptionid %]</td>
49                                         <td>[% data.branchcode %]</td>
50                                         <td>[% data.callnumber %]</td>
51                                         <td>[% data.startdate %]</td>
52                                         <td>[% data.enddate %]</td>
53                                 </tr>
54                                 [% END %]
55                         </tr>
56                 </tbody>
57         </table>
58
59 [% ELSE %]
60         <form method="post" action="/cgi-bin/koha/reports/serials_stats.pl">
61
62         <fieldset class="rows">
63                 <ol>
64                         <li>
65
66                                 <label for="bookseller">
67                                         Vendor:
68                             </label>
69                                 <select name="bookseller" id="bookseller">
70                                         <option value="">Any Vendor</option>
71                                 [% FOREACH bookseller IN booksellers %]
72                                                 <option value="[% bookseller.aqbooksellerid %]">[% bookseller.name %]</option>
73                                         [% END %]
74                             </select>
75                         </li><li>
76                 <label for="branchcode">
77                                         Library:
78                         </label>
79                         <select name="branchcode"  id="branchcode">
80                                 <option value="">Any library</option>
81                     [% FOREACH branche IN branches %]
82                         [% IF ( branche.selected ) %]
83                             <option value="[% branche.value %]" selected="selected">[% branche.branchname %]</option>
84                         [% ELSE %]
85                             <option value="[% branche.value %]">[% branche.branchname %]</option>
86                         [% END %]
87                                         [% END %]
88                         </select>
89
90                     </li>
91                     <li>
92                         <label for="expired">Include expired subscriptions: </label>
93                 <input type="checkbox" name="expired" id="expired" />
94                     </li>
95                 </ol>
96         </fieldset>
97
98
99         <fieldset class="rows">
100         <legend>Output</legend>
101 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
102 <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" />
103                 <label class="inline" for="MIME">Into an application</label>[% CGIextChoice %]
104                 [% CGIsepChoice %]</li></ol>
105         </fieldset>
106
107         <fieldset class="action">
108         <input type="submit" value="Submit" />
109         <input type="hidden" name="report_name" value="[% report_name %]" />
110         <input type="hidden" name="do_it" value="1" />
111         </fieldset>
112         </form>
113 [% END %]
114 </div>
115 </div>
116 <div class="yui-b">
117 [% INCLUDE 'reports-menu.inc' %]
118 </div>
119 </div>
120 [% INCLUDE 'intranet-bottom.inc' %]