Lines 1-5
Link Here
|
1 |
[% USE KohaDates %] |
1 |
[% USE KohaDates %] |
2 |
[% USE Koha %] |
2 |
[% USE Koha %] |
|
|
3 |
[% USE ColumnsSettings %] |
3 |
[% SET footerjs = 1 %] |
4 |
[% SET footerjs = 1 %] |
4 |
[%- BLOCK area_name -%] |
5 |
[%- BLOCK area_name -%] |
5 |
[%- SWITCH area -%] |
6 |
[%- SWITCH area -%] |
Lines 168-174
canned reports and writing custom SQL reports.</p>
Link Here
|
168 |
[% IF (usecache) %] <th>Cache expiry (seconds)</th> [% END %] |
169 |
[% IF (usecache) %] <th>Cache expiry (seconds)</th> [% END %] |
169 |
<th>Saved results</th> |
170 |
<th>Saved results</th> |
170 |
[% IF has_obsolete_reports %]<th>Update</th>[% END %] |
171 |
[% IF has_obsolete_reports %]<th>Update</th>[% END %] |
171 |
<th> </th> |
172 |
<th>Actions</th> |
172 |
</tr> |
173 |
</tr> |
173 |
</thead> |
174 |
</thead> |
174 |
<tbody> |
175 |
<tbody> |
Lines 928-935
Sub report:<select name="subreport">
Link Here
|
928 |
[% INCLUDE 'calendar.inc' %] |
929 |
[% INCLUDE 'calendar.inc' %] |
929 |
[% IF ( saved1 ) %] |
930 |
[% IF ( saved1 ) %] |
930 |
[% INCLUDE 'datatables.inc' %] |
931 |
[% INCLUDE 'datatables.inc' %] |
|
|
932 |
[% INCLUDE 'columns_settings.inc' %] |
931 |
[% END %] |
933 |
[% END %] |
932 |
<script type="text/javascript"> |
934 |
<script> |
933 |
var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this report? This cannot be undone."); |
935 |
var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this report? This cannot be undone."); |
934 |
var group_subgroups = {}; |
936 |
var group_subgroups = {}; |
935 |
[% FOREACH group IN groups_with_subgroups %] |
937 |
[% FOREACH group IN groups_with_subgroups %] |
Lines 959-964
Sub report:<select name="subreport">
Link Here
|
959 |
} |
961 |
} |
960 |
|
962 |
|
961 |
$(document).ready(function(){ |
963 |
$(document).ready(function(){ |
|
|
964 |
var columns_settings = [% ColumnsSettings.GetColumns( 'reports', 'saved-sql', 'table_reports', 'json' ) %]; |
962 |
$('#limit').change(function() { |
965 |
$('#limit').change(function() { |
963 |
$('#limitselect').submit(); |
966 |
$('#limitselect').submit(); |
964 |
}); |
967 |
}); |
Lines 977-983
Sub report:<select name="subreport">
Link Here
|
977 |
}); |
980 |
}); |
978 |
|
981 |
|
979 |
[% IF (saved1) %] |
982 |
[% IF (saved1) %] |
980 |
var rtable = $("#table_reports").dataTable($.extend(true, {}, dataTablesDefaults, { |
983 |
var rtable = KohaTable("table_reports", { |
981 |
'iDisplayLength': [% Koha.Preference('NumSavedReports') %], |
984 |
'iDisplayLength': [% Koha.Preference('NumSavedReports') %], |
982 |
'bAutoWidth': false, |
985 |
'bAutoWidth': false, |
983 |
'sPaginationType': 'four_button', |
986 |
'sPaginationType': 'four_button', |
Lines 990-997
Sub report:<select name="subreport">
Link Here
|
990 |
], |
993 |
], |
991 |
'oLanguage': { |
994 |
'oLanguage': { |
992 |
'sZeroRecords': _("No matching reports found") |
995 |
'sZeroRecords': _("No matching reports found") |
993 |
} |
996 |
}, |
994 |
})); |
997 |
}, columns_settings); |
995 |
|
998 |
|
996 |
var rtabs = $("#tabs").tabs(); |
999 |
var rtabs = $("#tabs").tabs(); |
997 |
rtabs.on("tabsactivate", function(e, ui) { |
1000 |
rtabs.on("tabsactivate", function(e, ui) { |
998 |
- |
|
|