⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 productlist.jsp

📁 巴巴运动网源码 传智博客出品 不全 一部分代码 可以参考
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>${producttype.name} 巴巴运动网</title>    
	<link href="/css/global/header01.css" rel="stylesheet" type="text/css">
	<link href="/css/product/list.css" rel="stylesheet" type="text/css" />	
	<link href="/css/global/topsell.css" rel="stylesheet" type="text/css">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="Keywords" content="${producttype.name}">
	<META name="description" content="${producttype.note}">
<SCRIPT language=JavaScript src="/js/xmlhttp.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
	function getTopSell(typeid){
		var salespromotion = document.getElementById('salespromotion');		
		if(salespromotion && typeid!=""){
			salespromotion.innerHTML= "数据正在加载...";
			send_request(function(value){salespromotion.innerHTML=value},
					 "<html:rewrite action="/product/switch"/>?method=topsell&typeid="+ typeid, true);
		}
	}
	function getViewHistory(){
		var viewHistoryUI = document.getElementById('viewHistory');		
		if(viewHistoryUI){
			viewHistoryUI.innerHTML= "数据正在加载...";
			send_request(function(value){viewHistoryUI.innerHTML=value},
					 "<html:rewrite action="/product/switch"/>?method=getViewHistory", true);
		}
	}
	function pageInit(){
		getTopSell("${producttype.typeid}");
		getViewHistory();
	}
//-->
</SCRIPT>
</head>

<body class="ProducTypeHome2" onload="javascript:pageInit()">
	<jsp:include page="/WEB-INF/page/share/Head.jsp"/>
	<c:set var="out" value=""/><c:forEach items="${types}" var="type" varStatus="statu">
		<c:if test="${statu.count==1}"><c:set var="out" value=" &gt;&gt; <em>${type.name}</em> ${out}"/></c:if>
		<c:if test="${statu.count>1}"><c:set var="out" value=" &gt;&gt; <a href='/product/list.do?typeid=${type.typeid}'>${type.name}</a> ${out}"/></c:if>
	</c:forEach>
    <div id="position">您现在的位置: <a href="/" name="linkHome">巴巴运动网</a> 
    <c:out value="${out}" escapeXml="false"></c:out>(${pageView.totalrecord}个)
	</div>

    <!--页面左侧分类浏览部分-->
    <div class="browse_left">
         <div class="browse">
            <div class="browse_t">${producttype.name}</div>
			
				<h2><span class="gray">浏览下级分类</span></h2>
				<ul><c:forEach items="${producttype.childtypes}" var="childtype">						
				<li class='bj_blue'><a href="<html:rewrite action="/product/list"/>?typeid=${childtype.typeid}">${childtype.name}</a></li></c:forEach>		    
			</ul>
	     </div>
<DIV id="sy_biankuang">
        <DIV class="lanmu_font">最畅销${producttype.name}</DIV>
        <DIV style="PADDING-LEFT: 10px; COLOR: #333333" id="salespromotion">
			
        </DIV>
