Lines 695-708
canned reports and writing custom SQL reports.</p>
Link Here
|
695 |
|
695 |
|
696 |
<div class="pages">[% pagination_bar %]</div> |
696 |
<div class="pages">[% pagination_bar %]</div> |
697 |
[% UNLESS ( errors ) %] |
697 |
[% UNLESS ( errors ) %] |
|
|
698 |
<form method="POST" id="report_results"> |
699 |
<input type="hidden" name="op" value="show"> |
698 |
<table> |
700 |
<table> |
699 |
<tr>[% FOREACH header_ro IN header_row %]<th>[% header_ro.cell %]</th>[% END %]</tr> |
701 |
<tr>[% FOREACH header_ro IN header_row %] |
|
|
702 |
[% IF header_ro.cell == 'itemnumber' %] |
703 |
<th>[% header_ro.cell %] <a href="" data-toggle="tooltip" title="Send visible items to batch modification" class="send_to_item_mod">^</a></th> |
704 |
[% ELSE %] |
705 |
<th>[% header_ro.cell %]</th> |
706 |
[% END %] |
707 |
[% END %]</tr> |
700 |
[% FOREACH result IN results %] |
708 |
[% FOREACH result IN results %] |
701 |
<tr> |
709 |
<tr> |
702 |
[% FOREACH cell IN result.cells %]<td>[% cell.cell %]</td>[% END %] |
710 |
[% FOREACH cells IN result.cells %] |
|
|
711 |
[% place = loop.index %] |
712 |
[% IF header_row.$place.cell == 'itemnumber' %] |
713 |
<input type="hidden" name="[% header_row.$place.cell | html %]" value="[% cells.cell | html %]"> |
714 |
[% END %] |
715 |
<td>[% cells.cell %]</td> |
716 |
[% END %] |
703 |
</tr> |
717 |
</tr> |
704 |
[% END %] |
718 |
[% END %] |
705 |
</table> |
719 |
</table> |
|
|
720 |
</form> |
706 |
[% END %] |
721 |
[% END %] |
707 |
[% END %] |
722 |
[% END %] |
708 |
|
723 |
|
Lines 949-954
Sub report:<select name="subreport">
Link Here
|
949 |
} |
964 |
} |
950 |
|
965 |
|
951 |
$(document).ready(function(){ |
966 |
$(document).ready(function(){ |
|
|
967 |
|
968 |
$('[data-toggle="tooltip"]').tooltip(); |
969 |
|
952 |
$('#limit').change(function() { |
970 |
$('#limit').change(function() { |
953 |
$('#limitselect').submit(); |
971 |
$('#limitselect').submit(); |
954 |
}); |
972 |
}); |
Lines 966-971
Sub report:<select name="subreport">
Link Here
|
966 |
delColumn(); |
984 |
delColumn(); |
967 |
}); |
985 |
}); |
968 |
|
986 |
|
|
|
987 |
$(".send_to_item_mod").click(function(e){ |
988 |
e.preventDefault(); |
989 |
$("#report_results").attr("action","/cgi-bin/koha/tools/batchMod.pl"); |
990 |
$("#report_results").submit(); |
991 |
}); |
992 |
|
969 |
[% IF (saved1) %] |
993 |
[% IF (saved1) %] |
970 |
var rtable = $("#table_reports").dataTable($.extend(true, {}, dataTablesDefaults, { |
994 |
var rtable = $("#table_reports").dataTable($.extend(true, {}, dataTablesDefaults, { |
971 |
'iDisplayLength': [% Koha.Preference('NumSavedReports') %], |
995 |
'iDisplayLength': [% Koha.Preference('NumSavedReports') %], |
972 |
- |
|
|