Lines 705-718
canned reports and writing custom SQL reports.</p>
Link Here
|
705 |
|
705 |
|
706 |
<div class="pages">[% pagination_bar %]</div> |
706 |
<div class="pages">[% pagination_bar %]</div> |
707 |
[% UNLESS ( errors ) %] |
707 |
[% UNLESS ( errors ) %] |
|
|
708 |
<form method="POST" id="report_results"> |
709 |
<input type="hidden" name="op" value="show"> |
708 |
<table> |
710 |
<table> |
709 |
<tr>[% FOREACH header_ro IN header_row %]<th>[% header_ro.cell %]</th>[% END %]</tr> |
711 |
<tr>[% FOREACH header_ro IN header_row %] |
|
|
712 |
[% IF header_ro.cell == 'itemnumber' %] |
713 |
<th>[% header_ro.cell %] <a href="" data-toggle="tooltip" title="Send visible items to batch modification" class="send_to_item_mod">^</a></th> |
714 |
[% ELSE %] |
715 |
<th>[% header_ro.cell %]</th> |
716 |
[% END %] |
717 |
[% END %]</tr> |
710 |
[% FOREACH result IN results %] |
718 |
[% FOREACH result IN results %] |
711 |
<tr> |
719 |
<tr> |
712 |
[% FOREACH cell IN result.cells %]<td>[% cell.cell %]</td>[% END %] |
720 |
[% FOREACH cells IN result.cells %] |
|
|
721 |
[% place = loop.index %] |
722 |
[% IF header_row.$place.cell == 'itemnumber' %] |
723 |
<input type="hidden" name="[% header_row.$place.cell | html %]" value="[% cells.cell | html %]"> |
724 |
[% END %] |
725 |
<td>[% cells.cell %]</td> |
726 |
[% END %] |
713 |
</tr> |
727 |
</tr> |
714 |
[% END %] |
728 |
[% END %] |
715 |
</table> |
729 |
</table> |
|
|
730 |
</form> |
716 |
[% END %] |
731 |
[% END %] |
717 |
[% END %] |
732 |
[% END %] |
718 |
|
733 |
|
Lines 959-964
Sub report:<select name="subreport">
Link Here
|
959 |
} |
974 |
} |
960 |
|
975 |
|
961 |
$(document).ready(function(){ |
976 |
$(document).ready(function(){ |
|
|
977 |
|
978 |
$('[data-toggle="tooltip"]').tooltip(); |
979 |
|
962 |
$('#limit').change(function() { |
980 |
$('#limit').change(function() { |
963 |
$('#limitselect').submit(); |
981 |
$('#limitselect').submit(); |
964 |
}); |
982 |
}); |
Lines 976-981
Sub report:<select name="subreport">
Link Here
|
976 |
delColumn(); |
994 |
delColumn(); |
977 |
}); |
995 |
}); |
978 |
|
996 |
|
|
|
997 |
$(".send_to_item_mod").click(function(e){ |
998 |
e.preventDefault(); |
999 |
$("#report_results").attr("action","/cgi-bin/koha/tools/batchMod.pl"); |
1000 |
$("#report_results").submit(); |
1001 |
}); |
1002 |
|
979 |
[% IF (saved1) %] |
1003 |
[% IF (saved1) %] |
980 |
var rtable = $("#table_reports").dataTable($.extend(true, {}, dataTablesDefaults, { |
1004 |
var rtable = $("#table_reports").dataTable($.extend(true, {}, dataTablesDefaults, { |
981 |
'iDisplayLength': [% Koha.Preference('NumSavedReports') %], |
1005 |
'iDisplayLength': [% Koha.Preference('NumSavedReports') %], |
982 |
- |
|
|