Lines 60-66
$(document).ready(function() {
Link Here
|
60 |
|
60 |
|
61 |
$(".subscription-year-table").dataTable($.extend(true, {}, dataTablesDefaults, { |
61 |
$(".subscription-year-table").dataTable($.extend(true, {}, dataTablesDefaults, { |
62 |
"aoColumnDefs": [ |
62 |
"aoColumnDefs": [ |
63 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
63 |
{ "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }, |
64 |
], |
64 |
], |
65 |
"bAutoWidth": false, |
65 |
"bAutoWidth": false, |
66 |
"bPaginate": false, |
66 |
"bPaginate": false, |
Lines 216-225
$(document).ready(function() {
Link Here
|
216 |
<input type="button" value="Generate Next" onclick="javascript:generateNext([% subscriptionidlist %])" /> |
216 |
<input type="button" value="Generate Next" onclick="javascript:generateNext([% subscriptionidlist %])" /> |
217 |
</p> |
217 |
</p> |
218 |
[% END %] |
218 |
[% END %] |
219 |
|
219 |
<span class="checkall"> |
|
|
220 |
<a class="CheckAll" href="#" onclick="CheckAll('subscription-year-[% year.year %]'); return false;">Select all</a> |
221 |
</span> | |
222 |
<span class="clearall"> |
223 |
<a class="CheckNone" href="#" onclick="CheckNone('subscription-year-[% year.year %]'); return false;">Clear all</a> |
224 |
</span> |
220 |
<table class="subscription-year-table"> |
225 |
<table class="subscription-year-table"> |
221 |
<thead> |
226 |
<thead> |
222 |
<tr> |
227 |
<tr> |
|
|
228 |
[% IF ( CAN_user_serials_receive_serials ) %]<th>Edit</th>[% END %] |
223 |
[% IF ( subscriptions.size > 1 ) %] |
229 |
[% IF ( subscriptions.size > 1 ) %] |
224 |
<th># Subs</th> |
230 |
<th># Subs</th> |
225 |
[% END %] |
231 |
[% END %] |
Lines 236-258
$(document).ready(function() {
Link Here
|
236 |
<th>Library |
242 |
<th>Library |
237 |
</th> |
243 |
</th> |
238 |
[% IF ( routing ) %]<th>Routing</th>[% END %] |
244 |
[% IF ( routing ) %]<th>Routing</th>[% END %] |
239 |
[% IF ( CAN_user_serials_receive_serials ) %] |
|
|
240 |
<th style="min-width: 60px;"> |
241 |
<span style="font-size: 70%;"> |
242 |
<span class="checkall"> |
243 |
<a class="CheckAll" href="#" onclick="CheckAll('subscription-year-[% year.year %]'); return false;">Select all</a> |
244 |
</span> |
245 |
<span class="clearall"> |
246 |
<a class="CheckNone" href="#" onclick="CheckNone('subscription-year-[% year.year %]'); return false;">Clear all</a> |
247 |
</span> |
248 |
</span> |
249 |
</th> |
250 |
[% END %] |
251 |
</tr> |
245 |
</tr> |
252 |
</thead> |
246 |
</thead> |
253 |
<tbody> |
247 |
<tbody> |
254 |
[% FOREACH serial IN year.serials %] |
248 |
[% FOREACH serial IN year.serials %] |
255 |
[% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %] |
249 |
[% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %] |
|
|
250 |
[% IF ( CAN_user_serials_receive_serials ) %] |
251 |
<td> |
252 |
[% IF ( serial.cannotedit ) %] |
253 |
disabled |
254 |
[% ELSE %] |
255 |
[% IF ( serial.subscriptionexpired ) %] |
256 |
<input type="checkbox" name="serialid" value="[% serial.serialid %]" disabled="disabled" /> |
257 |
[% ELSE %] |
258 |
[% IF ( serial.checked ) %] |
259 |
<input type="checkbox" class="checkboxed" name="serialid" checked="checked" value="[% serial.serialid %]" /> |
260 |
[% ELSE %] |
261 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid %]" /> |
262 |
[% END %] |
263 |
[% END %] |
264 |
[% END %] |
265 |
</td> |
266 |
[% END %] |
256 |
[% IF ( subscriptions.size > 1 ) %] |
267 |
[% IF ( subscriptions.size > 1 ) %] |
257 |
<td><a href="serials-collection.pl?subscriptionid=[% serial.subscriptionid %]">[% serial.subscriptionid %]</a></td> |
268 |
<td><a href="serials-collection.pl?subscriptionid=[% serial.subscriptionid %]">[% serial.subscriptionid %]</a></td> |
258 |
[% END %] |
269 |
[% END %] |
Lines 279-301
$(document).ready(function() {
Link Here
|
279 |
<a href="" onclick="print_slip([% serial.subscriptionid |html %], '[% serial.serialseq |html %] ([% serial.planneddate %])'); return false" >Print list</a> |
290 |
<a href="" onclick="print_slip([% serial.subscriptionid |html %], '[% serial.serialseq |html %] ([% serial.planneddate %])'); return false" >Print list</a> |
280 |
</td> |
291 |
</td> |
281 |
[% END %] |
292 |
[% END %] |
282 |
[% IF ( CAN_user_serials_receive_serials ) %] |
|
|
283 |
<td> |
284 |
[% IF ( serial.cannotedit ) %] |
285 |
disabled |
286 |
[% ELSE %] |
287 |
[% IF ( serial.subscriptionexpired ) %] |
288 |
<input type="checkbox" name="serialid" value="[% serial.serialid %]" disabled="disabled" /> |
289 |
[% ELSE %] |
290 |
[% IF ( serial.checked ) %] |
291 |
<input type="checkbox" class="checkboxed" name="serialid" checked="checked" value="[% serial.serialid %]" /> |
292 |
[% ELSE %] |
293 |
<input type="checkbox" class="checkboxed" name="serialid" value="[% serial.serialid %]" /> |
294 |
[% END %] |
295 |
[% END %] |
296 |
[% END %] |
297 |
</td> |
298 |
[% END %] |
299 |
</tr> |
293 |
</tr> |
300 |
[% END %] |
294 |
[% END %] |
301 |
</tbody> |
295 |
</tbody> |
302 |
- |
|
|