+[% USE raw %]
+[% USE Asset %]
[% USE Price %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Reports › Orders by fund</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
-<body>
+<body id="rep_orders_by_budget" class="rep">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
-<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
-[% INCLUDE 'datatables.inc' %]
-<script type="text/javascript">
- $(document).ready( function () {
- $('#funds').DataTable($.extend(true, {}, dataTablesDefaults,{"sPaginationType": "full_numbers"}));
-
- showallbudgets = $('#budgetfilter').html();
- $('#budgetfilter .b_inactive').remove();
-
- $('#showbudgets').click(function(){
- if ($(this).is(":checked"))
- $('#budgetfilter').html(showallbudgets);
- else
- $('#budgetfilter .b_inactive').remove();
- });
- } );
-</script>
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a>[% IF ( get_orders ) %] › <a href="/cgi-bin/koha/reports/orders_by_fund.pl">Orders by fund</a> › Results[% ELSE %] › Orders by fund[% END %]</div>
-<div id="doc3" class="yui-t2">
+<div class="main container-fluid">
+ <div class="row">
+ <div class="col-sm-10 col-sm-push-2">
+ <main>
-<div id="bd">
- <div id="yui-main">
- <div class="yui-b">
-[% IF ( current_budget_name ) %]<h1>Orders for fund '[% current_budget_name %]'</h1>
+[% IF ( current_budget_name ) %]<h1>Orders for fund '[% current_budget_name | html %]'</h1>
[% ELSE %]<h1>Orders by fund</h1>
[% END %]
[% IF ( get_orders ) %]
<div class="results">
[% IF ( total ) %]
- Orders found: [% total %]
+ Orders found: [% total | html %]
[% ELSE %]
No order found
[% END %]
<th>Total RRP</th>
<th>Total cost</th>
<th>Entry date</th>
- <th>Date deceived</th>
+ <th>Date received</th>
<th>Internal note</th>
<th>Vendor note</th>
</tr>
[% UNLESS ( loop.odd ) %]<tr class="highlight">
[% ELSE %] <tr>
[% END %]
- <td>[% ordersloo.budget_name |html %]</td>
- <td><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% ordersloo.basketno %]"> [% ordersloo.basketno |html %]</a></td>
- <td>[% ordersloo.basketname |html %]</td>
- <td>[% ordersloo.authorisedbyname %]</td>
- <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ordersloo.biblionumber %]"> [% ordersloo.title |html %]</a></td>
- <td>[% ordersloo.currency %]</td>
+ <td>[% ordersloo.budget_name | html %]</td>
+ <td><a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% ordersloo.basketno | uri %]"> [% ordersloo.basketno | html %]</a></td>
+ <td>[% ordersloo.basketname | html %]</td>
+ <td>[% ordersloo.authorisedbyname | html %]</td>
+ <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ordersloo.biblionumber | uri %]"> [% ordersloo.title | html %]</a></td>
+ <td>[% ordersloo.currency | html %]</td>
<td>[% ordersloo.listprice | $Price %]</td>
<td>[% ordersloo.rrp | $Price %]</td>
<td>[% ordersloo.ecost | $Price %]</td>
- <td>[% ordersloo.quantity %]</td>
+ <td>[% ordersloo.quantity | html %]</td>
<td>[% ordersloo.total_rrp | $Price %]</td>
<td>[% ordersloo.total_ecost | $Price %]</td>
- <td>[% ordersloo.entrydate %]</td>
- <td>[% ordersloo.datereceived %]</td>
- <td>[% ordersloo.order_internalnote |html %]</td>
- <td>[% ordersloo.order_vendornote |html %]</td>
+ <td>[% ordersloo.entrydate | html %]</td>
+ <td>[% ordersloo.datereceived | html %]</td>
+ <td>[% ordersloo.order_internalnote | html %]</td>
+ <td>[% ordersloo.order_vendornote | html %]</td>
</tr>
[% END %]
</tbody>
- <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>
+ <tfoot><tr><th>TOTAL</th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th></th><th>[% total_quantity | html %]</th><th>[% total_rrp | $Price %]</th><th>[% total_ecost | $Price %]</th><th></th><th></th><th></th><th></th></tr></tfoot>
</table>
[% END %]
[% ELSE %]
<option value="activebudgets">All active funds</option>
[% FOREACH budgetsloo IN budgetsloop %]
[% IF ( budgetsloo.selected ) %]
- <option value="[% budgetsloo.value %]" selected="selected">
+ <option value="[% budgetsloo.value | html %]" selected="selected">
[% ELSE %]
- [% bdgclass=budgetsloo.active? "": "b_inactive" %]
- <option class="[% bdgclass %]" value="[% budgetsloo.value %]">
+ [% bdgclass=budgetsloo.active? "": "b_inactive" | html %]
+ <option class="[% bdgclass | html %]" value="[% budgetsloo.value | html %]">
[% END %]
- [% budgetsloo.description %] [% IF !budgetsloo.active %](inactive)[% END %]
+ [% budgetsloo.description | html %] [% IF !budgetsloo.active %](inactive)[% END %]
</option>
[% END %]
</select>
<label class="inline" for="MIME">Into an application </label>
<select id='MIME' name='MIME' size='1'>
[% FOREACH outputFormatloo IN outputFormatloop %]
- <option value="[% outputFormatloo %]">[% outputFormatloo %]</option>
+ <option value="[% outputFormatloo | html %]">[% outputFormatloo | html %]</option>
[% END %]
</select>
<select id='sep' name='sep' size='1'>
[% FOREACH delimiterloo IN delimiterloop %]
[% IF delimiterloo == delimiterPreference %]
- <option value="[% delimiterloo %]">[% delimiterloo %]</option>
+ <option value="[% delimiterloo | html %]">[% delimiterloo | html %]</option>
[% END %]
[% END %]
[% FOREACH delimiterloo IN delimiterloop %]
[% IF delimiterloo != delimiterPreference %]
- <option value="[% delimiterloo %]">[% delimiterloo %]</option>
+ <option value="[% delimiterloo | html %]">[% delimiterloo | html %]</option>
[% END %]
[% END %]
</select>
[% END %]
-</div>
-</div>
-<div class="yui-b">
-[% INCLUDE 'reports-menu.inc' %]
-</div>
-</div>
+ </main>
+ </div> <!-- /.col-sm-10.col-sm-push-2 -->
+
+ <div class="col-sm-2 col-sm-pull-10">
+ <aside>
+ [% INCLUDE 'reports-menu.inc' %]
+ </aside>
+ </div> <!-- /.col-sm-2.col-sm-pull-10 -->
+ </div> <!-- /.row -->
+
+[% MACRO jsinclude BLOCK %]
+ [% INCLUDE 'datatables.inc' %]
+ <script>
+ $(document).ready( function () {
+ $('#funds').DataTable($.extend(true, {}, dataTablesDefaults,{"sPaginationType": "full_numbers"}));
+
+ showallbudgets = $('#budgetfilter').html();
+ $('#budgetfilter .b_inactive').remove();
+
+ $('#showbudgets').click(function(){
+ if ($(this).is(":checked")) {
+ $('#budgetfilter').html(showallbudgets);
+ } else {
+ $('#budgetfilter .b_inactive').remove();
+ }
+ });
+ } );
+ </script>
+
+[% END %]
+
[% INCLUDE 'intranet-bottom.inc' %]