📄 index.jsp
字号:
<!--
- Author: Jorg Janke
- Version: $Id: index.jsp,v 1.15 2003/05/04 06:48:23 jjanke Exp $
- Compiere ERP & CRM Smart Business Solution - Copyright (c) 1999-2003 Jorg Janke
- - -
- Web Store Index
-->
<%@ page session="true" contentType="text/html; charset=iso-8859-1" errorPage="errorPage.jsp" %>
<%@ taglib uri="webStore.tld" prefix="cws" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<cws:priceList priceList_ID="0"/>
<html>
<head>
<%@ include file="/WEB-INF/jspf/head.jspf" %>
<title><c:out value='${ctx.name}'/> - Welcome</title>
</head>
<body>
<%@ include file="/WEB-INF/jspf/header.jspf" %>
<script language="JavaScript" type="text/JavaScript">
;
</script>
<noscript>
Please enable Java Script to continue.
</noscript>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="130" align="left" valign="top">
<%@ include file="/WEB-INF/jspf/left.jspf" %></td>
<td> <h1>Web Store</h1>
<form action="basketServlet" method="post" enctype="application/x-www-form-urlencoded" name="products" id="products">
<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}'/>">
<table width="100%" border="1" cellpadding="2" cellspacing="2">
<tr>
<th align="left">Product</th>
<th>Description</th>
<th align="right"><c:out value='${priceList.currency}'/> Price</th>
<th align="right">Quantity</th>
<th>UOM</th>
<th> </th>
</tr>
<c:forEach items='${priceList.prices}' var='product'>
<tr>
<td> <input name="Name_<c:out value='${product.id}'/>" type="hidden" value="<c:out value='${product.name}'/>">
<c:out value='${product.name}'/> </td>
<td><c:out value='${product.description}'/> <c:if test="${empty product.description}"> </c:if>
</td>
<td align="right"> <input name="Price_<c:out value='${product.id}'/>" type="hidden" value="<c:out value='${product.price}'/>">
<fmt:formatNumber value='${product.price}' type="currency"/> </td>
<td align="right"> <input name="Qty_<c:out value='${product.id}'/>" type="text" id="qty_<c:out value='${product.id}'/>" value="1" size="5" maxlength="5">
</td>
<td><c:out value='${product.uomName}'/></td>
<td> <input name="Add_<c:out value='${product.id}'/>" type="submit" id="Add_<c:out value='${product.id}'/>" value="Add">
</td>
</tr>
</c:forEach>
</table>
</form>
<p>Price List: <c:out value='${priceList.name}'/> (<c:out value='${priceList.priceCount}'/>)</p>
<p> </p></td>
<td align="right" valign="top"> <%@ include file="/WEB-INF/jspf/right.jspf" %></td>
</tr>
</table>
<%@ include file="/WEB-INF/jspf/footer.jspf" %>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -