Bug 19918: Close span tag in opac-registration-confirmation.tt
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / reports / orders_by_budget.tt
1 [% USE Price %]
2 [% SET footerjs = 1 %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Reports &rsaquo; Orders by fund</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 </head>
7 <body id="rep_orders_by_budget" class="rep">
8 [% INCLUDE 'header.inc' %]
9 [% INCLUDE 'cat-search.inc' %]
10
11 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
12 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>[% IF ( get_orders ) %] &rsaquo; <a href="/cgi-bin/koha/reports/orders_by_fund.pl">Orders by fund</a> &rsaquo; Results[% ELSE %] &rsaquo; Orders by fund[% END %]</div>
13
14 <div id="doc3" class="yui-t2">
15
16 <div id="bd">
17         <div id="yui-main">
18         <div class="yui-b">
19
20 [% IF ( current_budget_name ) %]<h1>Orders for fund '[% current_budget_name %]'</h1>
21 [% ELSE %]<h1>Orders by fund</h1>
22 [% END %]
23
24 [% IF ( get_orders ) %]
25     <div class="results">
26         [% IF ( total ) %]
27             Orders found: [% total %]
28         [% ELSE %]
29             No order found
30         [% END %]
31     </div>
32
33     [% IF ( ordersloop ) %]<table id="funds">
34         <thead>
35         <tr>
36         <th>Fund</th>
37         <th>Basket</th>
38         <th>Basket name</th>
39         <th>Basket by</th>
40         <th>Title</th>
41         <th>Currency</th>
42         <th>List price</th>
43         <th>RRP</th>
44         <th>Budgeted cost</th>
45         <th>Quantity</th>
46         <th>Total RRP</th>
47         <th>Total cost</th>
48         <th>Entry date</th>
49         <th>Date received</th>
50         <th>Internal note</th>
51         <th>Vendor note</th>
52         </tr>
53         </thead>
54         <tbody>
55         [% FOREACH ordersloo IN ordersloop %]
56             [% UNLESS ( loop.odd ) %]<tr class="highlight">
57             [% ELSE %] <tr>
58             [% END %]
59             <td>[% ordersloo.budget_name |html %]</td>
60             <td><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% ordersloo.basketno %]"> [% ordersloo.basketno |html %]</a></td>
61             <td>[% ordersloo.basketname |html %]</td>
62             <td>[% ordersloo.authorisedbyname %]</td>
63             <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ordersloo.biblionumber %]"> [% ordersloo.title |html %]</a></td>
64             <td>[% ordersloo.currency %]</td>
65             <td>[% ordersloo.listprice | $Price %]</td>
66             <td>[% ordersloo.rrp | $Price %]</td>
67             <td>[% ordersloo.ecost | $Price %]</td>
68             <td>[% ordersloo.quantity %]</td>
69             <td>[% ordersloo.total_rrp | $Price %]</td>
70             <td>[% ordersloo.total_ecost | $Price %]</td>
71             <td>[% ordersloo.entrydate %]</td>
72             <td>[% ordersloo.datereceived %]</td>
73             <td>[% ordersloo.order_internalnote |html %]</td>
74             <td>[% ordersloo.order_vendornote |html %]</td>
75             </tr>
76         [% END %]
77         </tbody>
78         <tfoot><tr><th>TOTAL</th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th>[% total_quantity  %]</th><th>[% total_rrp | $Price %]</th><th>[% total_ecost | $Price %]</th><th></th><th></th><th></th><th></th></tr></tfoot>
79         </table>
80     [% END %]
81     [% ELSE %]
82         <form name="f" action="/cgi-bin/koha/reports/orders_by_fund.pl" method="post">
83         <fieldset class="rows">
84         <legend>Filters</legend>
85         <ol><li><label for="budgetfilter">Fund: </label>
86         <select name="budgetfilter" id="budgetfilter">
87             <option value="">All funds</option>
88             <option value="activebudgets">All active funds</option>
89         [% FOREACH budgetsloo IN budgetsloop %]
90             [% IF ( budgetsloo.selected ) %]
91                 <option value="[% budgetsloo.value %]" selected="selected">
92             [% ELSE %]
93                 [% bdgclass=budgetsloo.active? "": "b_inactive" %]
94                     <option class="[% bdgclass %]" value="[% budgetsloo.value %]">
95             [% END %]
96             [% budgetsloo.description %] [% IF !budgetsloo.active %](inactive)[% END %]
97             </option>
98         [% END %]
99         </select>
100         <label for="showallbudgets" style="float:none;">&nbsp;Show inactive:</label>
101         <input type="checkbox" id="showbudgets" />
102         </li></ol>
103         </fieldset>
104
105         <fieldset class="rows">
106         <legend>Output</legend>
107         <ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
108             <li><label for="outputfile">To a file:</label>
109                 <input type="radio" name="output" value="file" id="outputfile" />
110                 <label class="inline" for="basename">Named: </label>
111                 <input type="text" name="basename" id="basename" value="Export" />
112                 <label class="inline" for="MIME">Into an application </label>
113                 <select id='MIME' name='MIME' size='1'>
114                 [% FOREACH outputFormatloo IN outputFormatloop %]
115                     <option value="[% outputFormatloo %]">[% outputFormatloo %]</option>
116                 [% END %]
117                 </select>
118                 <select id='sep' name='sep' size='1'>
119                 [% FOREACH delimiterloo IN delimiterloop %]
120                     [% IF delimiterloo == delimiterPreference %]
121                         <option value="[% delimiterloo %]">[% delimiterloo %]</option>
122                     [% END %]
123                 [% END %]
124                 [% FOREACH delimiterloo IN delimiterloop %]
125                     [% IF delimiterloo != delimiterPreference %]
126                         <option value="[% delimiterloo %]">[% delimiterloo %]</option>
127                     [% END %]
128                 [% END %]
129                 </select>
130         </li></ol>
131         </fieldset>
132
133         <fieldset class="action">
134         <input type="submit" value="Submit" />
135         <input type="hidden" name="get_orders" value="1" /></fieldset>
136         </form>
137
138     [% END %]
139
140 </div>
141 </div>
142 <div class="yui-b">
143 [% INCLUDE 'reports-menu.inc' %]
144 </div>
145 </div>
146
147 [% MACRO jsinclude BLOCK %]
148     [% INCLUDE 'datatables.inc' %]
149     <script type="text/javascript">
150         $(document).ready( function () {
151             $('#funds').DataTable($.extend(true, {}, dataTablesDefaults,{"sPaginationType": "full_numbers"}));
152
153             showallbudgets = $('#budgetfilter').html();
154             $('#budgetfilter .b_inactive').remove();
155
156             $('#showbudgets').click(function(){
157                 if ($(this).is(":checked")) {
158                     $('#budgetfilter').html(showallbudgets);
159                 } else {
160                     $('#budgetfilter .b_inactive').remove();
161                 }
162             });
163         } );
164     </script>
165
166 [% END %]
167
168 [% INCLUDE 'intranet-bottom.inc' %]