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

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><fmt:message key="${applicationData.thisApplicationName}" /></title>
        <script type="text/javascript">
            setWebTitle(<fmt:message key="JELSZÓVÁLTOZTATÁS" />);
            autocompleteOff();
        </script>
    </head>
    <body>
        <div class="loginwindowbg">
            <h1 class="debgen_h1"><fmt:message key="${applicationData.thisApplicationName}" /> <fmt:message key="SZOFTVER" /></h1>
            <table class="rounded" style="margin-top: -195px;" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td class="tl"></td>
                        <td class="top"></td>
                        <td class="tr"></td>
                    </tr>
                    <tr>
                        <td class="left"></td>
                        <td class="main">
                            <h5><fmt:message key="SAJATPROFIL" /></h5>
                            <div class="content">
                                <form action="changepassword.html" method="POST">
                                    <div style="padding: 10px;">
                                        <c:if test="${passwordchange eq true}">
                                            <c:set var="informationString"><fmt:message key="ELSO_BELEPES_JELSZOCSERE"/></c:set>
                                            <%@include file="../showembededinformation.jsp" %>
                                        </c:if>
                                        <c:set var="informationString"><fmt:message key="CURRENTPASS"/> <fmt:message key="HELYES_JELSZO"/></c:set>
                                        <%@include file="../showembededinformation.jsp" %>
                                        <%@include file="../showembedederror.jsp" %>
                                        <br />
                                         <p><fmt:message key="FELHASZNALOI_NEV" /></p>
                                        <input class="required" type="text" name="userName" value="${user.userName}" readonly="readonly"/><br />
                                        <p><fmt:message key="TELJES_NÉV" /></p>
                                        <input class="required" type="text" name="fullname" value="${user.fullName}" /><br />
                                        <p><fmt:message key="EMAIL_CÍM" /></p>
                                        <input class="required" type="text" name="email" value="${user.email}" /><br />
                                        <p><fmt:message key="FIELD_OF_ACTIVITY" /></p>
                                        <c:if test="${user.userAdministrator}"><fmt:message key="LEGYEN_ADMIN" /></c:if>
                                        <c:if test="${user.dataRecorder}">, <fmt:message key="dataRecorder_message" /></c:if>
                                        <c:if test="${user.researcher}">, <fmt:message key="researcher_message" /></c:if>
                                        <p><fmt:message key="RÉGI_JELSZÓ" /></p>
                                        <input class="required" type="password" name="oldpassword" value="" /><br />
                                        <p><fmt:message key="ÚJ_JELSZÓ" /></p>
                                        <input class="required" type="password" name="newpassword" value="" /><br />
                                        <p><fmt:message key="ÚJ_JELSZÓ_ÚJRA" /></p>
                                        <input class="required" type="password" name="newpasswordretry" value="" /><br />
                                    </div>
                                    <div class="submit">
                                        <div align="center"><input class="button" type="submit" value="<fmt:message key="MENTÉS" />" /></div>
                                    </div>
                                </form>
                            </div>
                        </td>
                        <td class="right"></td>
                    </tr>
                    <tr>
                        <td class="bl"></td>
                        <td class="bottom"></td>
                        <td class="br"></td>
                    </tr>
                </tbody>
            </table>
            <div class="copyright">
                &copy; 2009-2010 Astrid Research Inc.
            </div>
        </div>
    </body>
</html>
