<%@ 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" %>
<%@ taglib uri="/tags/esr-core" prefix="esrcore" %>
<%@ page import='gov.va.med.esr.common.model.lookup.RegistryType' %>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell" role="presentation">
<html-el:form action="/loadRegistry" method="post">
  <%@ include file="/admin/csrfgentoken.jsp" %>
  <tr>
    <td width="100%">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableBody" role="presentation">
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead" role="presentation">
              <tr>
                <td class="moduleBlueBox"><img alt=""  src="../images/spacer.gif" width="28" height="23"/></td>
                <td width="47%" class="moduleHeadline" nowrap><bean-el:message key="title.registry.load" /></td>
                <td width="51%" class="moduleHeadline">&nbsp;</td>
                <td width="14%" class="moduleBlueLink" style="padding: 1 8 1 8" nowrap><fw:link action="loadRegistry.do?methodName=displayStatisticsScreen"><bean-el:message key="title.registry.fileLoadStatistics" /></fw:link></td>
              </tr>
            </table>
          </td>
        </tr>

        <tr>
          <td class="moduleValue">
            <c:set var="phRegistryType"><%=RegistryType.CODE_PH_REGISTRY.getCode()%></c:set>
            <c:set var="powRegistryType"><%=RegistryType.CODE_POW_REGISTRY.getCode()%></c:set>
            <c:set var="shadRegistryType"><%=RegistryType.CODE_SHAD_REGISTRY.getCode()%></c:set>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleTable" role="presentation">
              <tr>
                <td class="moduleValue">
                  <table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
                    <tr>
                        <td colspan="2">
                          <%@ include file="/tiles/common/instructionalText.jsp" %>
                        </td>
                    </tr>
                    <tr>
                      <td class="moduleLabel" wdith="45%"><bean-el:message key="label.required.prefix" />&nbsp;<bean-el:message key="label.registryType" />:</td>
                      <td class="moduleValue" width="55%">
                        <table border="0" cellpadding="0" cellspacing="0" role="presentation">
                         <c:set var="phRegistryText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.registryType"/>&nbsp;(<esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.RegistryType" name="phRegistryType" />)</c:set>
                         <c:set var="powRegistryText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.registryType"/>&nbsp;(<esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.RegistryType" name="powRegistryType" />)</c:set>
                         <c:set var="shadRegistryText"><bean-el:message key="label.required" />,&nbsp;<bean-el:message key="label.registryType"/>&nbsp;(<esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.RegistryType" name="shadRegistryType" />)</c:set>
                         
                          <tr>
                            <td class="moduleValue" nowrap><html-el:radio title="${phRegistryText}" property="registryType" styleId="registryPHId" value="${phRegistryType}" /><fw:label property="registryType" forId="registryPHId"><esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.RegistryType" name="phRegistryType" /></fw:label></td>
                            <td class="moduleValue" nowrap><html-el:radio title="${powRegistryText}" property="registryType" styleId="registryPOWId" value="${powRegistryType}" /><fw:label property="registryType" forId="registryPOWId"><esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.RegistryType" name="powRegistryType" /></fw:label></td>
                            <td class="moduleValue" nowrap><html-el:radio title="${shadRegistryText}" property="registryType" styleId="registrySHADId" value="${shadRegistryType}" /><fw:label property="registryType" forId="registrySHADId"><esrcore:displayLookupValue lookupType="gov.va.med.esr.common.model.lookup.RegistryType" name="shadRegistryType" /></fw:label></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>

        <tr>
          <td class="moduleValue" align="center">
            <table width="100%" border="0" align="center" cellspacing="0" cellpadding="0" role="presentation">
              <tr>
                <td width="50%"><img alt=""  src="../images/spacer.gif"/></td>
                <td><img alt=""  src="../images/buttonEndLeft.gif"/></td>
                <td><html-el:submit property="methodName" style="width:50; vertical-align: top;" styleClass="buttonText"><bean-el:message key="button.registry.start"/></html-el:submit></td>
                <td><img alt=""  src="../images/buttonEndRight.gif"/></td>
                <td width="50%"><img alt=""  src="../images/spacer.gif"/></td>
              </tr>
            </table>
              <br>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</html-el:form>
</table>
