compare.tag

来自「一个网上购物商城系统」· TAG 代码 · 共 78 行

TAG
78
字号
<%-- 对比商品 --%>
<%@ tag pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<table id="tableProduct" width="100%" class="compareTable">
	<tr>
		<td width="100px" class="compareTitle">图片</td>
		
		<c:forEach items="${requestScope.products}" var="product">
			<td width="266" class="compareContent">
				<a href='#' onclick="popZoom('ImagesView.aspx?ID=1003603')"title='${produdct.pname }'>
					<img width='70'  src='productphoto.do?id=${product.id}&pid=0' title='${produdct.pname }' />
				</a>
			</td>
		</c:forEach>
		
	</tr>
	<tr>
		<td class="compareTitle">名称</td>
		
		<c:forEach items="${requestScope.products}" var="product">
			<td width="266" class="compareContent">
				<a href='productinfo.htm?id=${produdct.id }'title='${produdct.pname }' target='_blank'>${product.pname }</a>
			</td>
		</c:forEach>		
	</tr>
	<tr>
		<td class="compareTitle">品牌</td>
		
		<c:forEach items="${requestScope.products}" var="product">
			<td width="266" class="compareContent"><a href='brand.htm' target='_blank'>${product.brand }</a></td>
		</c:forEach>	
	</tr>
	<tr>
		<td class="compareTitle">型号</td>
		
		<c:forEach items="${requestScope.products}" var="product">
			<td width="266" class="compareContent">${product.ptype }</td>
		</c:forEach>		
	</tr>
	<tr>
		<td class="compareTitle">价格</td>
		
		<c:forEach items="${requestScope.products}" var="product">
			<td width="266" class="compareContent">¥${product.price }元</td>
		</c:forEach>		
	</tr>
	<tr>
		<td class="compareTitle">人气指数</td>
		
		<c:forEach items="${requestScope.products}" var="product">
			<td width="266" class="compareContent">${product.viewpopluarity }</td>
		</c:forEach>
	</tr>
	<tr>
		<td class="compareTitle">参数</td>
		
		<c:forEach items="${requestScope.products}" var="product">
			<td width="266" class="compareContent" align="left" valign="top">参    数<br></td>
		</c:forEach>		
	</tr>
	<tr>
		<td class="compareTitle">规格</td>
		
		<c:forEach items="${requestScope.products}" var="product">
			<td width="266" class="compareContent" align="left" valign="top">规    格<br></td>
		</c:forEach>
	</tr>
	<tr>
		<td class="compareTitle">详细描述</td>
		
		<c:forEach items="${requestScope.products}" var="product">
			<td width="266" class="compareContent">
				<a href='productinfo.htm?pid=${product.id }'title='${product.pname }' target='_blank'>详细描述</a>
			</td>
		</c:forEach>		
	</tr>
</table>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?