Lines 7-19
Link Here
|
7 |
<script type="text/JavaScript" language="JavaScript"> |
7 |
<script type="text/JavaScript" language="JavaScript"> |
8 |
//<![CDATA[ |
8 |
//<![CDATA[ |
9 |
$(document).ready(function() { |
9 |
$(document).ready(function() { |
10 |
[% UNLESS ( preview ) %]$("#claimst").tablesorter({[% IF ( dateformat == 'metric' ) %] |
10 |
$("#claimst").tablesorter({[% IF ( dateformat == 'metric' ) %] |
11 |
dateFormat: 'uk',[% END %] |
11 |
dateFormat: 'uk',[% END %] |
12 |
headers: { 0: { sorter: false },1:{sorter:false}} |
12 |
headers: { 0: { sorter: false },1:{sorter:false}} |
13 |
});[% END %] |
13 |
}); |
14 |
$('#supplierid').change(function() { |
14 |
$('#supplierid').change(function() { |
15 |
$('#claims').submit(); |
15 |
$('#claims').submit(); |
16 |
}); |
16 |
}); |
17 |
|
17 |
|
18 |
// Case-insensitive version of jquery's contains function |
18 |
// Case-insensitive version of jquery's contains function |
19 |
jQuery.extend( |
19 |
jQuery.extend( |
Lines 139-161
Link Here
|
139 |
$("table#claimst tbody tr").show(); |
139 |
$("table#claimst tbody tr").show(); |
140 |
} |
140 |
} |
141 |
|
141 |
|
142 |
function popup(supplierid,serialid){ |
|
|
143 |
window.open('claims.pl?supplierid='+ supplierid +'&serialid='+ serialid +'&op=preview' ,'popup', 'width=600,height=400,toolbar=no,scrollbars=yes'); |
144 |
} |
145 |
|
146 |
//]]> |
142 |
//]]> |
147 |
</script> |
143 |
</script> |
148 |
</head> |
144 |
</head> |
149 |
<body id="ser_claims" class="ser"> |
145 |
<body id="ser_claims" class="ser"> |
150 |
[% INCLUDE 'header.inc' %] |
146 |
[% INCLUDE 'header.inc' %] |
151 |
[% UNLESS ( preview ) %] |
|
|
152 |
[% INCLUDE 'serials-search.inc' %] |
147 |
[% INCLUDE 'serials-search.inc' %] |
153 |
[% END %] |
|
|
154 |
|
148 |
|
155 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › Claims</div> |
149 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> › Claims</div> |
156 |
|
150 |
|
157 |
[% UNLESS ( preview ) %] |
|
|
158 |
|
159 |
<div id="doc3" class="yui-t2"> |
151 |
<div id="doc3" class="yui-t2"> |
160 |
|
152 |
|
161 |
<div id="bd"> |
153 |
<div id="bd"> |
Lines 320-396
Link Here
|
320 |
</fieldset> |
312 |
</fieldset> |
321 |
[% END %] |
313 |
[% END %] |
322 |
|
314 |
|
323 |
[% ELSE %] |
|
|
324 |
|
325 |
<div id="doc" class="yui-t7"> |
326 |
<div id="bd"> |
327 |
|
328 |
[% IF ( supplierloop ) %] |
329 |
[% FOREACH supplierloo IN supplierloop %] |
330 |
[% IF ( supplierloo.name ) %] |
331 |
<p><b>[% supplierloo.name %]</b><br /> |
332 |
[% END %] |
333 |
[% IF ( supplierloo.postal ) %] |
334 |
[% supplierloo.postal %]<br /> |
335 |
[% END %] |
336 |
[% IF ( supplierloo.contphone ) %] |
337 |
Ph: [% supplierloo.contphone %]<br /> |
338 |
[% END %] |
339 |
[% IF ( supplierloo.contfax ) %] |
340 |
Fax: [% supplierloo.contfax %]<br /> |
341 |
[% END %] |
342 |
[% IF ( supplierloo.contemail ) %] |
343 |
Email: [% supplierloo.contemail %]<br /> |
344 |
[% END %] |
345 |
[% IF ( supplierloo.accountnumber ) %] |
346 |
A/C: [% supplierloo.accountnumber %]</p> |
347 |
[% END %] |
348 |
[% IF ( supplierloo.contact ) %] |
349 |
<p>Dear [% supplierloo.contact %]</p> |
350 |
[% ELSE %] |
351 |
<p>To whom it may concern</p> |
352 |
[% END %] |
353 |
<p>The following items have not been received from you and are now considered missing:</p> |
354 |
[% END %] |
355 |
[% END %] |
356 |
[% IF ( missingissues ) %] |
357 |
<h3>Missing issues</h3> |
358 |
<table> |
359 |
<tr> |
360 |
<td><b>Vendor<b></td> |
361 |
<td><b>Title</b></td> |
362 |
<td><b>Issue number</b></td> |
363 |
<td><b>Missing since</b></td> |
364 |
</tr> |
365 |
[% FOREACH missingissue IN missingissues %] |
366 |
<tr> |
367 |
<td> |
368 |
[% missingissue.name %] |
369 |
</td> |
370 |
<td> |
371 |
[% missingissue.Title |html %] |
372 |
</td> |
373 |
<td> |
374 |
[% missingissue.serialseq %] |
375 |
</td> |
376 |
<td> |
377 |
[% missingissue.planneddate %] |
378 |
</td> |
379 |
</tr> |
380 |
[% END %] |
381 |
</table> |
382 |
[% END %] |
383 |
|
384 |
<p class="noprint"><a href="#" onclick="window.print(); return false;">Print</a> <a href="#" class="close">Close</a></p> |
385 |
[% END %] |
386 |
|
387 |
</div> |
315 |
</div> |
388 |
</div> |
316 |
</div> |
389 |
|
317 |
|
390 |
[% UNLESS ( preview ) %] |
|
|
391 |
<div class="yui-b"> |
318 |
<div class="yui-b"> |
392 |
[% INCLUDE 'serials-menu.inc' %] |
319 |
[% INCLUDE 'serials-menu.inc' %] |
393 |
</div> |
320 |
</div> |
394 |
[% END %] |
|
|
395 |
</div> |
321 |
</div> |
396 |
[% INCLUDE 'intranet-bottom.inc' %] |
322 |
[% INCLUDE 'intranet-bottom.inc' %] |