<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ 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/valuelist" prefix="vlh" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>

<c:set var="sensitiveRecordText" scope="page"><bean-el:message key="label.sensitiveRecord"/></c:set>

<br>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShell">
  <tr>
    <td>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTable">
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellTableHead">
              <tr>
                <td class="moduleBlueBox">&nbsp;</td>
                <td width="100%" class="moduleHeadline" align="left">Person Search Result</td>
				<!-- 
				<td width="38%" class="moduleHeadline" style="text-align: right">
					<span><bean:message key="text.sensitive"/>&nbsp;<html-el:img alt="${sensitiveRecordText}"  src="../images/redDot.gif"/>&nbsp;</span></td>
				 -->	
             </tr>
            </table>
          </td>
        </tr>
        <tr width="100%">
          <td vAlign="top" align="center">
            <div id="ucPersonSearch_pnlResults" style="border-width:0px;">
              <table id="tableResult" align="center" width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleTable" role="presentation">
                <vlh:root id="personSearchTableId" value="vlhlist" url="?" includeParameters="*" configName="valueListConfigBeanLookAndFeel">
                <vlh:addParam name="checkboxName" value="Select" temp="false"/>
                <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="${pagepersonSearchTableId}"/>&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 Person Search Result" rules="all" class="TableDisplay">
                      <tr>
                        <vlh:row bean="person">
                          <vlh:column title="SSN" property="ssn" sortable="asc" attributes="class='valuelistRow1' align=\"left\" scope='col'" default="">
                          	<vlh:attribute name="scope">row</vlh:attribute>
                            <fw:link action="search.do?methodName=SELECT+PERSON&amp;selectedVpid=${person.vpid}"><c:out value="${person.ssn}"/></fw:link>
                          </vlh:column>
                          <vlh:column title="Last Name" property="lastName" sortable="asc" attributes="class='valuelistRow1' align=\"left\" scope='col'" default=""/>
                          <vlh:column title="First Name" property="firstName" sortable="asc" attributes="class='valuelistRow1' align=\"left\" scope='col'" default=""/>
                          <vlh:column title="Middle Name" property="middleName" sortable="asc" attributes="class='valuelistRow1' align=\"left\" scope='col'" default=""/>
                          <vlh:column title="Date of Birth" property="dateOfBirth" sortable="asc" attributes="class='valuelistRow1' align=\"left\" scope='col'" default="">
                            <c:out value="${person.formattedDateOfBirth}"/>
                          </vlh:column>
                          
						  <vlh:column title="MBI" property="multipleBirth" attributes="class='valuelistRow1' align=\"left\" scope='col'" default=""/>
						  <vlh:column title="Match" property="idmMatchTypeValue" attributes="class='valuelistRow1' align=\"left\" scope='col'" default=""/>
                        </vlh:row>
                      </tr>
                    </table>
                  </td>
                </tr>
                </vlh:root>
              </table>
            </div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
