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

📄 list_s.html

📁 网上商店 使用jsp开发网上商店系统 4.1环境准备 为了利用JSP技术,首先需要建立环境。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
      					<a href="javascript:price(100,200);" >¥ 100 - ¥ 200</a> (${productMgr.getProductCountByPriceRange(100,200,$cid)}) <br>
      					<a href="javascript:price(200,300);"  >¥ 200 - ¥ 300</a> (${productMgr.getProductCountByPriceRange(200,300,$cid)}) <br>
	  					<br />
				</div></td>
				<td width="27%" valign="top">
<a href="javascript:price(300,400);">¥ 300 - ¥ 400 </a>(${productMgr.getProductCountByPriceRange(300,400,$cid)}) <br>
      <a href="javascript:price(400,500);">¥ 400 - ¥ 500</a> (${productMgr.getProductCountByPriceRange(400,500,$cid)}) <br>
      <a href="javascript:price(500,10000);">¥ 500元以上</a> (${productMgr.getProductCountByPriceRange(500,10000,$cid)}) <br>
      <a href="list-s-${pcid}-${cid}.html">所有价格</a>				</td>
			    <td width="53%" valign="top">				 #foreach ( $sonCatalog in ${catalogMgr.getCatalogByParentId(${pcid},null)} ) 																															<a  href='list-s-${sonCatalog.getString("parentid")}-${sonCatalog.getString("id")}.html'>${sonCatalog.getString("title")}</a> 
				 #end </td>
			</tr>
		</table></div><br />

		<!-------- 货架推荐商品 -------->
		<div style="width:560px;">
		#foreach ( $CatalogCommendPro in ${CatalogCommendPros} )
			<div style="width:70px;float:left;padding-left:20px;padding-right:20px;text-align: center;padding-bottom:20px;">
				<div style="border:1px solid #CCCCCC;">
					<a href="../product/detail-${CatalogCommendPro.getString("pid")}.html" target="_blank" title="${CatalogCommendPro.getString("name")}"><img src="${ConfigBean.getStringValue("systenFolder")}.${ConfigBean.getStringValue("upload_pro_img")}${CatalogCommendPro.getString("img_s")}" width="70" height="70" hspace="5" vspace="5"  /></a>
				</div>
				<div  style="margin:5px 0px 5px 0px;">
					促销价 <span style="color:#FF0000;font-weight:bold">${productMgr.getProductPriceStr($CatalogCommendPro)}</span>
				</div>
			</div>
		#end
		</div></div>



						 </div>
					
						<!--商品列表开始-->
                		<div class="list">
                										<!--商品列表头部翻页开始-->
                			<div class="list-top">
								<ul class="display-settings top">
									<li class="display-mode">
										<span>显示方式:</span>
										<a href="javascript:changeStyle('row')"  class="grid selected" >图片</a>
										<a href="javascript:changeStyle('grid')"      >列表</a>
									</li>

									<li class="sort-mode"><span>排序方式:</span>
									    <div class="sort-mode-content">
                    <select name="type" onChange="document.dataForm.type.value=this.value;go(1);">
                    <option value="0" selected>排序方式</option>
                    <option value="1" ${StringUtil.selectIt($type,1)}>价格 从低到高</option>
                    <option value="2"  ${StringUtil.selectIt($type,2)}>价格 从高到低</option>
                    <option value="3" ${StringUtil.selectIt($type,3)}>评价 从高到低</option>
                    <option value="4"  ${StringUtil.selectIt($type,4)} >评价 从低到高</option>
                    <option value="5"  ${StringUtil.selectIt($type,5)} >人气 从高到低</option>
                    <option value="6"  ${StringUtil.selectIt($type,6)} >人气 从低到高</option>
                    <option value="7" ${StringUtil.selectIt($type,7)} >销量 从高到低</option>
                    <option value="8"  ${StringUtil.selectIt($type,8)} >销量 从低到高</option>
                  	</select>
									    </div>
									</li>

                        		</ul>
                    		</div>
							<!--商品列表头部翻页结束-->
					
							<!--商品列表形式开始 grid-->
					        <div class="list-content grid">
								<ul class="product-list ark:list">


									#foreach ( $newPro in ${newPros} )
									#set ( $isOnDiscount = ${productMgr.isOnDiscount(${newPro.get("discount",${StringUtil.getDoubleType()})},${newPro.getString("discount_st")},${newPro.getString("discount_en")})})

																				<li class="product">
												<h3>${newPro.getString("name")}</h3>
												<div class="info">
													<div class="pic">
														<a href="../product/detail-${newPro.getString("pid")}.html" target="_blank">
															<img src="${ConfigBean.getStringValue("systenFolder")}.${ConfigBean.getStringValue("upload_pro_img")}${newPro.getString("img_s")}"/>
														</a>
													</div>
								
													<div class="name">
														<a href="../product/detail-${newPro.getString("pid")}.html" target="_blank">${newPro.getString("name")}</a> #if($isOnDiscount=="true")<img src='../imgs/discount.gif' alt='正在打折'  align='absmiddle'>#end
								#if( ${newPro.get("flag_packet",0)}==1)&nbsp;<img src='../imgs/packet_p.gif'  alt='正在捆绑促销'  align='absmiddle'>#end
													</div>
													
													<div class="sales-volume">${productMgr.getProductPriceStr($newPro)} </div>
													 
												</div>
												
											</li>
										#end
     																	
     								    							</ul>
							</div>
					<!--商品列表形式结束-->
					<form name="dataForm">
    <input type="hidden" name="p" value="${p}">
    <input type="hidden" name="cid" value="${cid}">
    <input type="hidden" name="pcid" value="${pcid}">
    <input type="hidden" name="type" value="${type}">
	<input type="hidden" name="price_st" value="${price_st}">
	<input type="hidden" name="price_en" value="${price_en}">
  </form>
					<!--商品列表页尾翻页开始-->
                    <div class="list-bottom">
                        <ul class="display-settings bottom">
						    <li class="quick-page-changer">

								${StringUtil.getTurnPage($pc,$p)}
		
								
							</li>
                        </ul>
                    </div>

									</div>
				<!--商品列表结束-->
           </div>
		</div>
		<!--主内容结束-->
		
		<!--侧边栏开始-->
		<div class="grid-column">
			<div class='category category-class' style="border-right:1px #eeeeee solid"><h2>${pdetailCatalog.getString("title")}</h2>
			
			<div class='cat'><ul class='ul-text circle' style="line-height:20px;">

			#foreach ( $catalog in ${catalogMgr.getCatalogByParentId(${pdetailCatalog.get("id",${StringUtil.getLongType()})},null)} )
				<li><a href='list-s-${catalog.getString("parentid")}-${catalog.getString("id")}.html'>${catalog.getString("title")}</a></li>
			#end<br />
			<br />



            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td bgcolor="#FDF7F2" style="padding:5px;border-top:1px #ededed solid;border-bottom:1px #ededed solid;">快速导航</td>
              </tr>
            </table>
