2006-11-17 10:15:48 +07:00
|
|
|
<%@ include file="/WEB-INF/jspf/page.jspf" %>
|
|
|
|
<cws:priceList priceList_ID="0"/>
|
|
|
|
<html>
|
2010-06-14 06:39:45 +07:00
|
|
|
<!--
|
|
|
|
- Author: Jorg Janke
|
|
|
|
- Version: $Id: index.jsp,v 1.3 2006/05/19 22:17:32 mdeaelfweald Exp $
|
|
|
|
- Adempiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
|
|
|
|
- - -
|
|
|
|
- Web Store Index
|
|
|
|
-->
|
2006-11-17 10:15:48 +07:00
|
|
|
<head>
|
|
|
|
<%@ include file="/WEB-INF/jspf/head.jspf" %>
|
|
|
|
<title><c:out value='${ctx.name}'/> - Welcome</title>
|
|
|
|
</head>
|
|
|
|
<body><div id="page">
|
|
|
|
<%@ include file="/WEB-INF/jspf/header.jspf" %>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="main">
|
|
|
|
<%@ include file="/WEB-INF/jspf/menu.jspf" %>
|
|
|
|
<%@ include file="/WEB-INF/jspf/vendor.jspf" %>
|
|
|
|
<div id="content">
|
|
|
|
<c:out value='${ctx.webParam2}' escapeXml='false'/>
|
|
|
|
<form action="productServlet" method="post" enctype="application/x-www-form-urlencoded" name="search" id="search">
|
|
|
|
<fieldset>
|
|
|
|
<legend>Search</legend>
|
|
|
|
|
|
|
|
<label id="productSearch" for="SearchString">Product </label>
|
2009-09-24 19:51:03 +07:00
|
|
|
<input name="SearchString" type="text" id="SearchString" />
|
2006-11-17 10:15:48 +07:00
|
|
|
<cws:productCategoryList/>
|
2009-09-24 19:51:03 +07:00
|
|
|
<input type="submit" name="Submit" value="Search" />
|
2006-11-17 10:15:48 +07:00
|
|
|
<c:if test='${priceList.notAllPrices}'>
|
|
|
|
<p><i>Not all Products displayed - enter Search criteria to limit selection</i></p>
|
|
|
|
</c:if>
|
|
|
|
<c:if test='${priceList.noLines}'>
|
|
|
|
<p><i>No Products found - enter Search criteria</i></p>
|
|
|
|
</c:if>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
<br/>
|
|
|
|
<form action="basketServlet" method="post" enctype="application/x-www-form-urlencoded" name="products" id="products">
|
2009-09-24 19:51:03 +07:00
|
|
|
<input name="M_PriceList_ID" type="hidden" value="<c:out value='${priceList.priceList_ID}'/>" />
|
|
|
|
<input name="M_PriceList_Version_ID" type="hidden" value="<c:out value='${priceList.priceList_Version_ID}'/>" />
|
2006-11-17 10:15:48 +07:00
|
|
|
<table class="contentTable">
|
|
|
|
<tr>
|
|
|
|
<th colspan="2" align="left">Product</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th><c:out value='${priceList.currency}'/> Price</th>
|
|
|
|
<th>Quantity</th>
|
|
|
|
<th>UOM</th>
|
|
|
|
<th> </th>
|
|
|
|
<th class="availProduct"><cws:message txt="Availability"/></th>
|
|
|
|
</tr>
|
|
|
|
<c:forEach items='${priceList.prices}' var='product' varStatus='status'>
|
|
|
|
<jsp:useBean id="status" type="javax.servlet.jsp.jstl.core.LoopTagStatus" />
|
|
|
|
<c:choose>
|
|
|
|
<c:when test="<%= status.getCount() %2 == 0 %>">
|
|
|
|
<c:set var="rowClass" value="evenRow"/>
|
|
|
|
</c:when>
|
|
|
|
<c:otherwise>
|
|
|
|
<c:set var="rowClass" value="oddRow"/>
|
|
|
|
</c:otherwise>
|
|
|
|
</c:choose>
|
|
|
|
<tr>
|
2009-09-24 19:51:03 +07:00
|
|
|
<td class="<c:out value='${rowClass}' />"><c:if test='${not empty product.imageURL}'><img src="<c:out value='${product.imageURL}'/>" /></c:if></td>
|
|
|
|
<td class="<c:out value='${rowClass}' />"> <input name="Name_<c:out value='${product.id}'/>" type="hidden" value="<c:out value='${product.name}'/>" />
|
2006-11-17 10:15:48 +07:00
|
|
|
<c:choose>
|
2008-09-05 11:18:28 +07:00
|
|
|
<c:when test="${not empty product.descriptionURL}">
|
2006-11-17 10:15:48 +07:00
|
|
|
<a href="<c:out value='${product.descriptionURL}'/>" target="pd"><c:out value="${product.name}"/></a>
|
|
|
|
</c:when>
|
|
|
|
<c:otherwise>
|
|
|
|
<c:out value='${product.name}'/>
|
|
|
|
</c:otherwise>
|
|
|
|
</c:choose>
|
|
|
|
</td>
|
|
|
|
<td class="<c:out value='${rowClass}' />"><c:out value='${product.description}'/> <c:if test="${empty product.description}"> </c:if></td>
|
2009-09-24 19:51:03 +07:00
|
|
|
<td class="<c:out value='${rowClass}' /> amount"> <input name="Price_<c:out value='${product.id}'/>" type="hidden" value="<c:out value='${product.price}'/>" />
|
2006-11-17 10:15:48 +07:00
|
|
|
<fmt:formatNumber value='${product.price}' type="currency" currencySymbol="" /> </td>
|
2009-09-24 19:51:03 +07:00
|
|
|
<td class="<c:out value='${rowClass}' /> quantity"> <input name="Qty_<c:out value='${product.id}'/>" type="text" id="qty_<c:out value='${product.id}'/>" value="1" size="5" maxlength="5" /></td>
|
2006-11-17 10:15:48 +07:00
|
|
|
<td class="<c:out value='${rowClass}' />"><c:out value='${product.uomName}'/> </td>
|
2009-09-24 19:51:03 +07:00
|
|
|
<td class="<c:out value='${rowClass}' />"> <input name="Add_<c:out value='${product.id}'/>" type="submit" id="Add_<c:out value='${product.id}'/>" value="Add" /></td>
|
2006-11-17 10:15:48 +07:00
|
|
|
<td class="<c:out value='${rowClass}'/> availProduct"><!-- c:out value='$ {product.available}'/ --> </td>
|
|
|
|
</tr>
|
|
|
|
</c:forEach>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
<p><font size="-1">Price List: <c:out value='${priceList.name}'/> (<c:out value='${priceList.priceCount}'/>) - <c:out value='${priceList.searchInfo}'/></font></p>
|
|
|
|
<p> </p></div>
|
|
|
|
</div>
|
|
|
|
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
|
|
|
|
</div></body>
|
|
|
|
</html>
|