<%@ 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="BIOBANK_FELHASZNÁLÓK" />');
    autocompleteOff();
</script>
<form id="showUser" action="showuser.html" method="get">
    <input id="userId" type="hidden" name="user" value="">
</form>
<div class="window" style="width: 600px; margin-left: -300px;">
    <div class="title"><fmt:message key="BIOBANK_FELHASZNÁLÓK" /></div>
    <table border="0" cellspacing="10" cellpadding="5">
        <tbody>
            <tr>
                <td class="userheader"></td>
                <td><fmt:message key="BIOBANK_FELHASZNÁLÓK" /></td>
            </tr>
        </tbody>
    </table>
    <div class="content">
        <div style="padding: 10px;">
            <fmt:message key="KATTINTSON" /> <a href="createuser.html"><fmt:message key="IDE" /></a> <fmt:message key="ÚJ_BIOBANK_FELHASZNÁLÓ_HOZZÁADÁSÁHOZ." /><br />
            <table border="0" width="576" cellspacing="5" cellpadding="0">
                <tbody>
                    <tr>
                        <td align="center" width="100"><fmt:message key="FELHASZNALOINEV" /></td>
                        <td align="center"><fmt:message key="TELJESNEV" /></td>
                        <td align="center" width="150"><fmt:message key="EMAIL" /></td>
                        <td align="center" width="50"><fmt:message key="AKTIV" /></td>
                        <td align="center" width="70"><fmt:message key="ADMIN" /></td>
                    </tr>
                </tbody>
            </table>
            <c:set var="igen"><fmt:message key="IGEN" /></c:set>
            <c:set var="nem"><fmt:message key="NEM" /></c:set>

            <c:forEach items="${users}" var="u">
                <div class="inactivesmallmenu" onmousemove="className='activesmallmenu';" onmouseout="className='inactivesmallmenu';" onclick="document.getElementById('userId').value = ${u.id}; document.getElementById('showUser').submit(); " >
                    <table border="0" width="576" cellspacing="5" cellpadding="0">
                        <tbody>
                            <tr>
                                <td width="100">${u.userName}</td>
                                <td>${u.fullName}</td>
                                <td width="150">${u.email}</td>
                                <td align="center" width="50">
                                    <img src="pics/icons/${u.activeUser? 'tick' : 'no'}.png" width="15" height="15" alt="${u.activeUser ? igen : nem}"/>
                                </td>
                                <td align="center" width="70">
                                    <img src="pics/icons/${u.userAdministrator ? 'tick' : 'no'}.png" width="15" height="15" alt="${u.userAdministrator ? igen : nem}"/>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </c:forEach>
        </div>
    </div>
        <div class="copyright">
            &copy; 2009-2010 Astrid Research Inc.
        </div>
</div>
