<%@ page import="com.fenalco.utilities.lists.OrderViewShopKeeper"%>
<%@ page import="com.fenalco.entities.User"%>
<%@ page import="com.fenalco.entities.DataAccess"%>
<%@ page import="com.fenalco.utilities.MessageBuilder"%>
<%@ page import="com.fenalco.entities.StoreList"%>
<%@ page import="java.util.Enumeration"%>
<%@ page import="java.util.Hashtable"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel='stylesheet' style='text/css' href='../css/tablas.css'>
<title>Detalle del pedido</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#ffffff" background="../images/shopkeeper/general/fondo.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
	String helpId = "34";
%>
<table border="0" cellpadding="0" cellspacing="0" width="780">
    <%@ include file="encabezado.jsp" %>
</table>

<table width="760" border="0" cellspacing="0" cellpadding="0">

    <tr>
        <td width="155" valign="top">
			<%@ include file="menuminorista.jsp" %>
	</td>
        <td width='505' valign="top"> 
            <%
                String tittle = "Detalle del Pedido";
            %>
            <%@ include file="/titulo.jsp" %>

			<table width="100%">
				<tr><td align="center">
				
                                    <%String message = ( String )request.getAttribute("message");
                                        if( message != null )
                                        {
                                            %>
                                            <%=message%>
                                            <%
                                        }      
                                    %>
                                    </td></tr>
                                    <tr><td>
                                    <table align='center'>
                                    <%OrderViewShopKeeper view = (OrderViewShopKeeper)request.getAttribute("view");%>
                                       
                                        <tr>
                                        <td><b>Fecha :</b></td><td><%=view.getDate()%></td>
                                        </tr>
                                        <tr class='tableheader'><!-- aqui va el listado -->
                                            <td><b>C&oacute;digo</b></td>
                                            <td><b>Descripción</b></td>
                                            <td><b>Proveedor</b></td>
                                            <td><b>Categoría</b></td>
                                            <td><b>Precio</b></td>
                                            <td><b>Cantidad</b></td>
                                        </tr>
                                        <% 
                    
                                            Object data = new Object();
                                            if(view != null)
                                            {
                                                while(view.move()){
                                                    int i=0;%>
                                        <tr>
                                                    <% while((data=view.nextElement()) != null){

                                                            i++;
                                                            if(i!=1){%>              
                                                         <td><%= data.toString() %></td>
                                                    <%
                                                            }    
                                                        }
                                                    %>
                                                        <!-- Columnas para las opciones -->

                                        </tr>
                                            <% } 
                                            }%>
                                    <tr>
                                        <td colspan='6'>
                                            <hr>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td><b>Total :</b></td><td colspan='5'><%=view.getTotal()%></td>
                                    </tr>
                                    </table>
                               
                                    </td></tr>
                                    
			</table>
	</td>
    </tr>
	
</table>
<table width="760">
	<tr>
		<td><%@ include file="/piepagina.jsp" %></td>
	</tr>
</table>
</body>
</html>