<%@include file="/WEB-INF/includeTemplate.inc"%>

<h2 id="titulo"><spring:message code="consultaListadoExpTit"/></h2>

<div id="container_div" class="rup-table-container">
<input type="button" onclick="activarProceso()" value="Activar proceso" id="btnActivar"/>
<table style="clear:both;">
<thead>
<tr><th>C&oacute;digo</th><th>Acci&oacute;n</th></tr>
</thead>
<tbody>
	<c:forEach var="pid" items="${listado}">
		<tr><td>${pid.id}</td>
		<c:choose>
			<c:when test="${  empty pid.codPid}">
				<td style="background-color:red;" id="td${pid.id}"><input type="button" value="Subir al PID" onClick="subirPid(${pid.id})"/></td>
			</c:when>
			<c:otherwise>
				<td  style="background-color:green; color:white; font-weight:bolder;">${pid.codPid}</td>
			</c:otherwise>
		</c:choose>	
		</tr>
	</c:forEach>
</tbody>

</table>

</div>
		