首页商品筛选

<h2 class="h2 h2_filter mt"><em title="商品筛选">商品筛选</em><cite><a href="javascript:void(0);" id="filterRest" title="重置筛选条件">重置筛选条件</a></cite></h2>
            <ul class="uls filter">
            <c:if test="${flag}">
                <li><label>已选条件:</label>
                <p class="sel">
                   <c:forEach items="${query }" var="entry">
               
                    <a href="javascript:void(0);">
                    <em>${entry.key}:</em>${entry.value }
                    <cite title="关闭此筛选条件">X</cite></a>
                 </c:forEach>
                </p>
                </li>
                </c:if>
                <c:if test="${!empty brands }">
                <li><b>品牌:</b><p>
                    <a href="javascript:void(0);" title="不限" class="here">不限</a>
                    <c:forEach items="${brands}" var="brand">
                      <a href="javascript:void(0);" title="${brand.name }" onclick="window.location.href='/product/display/list.shtml?typeId=${typeId }&typeName=${typeName}&brandId=${brand.id }&brandName=${brand.name }'">${brand.name } </a>
                    </c:forEach>
                  </p></li>
                </c:if>
                <li><b>价格:</b><p>
                    <a href="javascript:void(0);" title="不限" class="here">不限</a>
                    <a href="javascript:void(0);" title="1-99">0-79</a>
                    <a href="javascript:void(0);" title="100-199">80-199</a>
                    <a href="javascript:void(0);" title="200-499">200-299</a>
                    <a href="javascript:void(0);" title="200-499">300-499</a>
                    <a href="javascript:void(0);" title="200-499">500-599</a>
                    <a href="javascript:void(0);" title="200-499">600以上</a>
                </p></li>
                <c:if test="${!empty types }">
                <li><b>类型:</b><p>
                    <a href="javascript:void(0);" title="不限" class="here">不限</a>
                    <c:forEach items="${types }" var="type">
                                <a href="javascript:void(0);" title="${type.name }" onclick="window.location.href='/product/display/list.shtml?typeId=${type.id }&typeName=${type.name}&brandId=${brandId }&brandName=${brandName }'">${type.name }</a>
                    </c:forEach>
<%--                     <a href="/product/list/display.shtml?typeId=2&brandId=${brandId }&brandName=${brandName}&typeName=瑜伽服" title="瑜伽服">瑜伽服</a> --%>
            
                </p></li>
                </c:if>
                <li><b>材质:</b><p>
                    <span><a href="javascript:void(0);" title="不限" class="here">不限</a></span>
                
                    <c:forEach items="${features}" var="feature">
                           <span><a href="javascript:void(0);" title="${feature.name }">${feature.name }</a></span>
                    </c:forEach>
                </p></li>

猜你喜欢

转载自www.cnblogs.com/menbo/p/10269049.html