RSS Git Download  Clone
Raw Blame History
<?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>

<body>
    
    <h3>Requests requiring confirmation of final diagnosis on
        [% USE date = DateTime(today = 1); date.dmy %] [[% reporter.upper %]]
    </h3>
    
    <table>
        <thead>
            <tr>
                <th>lab no</th>
                <th>diagnosis</th>
                <th>report date</th>
                <th>authoriser</th>
                <th>auth date</th>
            </tr>
        </thead>
        [% i = 0; FOREACH ref IN data %]
        <tr>
            <td>[% ref.request_number %]/[% ref.year - 2000 %]</td>
            <td>[% ref.diagnosis %]</td>
            <td>[% ref.report_date.replace(' \d\d:\d\d:\d\d', '') # don't need time %]</td>
            <td>[% ref.auth_by.upper %]</td>
            <td>[% ref.auth_date.replace(' \d\d:\d\d:\d\d', '') # don't need time %]</td>
        </tr>
        [% END %]
    </table>
</body>
</html>