Lines 122-127
$(document).ready(function(){
Link Here
|
122 |
rtable.fnSetColumnVis(4, true); |
122 |
rtable.fnSetColumnVis(4, true); |
123 |
} |
123 |
} |
124 |
}); |
124 |
}); |
|
|
125 |
|
126 |
$("#reports_form").submit(function(){ |
127 |
var checkedItems = $("input[name=ids]:checked"); |
128 |
if ($(checkedItems).size() == 0) { |
129 |
alert(_("You must select one or more reports to delete")); |
130 |
return false; |
131 |
} |
132 |
return confirm(_("Are you sure you want to delete the selected reports?")); |
133 |
}); |
125 |
[% END %] |
134 |
[% END %] |
126 |
|
135 |
|
127 |
[% IF ( showsql ) %] |
136 |
[% IF ( showsql ) %] |
Lines 132-138
$(document).ready(function(){
Link Here
|
132 |
[% IF ( saved1 ) %] |
141 |
[% IF ( saved1 ) %] |
133 |
$(".confirmdelete").click(function(){ |
142 |
$(".confirmdelete").click(function(){ |
134 |
$(this).parents('tr').attr("class","warn"); |
143 |
$(this).parents('tr').attr("class","warn"); |
135 |
if(confirm("Are you sure you want to "+$(this).attr("title")+"?")){ |
144 |
if(confirm(_("Are you sure you want to delete this saved report?"))){ |
136 |
return true; |
145 |
return true; |
137 |
} else { |
146 |
} else { |
138 |
$(this).parents('tr').attr("class",""); |
147 |
$(this).parents('tr').attr("class",""); |
Lines 273-278
canned reports and writing custom SQL reports.</p>
Link Here
|
273 |
<option value="">All</option> |
282 |
<option value="">All</option> |
274 |
</select> |
283 |
</select> |
275 |
</div> |
284 |
</div> |
|
|
285 |
<form action="/cgi-bin/koha/reports/guided_reports.pl" id="reports_form" method="post"> |
286 |
<input type="hidden" name="phase" value="Delete Multiple" /> |
276 |
<table id="table_reports"> |
287 |
<table id="table_reports"> |
277 |
<thead> |
288 |
<thead> |
278 |
<tr> |
289 |
<tr> |
Lines 297-303
canned reports and writing custom SQL reports.</p>
Link Here
|
297 |
<tbody> |
308 |
<tbody> |
298 |
[% FOREACH savedreport IN savedreports %] |
309 |
[% FOREACH savedreport IN savedreports %] |
299 |
[% UNLESS ( loop.odd ) %]<tr class="odd">[% ELSE %]<tr>[% END %] |
310 |
[% UNLESS ( loop.odd ) %]<tr class="odd">[% ELSE %]<tr>[% END %] |
300 |
<td>[% savedreport.id %]</td> |
311 |
<td><label>[% savedreport.id %] <input type="checkbox" name="ids" value="[% savedreport.id %]" /></label></td> |
301 |
<td>[% savedreport.report_name %]</td> |
312 |
<td>[% savedreport.report_name %]</td> |
302 |
<td>[% savedreport.type %]</td> |
313 |
<td>[% savedreport.type %]</td> |
303 |
<td>[% savedreport.groupname %]</td> |
314 |
<td>[% savedreport.groupname %]</td> |
Lines 317-323
canned reports and writing custom SQL reports.</p>
Link Here
|
317 |
<a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id %]&phase=Show%20SQL">Show</a> |
328 |
<a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id %]&phase=Show%20SQL">Show</a> |
318 |
[% IF ( CAN_user_reports_create_reports ) %] |
329 |
[% IF ( CAN_user_reports_create_reports ) %] |
319 |
<a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id %]&phase=Edit%20SQL">Edit</a> |
330 |
<a href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% savedreport.id %]&phase=Edit%20SQL">Edit</a> |
320 |
<a title="Duplicate this saved report" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create report from SQL&sql=[% savedreport.savedsql |uri %]&reportname=[% savedreport.report_name |uri %]&notes=[% savedreport.notes |uri %]">Duplicate</a> |
331 |
<a title="Duplicate this saved report" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create%20report%20from%20SQL&sql=[% savedreport.savedsql |uri %]&reportname=[% savedreport.report_name |uri %]&notes=[% savedreport.notes |uri %]">Duplicate</a> |
321 |
[% END %] |
332 |
[% END %] |
322 |
</td> |
333 |
</td> |
323 |
<td> |
334 |
<td> |
Lines 331-336
canned reports and writing custom SQL reports.</p>
Link Here
|
331 |
[% END %] |
342 |
[% END %] |
332 |
</tbody> |
343 |
</tbody> |
333 |
</table> |
344 |
</table> |
|
|
345 |
<fieldset class="action"> |
346 |
<input type="submit" value="Delete selected" /> |
347 |
</fieldset> |
348 |
</form> |
334 |
</div> |
349 |
</div> |
335 |
</div> |
350 |
</div> |
336 |
[% ELSE %]<div class="dialog message"> |
351 |
[% ELSE %]<div class="dialog message"> |