[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Tools › Notices[% IF ( add_form ) %][% IF ( modify ) %] › Modify notice[% ELSE %] › Add notice[% END %][% END %][% IF ( add_validate ) %] › Notice added[% END %][% IF ( delete_confirm ) %] › Confirm deletion[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
- <script type="text/javascript">
- //<![CDATA[
+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
+[% INCLUDE 'datatables.inc' %]
+<script type="text/javascript">
+//<![CDATA[
$(document).ready(function() {
- $("#lettert:has(tbody tr)").tablesorter({
- widgets : ['zebra'],
- sortList: [[0,0]],
- headers: { 4: {sorter:false},5: { sorter: false },6: { sorter: false }}
- });
-
- $('#branch').change(function() {
+ $("#lettert:has(tbody tr)").dataTable($.extend(true, {}, dataTablesDefaults, {
+ "sDom": 't',
+ "aoColumnDefs": [
+ { "aTargets": [ -1,-2, -3 ], "bSortable": false, "bSearchable": false }
+ ],
+ "bPaginate": false
+ }));
+ [% IF no_op_set %]
+ $('#branch').change(function() {
$('#op').val("");
$('#selectlibrary').submit();
- });
- $('#newnotice').click(function() {
+ });
+ $('#newnotice').click(function() {
$('#op').val("add_form");
return true;
- });
+ });
+ [% END %]
});
[% IF ( add_form ) %]
}
return true;
}
-
- function toUC(f) {
- var x=f.value.toUpperCase();
- f.value=x;
- return true;
- }
-
+
function isNum(v,maybenull) {
var n = new Number(v.value);
if (isNaN(n)) {
}
return true;
}
-
- function isDate(f) {
- var t = Date.parse(f.value);
- if (isNaN(t)) {
- return false;
- }
- }
-
+
function Check(f) {
var ok=1;
var _alertString="";
</select>
[% END %]
[% END %]
+
+[% IF ( letter ) %]
<table id="lettert">
<thead><tr>
<th>Library</th>
<td>[% lette.module %]</td>
<td>[% lette.code %]</td>
<td>[% lette.name %]</td>
- <td>
+ <td style="white-space: nowrap">
[% IF !independant_branch || !lette.branchcode %]
<form method="post" action="/cgi-bin/koha/tools/letter.pl">
<input type="hidden" name="op" value="copy" />
[% END %]
</tbody>
</table>
+[% ELSE %]
+ <div class="dialog message">
+ [% IF ( branchcode ) %]
+ <p>There are no notices for this library.</p>
+ [% ELSE %]
+ <p>There are no notices.</p>
+ [% END %]
+ </div>
+[% END %]
[% END %]