<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
"http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<title></title>
<style type="text/css">
<!--/* <![CDATA[ */
table { border-collapse: collapse; margin-left: 1em; }
thead tr { background-color: ActiveCaption; color: CaptionText; }
th, td { vertical-align: top; font-size: 8pt; padding: 3px;
font-family: "Tahoma", Arial, Helvetica, sans-serif; }
td { border: 1px solid #c0c0c0; } /* silver */
thead .col2 { width: 200px; }
h3 { border-bottom: dotted 1px #000 }
/* ]]> */-->
</style>
</head>
[% USE Dumper %]
<body>
<h3>Potential trial cases [[% date %]]</h3>
<table>
<thead>
<tr>
[% headers = [ 'LabNo' 'LastName' 'FirstName' 'DoB' 'Age' 'NHSNumber'
'Source' 'Diagnosis' 'Status' ]; FOREACH h IN headers; %]
<th>[% h %]</th>
[% END %]
</tr>
</thead>
[% FOREACH href IN data; # Dumper.dump(href); %]
<tr>
[% FOREACH col IN cols; # Dumper.dump([col, href.$col]); %]
<td>[% href.$col %]</td>
[% END %]
</tr>
[% END %]
</table>
</body>
</html>