<%@ 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" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  ~ 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="moduleTemplates" />');
    autocompleteOff();
</script>
<form id="showTemplate" action="showtemplate.html" method="get">
    <input id="templateId" type="hidden" name="module" value="">
</form>
<div class="window" style="width: 600px; margin-left: -300px;">
    <div class="title"><fmt:message key="moduleTemplates" /></div>
    <table border="0" cellspacing="10" cellpadding="5">
        <tbody>
            <tr>
                <td class="labheader" ></td>
                <td><fmt:message key="moduleTemplates" /></td>
        </tr>
        </tbody>
    </table>
    <div class="content">
        <div style="padding: 10px;">
            <c:if test="${not empty templates}">
                <div style="width: 576px;" class="labline">
                    <fmt:message key="pageSelector" />
                </div>
                <%@include file="../pageselector.jsp" %>
                <br />
            </c:if>
            <fmt:message key="KATTINTSON" /> <a href="createtemplate.html"><fmt:message key="IDE" /></a> <fmt:message key="ÚJ_SABLON_HOZZÁADÁSÁHOZ." /><br />
            <c:if test="${not empty templates}">
                <table border="0" width="576" cellspacing="5" cellpadding="0">
                    <tbody>
                        <tr>
                            <td align="center" width="150"><fmt:message key="moduleType" /></td>
                            <td align="center" width="420"><fmt:message key="TEMPLATE" /></td>
                    </tr>
                    </tbody>
                </table>
                <c:forEach items="${templates}" var="p">
                    <div class="inactivesmallmenu" onmousemove="className='activesmallmenu';" onmouseout="className='inactivesmallmenu';" onclick="document.getElementById('templateId').value = ${p.id}; document.getElementById('showTemplate').submit(); " >
                        <table border="0" width="576" cellspacing="5" cellpadding="0">
                            <tbody>
                                <tr>
                                    <td width="150"><fmt:message key="${p.objectType}Short" /></td>
                                    <td width="420">${p.templateName} </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </c:forEach>
                <div style="width: 576px;" class="labline">
                    <fmt:message key="pageSelector" />
                </div>
                <%@include file="../pageselector.jsp" %>
            </c:if>
            <c:if test="${empty templates}">
                <br />
                <fmt:message key="emptyList" />
                <br />
                <br />
            </c:if>
        </div>
    </div>
    <div class="copyright">
        &copy; 2009-2010 Astrid Research Inc.
    </div>
</div>
