Lines 1-9
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
|
|
2 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
2 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'calendar.inc' %] |
4 |
[% INCLUDE 'calendar.inc' %] |
4 |
|
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> |
5 |
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script> |
8 |
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script> |
6 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> |
|
|
7 |
<script type="text/javascript"> |
9 |
<script type="text/javascript"> |
8 |
// ################################################################################# |
10 |
// ################################################################################# |
9 |
// Javascript |
11 |
// Javascript |
Lines 70-82
Link Here
|
70 |
alert(alertString2); |
72 |
alert(alertString2); |
71 |
} |
73 |
} |
72 |
} |
74 |
} |
73 |
$(document).ready(function() { |
75 |
|
74 |
$("#periodsh").tablesorter({ |
76 |
|
75 |
widgets : ['zebra'], |
77 |
|
76 |
sortList: [[0,0]], |
78 |
[% IF ( dateformat == 'metric' ) %] |
77 |
headers: {6:{sorter:false}} |
79 |
dt_add_type_uk_date(); |
78 |
}); |
80 |
[% END %] |
79 |
}); |
81 |
$(document).ready(function() { |
|
|
82 |
var tabs = $('#budgetsTabs > ul').tabs(); |
83 |
[% IF ( tab ) %] |
84 |
tabs.tabs('select', [% tab %]); |
85 |
[% END %] |
86 |
$("table").dataTable($.extend(true, {}, dataTablesDefaults, { |
87 |
"aoColumnDefs": [ |
88 |
{ |
89 |
[% IF ( dateformat == 'metric' ) %] |
90 |
"aTargets": [ 1, 2 ], "sType": "uk_date", |
91 |
[% END %] |
92 |
"bSortable": false, 'aTargets':['_all'], |
93 |
}, |
94 |
], |
95 |
"sPaginationType": "four_button", |
96 |
"bAutoWidth": false, |
97 |
"bPaginate": false, |
98 |
"bInfo": false, |
99 |
"bFilter": false, |
100 |
} ) ); |
101 |
}); |
80 |
</script> |
102 |
</script> |
81 |
|
103 |
|
82 |
<title> |
104 |
<title> |
Lines 331-378
Link Here
|
331 |
[% END %] |
353 |
[% END %] |
332 |
<!-- DEFAULT display budget periods list --> |
354 |
<!-- DEFAULT display budget periods list --> |
333 |
[% IF ( else ) %] |
355 |
[% IF ( else ) %] |
334 |
<h2>Budgets administration</h2> |
356 |
<h2>Budgets administration</h2> |
335 |
|
357 |
|
336 |
[% INCLUDE 'budgets-active-currency.inc' %] |
358 |
[% INCLUDE 'budgets-active-currency.inc' %] |
337 |
|
359 |
|
338 |
<table id="periodsh"> |
360 |
<div id="budgetsTabs" class="toptabs"> |
339 |
<thead> |
361 |
<ul> |
340 |
<tr> |
362 |
<li><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl#active">Active Budgets</a></li> |
341 |
<th>Budget name</th> |
363 |
<li><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl#inactive">Inactive Budgets</a></li> |
342 |
<th>Start date</th> |
364 |
</ul> |
343 |
<th>End date</th> |
365 |
|
344 |
<th>Active</th> |
366 |
<div id="active"> |
345 |
<th>Locked</th> |
367 |
<h3>Active Budgets</h3> |
346 |
<th>Total</th> |
368 |
<table id="activeperiodst"> |
347 |
<th>Actions</th> |
369 |
<thead> |
348 |
</tr> |
370 |
<tr> |
349 |
</thead> |
371 |
<th>Budget Name</th> |
350 |
<tbody> |
372 |
<th>Start Date</th> |
351 |
[% FOREACH period_loo IN period_loop %] |
373 |
<th>End Date</th> |
352 |
[% IF ( loop.odd ) %] |
374 |
<th>Locked</th> |
353 |
<tr> |
375 |
<th>Total</th> |
354 |
[% ELSE %] |
376 |
<th>Actions</th> |
355 |
<tr class="highlight"> |
377 |
</tr> |
356 |
[% END %] |
378 |
</thead> |
357 |
<td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_loo.budget_period_id %]" title="View funds for [% period_loo.budget_period_description %]">[% period_loo.budget_period_description %]</a></td> |
379 |
<tbody> |
358 |
<td>[% period_loo.budget_period_startdate %]</td> |
380 |
[% FOREACH period_active IN period_active_loop %] |
359 |
<td>[% period_loo.budget_period_enddate %]</td> |
381 |
<tr> |
360 |
<td>[% IF ( period_loo.budget_period_active ) %]<span style="color:green;">Active</span> [% ELSE %][% END %] </td> |
382 |
<td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_active.budget_period_id %]" title="View funds for [% period_active.budget_period_description %]">[% period_active.budget_period_description %]</a></td> |
361 |
<td> [% IF ( period_loo.budget_period_locked ) %]<span style="color:green;">Locked</span> [% ELSE %][% END %] </td> |
383 |
<td>[% period_active.budget_period_startdate %]</td> |
362 |
<td align='right'>[% period_loo.budget_period_total %]</td> |
384 |
<td>[% period_active.budget_period_enddate %]</td> |
363 |
<td> |
385 |
<td> |
364 |
<a href="[% period_loo.script_name %]?op=add_form&budget_period_id=[% period_loo.budget_period_id |html %]">Edit</a> |
386 |
[% IF ( period_active.budget_period_locked ) %] |
365 |
<a href="[% period_loo.script_name %]?op=delete_confirm&budget_period_id=[% period_loo.budget_period_id %]">Delete</a> |
387 |
<span style="color:green;">Locked</span> |
366 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_loo.budget_period_id %]">Add fund</a> |
388 |
[% END %] |
367 |
</td> |
389 |
</td> |
368 |
</tr> |
390 |
<td align='right'>[% period_active.budget_period_total %]</td> |
369 |
[% END %] |
391 |
<td> |
370 |
[% UNLESS ( period_loop ) %] |
392 |
<a href="[% script_name %]?op=add_form&budget_period_id=[% period_active.budget_period_id |html %]">Edit</a> |
371 |
<tr><td colspan="7">No budget</td></tr> |
393 |
<a href="[% script_name %]?op=delete_confirm&budget_period_id=[% period_active.budget_period_id %]">Delete</a> |
372 |
[% END %] |
394 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_active.budget_period_id %]">Add Fund</a> |
373 |
</tbody> |
395 |
</td> |
374 |
</table> |
396 |
</tr> |
375 |
<div class="pages">[% pagination_bar %]</div> |
397 |
[% END %] |
|
|
398 |
[% UNLESS ( period_active_loop ) %] |
399 |
<tr><td colspan="7">No budget</td></tr> |
400 |
[% END %] |
401 |
</tbody> |
402 |
</table> |
403 |
<div class="paginationBar">[% active_pagination_bar %]</div> |
404 |
</div> |
405 |
<div id="inactive"> |
406 |
<h3>Inactive Budgets</h3> |
407 |
<table id="inactiveperiodst"> |
408 |
<thead> |
409 |
<tr> |
410 |
<th>Budget name</th> |
411 |
<th>Start date</th> |
412 |
<th>End date</th> |
413 |
<th>Locked</th> |
414 |
<th>Total</th> |
415 |
<th>Actions</th> |
416 |
</tr> |
417 |
</thead> |
418 |
<tbody> |
419 |
[% FOREACH period_loo IN period_inactive_loop %] |
420 |
[% IF ( loop.odd ) %] |
421 |
<tr> |
422 |
[% ELSE %] |
423 |
<tr class="highlight"> |
424 |
[% END %] |
425 |
<td><a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% period_loo.budget_period_id %]" title="View funds for [% period_loo.budget_period_description %]">[% period_loo.budget_period_description %]</a></td> |
426 |
<td>[% period_loo.budget_period_startdate %]</td> |
427 |
<td>[% period_loo.budget_period_enddate %]</td> |
428 |
<td> [% IF ( period_loo.budget_period_locked ) %]<span style="color:green;">Locked</span> [% ELSE %][% END %] </td> |
429 |
<td align='right'>[% period_loo.budget_period_total %]</td> |
430 |
<td> |
431 |
<a href="[% period_loo.script_name %]?op=add_form&budget_period_id=[% period_loo.budget_period_id |html %]">Edit</a> |
432 |
<a href="[% period_loo.script_name %]?op=delete_confirm&budget_period_id=[% period_loo.budget_period_id %]">Delete</a> |
433 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_loo.budget_period_id %]">Add fund</a> |
434 |
</td> |
435 |
</tr> |
436 |
[% END %] |
437 |
[% UNLESS ( period_inactive_loop ) %] |
438 |
<tr><td colspan="7">No budget</td></tr> |
439 |
[% END %] |
440 |
</tbody> |
441 |
</table> |
442 |
<div class="pages">[% inactive_pagination_bar %]</div> |
443 |
</div> |
444 |
</div> |
376 |
[% END %] |
445 |
[% END %] |
377 |
|
446 |
|
378 |
|
447 |
|
379 |
- |
|
|