Bug 11014 - Slip Print Problem in Chrome
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / sco / printslip.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 [% title %]</title>
3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 <link rel="shortcut icon" href="[% IF ( OpacFavicon  ) %][% OpacFavicon  %][% ELSE %][% interface %]/[% theme %]/images/favicon.ico[% END %]" type="image/x-icon" />
5 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/print.css" />
6 [% IF stylesheet %]
7 <link rel="stylesheet" type="text/css" href="[% stylesheet %]" />
8 [% END %]
9 </head>
10
11 <body id="circ_printslip" class="circ" onload="printThenClose();">
12     <div id="receipt">
13         [% IF plain %]
14             <pre>
15                 [% slip %]
16             </pre>
17         [% ELSE %]
18             [% slip %]
19         [% END %]
20
21     </div>
22
23 <script language="javascript">
24     function printThenClose() {
25         window.print();
26         setTimeout('window.close()', 1);
27     }
28 </script>
29 </body>
30 </html>