📄 index.jsp
字号:
<%@page contentType="text/html;charset=GBK" %>
<%@include file="/jsp/pub/pub.jsp"%>
<%
if(currentChannel.getDescription() != null) {
PAGETITLE = currentChannel.getChannelZhName() + "-" + currentChannel.getDescription();
} else {
PAGETITLE = currentChannel.getChannelZhName() + PAGETITLE;
}
PAGEDESCRIPTION = PAGETITLE;
PAGEKEYWORDS = PAGETITLE;
%>
<%@include file="/jsp/pub/top.jsp"%>
<table width="830" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="250" valign="top" align="center" >
<TABLE WIDTH=240 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD COLSPAN=3 ><IMG SRC="images/taobaoleft_1.gif" WIDTH=254 HEIGHT=28 ALT=""></TD>
</TR>
<TR>
<TD background="images/taobaoleft_2.gif" WIDTH=1 ></TD>
<TD align="center" >
<%@include file="/jsp/pub/index/categorytree_index.jsp"%>
<%@include file="/jsp/pub/index/leftContentList_index.jsp"%>
<%@include file="/jsp/pub/index/inquisition_index.jsp"%>
</TD>
<TD background="images/taobaoleft_4.gif" WIDTH=1 ></TD>
</TR>
<TR>
<TD><IMG SRC="images/taobaoleft_5.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
<TD background="images/taobaoleft_6.gif" HEIGHT=1 ></TD>
<TD><IMG SRC="images/taobaoleft_7.gif" WIDTH=1 HEIGHT=1 ALT=""></TD>
</TR>
</TABLE>
<table width="248" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5" ></td>
</tr>
</table>
<!--左侧广告-->
<jsp:include page="/jsp/pub/adContentView.jsp">
<jsp:param name="channelId" value="<%=currentChannel.getId()%>"/>
<jsp:param name="searchKey" value="<%=AD_CATEGORY_LEFT%>"/>
<jsp:param name="position" value="2"/>
</jsp:include>
</td>
<td width="10" ></td>
<td width="570" align="right" valign="top">
<table width="570" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<!--第一列商品productList1.jsp-->
<jsp:include page="/jsp/pub/index/productList1.jsp">
<jsp:param name="channelId" value="<%=currentChannel.getId()%>"/>
<jsp:param name="searchKey" value="<%=PC_CATEGORY_BIG%>"/>
<jsp:param name="position" value="1"/>
</jsp:include>
<table width="570" border="0" cellpadding="0" cellspacing="0">
<tr>
<td HEIGHT="3"></td>
</tr>
</table>
<!--第二列商品productList2.jsp-->
<jsp:include page="/jsp/pub/index/productList2.jsp">
<jsp:param name="channelId" value="<%=currentChannel.getId()%>"/>
<jsp:param name="searchKey" value="<%=PC_CATEGORY_BIG%>"/>
<jsp:param name="position" value="2"/>
</jsp:include>
<table width="570" border="0" cellpadding="0" cellspacing="0">
<tr>
<td HEIGHT="3"></td>
</tr>
</table>
<table width="570" border="0" cellpadding="0" cellspacing="0" >
<%
int positionNumber=3;//中部产品position值
int productRowsSum=4;//行数
int productColsSum=2;//列数
int imgNumber=0;
for (int productRows=0;productRows<productRowsSum;productRows++){
%>
<tr>
<%
for (int productCols=0;productCols<productColsSum;productCols++){
positionNumber++;
imgNumber++;
%>
<td width="50%" align="center">
<!--底部商品-->
<jsp:include page="/jsp/pub/index/productbottomsub.jsp">
<jsp:param name="channelId" value="<%=currentChannel.getId()%>"/>
<jsp:param name="searchKey" value="<%=PC_CATEGORY_BIG%>"/>
<jsp:param name="position" value="<%=positionNumber%>"/>
<jsp:param name="imgNumber" value="<%=imgNumber%>"/>
</jsp:include>
</td>
<%
}
%>
</tr>
<tr>
<td colspan="2" height=5></td>
</tr>
<%
}
%>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=3>
<!--include file="/jsp/pub/index/productList3.jsp"-->
</td>
</tr>
</table>
<!--页脚产品-->
<jsp:include page="/jsp/pub/index/productList_bottom.jsp">
<jsp:param name="channelId" value="<%=currentChannel.getId()%>"/>
<jsp:param name="searchKey" value="<%=PC_CATEGORY_BIG%>"/>
<jsp:param name="position" value="17"/>
</jsp:include>
<!--底部-->
<%@include file="/jsp/pub/bottom.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -