<%--
  ~ 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   : doprint
    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="BIOBANK_BETEG" />');
    autocompleteOff();
</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>
            <c:if test="${not empty param.pdf and not empty param.copies}">
                <div id="line" style="width: 476px;" class="patientline">
                    <fmt:message key="congrats" />
                </div>
                <div align="center">
                    <br />
                    <c:set var="informationString"><fmt:message key="PrintReady" /><br /><fmt:message key="ToRePrint" /><br /></c:set>
                        <%@include file="../showembededinformation.jsp" %>

                    <br />
                    <form name="print" action="sendreprint${empty param.xml ? 'module' : ''}.html" method="POST">
                        <input type="hidden" name="xml" value="${param.xml}" />
                        <input type="hidden" name="pdf" value="${param.pdf}" />
                        <input type="hidden" name="copies" value="${param.copies}" />
                        <input class="button" type="submit" value="<fmt:message key="reprint" />" name="reprint" />
                    </form>
                </div>
            </c:if>
            <c:if test="${empty param.pdf or empty param.copies}">
                <div id="line" style="width: 476px;" class="patientline">
                    <fmt:message key="HIBA_" />
                </div>
                <div style="padding: 10px;">
                    <table border="0" width="480" cellspacing="0" cellpadding="0">
                        <tbody>
                            <tr>
                                <td width="130" valign="middle">
                                    <img src="pics/icons/warn.png" width="128" height="128" alt="ERROR"/>
                                </td>
                                <td valign="middle">
                                    <span style="font-size: 16px;"><fmt:message key="errPrint" /></span><br /><br />
                                    <br />
                                    <br />
                        <fmt:message key="printErrorMessage" />
                        </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </c:if>
            <c:if test="${not empty lastPrintedPatient}">
                <div align="center">
                    <a href="showpatient.html?patient=${lastPrintedPatient}"><fmt:message
                        key="backToThePatientsDataSheet"/></a>
                </div>
            </c:if>
        </div>
    </div>
        <div class="copyright">
            &copy; 2009-2010 Astrid Research Inc.
        </div>
</div>
