<script type="text/javascript" language="JavaScript" src="../scripts/ESR-Script.js"></script>
<%@ taglib uri="http://struts.apache.org/tags-bean-el" prefix="bean-el"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el"%>
<%@ taglib uri="/tags/esr-core" prefix="esrcore"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/tags/fw" prefix="fw"%>
<%@ taglib uri="/tags/valuelist" prefix="vlh" %>


<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell" role="presentation">
    <html-el:form action="/commslog" method="post">
      <%@ include file="/admin/csrfgentoken.jsp" %>
       <tr>
        <td>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable" role="presentation">
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead" role="presentation">
              <tr>
                <td class="moduleBlueBox">&nbsp;</td>
                <td width="80%" class="moduleHeadline">Current Veteran Health Identification Card Status</td>
                <td width="18%" class="moduleHeadline">&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
    <tr>
  <td>
    <table table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody" role="presentation">

            <tr >
                  <td width="350" class="label"><div align="right">Card ID:</div></td>
                  <td width="100" class="value"><div align="left"><esrcore:displayValue name="commsLogForm" property="vhicCardInfo.currentVHICCardNumber" nullText=""/></div></td>
                  <td width="350" class="label"><div align="right">Card/Print Status:</div></td>
                  <td class="value"><esrcore:displayValue name="commsLogForm" property="vhicCardInfo.currentVHICCardStatus"/></td>
             </tr>
             <tr >
                  <td class="darkLabel"><div align="right">Card/Print Status Date:</div></td>
                  <td class="darkValue"><div align="left"><esrcore:displayDate name="commsLogForm" dateProperty="vhicCardInfo.currentVhicCardDetailInfo.statusDate" format="MM/dd/yyyy"/></div></td>
                  <td class="darkLabel"><div align="right">Card Expiration Date:</div></td>
                  <td class="darkValue"><div align="left"><esrcore:displayDate name="commsLogForm" dateProperty="vhicCardInfo.currentVhicCardDetailInfo.cardExpiredDate" format="MM/dd/yyyy"/></div></td>
             </tr>
              <tr >
                  <td class="label"><div align="right">Reason:</div></td>
                  <td class="value"><div align="left"><esrcore:displayValue name="commsLogForm" property="vhicCardInfo.currentVhicCardDetailInfo.reason" /></div></td>
                  <td class="label"><div align="right">Total Cards Requested:</div></td>
                  <td class="value"><div align="left"><esrcore:displayDate name="commsLogForm" dateProperty="vhicCardInfo.totalCardsRequested" /></div></td>
               </tr>
                <tr >
                  <td class="darkLabel"></td>
                  <td class="darkValue"></td>
                  <td class="darkLabel"><div align="right">Total Cards Mailed:</div></td>
                  <td class="darkValue"><div align="left"><esrcore:displayDate name="commsLogForm" dateProperty="vhicCardInfo.totalCardsMailed" /></div></td>
             </tr>
    </table>
    <!-- EOF module shell table body-->
  </td>
</tr>

<tr>
  <td>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead" role="presentation">
      <tr>
        <td class="moduleBlueBox">&nbsp;</td>
        <td width="80%" class="moduleHeadline">Veteran Health Identification Card Status History</td>
        <td width="18%" class="moduleHeadline">&nbsp;</td>
      </tr>
    </table>
  </td>
