<%--
  ~ This file is part of DebGen Biobank Software developed by ASTRID Research.
  ~ All rights reserved. Reproduction, modification, use or disclosure
  ~ to third parties without express authority is forbidden.
  ~
  ~ Copyright ASTRID Research Inc., Hungary, 2009-2011.
  ~
  ~ ASTRID Research
  ~ Headquaters: Csapo utca 42. Debrecen H-4029 HUNGARY
  ~ Phone: +36-52-533-173        Fax: +36-52-533-174
  ~ Web: http://www.astrid.hu    E-mail: info@astrid.hu
  ~
  ~ Project name: DebGen Biobank Software project.
  ~ URLS:
  ~ Developers: Istvan Zoltan Nagy (istvan.nagy@astrid.hu)
  --%>

<%--
    Document   : printanalysisrequest
    Created on : Jan 18, 2009, 10:10:14 AM
    Author     : inagy
--%>

<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="/WEB-INF/dateformat.tld" prefix="da" %>
<script type="text/javascript">
    setWebTitle('<fmt:message key="PRINT" />');
    autocompleteOff();

    function showHide(value) {
        if (value == 'common') {
            document.getElementById('common').style.display = 'block';
        } else {
            document.getElementById('common').style.display = 'none';
        }
    }
</script>
<div class="window500">
    <div class="title"><fmt:message key="PRINT" /></div>
    <div class="content">
        <div style="padding: 10px;">
            <table border="0" cellspacing="10" cellpadding="5">
                <tbody>
                    <tr>
                        <td id="head" class="patientheader" ></td>
                        <td><fmt:message key="PRINT" /></td>
                </tr>
                </tbody>
            </table>
            <div id="line" style="width: 476px;" class="patientline">
                <fmt:message key="biobankModule" />
            </div>
            <form action="moduleprint.html" method="POST">
                <input type="hidden" name="patient" value="${patient.id}">
                <input type="hidden" name="module" value="${module.id}">

                <%@ include file="../showembedederror.jsp" %>
                <div id="userdiv">
                    <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                        <tbody>
                            <tr>
                                <td style="width: 120px;"><fmt:message key="patientCode" />:</td>
                        <td style="width: 340px;"><a href="showpatient.html?patient=${patient.id}">${patient.patientCode}</a>
                            <input class="input" type="hidden" name="patientCode" value="${patient.patientCode}">
                        </td>
                        </tr>
                        <c:if test="${not patient.named or not user.dataRecorder}">
                            <tr>
                                <td style="width: 120px;" ><fmt:message key="monogram" />:</td>
                            <td>
                                ${patient.anonymousData.monogram}
                            </td>
                            </tr>
                        </c:if>
                        <c:if test="${patient.named and user.dataRecorder}">
                            <tr>
                                <td style="width: 120px;"><fmt:message key="BETEG_NEV" />:</td>
                            <td>${patient.identity.patientName}</td>
                            </tr>
                            <tr>
                                <td style="width: 120px;"><fmt:message key="TAJ" />:</td>
                            <td>${patient.identity.tajNumber}</td>
                            </tr>
                        </c:if>
                        <tr>
                            <td style="width: 120px;"><fmt:message key="Type" />:</td>
                        <td style="width: 340px;"><fmt:message key="${module.objectType}Module" /></td>
                        </tr>
                        <tr>
                            <td style="width: 120px;"><fmt:message key="indicationOfAnalysis" />:</td>
                        <td style="width: 340px;">${module.indicationOfAnalysis}</td>
                        </tr>
                        <tr>
                            <td style="width: 120px;"><fmt:message key="sampleOfAnalysis" />:</td>
                        <td style="width: 340px;"><fmt:message key="${module.sampleOfAnalysis}" /></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="patientline"><fmt:message key="labelPrint" /></div>
                <br />
                <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                    <tbody>
                        <tr>
                            <td style="width: 150px;"><fmt:message key="BIOBANK_BETEG_ADATAI" />:</td>
                    <td style="width: 327px;"><input style="width: 100px; text-align: right" class="shortinput" type="text" name="pdfCopies" value="1" /></td>
                    </tr>
                </tbody>
                </table>
                <br />
                <div align="right">
                    <input class="button" type="submit" value="<fmt:message key="PRINT" />">
                </div>
            </form>
        </div>
    </div>
        <div class="copyright">
            &copy; 2009-2010 Astrid Research Inc.
        </div>
</div>
