<%@ 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" %>

<script>
  // Perform all page initialization
  function onLoadInit()
  { 
    logonForm.chkAccept.focus();
  }
</script>


<html-el:form action="/logon" method="post">
  <%@ include file="/admin/csrfgentoken.jsp" %>
  <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" 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.logon.accept"/></td>
                              <td width="100%"><img alt=""  src="images/spacer.gif">
                              <html-el:hidden name="logonForm" property="securityCodeRequired"/></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>
                            <c:choose>
                              <c:when test="${logonForm.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: 15; padding-bottom: 0"><fw:label required="true" property="agreementSignatureCode"><bean-el:message key="label.loginSecurityCode"/>:</fw:label></td>
                                  <td class="moduleValue" style="padding-top: 15; padding-left: 8; padding-bottom: 0"><html-el:text title="${requiredSignatureCodeText}" property="agreementSignatureCode" size="10" maxlength="6" styleId="txtAgreementSignatureCode" tabindex="3"/></td>
                                </tr>
                              </c:when>
                              <c:otherwise>
                                <tr>
                                  <td><html-el:hidden name="logonForm" 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: 15; padding-bottom: 20"><fw:label required="true" property="acceptAgreement"><bean-el:message key="label.acceptAgreement"/>:</fw:label></td>
                              <td class="moduleValue" style="padding-top: 15; padding-right: 8; padding-bottom: 25"><html-el:checkbox styleId="chkAccept" style="vertical-align: center;" title="${requiredAcceptAgreementText}" property="acceptAgreement" tabindex="1"/></td>
                            <!-- </tr>
                            <tr>-->
                              <td class="moduleLabel">&nbsp;</td>
                              <td class="moduleValue" style="padding-top: 8; padding-right: 35; padding-bottom: 20">
                                <table width="100%" border="0" "align="center" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td><img alt=""  src="images/buttonEndLeft.gif"/></td>
                                    <td class="buttonText"><html-el:submit property="methodName" style="width:45; vertical-align: center;" styleClass="ButtonText" tabindex="5">
                                      <bean-el:message key="button.logon"/></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>
