|
Lines 23-37
Link Here
|
| 23 |
|
23 |
|
| 24 |
[% INCLUDE 'slip-print.inc' #printThenClose %] |
24 |
[% INCLUDE 'slip-print.inc' #printThenClose %] |
| 25 |
</head> |
25 |
</head> |
| 26 |
<body id="circ_printslip" class="circ"> |
|
|
| 27 |
<div id="receipt"> |
| 28 |
|
26 |
|
| 29 |
[% IF plain %] |
27 |
[% BLOCK translate_justification_types %] |
| 30 |
<pre> |
28 |
[% SWITCH type %] |
| 31 |
[% IF ( slip ) %][% slip | html %][% ELSE %]No slip template found[% END %] |
29 |
[% CASE 'L' %]left |
| 32 |
</pre> |
30 |
[% CASE 'C' %]center |
| 33 |
[% ELSE %] |
31 |
[% CASE 'R' %]right |
| 34 |
[% IF ( slip ) %][% slip | $raw %][% ELSE %]No slip template found[% END %] |
32 |
[% END %] |
|
|
33 |
[% END %] |
| 34 |
|
| 35 |
[% BLOCK translate_unit_types %] |
| 36 |
[% SWITCH type %] |
| 37 |
[% CASE 'POINT' %]pt |
| 38 |
[% CASE 'INCH' %]in |
| 39 |
[% CASE 'MM' %]mm |
| 40 |
[% CASE 'CM' %]cm |
| 41 |
[% END %] |
| 35 |
[% END %] |
42 |
[% END %] |
| 36 |
|
43 |
|
|
|
44 |
<body id="circ_printslip" class="circ"> |
| 45 |
<div id="receipt"> |
| 46 |
[% IF ( slip ) %] |
| 47 |
<div class="slip" style=" |
| 48 |
text-align:[% PROCESS translate_justification_types type=slip.text_justify | trim %]; |
| 49 |
font-size:[% slip.font_size %]px; |
| 50 |
width:[% slip.notice_width %][% PROCESS translate_unit_types type=slip.units | trim %]; |
| 51 |
margin-top:[% slip.top_margin %][% PROCESS translate_unit_types type=slip.units | trim %]; |
| 52 |
margin-left:[% slip.left_margin %][% PROCESS translate_unit_types type=slip.units | trim %]; |
| 53 |
"> |
| 54 |
[% IF plain %] |
| 55 |
<pre> |
| 56 |
[% slip.content | html %] |
| 57 |
</pre> |
| 58 |
[% ELSE %] |
| 59 |
[% slip.content | $raw %] |
| 60 |
[% END %] |
| 61 |
</div> |
| 62 |
[% ELSE %] |
| 63 |
No slip template found |
| 64 |
[% END %] |
| 65 |
</div> |
| 66 |
|
| 37 |
[% INCLUDE 'intranet-bottom.inc' %] |
67 |
[% INCLUDE 'intranet-bottom.inc' %] |
| 38 |
- |
|
|