<br />

			  <div id="quicknav" align="center">
			  
			  ${brandTree} <br /><br />

			  	<script>
function quickfind(v)
{
	location="../product/price-range-"+v+".html";
}
</script>				
                <select name="select" onChange="quickfind(this.value)">
                    <option value="0-10000" selected>快速查看</option>
					<option value="0-50" >50元以下</option>
					<option value="50-100" >50元 - 100元</option>
					<option value="100-200" >100元 - 200元</option>
					<option value="200-300" >200元 - 300元</option>
					<option value="300-400" >300元 - 400元</option>
					<option value="400-500" >400元 - 500元</option>
					<option value="500-10000" >500元以上</option>
                </select>
				
				</div>
				
	
				<br />

				
			         <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td bgcolor="#FDF7F2" style="padding:5px;border-top:1px #ededed solid;border-bottom:1px #ededed solid;">最近浏览</td>
              </tr>
            </table>

<DIV id=history_prolist></DIV><SPAN id=history_loadifo></SPAN>
				<script>loadurl_c("../history.html","history_loadifo","history_prolist")</script>
				
			</ul>
			</li></ul></div></div>
			
			<div class="category category-prop" id="ark:category">
				


			<!--侧边栏结束-->
			<div class="flexed"></div>
		</div>
	</div>
	<div class="body-bottom"></div>
</div>
<br />

${foot}
		<script>
document.write('<script src="${ConfigBean.getStringValue("systenFolder")}count.jsp?ref='+escape(document.referrer)+'&currentURL='+escape(document.location)+'&color_depth='+screen.colorDepth+'&screen='+screen.width+'x'+screen.height+'&lang='+navigator.systemLanguage+'"><\/script>');
		</script>		
</body>
</html>

⌨️ 快捷键说明

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