Lines 5-27
Link Here
|
5 |
[% IF ( delete_confirmed ) %]Category deleted[% END %]</title> |
5 |
[% IF ( delete_confirmed ) %]Category deleted[% END %]</title> |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'calendar.inc' %] |
7 |
[% INCLUDE 'calendar.inc' %] |
8 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> |
8 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
9 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script> |
9 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
10 |
<script type="text/javascript" id="js">$(document).ready(function() { |
10 |
[% INCLUDE 'datatables-strings.inc' %] |
11 |
$("#table_categorie").tablesorter({ |
11 |
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> |
12 |
sortList: [[0,0]], |
12 |
<script type="text/javascript" id="js"> |
13 |
widgets: ['zebra'], |
13 |
//<![CDATA[ |
14 |
headers: { 11: { sorter: false}} |
14 |
$(document).ready(function() { |
15 |
}).tablesorterPager({container: $("#pagertable_categorie"),positionFixed: false,size: 20}); |
15 |
$("#table_categorie").dataTable($.extend(true, {}, dataTablesDefaults, { |
|
|
16 |
"aoColumnDefs": [ |
17 |
{ "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false }, |
18 |
{ "aTargets": [ 3,4,5 ], "sType": "natural" }, |
19 |
], |
20 |
"aaSorting": [[ 1, "asc" ]], |
21 |
"iDisplayLength": 20, |
22 |
"sPaginationType": "four_button" |
23 |
})); |
24 |
|
16 |
$( "#enrolmentperioddate" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future |
25 |
$( "#enrolmentperioddate" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future |
17 |
|
26 |
|
18 |
if ( $("#branches option:selected").length < 1 ) { |
27 |
if ( $("#branches option:selected").length < 1 ) { |
19 |
$("#branches option:first").attr("selected", "selected"); |
28 |
$("#branches option:first").attr("selected", "selected"); |
20 |
} |
29 |
} |
21 |
}); </script> |
30 |
}); |
22 |
<script type="text/javascript"> |
|
|
23 |
//<![CDATA[ |
24 |
// |
25 |
function isNotNull(f,noalert) { |
31 |
function isNotNull(f,noalert) { |
26 |
if (f.value.length ==0) { |
32 |
if (f.value.length ==0) { |
27 |
return false; |
33 |
return false; |
Lines 276-285
Confirm deletion of category [% categorycode |html %][% END %]</legend>
Link Here
|
276 |
[% END %] |
282 |
[% END %] |
277 |
[% IF ( loop ) %] |
283 |
[% IF ( loop ) %] |
278 |
<div id="pagertable_categorie"> |
284 |
<div id="pagertable_categorie"> |
279 |
[% INCLUDE 'table-pager.inc' perpage='20' %] |
|
|
280 |
</div> |
285 |
</div> |
281 |
<table id="table_categorie"> |
286 |
<table id="table_categorie"> |
282 |
<thead> |
287 |
<thead> |
|
|
288 |
<tr> |
283 |
<th scope="col">Code</th> |
289 |
<th scope="col">Code</th> |
284 |
<th scope="col">Category name</th> |
290 |
<th scope="col">Category name</th> |
285 |
<th scope="col">Type</th> |
291 |
<th scope="col">Type</th> |
Lines 294-301
Confirm deletion of category [% categorycode |html %][% END %]</legend>
Link Here
|
294 |
<th scope="col">Messaging</th> |
300 |
<th scope="col">Messaging</th> |
295 |
[% END %] |
301 |
[% END %] |
296 |
<th scope="col">Branches limitations</th> |
302 |
<th scope="col">Branches limitations</th> |
297 |
<th scope="col" colspan="2"> </th> |
303 |
<th scope="col"> </th> |
|
|
304 |
<th scope="col"> </th> |
305 |
</tr> |
298 |
</thead> |
306 |
</thead> |
|
|
307 |
<tbody> |
299 |
[% FOREACH loo IN loop %] |
308 |
[% FOREACH loo IN loop %] |
300 |
<tr> |
309 |
<tr> |
301 |
<td>[% loo.categorycode |html %]</td> |
310 |
<td>[% loo.categorycode |html %]</td> |
Lines 368-373
Confirm deletion of category [% categorycode |html %][% END %]</legend>
Link Here
|
368 |
<td><a href="[% loo.script_name %]?op=delete_confirm&categorycode=[% loo.categorycode |uri %]">Delete</a></td> |
377 |
<td><a href="[% loo.script_name %]?op=delete_confirm&categorycode=[% loo.categorycode |uri %]">Delete</a></td> |
369 |
</tr> |
378 |
</tr> |
370 |
[% END %] |
379 |
[% END %] |
|
|
380 |
</tbody> |
371 |
</table> |
381 |
</table> |
372 |
[% ELSE %] |
382 |
[% ELSE %] |
373 |
<div class="dialog alert">No categories have been defined. <a href="/cgi-bin/koha/admin/categorie.pl?op=add_form">Create a new category</a>.</div> |
383 |
<div class="dialog alert">No categories have been defined. <a href="/cgi-bin/koha/admin/categorie.pl?op=add_form">Create a new category</a>.</div> |
374 |
- |
|
|