Lines 6-18
Link Here
|
6 |
<script type="text/JavaScript" language="JavaScript"> |
6 |
<script type="text/JavaScript" language="JavaScript"> |
7 |
//<![CDATA[ |
7 |
//<![CDATA[ |
8 |
$(document).ready(function() { |
8 |
$(document).ready(function() { |
9 |
[% UNLESS ( preview ) %]$("#claimst").tablesorter({[% IF ( dateformat == 'metric' ) %] |
9 |
$("#claimst").tablesorter({[% IF ( dateformat == 'metric' ) %] |
10 |
dateFormat: 'uk',[% END %] |
10 |
dateFormat: 'uk',[% END %] |
11 |
headers: { 0: { sorter: false },1:{sorter:false}} |
11 |
headers: { 0: { sorter: false },1:{sorter:false}} |
12 |
});[% END %] |
12 |
}); |
13 |
$('#supplierid').change(function() { |
13 |
$('#supplierid').change(function() { |
14 |
$('#claims').submit(); |
14 |
$('#claims').submit(); |
15 |
}); |
15 |
}); |
16 |
|
16 |
|
17 |
// Case-insensitive version of jquery's contains function |
17 |
// Case-insensitive version of jquery's contains function |
18 |
jQuery.extend( |
18 |
jQuery.extend( |
Lines 138-161
Link Here
|
138 |
$("table#claimst tbody tr").show(); |
138 |
$("table#claimst tbody tr").show(); |
139 |
} |
139 |
} |
140 |
|
140 |
|
141 |
function popup(supplierid,serialid){ |
|
|
142 |
window.open('claims.pl?supplierid='+ supplierid +'&serialid='+ serialid +'&op=preview' ,'popup', 'width=600,height=400,toolbar=no,scrollbars=yes'); |
143 |
} |
144 |
|
145 |
//]]> |
141 |
//]]> |
146 |
</script> |
142 |
</script> |
147 |
[% INCLUDE 'calendar.inc' %] |
143 |
[% INCLUDE 'calendar.inc' %] |
148 |
</head> |
144 |
</head> |
149 |
<body> |
145 |
<body> |
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 336-412
Link Here
|
336 |
</fieldset> |
328 |
</fieldset> |
337 |
[% END %] |
329 |
[% END %] |
338 |
|
330 |
|
339 |
[% ELSE %] |
|
|
340 |
|
341 |
<div id="doc" class="yui-t7"> |
342 |
<div id="bd"> |
343 |
|
344 |
[% IF ( supplierloop ) %] |
345 |
[% FOREACH supplierloo IN supplierloop %] |
346 |
[% IF ( supplierloo.name ) %] |
347 |
<p><b>[% supplierloo.name %]</b><br /> |
348 |
[% END %] |
349 |
[% IF ( supplierloo.postal ) %] |
350 |
[% supplierloo.postal %]<br /> |
351 |
[% END %] |
352 |
[% IF ( supplierloo.contphone ) %] |
353 |
Ph: [% supplierloo.contphone %]<br /> |
354 |
[% END %] |
355 |
[% IF ( supplierloo.contfax ) %] |
356 |
Fax: [% supplierloo.contfax %]<br /> |
357 |
[% END %] |
358 |
[% IF ( supplierloo.contemail ) %] |
359 |
Email: [% supplierloo.contemail %]<br /> |
360 |
[% END %] |
361 |
[% IF ( supplierloo.accountnumber ) %] |
362 |
A/C: [% supplierloo.accountnumber %]</p> |
363 |
[% END %] |
364 |
[% IF ( supplierloo.contact ) %] |
365 |
<p>Dear [% supplierloo.contact %]</p> |
366 |
[% ELSE %] |
367 |
<p>To whom it may concern</p> |
368 |
[% END %] |
369 |
<p>The following items have not been received from you and are now considered missing:</p> |
370 |
[% END %] |
371 |
[% END %] |
372 |
[% IF ( missingissues ) %] |
373 |
<h3>Missing Issues</h3> |
374 |
<table> |
375 |
<tr> |
376 |
<td><b>Vendor<b></td> |
377 |
<td><b>Title</b></td> |
378 |
<td><b>Issue number</b></td> |
379 |
<td><b>Missing since</b></td> |
380 |
</tr> |
381 |
[% FOREACH missingissue IN missingissues %] |
382 |
<tr> |
383 |
<td> |
384 |
[% missingissue.name %] |
385 |
</td> |
386 |
<td> |
387 |
[% missingissue.Title |html %] |
388 |
</td> |
389 |
<td> |
390 |
[% missingissue.serialseq %] |
391 |
</td> |
392 |
<td> |
393 |
[% missingissue.planneddate %] |
394 |
</td> |
395 |
</tr> |
396 |
[% END %] |
397 |
</table> |
398 |
[% END %] |
399 |
|
400 |
<p class="noprint"><a href="#" onclick="window.print(); return false;">Print</a> <a href="#" class="close">Close</a></p> |
401 |
[% END %] |
402 |
|
403 |
</div> |
331 |
</div> |
404 |
</div> |
332 |
</div> |
405 |
|
333 |
|
406 |
[% UNLESS ( preview ) %] |
|
|
407 |
<div class="yui-b"> |
334 |
<div class="yui-b"> |
408 |
[% INCLUDE 'serials-menu.inc' %] |
335 |
[% INCLUDE 'serials-menu.inc' %] |
409 |
</div> |
336 |
</div> |
410 |
[% END %] |
|
|
411 |
</div> |
337 |
</div> |
412 |
[% INCLUDE 'intranet-bottom.inc' %] |
338 |
[% INCLUDE 'intranet-bottom.inc' %] |