📄 productinfo.tag
字号:
<%--模糊搜索结果商品信息 --%>
<%@ tag pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript">
<!--
//使用某种颜色加亮显示某段内容的关键字
function hightLight(content,key,color){
if(content==null) return;
if(key==null) return document.write(content);
if(color==null) color = 'red';
document.write(content.replace(eval("/("+key+")/gi"),"<font color="+color+">$1</font>"));
}
//-->
</script>
<div id="panelInfo">
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="t bt">
<tr>
<td nowrap>
<span id="sd"> ${requestScope.title } </span></td>
<td align="right" nowrap>
约有<b><span id="lbSearchCount">${requestScope.productSize }</span></b>项符合<b>
${param['word'] }</b>的查询结果(搜索用时${requestScope.take }毫秒) </td>
</tr>
</table>
<div id="res">
<div>
<c:forEach items="${requestScope.products}" var="product">
<div class="g">
<h2 class="r">
<a href='/productinfo.htm?pid=${product.id }' target="_blank">
<script type="text/javascript">
<!--
hightLight('${product.pname}','${param['word'] }');
//-->
</script>
</a>
</h2>
<table border="0" cellpadding="0" width="100%" cellspacing="0">
<tr>
<td rowspan="2" width="70">
<img src="productphoto.do?id=${product.id }&pid=${product.id }" alt="ppp"/>
</td>
<td >
</td>
</tr>
<tr>
<td class="j">
<div class="std">
<script type="text/javascript">
<!--
hightLight("${(empty product.ptype)?'暂无商品类型信息':product.ptype}",'${param['word'] }');
document.write("<br/>");
hightLight("${(empty product.ptype)?'暂无商品证书信息':product.ptype}",'${param['word'] }');
document.write("<br/>");
hightLight("${(empty product.ptype)?'暂无商品备注信息':product.ptype}",'${param['word'] }');
document.write("<br/>");
hightLight("${(empty product.ptype)?'暂无商品概要信息':product.ptype}",'${param['word'] }');
document.write("<br/>");
hightLight("${(empty product.ptype)?'暂无商品标准信息':product.ptype}",'${param['word'] }');
document.write("<br/>");
//-->
</script>
<br>
<span class="a">
http://
${pageContext.request.localAddr }:${pageContext.request.localPort }
${pageContext.request.contextPath }
/productinfo.htm?pid=${product.id }
</span>
</div>
</td>
</tr>
</table>
</div>
</c:forEach>
</div>
</div>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -