📄 contentlist_sub.jsp
字号:
<%@page contentType="text/html;charset=GBK" %>
<%
String startUnitPrice = request.getParameter("startUnitPrice");
String endUnitPrice = request.getParameter("endUnitPrice");
if(startUnitPrice == null) {
startUnitPrice = "";
}
if(endUnitPrice == null) {
endUnitPrice = "";
}
%>
<table width="620" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><%=categoryTitle%> </td>
</tr>
</table><br>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i01.gif" width="10" height="10"></td>
<td background="<%=CONTEXT%>/img/QQ/i03.gif"></td>
<td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i02.gif" width="10" height="10"></td>
</tr>
<tr>
<td background="<%=CONTEXT%>/img/QQ/i04.gif"> </td>
<td>
<!--内容填写处-->
<html:form method="post" action="/fg/product/fgproductSearch">
<html:hidden property="maxRecNoPerPage" value="<%=contentPager.getRowsPerPage()%>"/>
<html:hidden property="recordNumber" value="<%=contentPager.getTotalRow()%>"/>
<html:hidden property="actionType" value="qiantailist"/>
<html:hidden property="categoryId"/>
<html:hidden property="orderbyType"/>
<html:hidden property="channelId" value="<%=currentChannel.getId()%>"/>
<html:hidden property="startUnitPrice" value="<%=startUnitPrice%>"/>
<html:hidden property="endUnitPrice" value="<%=endUnitPrice%>"/>
<html:hidden property="key"/>
<html:hidden property="currentPageNo"/>
<table width="620" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td> </td>
</tr>
</table>
<table width="620" border="0" cellpadding="0" cellspacing="0" >
<%
if(contentList != null && contentList.size() > 0) {
%>
<tr>
<td>
<table width="620" height="27" border="0" align="center" cellpadding="0" cellspacing="0" class="listIndex_table01">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
共<%=contentPager.getTotalRow()%>条 分<%=contentPager.getTotalPage()%>页显示
<a class="flIndex_Title02" href="javascript:jump('1')">首页</a> <% if(contentPager.getCurrentPage()>1){%>
<a class="flIndex_Title02" href="javascript:select('prev')">上 一 页</a><%} else {%> 下一页<%} %> <% if(contentPager.getTotalPage()>contentPager.getCurrentPage()){%>
<a class="flIndex_Title02" href="javascript:select('next')">下 一 页</a><%} else {%> 下一页<%} %>
<a class="flIndex_Title02" href="javascript:jump('<%=contentPager.getTotalPage()%>')">末页</a>
<input name="toPage" type="text" size="2" value="<%=fgProductSearchForm.getCurrentPageNo()%>" maxlength="5"/>
<input type="button" onclick="javascript:jump(document.all['toPage'].value)" value="GO">
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<%
if(contentList != null && contentList.size() > 0) {
for(int i=0; i<contentList.size(); i++) {
Content content = (Content)contentList.get(i);
%>
<tr>
<td width="3%" class="board_table04" > </td>
<td width="97%" class="board_table04" align="left"> ·<a href="<%=CONTENTVIEW%>&viewModel=null&bean.id=<%=content.getId()%>" class="ggIndex_Title02"><%=content.getName()%></a>
</td>
</tr>
<%
}
}
%>
</table>
<table align="center" width="620" height="27" border="0" cellpadding="0" cellspacing="0" class="listIndex_table01">
<tr>
<td >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
共<%=contentPager.getTotalRow()%>条 分<%=contentPager.getTotalPage()%>页显示
<a href="javascript:jump('1')" class="flIndex_Title02">首页</a>
<% if(contentPager.getCurrentPage()>1){%>
<a href="javascript:select('prev')" class="flIndex_Title02">
上 一 页</a><%} else {%>上 一 页<%} %> <% if(contentPager.getTotalPage()>contentPager.getCurrentPage()){%>
<a href="javascript:select('next')" class="flIndex_Title02">下 一 页</a><%} else {%>下 一 页<%} %>
<a href="javascript:jump('<%=contentPager.getTotalPage()%>')" class="flIndex_Title02" >末页</a>
<input name="toPage" type="text" size="2" value="<%=fgProductSearchForm.getCurrentPageNo()%>" maxlength="5"/>
<input type="button" onclick="javascript:jump(document.all['toPage'].value)" value="GO">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<%
}
%>
</table>
<table width="620" border="0" cellpadding="0" cellspacing="0" class="listIndex_bottom">
<tr>
<td> </td>
</tr>
</table>
</html:form>
</td>
<td background="<%=CONTEXT%>/img/QQ/i05.gif"></td>
</tr>
<tr>
<td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i06.gif" width="10" height="10"></td>
<td background="<%=CONTEXT%>/img/QQ/i08.gif"></td>
<td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i07.gif" width="10" height="10"></td>
</tr>
</table>
<script>
function select(act) {
currentPage = parseInt(document.all['currentPageNo'].value);
var toPage;
if(act == "jump") {
toPage= parseInt(document.all.toPage.value);
}else if(act == "prev") {
toPage = currentPage - 1;
}else if(act == "next"){
toPage = currentPage + 1 ;
}
document.all.currentPageNo.value = toPage;
document.all.actionType.value = "qiantailist";
document.fgProductSearchForm.submit();
}
function jump(page) {
document.all.toPage.value=page;
document.all.currentPageNo.value=page;
document.fgProductSearchForm.submit();
}
function orderby(orderbyType) {
document.all.orderbyType.value=orderbyType;
document.fgProductSearchForm.submit();
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -