<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>
<%@ page import="org.apache.struts.Globals" %>
<%@ page import="org.apache.struts.action.ActionMessages" %>

<html-el:form action="/changePassword" method="post">
  <%@ include file="/admin/csrfgentoken.jsp" %>
	<script language="JavaScript" src="scripts/ESR-Script.js"></script> 
	<script language="JavaScript" src="scripts/RoboHelp_CSH.js"></script> 
 	<link href="stylesheets/ESR_structure.css" rel="stylesheet" type="text/css"> 
<table width="732" height="329" cellSpacing="0" cellPadding="0" align="center" style="background-repeat: no-repeat" background="images/loginMainImage.jpg" border="0" role="presentation">
<tr>
<td valign="bottom" align="center">
<p style="margin-top: 45px; margin-bottom: 20px;">
<table width="500" cellpadding="0" cellspacing="0" border="0" role="presentation">
  <tr>
    <td valign="top" align="center">

      <%@ include file="/tiles/common/errorMessage.jsp" %>
      <%@ include file="/tiles/common/informationMessage.jsp" %>

      <table width="100%" cellpadding="0" cellspacing="0" class="moduleShell" role="presentation">
        <tr>
          <td align="center">
            <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable" role="presentation">
              <tr>
                <td align="center">
                  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead" role="presentation">
                    <tr>
                      <td class="moduleBlueBox"><img alt=""  src="images/spacer.gif" width="25" height="17"/></td>
                      <td nowrap style="padding-left: 7"><bean-el:message key="text.changePassword"/></td>
                      <td width="100%"><img alt=""  src="images/spacer.gif"></td>
                    </tr>
                  </table>
                  <table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0" class="moduleShellTableBody" role="presentation">
                    <tr>
                        <td colspan="2">
                          <%@ include file="/tiles/common/instructionalText.jsp" %>
                        </td>
                    </tr>
                    <tr>
                      <c:set var="requiredUserIdText" scope="page"><bean-el:message key="label.required"/>,&nbsp;<bean-el:message key="label.userId"/></c:set>
                      <td width="45%" class="moduleLabel" style="padding-top: 15"><fw:label required="true" property="userID" forId="txtUserID"><bean-el:message key="label.userId"/>:</fw:label></td>
                      <td width="55%" class="moduleValue" style="padding-top: 15; padding-left: 8"><html-el:text title="${requiredUserIdText}" property="userID" size="24" maxlength="32" styleId="txtUserID" tabindex="1"/></td>
                    </tr>
                    <tr>
                      <c:set var="requiredPasswordText" scope="page"><bean-el:message key="label.required"/>,&nbsp;<bean-el:message key="label.password"/></c:set>
                      <td class="moduleLabel" style="padding-top: 0"><fw:label required="true" property="password" forId="txtPassword"><bean-el:message key="label.password"/>:</fw:label></td>
                      <td class="moduleValue" style="padding-top: 0; padding-left: 8"><html-el:password title="${requiredPasswordText}" property="password" size="24" maxlength="32" styleId="txtPassword" tabindex="2"/>
                    </tr>
                    <tr>
                      <td class="moduleLabel" style="padding-top: 15"><fw:label required="true" property="newPassword" forId="txtNewPassword"><bean-el:message key="label.changePassword.newPassword"/>:</fw:label></td>
                      <td class="moduleValue" style="padding-top: 15; padding-left: 8">
                        <c:set var="newPasswordText"><bean-el:message key="label.required"/>,&nbsp;<bean-el:message key="label.changePassword.newPassword"/></c:set>
                        <html-el:password title="${newPasswordText}" property="newPassword" size="24" maxlength="32" styleID="txtNewPassword" tabindex="3"/>
                      </td>
                    </tr>
                    <tr>
                      <td class="moduleLabel" style="padding-top: 0"><fw:label required="true" property="repeatedNewPassword" forId="txtRepeatedNewPassword"><bean-el:message key="label.changePassword.repeatedNewPassword"/>:</fw:label>
                      </td>
                      <td class="moduleValue" style="padding-top: 0; padding-left: 8">
                        <c:set var="repeatedNewPasswordText"><bean-el:message key="label.required"/>,&nbsp;<bean-el:message key="label.changePassword.repeatedNewPassword"/></c:set>
                        <html-el:password title="${repeatedNewPasswordText}" property="repeatedNewPassword" size="24" maxlength="32" styleID="txtRepeatedNewPassword" tabindex="4"/>
                      </td>
                      <html-el:hidden name="changePasswordForm" property="securityCodeRequired"/></td>
                    </tr>
                    <c:choose>
                      <c:when test="${changePasswordForm.securityCodeRequired}">
                        <tr>
                          <c:set var="requiredSignatureCodeText" scope="page"><bean-el:message key="label.required"/>,&nbsp;<bean-el:message key="label.loginSecurityCode"/></c:set>
                          <td class="moduleLabel" style="padding-top: 0"><fw:label required="true" property="agreementSignatureCode" forId="txtAgreementSignatureCode"><bean-el:message key="label.loginSecurityCode"/>:</fw:label></td>
                          <td class="moduleValue" style="padding-top: 0; padding-left: 8"><html-el:text title="${requiredSignatureCodeText}" property="agreementSignatureCode" size="10" maxlength="6" styleId="txtAgreementSignatureCode" tabindex="5"/></td>
                        </tr>
                      </c:when>
                      <c:otherwise>
                        <tr>
                          <td><html-el:hidden name="changePasswordForm" property="agreementSignatureCode"/></td>
                        </tr>
                      </c:otherwise>
                    </c:choose>
                    <tr>
                      <c:set var="requiredAcceptAgreementText" scope="page"><bean-el:message key="label.required"/>,&nbsp;<bean-el:message key="label.acceptAgreement"/>&nbsp;<bean-el:message key="label.seeAgreementBelow"/></c:set>
                      <td class="moduleLabel" style="padding-top: 0"><fw:label required="true" property="acceptAgreement" forId="txtAcceptAgreement"><bean-el:message key="label.acceptAgreement"/>:</fw:label></td>
                      <td class="moduleValue" style="padding-top: 0"><html-el:checkbox title="${requiredAcceptAgreementText}" property="acceptAgreement" styleId="txtAcceptAgreement" tabindex="6"/></td>
                    </tr>
                    <tr>
                      <td class="moduleLabel">&nbsp;</td>
                      <td class="moduleValue" style="padding-top: 15; padding-bottom: 15">
                        <table width="100%" border="0" align="center" cellspacing="0" cellpadding="0" role="presentation">
                          <tr>
                            <td><img alt=""  src="images/buttonEndLeft.gif"/></td>
                            <td class="buttonText"><html-el:submit property="methodName" tabindex="7" style="width:50; vertical-align: top" styleClass="ButtonText"><bean-el:message key="button.logon"/>
                            </html-el:submit></td>
                            <td><img alt=""  src="images/buttonEndRight.gif"/></td>
                            <td width="10"><img alt=""  src="../images/spacer.gif" width="10" height="1"/></td>
                            <td><img alt=""  src="images/buttonEndLeft.gif"/></td>
                            <td class="buttonText"><html-el:submit property="methodName" tabindex="8" style="width:50; vertical-align: top;" styleClass="ButtonText"><bean-el:message key="button.cancel"/>
                            </html-el:submit></td>
                            <td><img alt=""  src="images/buttonEndRight.gif"/></td>
                            <td width="100%"><img alt=""  src="images/spacer.gif"/></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</td>
</tr>
</table>
<br>
<%@ include file="warning.jsp" %>
</html-el:form>
