<tr>
 <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody">
      <tr>
    <td style="padding:10 10 10 10">
        <table id="tableResult" align="center" width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleTable" role="presentation">
    <vlh:root id="workflowSearchTableId" value="vlhlist" url="?" includeParameters="*" configName="valueListConfigBeanLookAndFeel">
        <vlh:addParam name="checkboxName" value="Select" temp="false"/>
    <vlh:addParam name="checkboxName508" value="Select" temp="false"/>    
    <tr>
      <td>
      <table class="pagelinks" cellpadding="0" cellspacing="0" border="0">
          <tr>
        <td width="45%"><img alt=""  src="../images/spacer.gif"/></td>
        <td width="5%" height="21" 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:if test="${vlhlist.valueListInfo.totalNumberOfPages > 1}">
              <vlh:paging attributes="class=\"pagelinks\"" pages="10"><c:out value="${pageworkflowSearchTableId}"/>&nbsp;</vlh:paging>
              <!--<esrcore:paging attributes="class=\"pagelinks\"" pages="10"><c:out value="${pageworkflowSearchTableId}"/>&nbsp;</esrcore:paging>-->
          </c:if>
        </td>
        <td width="45%"><img alt=""  src="../images/spacer.gif" width="28" height="23"/></td>
          </tr>
          </table>
      </td>
    </tr>

    <tr vAlign="top">
     <td vAlign="top" align="center">
      <table rules="all" class="TableDisplay" cellspacing="0" cellpadding="3" summary="<c:out value='${worklistItemsSummary}'/>">
        <vlh:row bean="workItem">
          <c:set var="counter" value="${workItemRowNumber}" />
        <tr>
          <!-- functional group is displayed only in search results page -->
          <c:if test="${tabName == 'searchResults'}">
            <vlh:column title="Functional Group" property="result.groupType" sortable="asc" attributes="class='valuelistRow1' align='left' nowrap scope='col' id='c0'" headers="c0" default=""/>
          </c:if>
          <vlh:column title="Case(VPID)" property="result.shortVPID" sortable="asc" attributes="class='valuelistRow1' align='left' nowrap scope='col' id='c1'" headers="c1" default="">
            <vlh:attribute name="scope">row</vlh:attribute>
            <a href="/esr/admin/search.do?methodName=SELECT+PERSON&amp;selectedPersonId=<c:out value="${workItem.result.personId}"/>"><c:out value="${workItem.result.shortVPID}"/></a>
          </vlh:column>
          <vlh:column title="Item Number" property="result.workflowCaseID" sortable="asc" attributes="class='valuelistRow1' align='left' nowrap scope='col' id='c2'" headers="c2" default="">
            <a href="/esr/workflow/workitem.do?methodName=DISPLAY&amp;selectedCaseId=<c:out value="${workItem.result.workflowCaseID}"/>"><c:out value="${workItem.result.workflowCaseID}"/></a>
          </vlh:column>
          <vlh:column title="Item Type" property="result.caseType" sortable="asc" attributes="class='valuelistRow1' align='left' nowrap scope='col' id='c3'" headers="c3" default="" />
          <vlh:column title="Create Date" property="result.createdOn" sortable="asc" attributes="class='valuelistRow1' align='left' nowrap scope='col' id='c4'" headers="c4" default="">
            <esrcore:displayDate name="workItem" dateProperty="result.createdOn" displayTime="false" nullText=""/>
          </vlh:column>

          <c:if test="${tabName != 'unassignedCases'}">
                    <vlh:column title="Assigned Date" property="result.assignmentDate" sortable="asc" attributes="class='valuelistRow1' align='left' nowrap scope='col' id='c5'" headers="c5" default="">
                <esrcore:displayDate name="workItem" dateProperty="result.assignmentDate" displayTime="false" nullText=""/>
            </vlh:column>
          </c:if>

          <c:choose>
            <c:when test="${tabName == 'assignedCases' or tabName == 'searchResults' or tabName == 'openCases'}">
              <vlh:column title="Assigned To" property="result.assignedTo" sortable="asc" attributes="class='valuelistRow1' align='left' nowrap scope='col' id='c6'" headers="c6" default=""/>
            </c:when>
          <c:otherwise>
            <!-- nothing default -->
          </c:otherwise>
          </c:choose>

          <!-- check box is not displayed in the search results -->
          <c:if test="${tabName != 'searchResults'}">
          <c:if test="${assignWorkItems == true or closeWorkItems == true}">
             <vlh:checkbox title="Select All" property="Select" name="selected" attributes="class='valuelistRow1' align='left' title='Select All' scope='col' id='c7'" > 
             <fw:label property= "selected" forId="selected${workItemRowNumber}"><span style="display:none">Select Item Number <c:out value="${workItem.result.workflowCaseID}"/></span></fw:label>
               <input type="checkbox" id="selected${workItemRowNumber}" title="Select Item Number <c:out value="${workItem.result.workflowCaseID}"/>" name="selected" value="<c:out value="${workItemRowNumber}"/>" <c:out value="${Select[workItemRowNumber]}"/>>
            </vlh:checkbox>

           
          </c:if>
          </c:if>

          </tr>
        </vlh:row>
      </table>
     </td>
    </tr>
        </vlh:root>
        </table>
    </td>
  </tr>
    </table>
   </td>
  </tr>
