📄 product.tag
字号:
<%-- 当前位置显示 --%>
<%@ tag pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript">
<!--
function jumpTo()
{
window.location = $F("AspNetPager1_input");
}
//-->
</script>
<div id="UpdatePanel1" >
<div id="ProductDiv" style="">
<ul>
<c:choose>
<c:when test="${param['listtype']=='img'}">
<table id="dlProductImgList" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<c:forEach items="${requestScope.products}" var="product" varStatus="s">
<td valign="top">
<table width="100%">
<tr>
<td>
<a href="#" onclick="popZoom('imagesview.htm=${product.id}')" title="${product.name}">
<img width="150" height="150" src="productphoto.do?id=${product.id}&pid=0" title='${product.name}' /></a>
</td>
</tr>
<tr>
<td>
<a href='productinfo.htm?pid=${product.id}' title="${product.name}" target="_blank">${product.name}</a>
</td>
</tr>
<tr>
<td class="Pred"></td>
</tr>
<tr>
<td class="Pred" align="center">¥${product.price}元</td>
</tr>
<tr>
<td align="center">
<a href='#' name='purchase'>
<img src="images/product/buy.gif" border="0" onclick='javascript:buyProduct(${product.id});' /></a>
</td>
</tr>
</table>
</td>
<c:if test="${s.index==3}"></tr><tr></c:if>
</c:forEach>
</tr>
</table>
</c:when>
<c:when test="${param.listtype=='txt'}">
<c:forEach items="${requestScope.products}" var="product">
<li>
<table height="100%" border="0">
<tr>
<td width="15" rowspan="3">
<span title="${product.id}">
<input id="rpProductTxt_ctl00_cbProductID" type="checkbox" value="${product.id }" name="compare$Product" />
</span>
</td>
<td class="Pblack">
<b><a href='productinfo.htm?pid=${product.id}' title="${product.name}" target="_blank">${product.name}</a></b>
</td>
<td width="20%" align="right" class="Pred">¥${product.price}元</td>
</tr>
</table>
</li>
</c:forEach>
</c:when>
<c:otherwise>
<c:forEach items="${requestScope.products}" var="product">
<li>
<table height="100%" border="0">
<tr>
<td width="15" rowspan="3">
<span title="${product.id}">
<input id="rpProduct_ctl00_cbProductID" type="checkbox" value="${product.id }" name="compare$Product" />
</span>
</td>
<td id="rpProduct_ctl00_tdProductImage" width="80" rowspan="3"
align="center">
<a href="#" onclick="popZoom('imagesview.htm=${product.id}')"
title="${product.name}"> <img width="70" height="70"
src="productphoto.do?id=${product.id}&pid=0"
title='${product.name}' />
</a>
</td>
<td class="Pblack">
<b><a href='productinfo.htm?pid=${product.id}'
title="${product.name}" target="_blank">${product.name}</a>
</b>
</td>
<td width="20%" align="right" class="Pred">¥${product.price}元</td>
</tr>
<tr>
<td colspan="2" class="Pred">
</td>
</tr>
<tr>
<td colspan="2">
<table width="100%">
<tr>
<td width="200">
人气指数:
<span class="Pred"> ${product.viewpopluarity } </span>
</td>
<td colspan="2" width="500" align="right">
<input name="rpProduct$ctl00$hdProductID" type="hidden"
id="rpProduct_ctl00_hdProductID" value="1003951" />
<a href='#' name='purchase'> <img
src="images/product/buy.gif" border="0"
onclick='javascript:buyProduct(${product.id},1);' />
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</li>
</c:forEach>
</c:otherwise>
</c:choose>
</ul>
<table width="100%">
<tr>
<td>
<input type="image" name="imgCompare" id="imgCompare" onclick="compareTo();"
src="images/product/btn_duobi.png" style="border-width:0px;" />
</td>
</tr>
</table>
<div id="AspNetPager1" style="width:100%;text-align:right;">
<a href="${requestScope.pagination.first.url }" <c:if test="${empty requestScope.pagination.first.url }">disabled="disabled"</c:if> style="margin-right:5px;">首页</a>
<a href="${requestScope.pagination.previous.url }" <c:if test="${empty requestScope.pagination.previous.url }">disabled="disabled"</c:if> style="margin-right:5px;">上一页</a>
<c:forEach items="${requestScope.pagination.content}" var="everypage">
<c:choose>
<c:when test="${empty everypage.url }">
<span style="margin-right:5px;font-weight:Bold;color:red;">${everypage.page }</span>
</c:when>
<c:otherwise>
<a href="${everypage.url }" style="margin-right:5px;">${everypage.page }</a>
</c:otherwise>
</c:choose>
</c:forEach>
<a href="${requestScope.pagination.next.url }" <c:if test="${empty requestScope.pagination.next.url }">disabled="disabled"</c:if> style="margin-right:5px;">下一页</a>
<a href="${requestScope.pagination.last.url }" <c:if test="${empty requestScope.pagination.last.url }">disabled="disabled"</c:if> style="margin-right:5px;">末页</a> 跳转至:
<select name="AspNetPager1_input" id="AspNetPager1_input" onchange="jumpTo();">
<c:forEach items="${requestScope.pagination.content}" var="everypage">
<option value="${everypage.url }" <c:if test="${empty everypage.url }">selected="true"</c:if>>${everypage.page }</option>
</c:forEach>
</select>
</div>
</div>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -