ea893fa349
5 tables (with datatables) are displayed with a pixel before and after. List is: - acqui/acqui-home.tt - acqui/booksellers.tt - acqui/neworderbiblio.tt - acqui/supplier.tt - members/statistics.tt Test plan: Check on the 5 pages that pixels are disappears after applying this patch. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> members/statistics.tt was already fixed on master. JavaScript change only, works nicely. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
174 lines
6.4 KiB
Text
174 lines
6.4 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Acquisitions</title>
|
|
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
|
|
[% INCLUDE 'datatables-strings.inc' %]
|
|
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
|
|
dt_overwrite_html_sorting_localeCompare();
|
|
|
|
$(document).ready(function() {
|
|
$('#showallbudgets').click(function() {
|
|
if ( $('#showallbudgets:checked').val() !== undefined) {
|
|
$('.b_inactive').show();
|
|
$('#b_inactive').show();
|
|
$('.bu_active').show();
|
|
$('.bu_inactive').hide();
|
|
}
|
|
else {
|
|
$('.b_inactive').hide();
|
|
$('#b_inactive').hide();
|
|
$('.bu_inactive').show();
|
|
$('.bu_active').hide();
|
|
}
|
|
});
|
|
var srlt = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"aoColumns": [
|
|
null,
|
|
null,
|
|
null,
|
|
null,
|
|
{ "sType": "num-html" },
|
|
{ "sType": "num-html" },
|
|
null,
|
|
],
|
|
'sDom': 't',
|
|
'bPaginate': false,
|
|
'bFilter': false,
|
|
'bInfo': false,
|
|
} ) );
|
|
});
|
|
//]]>
|
|
</script>
|
|
|
|
</head>
|
|
<body id="acq_acqui-home" class="acq">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'acquisitions-search.inc' %]
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › </div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
[% INCLUDE 'acquisitions-toolbar.inc' %]
|
|
|
|
<h1>Acquisitions</h1>
|
|
<div class="yui-g">
|
|
<div class="yui-u first">
|
|
<div id="acqui_acqui_home_order">
|
|
|
|
[% UNLESS ( loop_budget ) %]
|
|
[% IF ( CAN_user_parameters ) %]
|
|
<div class="dialog alert">You must <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">define a budget</a> in Administration</div>
|
|
[% ELSE %]
|
|
<div class="dialog alert">Your administrator must define a budget in Administration</div>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
<fieldset>
|
|
<legend>Manage orders</legend>
|
|
<form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
|
|
<p><label for="supplierpage">Vendor: </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
|
|
<input type="submit" value="Search" />
|
|
</p>
|
|
</form>
|
|
</fieldset>
|
|
</div>
|
|
|
|
[% IF ( suggestion ) %][% IF ( suggestions_count ) %]
|
|
<div id="acqui_acqui_home_suggestions">
|
|
<fieldset>
|
|
<legend>Pending suggestions</legend>
|
|
<p>[% suggestions_count %] suggestions waiting. <a href="/cgi-bin/koha/suggestion/suggestion.pl">Manage suggestions</a>.</p>
|
|
</fieldset>
|
|
</div>[% END %][% END %]
|
|
|
|
</div>
|
|
|
|
<div class="yui-u">
|
|
|
|
[% IF ( loop_budget ) %]
|
|
|
|
<h3>All available funds[% IF ( branchname ) %] for [% branchname %] library[% END %]</h3>
|
|
|
|
<!-- <a href="/cgi-bin/koha/admin/aqbookfund.pl" title="[ Manage funds ]">[ Manage ]</a>
|
|
<a href="/cgi-bin/koha/admin/budgetperiods.pl">manage budgets</a><br><br> -->
|
|
|
|
|
|
|
|
<div id="BudgetsAndFunds">
|
|
<table id="accounts">
|
|
<thead>
|
|
<tr>
|
|
<th>Fund</th>
|
|
<th>Owner</th>
|
|
<th>Library</th>
|
|
<th>Amount</th>
|
|
<th>Ordered</th>
|
|
<th>Spent</th>
|
|
<th>Avail</th>
|
|
</tr>
|
|
</thead>
|
|
<tfoot id="funds_total">
|
|
<tr>
|
|
<th>Total</th>
|
|
<th> </th>
|
|
<th> </th>
|
|
<th align="right" ><span class="bu_active" style="display : none;">[% total %]</span><span class="bu_inactive" >[% total_active %]</span></th>
|
|
<th align="right" ><span class="bu_active" style="display : none;">[% totordered %]</span><span class="bu_inactive" >[% totordered_active %]</span></th>
|
|
<th align="right" ><span class="bu_active" style="display : none;">[% totspent %]</span><span class="bu_inactive" >[% totspent_active %]</span></th>
|
|
<th align="right" ><span class="bu_active" style="display : none;">[% totavail %]</span><span class="bu_inactive" >[% totavail_active %]</span></th>
|
|
</tr>
|
|
</tfoot>
|
|
<tbody>
|
|
[% FOREACH loop_budge IN loop_budget %]
|
|
[% IF ( loop_budge.budget_period_active ) %]
|
|
[% IF ( loop.odd ) %]
|
|
<tr>
|
|
[% ELSE %]
|
|
<tr class="highlight">
|
|
[% END %]
|
|
<td align="center">[% loop_budge.budget_code %]</td>
|
|
<td align="center">[% loop_budge.budget_owner %]</td>
|
|
<td align="center">[% loop_budge.budget_branchname %]</td>
|
|
<td align="right" >[% loop_budge.budget_amount %]</td>
|
|
<td align="right" ><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
|
|
<td align="right" ><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
|
|
<td align="right" >[% loop_budge.budget_avail %]</td>
|
|
</tr>
|
|
[% ELSE %]
|
|
[% IF ( loop.odd ) %]
|
|
<tr class="b_inactive" style="display : none;">
|
|
[% ELSE %]
|
|
<tr class="highlight" id = "b_inactive" style="display : none;">
|
|
[% END %]
|
|
<td align="center" >[% loop_budge.budget_code %]</td>
|
|
<td align="center">[% loop_budge.budget_owner %]</td>
|
|
<td align="center">[% loop_budge.budget_branchname %]</td>
|
|
<td align="right" >[% loop_budge.budget_amount %]</td>
|
|
<td align="right" ><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_ordered %]</a></td>
|
|
<td align="right" ><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.budget_spent %]</a></td>
|
|
<td align="right" >[% loop_budge.budget_avail %]</td>
|
|
[% END %]
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
</div><span class="label">Show all : </span><input type="checkbox" id="showallbudgets" />
|
|
[% END %]
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
[% INCLUDE 'acquisitions-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|