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="/intranet-tmpl/prog/en/css/datatables.css" /> |
9 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script> |
9 |
<script type="text/javascript" src="/intranet-tmpl/prog/en/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="/intranet-tmpl/prog/en/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 |
], |
19 |
"aaSorting": [[ 1, "asc" ]], |
20 |
"iDisplayLength": 20, |
21 |
"sPaginationType": "four_button" |
22 |
})); |
23 |
|
16 |
$( "#enrolmentperioddate" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future |
24 |
$( "#enrolmentperioddate" ).datepicker({ minDate: 1 }); // Require that "until date" be in the future |
17 |
|
25 |
|
18 |
if ( $("#branches option:selected").length < 1 ) { |
26 |
if ( $("#branches option:selected").length < 1 ) { |
19 |
$("#branches option:first").attr("selected", "selected"); |
27 |
$("#branches option:first").attr("selected", "selected"); |
20 |
} |
28 |
} |
21 |
}); </script> |
29 |
}); |
22 |
<script type="text/javascript"> |
|
|
23 |
//<![CDATA[ |
24 |
// |
25 |
function isNotNull(f,noalert) { |
30 |
function isNotNull(f,noalert) { |
26 |
if (f.value.length ==0) { |
31 |
if (f.value.length ==0) { |
27 |
return false; |
32 |
return false; |
Lines 294-303
Confirm deletion of category [% categorycode |html %][% END %]</legend>
Link Here
|
294 |
[% END %] |
299 |
[% END %] |
295 |
[% IF ( loop ) %] |
300 |
[% IF ( loop ) %] |
296 |
<div id="pagertable_categorie"> |
301 |
<div id="pagertable_categorie"> |
297 |
[% INCLUDE 'table-pager.inc' perpage='20' %] |
|
|
298 |
</div> |
302 |
</div> |
299 |
<table id="table_categorie"> |
303 |
<table id="table_categorie"> |
300 |
<thead> |
304 |
<thead> |
|
|
305 |
<tr> |
301 |
<th scope="col">Code</th> |
306 |
<th scope="col">Code</th> |
302 |
<th scope="col">Category name</th> |
307 |
<th scope="col">Category name</th> |
303 |
<th scope="col">Type</th> |
308 |
<th scope="col">Type</th> |
Lines 312-319
Confirm deletion of category [% categorycode |html %][% END %]</legend>
Link Here
|
312 |
<th scope="col">Messaging</th> |
317 |
<th scope="col">Messaging</th> |
313 |
[% END %] |
318 |
[% END %] |
314 |
<th scope="col">Branches limitations</th> |
319 |
<th scope="col">Branches limitations</th> |
315 |
<th scope="col" colspan="2"> </th> |
320 |
<th scope="col"> </th> |
|
|
321 |
<th scope="col"> </th> |
322 |
</tr> |
316 |
</thead> |
323 |
</thead> |
|
|
324 |
<tbody> |
317 |
[% FOREACH loo IN loop %] |
325 |
[% FOREACH loo IN loop %] |
318 |
<tr> |
326 |
<tr> |
319 |
<td>[% loo.categorycode |html %]</td> |
327 |
<td>[% loo.categorycode |html %]</td> |
Lines 386-391
Confirm deletion of category [% categorycode |html %][% END %]</legend>
Link Here
|
386 |
<td><a href="[% loo.script_name %]?op=delete_confirm&categorycode=[% loo.categorycode |uri %]">Delete</a></td> |
394 |
<td><a href="[% loo.script_name %]?op=delete_confirm&categorycode=[% loo.categorycode |uri %]">Delete</a></td> |
387 |
</tr> |
395 |
</tr> |
388 |
[% END %] |
396 |
[% END %] |
|
|
397 |
</tbody> |
389 |
</table> |
398 |
</table> |
390 |
[% ELSE %] |
399 |
[% ELSE %] |
391 |
<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> |
400 |
<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> |
392 |
- |
|
|