<%@ 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="FELHASZNÁLÓ_TULAJDONSÁGAI" /> - ${usr.fullName}');
    autocompleteOff();

    function deleteUser() {
        if (confirm('<fmt:message key="torlesBiztos" />'))
        document.location.href = 'deleteuser.html?user=${usr.id}';
    }
</script>
<div class="window500">
    <div class="title"><fmt:message key="FELHASZNÁLÓ_TULAJDONSÁGAI" /> - ${usr.fullName}</div>
    <div class="content">
        <div style="padding: 10px;">
            <table border="0" cellspacing="10" cellpadding="5">
                <tbody>
                    <tr>
                        <td class="userheader"></td>
                        <td><fmt:message key="FELHASZNÁLÓ_TULAJDONSÁGAI" /> - ${usr.fullName}</td>
                    </tr>
                </tbody>
            </table>
                    <c:set var="enged"><fmt:message key="ENGEDÉLYEZÉS" /></c:set>
                            <c:set var="kitilt"><fmt:message key="KITILTÁS" /></c:set>
            <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="createuser.html?user=${usr.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="changeuserpassword.html?user=${usr.id}"><fmt:message key="JELSZO" /></a>
                        </td>
                        <c:if test="${user.id ne usr.id}">
                        <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="${usr.activeUser ? 'disableuser.html' : 'enableuser.html'}?user=${usr.id}">${usr.activeUser ? kitilt : enged}</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:deleteUser();"><fmt:message key="TORLES" /></a>
                        </td>
                        </c:if>
                    </tr>
                </tbody>
            </table>
            <div style="width: 476px;" class="userline">
                <fmt:message key="FELHASZNÁLÓ_ADATAI" />
            </div>
            <div id="userdiv">
                <table class="formtable" border="0" width="477px" cellspacing="0" cellpadding="3">
                    <tbody>
                        <tr>
                            <td style="width: 120px;"><fmt:message key="FELHASZNALOI_NEV" /></td>
                            <td>${usr.userName}</td>
                        </tr>
                        <tr>
                            <td><fmt:message key="TELJES_NÉV" /></td>
                            <td>${usr.fullName}</td>
                        </tr>
                        <tr>
                            <td><fmt:message key="EMAIL_CÍM" /></td>
                            <td>${usr.email}</td>
                        </tr>
                        <tr>
                            <td><fmt:message key="NYELV" /></td>
                            <td><fmt:message key="${usr.languageCode}" /></td>
                        </tr>
                        <tr>
                            <c:set var="igen"><fmt:message key="IGEN" /></c:set>
                            <c:set var="nem"><fmt:message key="NEM" /></c:set>
                            <td><fmt:message key="FELHASZNÁLÓI_ADMINISZTRÁTOR" /></td>
                            <td>${usr.userAdministrator ? igen : nem}</td>
                        </tr>
                        <tr>
                            <td><fmt:message key="dataRecorder" /></td>
                            <td>${usr.dataRecorder ? igen : nem}</td>
                        </tr>
                        <tr>
                            <td><fmt:message key="researcher" /></td>
                            <td>${usr.researcher ? igen : nem}</td>
                        </tr>
                    </tbody>
                </table>
            </div>

        </div>
    </div>
        <div class="copyright">
            &copy; 2009-2010 Astrid Research Inc.
        </div>
</div>
