--- /dev/null
+<script type="text/javascript">
+[% IF ( Koha.Preference('IntranetSlipPrinterJS') ) %]
+ [% Koha.Preference('IntranetSlipPrinterJS') %]
+[% ELSE %]
+ function printThenClose() {
+ window.print();
+ setTimeout('window.close()', 1);
+ }
+[% END %]
+</script>
\ No newline at end of file
<link rel="stylesheet" type="text/css" href="[% stylesheet %]" />
[% END %]
-<script type="text/javascript">
-[% IF ( Koha.Preference('IntranetSlipPrinterJS') ) %]
- [% Koha.Preference('IntranetSlipPrinterJS') %]
-[% ELSE %]
- function printThenClose() {
- window.print();
- window.close();
- }
-[% END %]
-</script>
+[% INCLUDE 'slip-print.inc' #printThenClose %]
</head>
<body id="circ_printslip" class="circ" onload="printThenClose();">
<div id="receipt">
+[% USE Koha %]
[% USE KohaDates %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" />
-<script type="text/javascript">
- function printThenClose() {
- window.print();
- window.close();
- }
-</script>
+[% INCLUDE 'slip-print.inc' #printThenClose %]
<body id="pat_moremember-print" class="pat" onload="printThenClose();">
</head>
+[% USE Koha %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Print Receipt for [% cardnumber %]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" />
-<script type="text/javascript">
- function printThenClose() {
- window.print();
- window.close();
- }
-</script>
+[% INCLUDE 'slip-print.inc' #printThenClose %]
</head>
<body id="pat_moremember-receipt" class="pat" onload="printThenClose();">
+[% USE Koha %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Print Receipt for [% cardnumber %]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/printreceiptinvoice.css" />
-<script type="text/javascript">
- function printThenClose() {
- window.print();
- window.close();
- }
-</script>
+[% INCLUDE 'slip-print.inc' #printThenClose %]
</head>
<body id="pat_printfeercpt" class="pat" onload="printThenClose();">
+[% USE Koha %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Print Receipt for [% cardnumber %]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/printreceiptinvoice.css" />
-<script type="text/javascript">
- function printThenClose() {
- window.print();
- window.close();
- }
-</script>
+[% INCLUDE 'slip-print.inc' #printThenClose %]
</head>
<body id="printinvoice" class="pat" onload="printThenClose();">
<script language="javascript">
function printThenClose() {
window.print();
- window.close();
+ setTimeout('window.close()', 1);
}
</script>
</body>