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 327-374
Link Here
|
327 |
[% END %] |
349 |
[% END %] |
328 |
<!-- DEFAULT display budget periods list --> |
350 |
<!-- DEFAULT display budget periods list --> |
329 |
[% IF ( else ) %] |
351 |
[% IF ( else ) %] |
330 |
<h2>Budgets administration</h2> |
352 |
<h2>Budgets administration</h2> |
331 |
|
353 |
|
332 |
[% INCLUDE 'budgets-active-currency.inc' %] |
354 |
[% INCLUDE 'budgets-active-currency.inc' %] |
333 |
|
355 |
|
334 |
<table id="periodsh"> |
356 |
<div id="budgetsTabs" class="toptabs"> |
335 |
<thead> |
357 |
<ul> |
336 |
<tr> |
358 |
<li><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl#active">Active Budgets</a></li> |
337 |
<th>Budget name</th> |
359 |
<li><a href="/cgi-bin/koha/admin/aqbudgetperiods.pl#inactive">Inactive Budgets</a></li> |
338 |
<th>Start date</th> |
360 |
</ul> |
339 |
<th>End date</th> |
361 |
|
340 |
<th>Active</th> |
362 |
<div id="active"> |
341 |
<th>Locked</th> |
363 |
<h3>Active Budgets</h3> |
342 |
<th>Total</th> |
364 |
<table id="activeperiodst"> |
343 |
<th>Actions</th> |
365 |
<thead> |
344 |
</tr> |
366 |
<tr> |
345 |
</thead> |
367 |
<th>Budget Name</th> |
346 |
<tbody> |
368 |
<th>Start Date</th> |
347 |
[% FOREACH period_loo IN period_loop %] |
369 |
<th>End Date</th> |
348 |
[% IF ( loop.odd ) %] |
370 |
<th>Locked</th> |
349 |
<tr> |
371 |
<th>Total</th> |
350 |
[% ELSE %] |
372 |
<th>Actions</th> |
351 |
<tr class="highlight"> |
373 |
</tr> |
352 |
[% END %] |
374 |
</thead> |
353 |
<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> |
375 |
<tbody> |
354 |
<td>[% period_loo.budget_period_startdate %]</td> |
376 |
[% FOREACH period_active IN period_active_loop %] |
355 |
<td>[% period_loo.budget_period_enddate %]</td> |
377 |
<tr> |
356 |
<td>[% IF ( period_loo.budget_period_active ) %]<span style="color:green;">Active</span> [% ELSE %][% END %] </td> |
378 |
<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> |
357 |
<td> [% IF ( period_loo.budget_period_locked ) %]<span style="color:green;">Locked</span> [% ELSE %][% END %] </td> |
379 |
<td>[% period_active.budget_period_startdate %]</td> |
358 |
<td align='right'>[% period_loo.budget_period_total %]</td> |
380 |
<td>[% period_active.budget_period_enddate %]</td> |
359 |
<td> |
381 |
<td> |
360 |
<a href="[% period_loo.script_name %]?op=add_form&budget_period_id=[% period_loo.budget_period_id |html %]">Edit</a> |
382 |
[% IF ( period_active.budget_period_locked ) %] |
361 |
<a href="[% period_loo.script_name %]?op=delete_confirm&budget_period_id=[% period_loo.budget_period_id %]">Delete</a> |
383 |
<span style="color:green;">Locked</span> |
362 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_loo.budget_period_id %]">Add fund</a> |
384 |
[% END %] |
363 |
</td> |
385 |
</td> |
364 |
</tr> |
386 |
<td align='right'>[% period_active.budget_period_total %]</td> |
365 |
[% END %] |
387 |
<td> |
366 |
[% UNLESS ( period_loop ) %] |
388 |
<a href="[% script_name %]?op=add_form&budget_period_id=[% period_active.budget_period_id |html %]">Edit</a> |
367 |
<tr><td colspan="7">No budget</td></tr> |
389 |
<a href="[% script_name %]?op=delete_confirm&budget_period_id=[% period_active.budget_period_id %]">Delete</a> |
368 |
[% END %] |
390 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_active.budget_period_id %]">Add Fund</a> |
369 |
</tbody> |
391 |
</td> |
370 |
</table> |
392 |
</tr> |
371 |
<div class="pages">[% pagination_bar %]</div> |
393 |
[% END %] |
|
|
394 |
[% UNLESS ( period_active_loop ) %] |
395 |
<tr><td colspan="7">No budget</td></tr> |
396 |
[% END %] |
397 |
</tbody> |
398 |
</table> |
399 |
<div class="paginationBar">[% active_pagination_bar %]</div> |
400 |
</div> |
401 |
<div id="inactive"> |
402 |
<h3>Inactive Budgets</h3> |
403 |
<table id="inactiveperiodst"> |
404 |
<thead> |
405 |
<tr> |
406 |
<th>Budget name</th> |
407 |
<th>Start date</th> |
408 |
<th>End date</th> |
409 |
<th>Locked</th> |
410 |
<th>Total</th> |
411 |
<th>Actions</th> |
412 |
</tr> |
413 |
</thead> |
414 |
<tbody> |
415 |
[% FOREACH period_loo IN period_inactive_loop %] |
416 |
[% IF ( loop.odd ) %] |
417 |
<tr> |
418 |
[% ELSE %] |
419 |
<tr class="highlight"> |
420 |
[% END %] |
421 |
<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> |
422 |
<td>[% period_loo.budget_period_startdate %]</td> |
423 |
<td>[% period_loo.budget_period_enddate %]</td> |
424 |
<td> [% IF ( period_loo.budget_period_locked ) %]<span style="color:green;">Locked</span> [% ELSE %][% END %] </td> |
425 |
<td align='right'>[% period_loo.budget_period_total %]</td> |
426 |
<td> |
427 |
<a href="[% period_loo.script_name %]?op=add_form&budget_period_id=[% period_loo.budget_period_id |html %]">Edit</a> |
428 |
<a href="[% period_loo.script_name %]?op=delete_confirm&budget_period_id=[% period_loo.budget_period_id %]">Delete</a> |
429 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_loo.budget_period_id %]">Add fund</a> |
430 |
</td> |
431 |
</tr> |
432 |
[% END %] |
433 |
[% UNLESS ( period_inactive_loop ) %] |
434 |
<tr><td colspan="7">No budget</td></tr> |
435 |
[% END %] |
436 |
</tbody> |
437 |
</table> |
438 |
<div class="pages">[% inactive_pagination_bar %]</div> |
439 |
</div> |
440 |
</div> |
372 |
[% END %] |
441 |
[% END %] |
373 |
|
442 |
|
374 |
|
443 |
|
375 |
- |
|
|