Bug 9265 - Switch to HTML5 doctype in OPAC and staff client
[koha-ffzg.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / printinvoice.tt
index d2933df..2fec5bd 100644 (file)
@@ -3,12 +3,14 @@
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% themelang %]/includes/favicon.ico[% END %]" type="image/x-icon" />
 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/printreceiptinvoice.css" />
-<script language="javascript">
+<script type="text/javascript">
+    function printThenClose() {
         window.print();
         window.close();
+    }
 </script>
 </head>
-<body>
+<body id="printinvoice" class="pat" onload="printThenClose();">
 
 <div id="receipt">
 <!-- The table with the account items -->
@@ -32,8 +34,8 @@
   </tr>
   <tr>
        <th colspan=3 >
-               Bill To: [% firstname %] [% surname %] <br />
-               Card Number: [% cardnumber %]<br />
+        Bill to: [% firstname %] [% surname %] <br />
+        Card number: [% cardnumber %]<br />
        </th>
   </tr>
   <tr>