<%--
  ~ 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   : choosetype
    Created on : Dec 14, 2009, 10:40: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" src="javascript/telepulesek.js"></script>
<%--<link type="text/css" href="stylesheet/redmond/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
<script type="text/javascript" src="javascript/jquery-1.3.2.js"></script>
<script type="text/javascript" src="javascript/ui.core.js"></script>--%>
<script type="text/javascript" src="javascript/ui.datepicker.js"></script>
<link rel="stylesheet" type="text/css" href="stylesheet/jquery.autocomplete.css" />
<%--<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<!--script type="text/javascript" src="javascript/jquery-1.3.1.min.js"></script-->--%>
<script type="text/javascript">
    $(document).ready(function(){

        autocompleteOff();
    });

</script>
<script type="text/javascript" src="javascript/jquery.autocomplete.js"></script>
<div class="window500">
    <div class="title"><fmt:message key="biobankModule" /></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="BIOBANK_MODULE_DATA" /></td>
                </tr>
                </tbody>
            </table>
            <div id="line" style="width: 476px;" class="patientline">
                <fmt:message key="BIOBANK_PATIENT_DATA" />
            </div>

            <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>
                    </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>
                    </tbody>
                </table>
                <table class="formtable" width="477px" cellspacing="0" cellpadding="3">
                    <div class="patientline"><fmt:message key="chooseRequest" /></div>
                    <tbody>
                        <tr style="vertical-align: top;">
                            <td class="lined" style="width: 120px;">${item.createdOnForWeb}</td>
                            <td class="lined" style="width: 340px;">
                                <a href="createmodule.html?patient=${patient.id}"><fmt:message key="noRequest" /></a>
                            </td>
                        </tr>
                    <c:forEach items="${patient.requests}" var="item">
                        <c:if test="${not empty old and old.createdOnForWeb ne item.createdOnForWeb}">
                            </td>
                            </tr>
                        </c:if>
                        <c:if test="${old.createdOnForWeb ne item.createdOnForWeb}">
                            <tr style="vertical-align: top;">
                                <td class="lined" style="width: 120px;">${item.createdOnForWeb}</td>
                                <td class="lined" style="width: 340px;"></c:if>
                        <a href="createmodule.html?patient=${patient.id}&request=${item.id}"><fmt:message key="${item.localizeableName}" /></a><br />
                        <c:set var="old" value="${item}" />
                        <%--</c:if>--%>
                    </c:forEach>
                    <c:if test="${not empty patient.analysisList}">
                        </td>
                        </tr>
                    </c:if>
                    </tbody>
                </table>
            </div>
            <br/>
        </div>
    </div>
    <div class="copyright">
        &copy; 2009-2010 Astrid Research Inc.
    </div>
</div>
