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

<table width="100%" border="1" cellpadding="0" cellspacing="0" class="moduleShell">
<html:form action="/searchUserProfile" method="post">
  <%@ include file="/admin/csrfgentoken.jsp" %>
<c:set var="userProfiles" value="${USER_LIST}"/>	
	
 <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"><img alt=""  src="../images/spacer.gif" width="28" height="23"/></td>
        <td nowrap class="moduleHeadline"><bean-el:message key="label.userProfiles"/></td>
	  	<td width="100%"><img alt=""  src="../images/spacer.gif"/></td> 
       </tr>
      </table>
     </td>
    </tr>

    <tr>
     <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="moduleShellTableBody">
	  <tr><td style="padding:10 10 10 50">
		  <table summary="Table for User Profiles">
		  <c:if test="${not empty userProfiles}">			  
			<!-- header -->
			<thead>
			<tr>
				<th scope="col" nowrap width="30%" class="moduleLabel" style="text-align: left;padding:5 5 5 10">
					<bean-el:message key="label.userid"/><img alt=""  src="../images/spacer.gif"/></th>
				<th scope="col" nowrap width="50%" class="moduleLabel" style="text-align: left;padding:5 5 5 10"">
					<bean-el:message key="label.name"/><img alt=""  src="../images/spacer.gif"/></th>
					<!-- CCR13053-Commented out to resolve issue of additional blank column  -->
				<!-- <th scope="col" width="20%" class="moduleLabel" style="text-align: left;">
					<img alt=""  src="../images/spacer.gif"/></th> -->
			</tr>
			</thead>
			
			<tbody>
			<c:forEach var="user" items="${userProfiles}" varStatus="status">
				<c:set var="userName" value="${user.name}"/>
		    	<c:set var="rowColor" value="darkValue"/>					
				<tr>										
					<td scope="row" nowrap class="transparentLink" style="text-align: left;padding:5 5 5 10;">
							<fw:link 
								action="searchUserProfile.do?methodName=VIEW" 
								paramId="userName" paramName="userName">
								<c:out value="${userName}"/>
							</fw:link>												
					</td>
					<td nowrap class="moduleValue" style="text-align: left;padding:5 5 5 10;">
						<c:out value="${user.fullName}"/>						
					</td>					
				</tr>		
			</c:forEach>	
			</tbody>
		  </c:if>  
	  </table>
	  </td></tr>	  	  
      </table>
     </td>
    </tr>
   </table>
  </td>
 </tr>
</html:form>
</table>