<%-- 
    Document   : Viewdisplay
    Created on : 28-Jan-2008, 18:14:46
    Author     : eve
--%>
<%--
<%@page contentType="text/html" pageEncoding="windows-1252"%>--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%--
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:display="urn:jsptld:http://displaytag.sf.net">
--%>

  <jsp:directive.page contentType="text/html; charset=UTF-8" />
<%--

  <jsp:directive.page import="org.displaytag.sample.*" />
  
  <jsp:include page="inc/header.jsp" flush="true" />
    --%> 
   <%@page import="java.util.*"%>
   <%@page import="javax.ejb.EJB"%>
    <%@page import="import entityJB.*;"%>
    
    <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 



    <%--@taglib prefix="display" uri="http://displaytag.sf.net"--%>

     
    <%@taglib uri="/WEB-INF/displaytag-el.tld" prefix="display"%>

   <link rel="stylesheet" type="text/css" href="mystyle.css">
         
      
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>Display items</title>
    </head>
    <body>
                <form method="get" action="Controllerserv">
                   <select name="viewitems">
                       <option>View All Discount bales</option>
                       <option>View All Bales</option>
                       <option>Find item by description or Code</option>
                        
                  </select>
                        <input type="Submit" value="Get item details" name="search"/>
                 </form>
                 <table>
                    <%--table BORDER="1" CELLPADDING="1" CELLSPACING="1"--%>
                        
                        <display:table name="sessionScope.Baleent2" uid="datum" defaultsort="1" defaultorder="descending" pagesize="7" class="tabledata">
                            <display:column property="balid" sortable= "true" headerClass="sortable"  title="Bale code"/>
                            <display:column property="balname" sortable="true" headerClass="sortable" title="Name"/>
                            <display:column property="description" sortable="true" headerClass="sortable" title="Description"/>
                            <display:column property="colour" sortable="true" headerClass="sortable" title="Colour "/>
                            <display:column property="price" sortable="true" headerClass="sortable" title=" Bale price "/>
                            <display:column property="balsize" sortable="true" headerClass="sortable" title=" Size "/>
                            <display:column><img src="<c:url value='/images/${balpic}'/>" height="200" width="200"  title="Bale Picture"/></display:column>
                      
                     	   <display:column><img src="<c:url value='/images/menjeans.png'/>" alt="Picture"/></display:column>
                                 
                        </display:table>

                </table>

         
    </body>
</html>
