<%@ page import="com.fenalco.utilities.lists.ListView" %>
<%@ page import="com.fenalco.entities.User" %>
<%@ page import="com.fenalco.entities.DataAccess"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel='stylesheet' style='text/css' href='../css/tablas.css'>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<!-- 
-->
<table width="100%">
	<tr>
                <%
                    String helpId = "0";
                %>
		<td><%@ include file="encabezado.jsp" %></td>
	</tr>
  <tr> 
  </tr>
</table>
<table width="100%">
	<tr>
		<td width="20%" valign='top'>
			<%@ include file="menuadministrador.jsp" %>
		</td>
		<td>
                    <%
                        String tittle = "Estados de los Pedidos";
                    %>
                    <%@ include file="/titulo.jsp" %>

			<table width="100%">
				<tr><td align="center"><%= request.getAttribute("message")%></td></tr>
				<tr><td align="center">Tipos de Reclamo</td></tr>
				<tr>
				<form name="orderStatusList" method="post" action="/administrador/actualizarestadospedidos">
				<table align="center">
					<tr>
						<!-- Encabezado del listado -->
						<td align="center">Nombre</td>
						<td align="center">Rol</td>
						<td align="center">Modificar</td>
						<td align="center">Eliminar</td>
					</tr>
			<% 
					ListView view = (ListView)request.getAttribute("view");
					String data;
                                        int count = 0;
					while(view.move())
                                        {
                                                count++;
						int i=0;
						String id="";
				%>
						<tr>
						<% while((data=(String)view.nextElement()) != null)
                                                    {
							if(i==1)
                                                        {
						%>
								<td><%= data %></td>
						<%      }
                                                        else
                                                        { 
								i=1;
                                                                id=data;
							}
						   }
						%>
							<!-- Columnas para las opciones -->
							<td align="center"><a href="/administrador/actualizartiposreclamo?key=<%= id %>&operationType=update" onClick="complaintTypeList.operationType.value='update';return true"><img  name="update" src="" width="" height="" border="0" onClick="operationType.value='update'"></a></td>
							<td align="center"><input name="item" type="checkbox" value="<%= id %>"></td> 
						</tr>
                                    <% } %>
						 <tr>
								<td colspan="2" align="center"><input name="new" type="submit" value="Agregar" onClick="operationType.value='new'"><td>
								<td align="center"><input name="delete" type="submit" value="Eliminar" onClick="operationType.value='delete';return window.confirm('Está a punto de eliminar registros del sistema, desea continuar?');"><td>
						 </tr>
						 </table>
				</table>
				<input name="operationType" type="hidden" value="">
				</form>
			</tr>
			</table>
		</td>
	</tr>
	
</table>
<table width="760">
	<tr>
		<td><%@ include file="/piepagina.jsp" %></td>
	</tr>
</table>

</body>
</html>







