📄 autofansproductview.jsp
字号:
<table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="112"><img src="<%=CONTEXT%>/img/pic138.gif" width="112" height="22"></td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="319AEB" width=120 height=4></td>
<td width="565" bgcolor="B3B3B3"></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" colspan="2"><img src="<%=CONTEXT%>/img/pic0518.gif" width="638" height="11"></td>
</tr>
<tr>
<td colspan="2" align="center" background="<%=CONTEXT%>/img/pic0520.gif">
<table width="96%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td align="left">
<font color="#FF5400">
<%if(!StringUtil.isEmpty(bean.getDescription())){
%>
<%=bean.getNote()%>
<%
}
%>
</font>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" colspan="2">
<img src="<%=CONTEXT%>/img/pic0519.gif" width="638" height="11"></td>
</tr>
<%
TemplateCategory category = ProductHelper.getTemplateCategoryById("4");
if(category!=null){
List fieldDatas = bean.getFieldsData(category.getId(), category.getType());
Iterator it= fieldDatas.iterator();
while(it.hasNext()) {
TemplateBlobField blobField = (TemplateBlobField)it.next();
if(!StringUtil.isEmpty(blobField.getFieldValue())) {
%>
<tr>
<td align="center" colspan="2"><%=blobField.getFieldName()%>
<p>
<img src="<%=CONTEXT%>/<%=blobField.getFieldValue()%>">
</p>
</td>
</tr>
<%
}
}
}
%>
</table>
<!--多角度视图结束-->
<br>
<!--购买提示开始-->
<table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="112"><img src="<%=CONTEXT%>/img/pic139.gif" width="112" height="22"></td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="CC31EB" width=120 height=4></td>
<td width="565" bgcolor="B3B3B3"></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="96%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td align="left">
<%if(!StringUtil.isEmpty(bean.getDescription())){
%>
<%=bean.getDescription()%>
<%
}
%>
</td>
</tr>
</table>
<!--购买提示结束-->
<br>
<!--商品评论开始-->
<table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="112"><img src="<%=CONTEXT%>/img/pic140.gif" width="112" height="22"></td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="60D24A" width=120 height=4></td>
<td width="565" bgcolor="B3B3B3"></td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width="90%" border="0" align="center" cellpadding="4" cellspacing="2">
<%
List appraisals = ProductHelper.getProductAppraisal(bean.getId(), new Pager());
if(appraisals != null && appraisals.size() > 0) {
for(int i=0; i<appraisals.size(); i++) {
ProductAppraisal app = (ProductAppraisal)appraisals.get(i);
%>
<tr>
<td width="97%" colspan="3" align="left"><font color="47803C">-<%=app.getDescription()%></font> <font color="8A8A8A"><%=app.getAppUser()%></font></td>
</tr>
<%
}
}
%>
</table>
<!--商品评论结束-->
<br>
<!--相关商品开始-->
<table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="112"><img src="<%=CONTEXT%>/img/pic141.gif" width="112" height="22">
</td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="DE613D" width=120 height=4></td>
<td width="565" bgcolor="B3B3B3"></td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table width="96%" border="0" cellspacing="1" cellpadding="2">
<%
int k=4;
List products = null;
double maxRows = 2;
Pager pager = new Pager();
pager.setRowsPerPage((int)(k * maxRows));
products = (List)request.getAttribute("relationProductList");
if(products != null && products.size() > 0) {
for(int i=0; i<maxRows&& i<Math.ceil(products.size()/(float)k); i++) {
%>
<tr align="center" >
<td width="5%"> </td>
<%
for(int j=0; j<k; j++) {
Product product = null;
if(i * k + j < products.size())
product = (Product)products.get(i * k + j);
if(product != null) {
%>
<td width="22%" bgcolor="BBBBBB">
<a href="<%=PRODUCTVIEW%>&bean.id=<%=product.getId()%>"target="_blank">
<%
if(!StringUtil.isEmpty(product.getSmallPicture())) {
%>
<img src="<%=request.getContextPath()%>/<%=product.getSmallPicture()%>" border="0" width="83" height="84"></a>
<%
} else {
%>
<img src="userfiles/product/nophoto.gif" border="0" width="83" height="84"></a>
<%
}
%>
</td>
<%
}
}
%>
</tr>
<tr align="center">
<td> </td>
<%
for(int j=0; j<k; j++) {
Product product = null;
if(i * k + j < products.size())
product = (Product)products.get(i * k + j);
if(product != null) {
%>
<td bgcolor="f2f2f2">
<span class="Pic_ComPrice">
<a href="<%=PRODUCTVIEW%>&product.id=<%=product.getId()%>" class="Pic_ComName" >
<font color="#1C1C1C" ><%=FormatHelper.substring(product.getName(),20)%></font></A>
<br>会员价:¥<%=product.getUnitPrice()%></span>
</td>
<%
}
}
%>
</tr>
<%
}
}
%>
</table>
<!--相关商品结束-->
<%
}
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -