📄 hotproducts.tag
字号:
<%-- 热点分类和商品 --%>
<%@ tag pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="ProductCategory">
<ul>
<c:choose>
<c:when test="${not empty requestScope.hotproducts}">
<c:forEach items="${requestScope.hotproducts}" var="c" varStatus="s">
<c:if test="${s.index%2==0}"><li></c:if>
<div id='PRCDiv<c:if test="${s.index%2!=0}">2</c:if>' >
<div id="PRCTitle">
<%-- --%><a href='category.htm?cid=${c.category.id}'> <img src='categoryphoto.do?id=${c.category.id}' alt="${c.category.name}" width="50" height="50"/></a>
<h2>${c.category.name}</h2>
<span><a href='category.htm?cid=${c.category.id}'> 更多...</a></span>
</div>
<div>
<ul class="PRCList">
<c:forEach items="${c.hotProducts}" var="product" varStatus="pps">
<li><b> ${pps.index+1} </b> <a href="productinfo.htm?pid=${product.id}" target="_blank">${product.name}</a></li>
</c:forEach>
</ul>
</div>
</div>
<c:if test="${s.index%2==0}"></li></c:if>
<c:if test="${s.index%2!=0}"><br clear='all' /></c:if>
</c:forEach>
</c:when>
<c:otherwise>
暂无热点分类和商品。
</c:otherwise>
</c:choose>
</ul>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -