<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/WEB-INF/dateformat.tld" prefix="da" %>
<%--
  ~ 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)
  --%>

<script type="text/javascript">
    setWebTitle('<fmt:message key="moduleTemplate" />');

    function deleteTemplate() {
        if (confirm('<fmt:message key="torlesBiztos" />'))
            document.location.href = 'deletetemplate.html?module=${module.id}';
    }
    autocompleteOff();
</script>
<div class="window500">
    <div class="title"><fmt:message key="moduleTemplate" /></div>
    <div class="content">
        <div style="padding: 10px;">
            <table border="0" cellspacing="10" cellpadding="5">
                <tbody>
                    <tr>
                        <td class="labheader"></td>
                        <td><fmt:message key="moduleTemplate" /></td>
                </tr>
                </tbody>
            </table>
            <table align="center" border="0" cellspacing="10" cellpadding="0">
                <tbody>
                    <tr>
                        <td class="button" align="center" valign="middle"
                            style="width: 100px; height: 25px; background: url('pics/buttonbgr.png');"><a class="menulink" style="display: block; width: 100px; padding-top: 4px;" href="createtemplate.html?module=${module.id}"><fmt:message key="SZERKESZTÉS" /></a>
                        </td>
                        <td class="button" align="center" valign="middle"
                            style="width: 100px; height: 25px; background: url('pics/buttonbgr.png');"><a class="menulink" style="display: block; width: 100px; padding-top: 4px;" href="javascript:deleteTemplate();"><fmt:message key="TORLES" /></a>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="labline"><fmt:message key="templateData" /></div>
            <%@ include file="../showembedederror.jsp" %>
            <div id="userdiv">
                <div id="common">
                    <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                        <tbody>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="moduleType" />:</td>
                        <td style="width: 340px;"><fmt:message key="${module.objectType}Module" />
                        </td>
                        </tr>
                        <tr>
                            <td style="width: 112px;" ><fmt:message key="templateName" />:</td>
                        <td style="width: 340px;">
                            ${module.templateName}
                        </td>
                        </tr>
                        <tr>
                            <td style="width: 112px;" ><fmt:message key="sampleOfAnalysis" />:</td>
                        <td style="width: 340px;"><fmt:message key="${module.sampleOfAnalysis}" /></td>
                        </tr>
                        <tr>
                            <td style="width: 112px;" ><fmt:message key="indicationOfAnalysis" />:</td>
                        <td style="width: 340px;">
                            ${module.indicationOfAnalysis}
                        </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <c:if test="${module.objectType eq 'citogen'}">
                    <div id="citogen" style="display: ${empty module or module.objectType eq 'citogen' ? 'block' : 'none'}">
                        <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                            <tbody>
                                <tr>
                                    <td style="width: 112px;"><fmt:message key="tenyesztesiIdo" />:</td>
                            <td style="width: 340px;"><fmt:message key="${module.citTenyesztesiIdo}" /></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="analysedMetaPhases" />:</td>
                            <td style="width: 340px;">${module.citAnalysedMetaPhases gt 0 ? module.citAnalysedMetaPhases : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="countedMetaPhases" />:</td>
                            <td style="width: 340px;">${module.citCountedMetaPhases gt 0 ? module.citCountedMetaPhases : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="trackingTechnique" />:</td>
                            <td style="width: 340px;"><fmt:message key="${module.citTrackingTechnique}" /></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="karyotype" />:</td>
                            <td style="width: 340px;">${module.citKaryotype}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="resultInformation" />:</td>
                            <td style="width: 340px;">${module.citResultInformationForWeb}</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </c:if>
                <c:if test="${module.objectType eq 'fish'}">
                    <div id="fish" style="display: ${module.objectType eq 'fish' ? 'block' : 'none'}">
                        <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                            <tbody>
                                <tr>
                                    <td style="width: 112px;"><fmt:message key="fishSampleTakenOn" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'fish' ? module.fishSampleTakenOn : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="fishTenyesztesiIdo" />:</td>
                            <td style="width: 340px;"><fmt:message key="${module.fishTenyesztesiIdo}" /></td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="fishUsedTest" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'fish' ? module.fishUsedTest : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="fishResult" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'fish' ? module.fishResultForWeb : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="fishOpinion" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'fish' ? module.fishOpinionForWeb : ''}</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </c:if>
                <c:if test="${module.objectType eq 'acho'}">
                    <div id="acho" style="display: ${module.objectType eq 'acho' ? 'block' : 'none'}">
                        <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                            <tbody>
                                <tr>
                                    <td style="width: 112px;"><fmt:message key="achoSampleTakenOn" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'acho' ? module.achoSampleTakenOnForWeb : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="achoUsedTest" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'acho' ? module.achoUsedTest : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="achoDifference" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'acho' ? module.achoDifference : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="achoResult" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'acho' ? module.achoResultForWeb : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="achoOpinion" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'acho' ? module.achoOpinionForWeb : ''}</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </c:if>
                <c:if test="${module.objectType eq 'hypo'}">
                    <div id="hypo" style="display: ${module.objectType eq 'hypo' ? 'block' : 'none'}">
                        <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                            <tbody>
                                <tr>
                                    <td style="width: 112px;"><fmt:message key="hypoSampleTakenOn" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'hypo' ? module.hypoSampleTakenOnForWeb : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="hypoUsedTest" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'hypo' ? module.hypoUsedTest : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="hypoDifference" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'hypo' ? module.hypoDifference : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="hypoResult" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'hypo' ? module.hypoResultForWeb : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="hypoOpinion" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'hypo' ? module.hypoOpinionForWeb : ''}</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </c:if>
                <c:if test="${module.objectType eq 'fmr1'}">
                    <div id="fmr" style="display: ${module.objectType eq 'fmr1' ? 'block' : 'none'}">
                        <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                            <tbody>
                                <tr>
                                    <td style="width: 112px;"><fmt:message key="fmrSampleTakenOn" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'fmr1' ? module.fmrSampleTakenOnForWeb : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="fmrUsedTest" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'fmr1' ? module.fmrUsedTest : ''}</td>
                            </tr>
                            <tr>
                                <td style="width: 112px;"><fmt:message key="fmrResult" />:</td>
                            <td style="width: 340px;">${module.objectType eq 'fmr1' ? module.fmrResultForWeb : ''}</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </c:if>
                <div class="labline"><fmt:message key="useAtRequest" /></div>
                <%--<c:if test="${module.useAtCommon}"><fmt:message key="commonAnalysisRequest" /><br /></c:if>--%>
                <div style="padding: 10px">
                    <c:if test="${module.useAtBorn}"><div class="labline"><fmt:message key="bornAnalysisRequest" /></div></c:if>
                    <div style="padding: 10px">
                        <c:if test="${module.bdCitogeneticalAnalysis}">
                            <div class="subpatientline" ><fmt:message key="bdCitogeneticalAnalysis" /></div>
                        </c:if>
                        <c:if test="${module.bdDNAPreparation}">
                            <div class="subpatientline" ><fmt:message key="bdDNAPreparation" /></div>
                        </c:if>
                        <c:if test="${module.bdFish}">
                            <div class="subpatientline" ><fmt:message key="bdFish" /></div>
                            <div class="subset">
                                <c:if test="${module.bdDiGeorge}"><fmt:message key="bdDiGeorge" /><br /></c:if>
                                <c:if test="${module.bdWilliams}"><fmt:message key="bdWilliams" /><br /></c:if>
                                <c:if test="${module.bdPraderWilli}"><fmt:message key="bdPraderWilli" /><br /></c:if>
                                <c:if test="${module.bdSmithMagenis}"><fmt:message key="bdSmithMagenis" /><br /></c:if>
                                <c:if test="${module.bdSRY}"><fmt:message key="bdSRY" /><br /></c:if>
                                <c:if test="${module.bdSubtelomericFish}"><fmt:message key="bdSubtelomericFish" /><br /></c:if>
                                <c:if test="${module.bdTurnerMozaicizm}"><fmt:message key="bdTurnerMozaicizm" /><br /></c:if>
                                <c:if test="${module.bdTurnerRemainingY}"><fmt:message key="bdTurnerRemainingY" /><br /></c:if>
                                <c:if test="${module.bdMulticolorFish}"><fmt:message key="bdMulticolorFish" /><br /></c:if>
                            </div>
                        </c:if>
                        <c:if test="${module.bdFragX}">
                            <div class="subpatientline" ><fmt:message key="bdFragX" /></div>
                            <div class="subset">
                                <c:if test="${module.bdCitogenetic}"><fmt:message key="bdCitogenetic" /><br /></c:if>
                                <c:if test="${module.bdMolecular}"><fmt:message key="bdMolecular" /><br /></c:if>
                            </div>
                        </c:if>
                        <c:if test="${module.bdFGFR2OrFGFR3}">
                            <div class="subpatientline" ><fmt:message key="bdFGFR2OrFGFR3" /></div>
                        </c:if>
                        <c:if test="${module.bdSCE}">
                            <div class="subpatientline" ><fmt:message key="bdSCE" /></div>
                        </c:if>
                    </div>

                    <%--<c:if test="${module.useAtChromo}"><fmt:message key="chromoAnalysisRequest" /><br /></c:if>--%>
                    <c:if test="${module.useAtConst}"><div class="labline"><fmt:message key="constAnalysisRequest" /></div></c:if>
                    <%--<c:if test="${module.useAtFish}"><fmt:message key="fishAnalysisRequest" /><br /></c:if>--%>
                    <c:if test="${module.useAtOncohaem}"><div class="labline"><fmt:message key="onkohaemAnalysisRequest" /></div></c:if>
                    <div style="padding: 10px">
                        <c:if test="${module.onCitogenetical}"><div class="subpatientline" ><fmt:message key="onCitogenetical" /></div>
                            <div class="subset">
                                <c:if test="${module.onCitBone}"><fmt:message key="onCitBone" /><br /></c:if>
                                <c:if test="${module.onCitBlood}"><fmt:message key="onCitBlood" /><br /></c:if>
                                <c:if test="${module.onCitTumor}"><fmt:message key="onCitTumor" /><br /></c:if>
                            </div>
                        </c:if>
                        <c:if test="${module.onDNAPreparation}"><div class="subpatientline" ><fmt:message key="onDNAPreparation" /></div></c:if>
                        <c:if test="${module.onRTPCR}"><div class="subpatientline" ><fmt:message key="onRTPCR" /></div></c:if>
                        <c:if test="${module.onFish}"><div class="subpatientline" ><fmt:message key="onFish" /></div>
                            <div class="subset">
                                <c:if test="${module.onFishCML1}" ><fmt:message key="onFishCML1" /><br /></c:if>
                                <c:if test="${module.onFishCML2}" ><fmt:message key="onFishCML2" /><br /></c:if>
                                <c:if test="${module.onFishCML3}" ><fmt:message key="onFishCML3" /><br /></c:if>
                                <c:if test="${module.onFishCML4}" ><fmt:message key="onFishCML4" /><br /></c:if>
                                <c:if test="${module.onFishCML1 or module.onFishCML2 or module.onFishCML3 or module.onFishCML4}"><br /></c:if>
                                <c:if test="${module.onFishCLL1}" ><fmt:message key="onFishCLL1" /><br /></c:if>
                                <c:if test="${module.onFishCLL2}" ><fmt:message key="onFishCLL2" /><br /></c:if>
                                <c:if test="${module.onFishCLL3}" ><fmt:message key="onFishCLL3" /><br /></c:if>
                                <c:if test="${module.onFishCLL4}" ><fmt:message key="onFishCLL4" /><br /></c:if>
                                <c:if test="${module.onFishCLL1 or module.onFishCLL2 or module.onFishCLL3 or module.onFishCLL4}"><br /></c:if>
                                <c:if test="${module.onFishMDS1}" ><fmt:message key="onFishMDS1" /><br /></c:if>
                                <c:if test="${module.onFishMDS2}" ><fmt:message key="onFishMDS2" /><br /></c:if>
                                <c:if test="${module.onFishMDS3}" ><fmt:message key="onFishMDS3" /><br /></c:if>
                                <c:if test="${module.onFishMDS4}" ><fmt:message key="onFishMDS4" /><br /></c:if>
                                <c:if test="${module.onFishMDS5}" ><fmt:message key="onFishMDS5" /><br /></c:if>
                                <c:if test="${module.onFishMDS6}" ><fmt:message key="onFishMDS6" /><br /></c:if>
                                <c:if test="${module.onFishMDS1 or module.onFishMDS2 or module.onFishMDS3 or module.onFishMDS4 or module.onFishMDS5 or module.onFishMDS6}"><br /></c:if>
                                <c:if test="${module.onFishMyeloma1}" ><fmt:message key="onFishMyeloma1" /><br /></c:if>
                                <c:if test="${module.onFishMyeloma2}" ><fmt:message key="onFishMyeloma2" /><br /></c:if>
                                <c:if test="${module.onFishMyeloma3}" ><fmt:message key="onFishMyeloma3" /><br /></c:if>
                                <c:if test="${module.onFishMyeloma4}" ><fmt:message key="onFishMyeloma4" /><br /></c:if>
                                <c:if test="${module.onFishMyeloma1 or module.onFishMyeloma2 or module.onFishMyeloma3 or module.onFishMyeloma4}" ><br /></c:if>
                                <c:if test="${module.onFishAML1}" ><fmt:message key="onFishAML1" /><br /></c:if>
                                <c:if test="${module.onFishAML2}" ><fmt:message key="onFishAML2" /><br /></c:if>
                                <c:if test="${module.onFishAML3}" ><fmt:message key="onFishAML3" /><br /></c:if>
                                <c:if test="${module.onFishAML4}" ><fmt:message key="onFishAML4" /><br /></c:if>
                                <c:if test="${module.onFishAML5}" ><fmt:message key="onFishAML5" /><br /></c:if>
                                <c:if test="${module.onFishAML6}" ><fmt:message key="onFishAML6" /><br /></c:if>
                                <c:if test="${module.onFishAML7}" ><fmt:message key="onFishAML7" /><br /></c:if>
                                <c:if test="${module.onFishAML8}" ><fmt:message key="onFishAML8" /><br /></c:if>
                                <c:if test="${module.onFishAML1 or module.onFishAML2 or module.onFishAML3 or module.onFishAML4 or module.onFishAML5 or module.onFishAML6 or module.onFishAML7 or module.onFishAML8}" ><br /></c:if>
                                <c:if test="${module.onFishALL1}" ><fmt:message key="onFishALL1" /><br /></c:if>
                                <c:if test="${module.onFishALL2}" ><fmt:message key="onFishALL2" /><br /></c:if>
                                <c:if test="${module.onFishALL3}" ><fmt:message key="onFishALL3" /><br /></c:if>
                                <c:if test="${module.onFishALL4}" ><fmt:message key="onFishALL4" /><br /></c:if>
                                <c:if test="${module.onFishALL5}" ><fmt:message key="onFishALL5" /><br /></c:if>
                                <c:if test="${module.onFishALL6}" ><fmt:message key="onFishALL6" /><br /></c:if>
                                <c:if test="${module.onFishALL7}" ><fmt:message key="onFishALL7" /><br /></c:if>
                                <c:if test="${module.onFishALL1 or module.onFishALL2 or module.onFishALL3 or module.onFishALL4 or module.onFishALL5 or module.onFishALL6 or module.onFishALL7}" ><br /></c:if>
                            </div>
                    </div>
                    </c:if>
                </div>
            </div>
        </div>
    </div>
    <div class="copyright">
        &copy; 2009-2010 Astrid Research Inc.
    </div>
</div>