</tr>
<tr>
<td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody">
    <tr>
    <td>
      <c:choose>
        <c:when test="${vlhlist.valueListInfo.totalNumberOfEntries == 0}">
          <tr>
            <td class="darkValue" style="padding:10 0 10 10; text-align: left"><bean-el:message key="label.noDataAvailable"/></td>
          </tr>
        </c:when>
        <c:otherwise>
          <tr valign="top" width="100%">
            <td vAlign="top" align="center">
              <div id="vhicHistoryStatus" style="border-width:0px;">
                <table id="vhicHistoryStatusResult" align="center" width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleTable" role="presentation">
                  <vlh:root id="vhicCardStatusTableId" value="vlhlist" url="?" includeParameters="*" configName="valueListConfigBeanLookAndFeel">

                    <tr>
                      <td colspan="5">
                        <table class="pagelinks">
                          <tr>
                            <td width="45%"><img alt=""  src="../images/spacer.gif"></td>
                            <td width="5%" nowrap="true">
                                          <span class="pagebanner"><c:out value="${vlhlist.valueListInfo.totalNumberOfEntries}"/> Total
                                          - Page (<c:out value="${vlhlist.valueListInfo.pagingPage}"/> of <c:out value="${vlhlist.valueListInfo.totalNumberOfPages}"/>).
                                          &nbsp;</span>
                            </td>
                            <td width="5%">
                              <c:choose>
                                <c:when test="${vlhlist.valueListInfo.totalNumberOfPages > 1}">
                                  <vlh:paging attributes="class=\"pagelinks\"" pages="10"><c:out value="${pagefutureEGTSettingsTableId}"/>&nbsp;</vlh:paging>
                                </c:when>
                                <c:otherwise>
                                  &nbsp;
                                </c:otherwise>
                              </c:choose>
                            </td>
                            <td width="45%"><img alt=""  src="../images/spacer.gif"></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr vAlign="top">
                      <td vAlign="top" align="center">
                        <table summary="List of Veteran Health Identification Cards Status History" rules="all" class="TableDisplay">
                          <tr>
                            <c:set var="viewCount" value="0"/>

                            <vlh:row bean="vhicDetailInfo">

                              <vlh:column titleKey="table.vhicCardStatusDate" property="statusDate" sortable="asc" attributes="align=\"left\" scope='col'" default="">
                                <esrcore:displayDate name="vhicDetailInfo" dateProperty="statusDate" format="MM/dd/yyyy"/>
                              </vlh:column>

                              <vlh:column titleKey="table.vhicCardId" property="cardNumber" sortable="asc" attributes="align=\"left\" scope='col'" default="">
                                 <esrcore:displayValue name="vhicDetailInfo" property="cardNumber" />
                              </vlh:column>

                              <vlh:column titleKey="table.vhicCardStatus" property="cardStatus" sortable="asc" attributes="align=\"left\" scope='col'" default="">
                                <esrcore:displayValue name="vhicDetailInfo" property="cardStatus" />
                              </vlh:column>

                              <vlh:column titleKey="table.vhicCardReason" property="reason" sortable="asc" attributes="align=\"left\" scope='col'" default="">
                                <esrcore:displayValue name="vhicDetailInfo" property="reason" />
                              </vlh:column>

                               <vlh:column titleKey="table.vhicCardExpirationDate" property="cardExpiredDate" sortable="asc" attributes="align=\"left\" scope='col'" default="">
                                 <esrcore:displayDate name="vhicDetailInfo" dateProperty="cardExpiredDate" format="MM/dd/yyyy"/>
                              </vlh:column>


                              <vhl:column> </vhl:column>

                            </vlh:row>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </vlh:root>
                </table>  <!-- EOF moduleTable -->
              </div>
            </td>
          </tr>
        </c:otherwise>
      </c:choose>
       </td>
       </tr>
    </table>  <!-- EOF moduleShellTableBody -->
    </td>
    </tr>
                        <tr>
                        <td>
                        <table width="100%" height="100" border="0" cellspacing="0" cellpadding="0"
                        class="moduleShellTableBody" role="presentation">
                        <!--      <table width="100%" border="0" cellpadding="0" cellspacing="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:90; vertical-align: top;"
                                        styleClass="buttonText">
                                       <bean-el:message key="button.queryVHIC"  />
                                    </html-el:submit></td>
                                    <td><img alt="" src="../images/buttonEndRight.gif" /></td>
                                    <td width="46%"><img alt="" src="../images/spacer.gif" /></td>
                                </tr>
                            </table> <!--EOF moduleShellTableBody  -->
                          </td>
                        </tr>

                    </table>  <!-- EOF moduleShellTable -->
            </td>
        </tr>
</html-el:form>
</table>



