Fix for Bug 4136, Invalid XHTML in spinelabel-print view

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Owen Leonard 2010-02-08 10:18:16 -05:00 committed by Galen Charlton
parent b6b6be8e23
commit dae8244a03

View file

@ -1,26 +1,33 @@
<html>
<head>
<title>Koha &rsaquo; Tools &rsaquo; Spine Labels</title>
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/css/spinelabel.css" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="<!-- TMPL_VAR NAME="lang" -->" xml:lang="<!-- TMPL_VAR NAME="lang" -->" <!-- TMPL_IF NAME="bidi" -->dir="<!-- TMPL_VAR NAME="bidi" -->"<!-- /TMPL_IF --> xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Koha &rsaquo; Tools &rsaquo; Spine Labels</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/css/spinelabel.css" />
<style type="text/css">
@media print {
.noprint { display: none; }
}
</style>
</head>
<style type="text/css">
@media print {
.noprint { display: none; }
}
</style>
</head>
<!-- TMPL_IF NAME="BarcodeNotFound" -->
<body>
<p>The barcode <!-- TMPL_VAR NAME="Barcode" --> was not found.</p>
<p><a href="spinelabel-home.pl">Return To Spine Label Printer</a></p>
</body>
<!-- TMPL_ELSE -->
<body <!-- TMPL_IF NAME="autoprint">onLoad="window.print()"<!-- /TMPL_IF> >
<!-- TMPL_IF NAME="autoprint" -->
<body onLoad="window.print()">
<!-- TMPL_ELSE -->
<body>
<!-- /TMPL_IF -->
<span id="spinelabel" class="label">
<!-- TMPL_VAR NAME="content" -->
</span>
<span id="print_button" class="noprint">
<form><input type="button" value="Print This Label" onClick="window.print()" /></form>
<button onclick="window.print()">Print This Label</button>
</span>
</body>
<!-- /TMPL_IF -->