</DIV>
		 <br/>
		 <div class="browse">
	          <div class="browse_t">您浏览过的商品</div>
			  <ul id="viewHistory"></ul>
	     </div>
    </div>
    <!--页面右侧分类列表部分开始-->
    <div class="browse_right">
         <div class="select_reorder">
              <div class="reorder_l">请选择排序方式: <c:if test="${'selldesc'==param.sort}"><strong><em>销量多到少</em></strong></c:if><c:if test="${'selldesc'!=param.sort}">
              <a title='按销量降序' href="<html:rewrite action="/product/list"/>?sort=selldesc&typeid=${param.typeid}&style=${param.style}">销量多到少</a></c:if>
			  | <c:if test="${'sellpricedesc'==param.sort}"><strong><em>价格高到低</em></strong></c:if><c:if test="${'sellpricedesc'!=param.sort}">
			  <a title='价格高到低' href="<html:rewrite action="/product/list"/>?sort=sellpricedesc&typeid=${param.typeid}&style=${param.style}">价格高到低</a></c:if>
			  | <c:if test="${'sellpriceasc'==param.sort}"><strong><em>价格低到低</em></strong></c:if><c:if test="${'sellpriceasc'!=param.sort}">
			  <a title='价格低到高' href="<html:rewrite action="/product/list"/>?sort=sellpriceasc&typeid=${param.typeid}&style=${param.style}">价格低到高</a></c:if>
			  | <c:if test="${empty param.sort}"><strong><em>最近上架时间</em></strong></c:if><c:if test="${!empty param.sort}">
			  <a title='价格低到高' href="<html:rewrite action="/product/list"/>?sort=&typeid=${param.typeid}&style=${param.style}">最近上架时间</a></c:if> </div>
              
		      <div class="reorder_r">显示方式:<c:if test="${param.style=='imagetext'}"><strong><em>图文版</em></strong></c:if><c:if test="${param.style!='imagetext'}">
		      <a href="<html:rewrite action="/product/list"/>?sort=${param.sort}&typeid=${param.typeid}&sex=${param.sex }&brandid=${param.brandid}&style=imagetext">图文版</a></c:if> |
		      <c:if test="${param.style=='imagetext'}"><a href="<html:rewrite action="/product/list"/>?sort=${param.sort}&typeid=${param.typeid}&sex=${param.sex }&brandid=${param.brandid}&style=image">图片版</a>
		      </c:if><c:if test="${param.style!='imagetext'}"><strong><em>图片版</em></strong></c:if>
		      </div>
			<div class="emptybox"></div>
			 <div class="brand">
				<div class="FindByHint">按<strong>品牌</strong>选择:</div>
				<ul class="CategoryListTableLevel1"><c:forEach items="${brands}" var="brand">
				<li><a href="<html:rewrite action="/product/list"/>?sort=${param.sort}&typeid=${param.typeid}&brandid=${brand.code}&sex=${param.sex}">${brand.name}</a></li></c:forEach>
				</ul>
			 </div>
			 <div class="SubCategoryBox">
				<div class="FindByHint">按<strong>男女款</strong>选择:</div>
				<ul class="CategoryListTableLevel1">
				<li><a  href="<html:rewrite action="/product/list"/>?sort=sellpriceasc&typeid=${param.typeid}&sex=MAN&brandid=${param.brandid}&style=${param.style}">男款</a></li>
				<li><a  href="<html:rewrite action="/product/list"/>?sort=sellpriceasc&typeid=${param.typeid}&sex=WOMEN&brandid=${param.brandid}&style=${param.style}">女款</a></li>
				<li><a  href="<html:rewrite action="/product/list"/>?sort=sellpriceasc&typeid=${param.typeid}&sex=NONE&brandid=${param.brandid}&style=${param.style}">男女均可</a></li>
				<li><a class="red" href="<html:rewrite action="/product/list"/>?sort=sellpriceasc&typeid=${param.typeid}">全部</a></li>
				</ul>
			 </div>
		</div>
	     <div id="divNaviTop" class="number">
	          <div class="number_l">以下<span class='number_white'>${pageView.totalrecord}</span>条结果按<span class="number_white">
				<c:choose>
				  <c:when test="${'selldesc'==param.sort}">销量多到少</c:when>
				  <c:when test="${'sellpricedesc'==param.sort}">价格高到低</c:when>
				  <c:when test="${'sellpriceasc'==param.sort}">价格低到高</c:when>
				  <c:otherwise>最近上架时间</c:otherwise>
				</c:choose>
			  </span>排列,显示方式是<span class="number_white"><c:if test="${param.style=='imagetext'}">图文版</c:if><c:if test="${param.style!='imagetext'}">图片版</c:if></span> 每页显示<span class="number_white">${pageView.maxresult}</span>条</div>
		      <div class="turnpage">
                <div><em>第${pageView.currentpage}页</em></div>
		      </div>
	     </div>

	<div class='goods_pic'>
<!---------------------------LOOP START------------------------------>
<c:forEach items="${pageView.records}" var="entry">	
        <div class="detail">
           <div class="goods" style="cursor:hand;background:url(<c:forEach items="${entry.styles}" var="pic">${pic.image140FullPath}</c:forEach>) center center no-repeat"><a href="<html:rewrite action="/product/view"/>?productid=${entry.id}" target="_blank">
            <img src="/images/global/product_blank.gif" alt="${entry.name}" width="140" height="168"  border="0"/></a></div>
           <h2><a href="<html:rewrite action="/product/view"/>?productid=${entry.id}" target="_blank" title="${entry.name}">${entry.name}</a></h2>
           <div class="save_number"><s>¥${entry.marketprice}</s> <strong><em>¥${entry.sellprice}</em></strong> 节省:${entry.savedPrice}</div>
           <div class="an_img" align="center"><a href="<html:rewrite action="/product/view"/>?productid=${entry.id}"><img src='/images/sale.gif' width='84' height='24' border='0' class='a_1' /></a></div>
        </div>
</c:forEach>
<!----------------------LOOP END------------------------------->
		<div class='emptybox'></div>
	</div>
	     <div id="divNaviBottom" class="page_number">
	     <div class="turnpage turnpage_bottom">	
	     <c:forEach begin="${pageView.pageindex.startindex}" end="${pageView.pageindex.endindex}" var="wp">
		    <c:if test="${pageView.currentpage==wp}"><div class='red'>${wp}</div></c:if>
		    <c:if test="${pageView.currentpage!=wp}"><div class="page"><a href="<html:rewrite action="/product/list"/>?page=${wp}&brandid=${param.brandid}&sex=${param.sex}&sort=selldesc&style=${param.style}&typeid=${param.typeid}">[${wp}]</a></div></c:if>
		</c:forEach>
		<div>&nbsp;&nbsp;</div>跳转到第
		<select name="selectPage" class="kuang" onChange="javaScript:topage(this.value)">
				<c:forEach begin="1" end="${pageView.totalpage}" var="wp">
				<option value="${wp}" <c:if test="${pageView.currentpage==wp}">selected</c:if>> ${wp} </option></c:forEach>
		</Select>页
		<SCRIPT LANGUAGE="JavaScript">
		<!--
		function topage(pagenum){
			window.location.href='<html:rewrite action="/product/list"/>?sort=selldesc&style=${param.style}&brandid=${param.brandid}&sex=${param.sex}&typeid=${param.typeid}&page='+ pagenum;
		}
		//-->
		</SCRIPT>
         </div>
	     </div>
    </div>
	<jsp:include page="/WEB-INF/page/share/Foot.jsp" />
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -