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