<%@ include file="../common/IncludeTop.jsp" %>

<bean:define id="productList" name="catalogBean" property="productList"/>

<div id="BackLink">

  <html:link page="/shop/index.shtml">Return to Main Menu</html:link>

</div>

<div id="Catalog">

  <table>
    <tr><th>&nbsp;</th>  <th>Product ID</th>  <th>Name</th></tr>
    <logic:iterate id="product" name="productList">
      <tr>
        <td><html:link paramId="productId" paramName="product" paramProperty="productId" page="/shop/viewProduct.shtml">
              <logic:notEmpty name="product" property="imageSource">
                <html:img src="${product.imageSource}"/>
              </logic:notEmpty>
          <bean:write filter="false" name="product" property="cleanDescription"/>
          </html:link></td>
        <td><b><html:link paramId="productId" paramName="product" paramProperty="productId"
                          page="/shop/viewProduct.shtml"><font color="BLACK"><bean:write name="product"
                                                                                         property="productId"/></font>
        </html:link></b></td>
        <td><bean:write name="product" property="name"/></td>
      </tr>
    </logic:iterate>
    <tr>
      <td>
        <logic:notEqual name="productList" property="firstPage" value="true">
          <a href="switchSearchListPage.shtml?pageDirection=previous">&lt;&lt; Previous</a>
        </logic:notEqual>
        <logic:notEqual name="productList" property="lastPage" value="true">
          <a href="switchSearchListPage.shtml?pageDirection=next">Next &gt;&gt;</a>
        </logic:notEqual>
      </td>
    </tr>

  </table>

</div>

<%@ include file="../common/IncludeBottom.jsp" %>




