1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Acquisitions</title>
3 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6 [% INCLUDE 'datatables-strings.inc' %]
7 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
8 <script type="text/javascript">
11 dt_overwrite_html_sorting_localeCompare();
13 $(document).ready(function() {
14 $('#showallbudgets').click(function() {
15 if ( $('#showallbudgets:checked').val() !== undefined) {
16 $('.b_inactive').show();
17 $('#b_inactive').show();
18 $('.bu_active').show();
19 $('.bu_inactive').hide();
22 $('.b_inactive').hide();
23 $('#b_inactive').hide();
24 $('.bu_inactive').show();
25 $('.bu_active').hide();
28 var srlt = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
34 { "sType": "num-html" },
35 { "sType": "num-html" },
48 <body id="acq_acqui-home" class="acq">
49 [% INCLUDE 'header.inc' %]
50 [% INCLUDE 'acquisitions-search.inc' %]
52 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › </div>
54 <div id="doc3" class="yui-t2">
60 [% INCLUDE 'acquisitions-toolbar.inc' %]
64 <div class="yui-u first">
65 <div id="acqui_acqui_home_order">
67 [% UNLESS ( loop_budget ) %]
68 [% IF ( CAN_user_parameters ) %]
69 <div class="dialog alert">You must <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">define a budget</a> in Administration</div>
71 <div class="dialog alert">Your administrator must define a budget in Administration</div>
76 <legend>Manage orders</legend>
77 <form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
78 <p><label for="supplierpage">Vendor: </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
79 <input type="submit" value="Search" />
85 [% IF ( suggestion ) %][% IF ( suggestions_count ) %]
86 <div id="acqui_acqui_home_suggestions">
88 <legend>Pending suggestions</legend>
89 <p>[% suggestions_count %] suggestions waiting. <a href="/cgi-bin/koha/suggestion/suggestion.pl">Manage suggestions</a>.</p>
91 </div>[% END %][% END %]
97 [% IF ( loop_budget ) %]
99 <h3>All available funds[% IF ( branchname ) %] for [% branchname %][% END %]</h3>
101 <div id="BudgetsAndFunds">
102 <table id="accounts">
114 <tfoot id="funds_total">
119 <th align="right" ><span class="bu_active" style="display : none;">[% total %]</span><span class="bu_inactive" >[% total_active %]</span></th>
120 <th align="right" ><span class="bu_active" style="display : none;">[% totordered %]</span><span class="bu_inactive" >[% totordered_active %]</span></th>
121 <th align="right" ><span class="bu_active" style="display : none;">[% totspent %]</span><span class="bu_inactive" >[% totspent_active %]</span></th>
122 <th align="right" ><span class="bu_active" style="display : none;">[% totavail %]</span><span class="bu_inactive" >[% totavail_active %]</span></th>
126 [% FOREACH loop_budge IN loop_budget %]
127 [% IF ( loop_budge.budget_period_active ) %]
128 [% IF ( loop.odd ) %]
131 <tr class="highlight">
133 <td align="center">[% loop_budge.budget_code %]</td>
134 <td align="center">[% loop_budge.budget_owner %]</td>
135 <td align="center">[% loop_budge.budget_branchname %]</td>
136 <td align="right" >[% loop_budge.budget_amount %]</td>
137 <td align="right" ><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
138 <td align="right" ><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
139 <td align="right" >[% loop_budge.budget_avail %]</td>
142 [% IF ( loop.odd ) %]
143 <tr class="b_inactive" style="display : none;">
145 <tr class="highlight" id = "b_inactive" style="display : none;">
147 <td align="center" >[% loop_budge.budget_code %]</td>
148 <td align="center">[% loop_budge.budget_owner %]</td>
149 <td align="center">[% loop_budge.budget_branchname %]</td>
150 <td align="right" >[% loop_budge.budget_amount %]</td>
151 <td align="right" ><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
152 <td align="right" ><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
153 <td align="right" >[% loop_budge.budget_avail %]</td>
158 </div><span class="label">Show all : </span><input type="checkbox" id="showallbudgets" />
166 [% INCLUDE 'acquisitions-menu.inc' %]
169 [% INCLUDE 'intranet-bottom.inc' %]