Bug 8942 : Adding a test to make sure we don't use single quotes for js
[koha_fer] / 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                 <th>Expired? / Closed?</th>
42                         </tr>
43                 </thead>
44                 <tbody>
45                         <tr>
46                                 [% FOREACH data IN datas %]
47                                         <td>[% data.name %]</td>
48                                         <td>[% data.title |html %]</td>
49                                         <td>[% data.subscriptionid %]</td>
50                                         <td>[% data.branchcode %]</td>
51                                         <td>[% data.callnumber %]</td>
52                                         <td>[% data.startdate %]</td>
53                                         <td>[% data.enddate %]</td>
54                     <td>
55                         [% IF data.closed %]
56                             Closed
57                         [% ELSIF data.expired %]
58                             Expired
59                         [% END %]
60                     </td>
61                                 </tr>
62                                 [% END %]
63                         </tr>
64                 </tbody>
65         </table>
66
67 [% ELSE %]
68         <form method="post" action="/cgi-bin/koha/reports/serials_stats.pl">
69
70         <fieldset class="rows">
71                 <ol>
72                         <li>
73
74                                 <label for="bookseller">
75                                         Vendor:
76                             </label>
77                                 <select name="bookseller" id="bookseller">
78                                         <option value="">Any Vendor</option>
79                                 [% FOREACH bookseller IN booksellers %]
80                                                 <option value="[% bookseller.aqbooksellerid %]">[% bookseller.name %]</option>
81                                         [% END %]
82                             </select>
83                         </li><li>
84                 <label for="branchcode">
85                                         Library:
86                         </label>
87                         <select name="branchcode"  id="branchcode">
88                                 <option value="">Any library</option>
89                     [% FOREACH branche IN branches %]
90                         [% IF ( branche.selected ) %]
91                             <option value="[% branche.value %]" selected="selected">[% branche.branchname %]</option>
92                         [% ELSE %]
93                             <option value="[% branche.value %]">[% branche.branchname %]</option>
94                         [% END %]
95                                         [% END %]
96                         </select>
97
98                     </li>
99                     <li>
100                         <label for="expired">Include expired subscriptions: </label>
101                 <input type="checkbox" name="expired" id="expired" />
102                     </li>
103                 </ol>
104         </fieldset>
105
106
107         <fieldset class="rows">
108         <legend>Output</legend>
109 <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
110 <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" />
111                 <label class="inline" for="MIME">Into an application</label>[% CGIextChoice %]
112                 [% CGIsepChoice %]</li></ol>
113         </fieldset>
114
115         <fieldset class="action">
116         <input type="submit" value="Submit" />
117         <input type="hidden" name="report_name" value="[% report_name %]" />
118         <input type="hidden" name="do_it" value="1" />
119         </fieldset>
120         </form>
121 [% END %]
122 </div>
123 </div>
124 <div class="yui-b">
125 [% INCLUDE 'reports-menu.inc' %]
126 </div>
127 </div>
128 [% INCLUDE 'intranet-bottom.inc' %]