399 lines
14 KiB
Plaintext
399 lines
14 KiB
Plaintext
<%@ Page Title="" Language="C#" MasterPageFile="~/Telesa.Master" AutoEventWireup="true" CodeBehind="shop_search.aspx.cs" Inherits="Mtxfw.shop.shop_search" %>
|
|
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="MyHead" runat="server">
|
|
<link href="css/shop_search.css" rel="stylesheet" type="text/css" />
|
|
<script type="text/javascript" src="Scripts/flashobj.js"></script>
|
|
<script type="text/javascript">
|
|
|
|
|
|
<% rurl = Mtxfw.Utility.Tools.getUrl("Price="); %>
|
|
function clickSearchPriceRange(iid, k1, k2) {
|
|
|
|
location.href = '<%=rurl %>Price=' + k1 + ',' + k2;
|
|
|
|
|
|
}
|
|
|
|
function searchPriceRange() {
|
|
var p1 = $("#searchPriceRangeMin");
|
|
var p2 = $("#searchPriceRangeMax");
|
|
location.href = '<%=rurl %>Price=' + p1.val() + ',' + p2.val();
|
|
}
|
|
function clickFilterBox(iid,ch) {
|
|
if(ch.checked!=true){
|
|
location.href = '<%=rurl %>';
|
|
}
|
|
else
|
|
{
|
|
location.href = 'search-' + iid + '.html';
|
|
}
|
|
}
|
|
|
|
</script>
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MyContent" runat="server">
|
|
<div class="contentWrapper">
|
|
<form runat="server" id="MyForm">
|
|
|
|
|
|
|
|
<div id="Location"><div class="title">当前位置: <a href="/">首页</a> > <%=strposition%></div></div>
|
|
<div class="clear"></div>
|
|
<div id="main">
|
|
<div id="sidebarleft">
|
|
<%=strcategories%>
|
|
|
|
|
|
<!-- 热销排行榜 -->
|
|
<div class="col col-5" id="left-board-section">
|
|
<div class="board-section">
|
|
<h3>HOT热销商品排行</h3>
|
|
<ul class="board-list">
|
|
<% System.Data.DataSet Ds_Product = daoProduct.GetCacheList("top 5", "utype='0' And P_State=N'已处理' Order By P_Orders Desc,P_ADDATE Desc", "rxsp_Product5");
|
|
if (Ds_Product.Tables[0].Rows.Count > 0)
|
|
{
|
|
for (int i = 0; i < Ds_Product.Tables[0].Rows.Count; i++)
|
|
{
|
|
%>
|
|
<li <%=(i<3?"class=\"top\"":"") %>>
|
|
<span class="item-info">
|
|
<span class="item-title"><a href="/view-<%=Ds_Product.Tables[0].Rows[i]["P_ID"] %>.html"><%=Ds_Product.Tables[0].Rows[i]["P_NAME"] %></a></span>
|
|
<span class="item-price"><%=Convert.ToDouble(Ds_Product.Tables[0].Rows[i]["P_VIP_P"]).ToString()%>元 </span>
|
|
</span>
|
|
<span class="item-thumb">
|
|
<a href="/view-<%=Ds_Product.Tables[0].Rows[i]["P_ID"] %>.html"><img src="<%=Mtxfw.Utility.Common.GetCoverPic(Ds_Product.Tables[0].Rows[i]["P_images"].ToString().Split('|')[0].Split(',')[0],"70x70","cut") %>" alt="<%=Ds_Product.Tables[0].Rows[i]["P_NAME"] %>" srcset="<%=Mtxfw.Utility.Common.GetCoverPic(Ds_Product.Tables[0].Rows[i]["P_images"].ToString().Split('|')[0].Split(',')[0],"140x140","cut") %> 2x" /></a>
|
|
</span>
|
|
<span class="item-num<%=i==9?"2":"" %>"><%=(i+1) %></span>
|
|
</li>
|
|
<%}
|
|
} %>
|
|
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<!--rankingcon-->
|
|
<!-- 商品浏览历史记录 -->
|
|
</div> <!--sidebarleft-->
|
|
|
|
<div id="middle">
|
|
|
|
|
|
|
|
|
|
<!-- 导购属性及品牌价格区 -->
|
|
<div id="propertiescon" style=" display:none;">
|
|
<div class="propertycontent">
|
|
|
|
|
|
|
|
|
|
<div class="sexuality sexualitylast">
|
|
<div class="sexualitytitle">价格:</div>
|
|
<div class="sexualitytxt">
|
|
<ul>
|
|
<li class="selected" id="PriceRange0" onclick="clickSearchPriceRange('0','0','');">全部</li>
|
|
<li id="PriceRange1" onclick="clickSearchPriceRange('1','0','30');">
|
|
0-30元
|
|
</li>
|
|
<li id="PriceRange2" onclick="clickSearchPriceRange('2','30','60');">
|
|
30-60元
|
|
</li>
|
|
<li id="PriceRange3" onclick="clickSearchPriceRange('3','60','90');">
|
|
60-90元
|
|
</li>
|
|
<li id="PriceRange4" onclick="clickSearchPriceRange('4','90','120');">
|
|
90-120元
|
|
</li>
|
|
<li id="PriceRange5" onclick="clickSearchPriceRange('5','120','160');">
|
|
120-160元
|
|
</li>
|
|
<li id="PriceRange6" onclick="clickSearchPriceRange('6','160','');">
|
|
160元以上
|
|
</li> <div class="clear"></div>
|
|
<li class="last" id="lastPriceRange">
|
|
<input type="text" class="priceinput" id="searchPriceRangeMin" value="0" maxlength="8" />
|
|
<label>至</label>
|
|
<input type="text" class="priceinput" id="searchPriceRangeMax" value="" maxlength="8" />
|
|
<input type="button" value="确定" onclick="searchPriceRange()" class="submitbtn" />
|
|
|
|
</li>
|
|
|
|
<div class="clear"></div>
|
|
</ul>
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div> <!--sexuality-->
|
|
</div>
|
|
</div> <!--propertiescon-->
|
|
|
|
<!-- <div id="divSerialProduct" style="overflow:hidden; height:200px; width:200px; background:ff0000"></div> -->
|
|
<div id="productcontent">
|
|
<!-- 排序方式与布局方式切换区 -->
|
|
<div id="showways">
|
|
|
|
|
|
<div id="showwaylist">
|
|
<% rurl = Mtxfw.Utility.Tools.getUrl("Order="); %>
|
|
<ul class="showleft">
|
|
<!-- 排序方式 -->
|
|
<li class="ranktxt">排序:</li>
|
|
<li class='original_sel'><a href="javascript:void();" onClick="return false;">默认</a></li>
|
|
<li class=salenum>
|
|
<a href='<%=rurl %>Order=0'>销量</a>
|
|
</li>
|
|
<li class=pricenum>
|
|
<a href='<%=rurl %>Order=1'>价格</a>
|
|
</li>
|
|
<li class=salenum>
|
|
<a href='<%=rurl %>Order=2'>评价</a>
|
|
</li>
|
|
<li class="salenum time">
|
|
<a href='<%=rurl %>Order=3'>时间</a>
|
|
</li>
|
|
<div class="clear"></div>
|
|
</ul>
|
|
|
|
<ul class="showright" id="choosecheck">
|
|
<% rurl = Mtxfw.Utility.Tools.getUrl("PageSize="); %>
|
|
<li class="choosetxt">筛选:</li>
|
|
<li class="choosecheck"><input type="checkbox" name="filter" value=0 onClick="clickFilterBox(0,this);"/><label>抢购</label></li>
|
|
<li class="choosecheck"><input type="checkbox" name="filter" value=1 onClick="clickFilterBox(1,this);"/><label>品牌</label></li>
|
|
<li class="choosecheck"><input type="checkbox" name="filter" value=2 onClick="clickFilterBox(2,this);"/><label>热销</label></li>
|
|
<!--li class="choosecheck"><input type="checkbox" name="filter" value=3 onClick="clickFilterBox(3,this);"/><label>品牌</label></li>
|
|
<li class="choosecheck"><input type="checkbox" name="filter" value=4 onClick="clickFilterBox(4,this);"/><label>热销</label></li-->
|
|
|
|
|
|
<li class="choosesplit"></li>
|
|
<li class="shownum"><span>每页显示</span>
|
|
|
|
<a href="<%=rurl %>PageSize=32" id="PageSize_0" class="selectnum">32</a>
|
|
<a href="<%=rurl %>PageSize=48" id="PageSize_1">48</a>
|
|
<a href="<%=rurl %>PageSize=64" id="PageSize_2">64</a>
|
|
</li>
|
|
|
|
|
|
<div class="clear"></div>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!--showways-->
|
|
|
|
<!-- 商品展示 (表格/列表) -->
|
|
<div class="productcolumn">
|
|
<asp:Repeater ID="Repeater_shop" runat="server">
|
|
<ItemTemplate>
|
|
<div class="producteg" id="producteg_<%#Eval("P_ID") %>">
|
|
|
|
<div class="discountimg">
|
|
<a id="pdlink1_<%#Eval("P_ID") %>" href="/view-<%#Eval("P_ID") %>.html" target="_blank">
|
|
<img src="<%# Mtxfw.Utility.Common.GetCoverPic(Eval("P_images").ToString().Split('|')[0].Split(',')[0],"168x168","cut") %>" title="<%#Eval("P_NAME") %>" />
|
|
|
|
</a>
|
|
</div>
|
|
|
|
<div class="color_gary discountimgtxt">
|
|
<a id="pdlink2_<%#Eval("P_ID") %>" href="/view-<%#Eval("P_ID") %>.html" target="_blank" title="<%#Eval("P_NAME") %>">
|
|
<%#Eval("P_NAME")%>
|
|
<span></span>
|
|
</a>
|
|
</div>
|
|
|
|
|
|
<div class="oldprice">市场价:<span>¥<%#Eval("P_Market_P").ToString() != "" ? Convert.ToDouble(Eval("P_Market_P")).ToString("f2") : ""%></span></div>
|
|
|
|
<%if (strstype == "1")
|
|
{ %>
|
|
<div class="newprice2">今日赠送份数:<span class="red9"><%#Eval("P_Inventory").ToString() != "" ? Eval("P_Inventory").ToString() : "0"%></span></div>
|
|
<%}
|
|
else
|
|
{ %>
|
|
<div class="proprice">会员价:<span class="red9">¥<%#Eval("P_VIP_P").ToString() != "" ? Convert.ToDouble(Eval("P_VIP_P")).ToString("f2") : ""%></span></div>
|
|
|
|
<div class="newprice2">赠送积分:<span class="red9"><%#Eval("P_JiangLi").ToString() != "" ? Eval("P_JiangLi").ToString() : "0"%></span></div>
|
|
<%} %>
|
|
|
|
<div class="shoppingbtns">
|
|
<div class="shoppingcart" id="buyButton_<%#Eval("P_ID") %>" specialType="0">
|
|
<a href="/view-<%#Eval("P_ID") %>.html">查看详情</a>
|
|
</div>
|
|
|
|
<div class="favorites">
|
|
<a href="javascript:addfavorite(<%#Eval("P_ID") %>);" target="_self">收藏</a>
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
</div> <!--producteg-->
|
|
</ItemTemplate>
|
|
</asp:Repeater>
|
|
|
|
|
|
|
|
<div class="clear"></div>
|
|
</div> <!--productcolumn-->
|
|
|
|
|
|
|
|
|
|
<!-- 下方翻页条区 -->
|
|
<!--choosepage-->
|
|
<div class="latestnewpageboxinner">
|
|
<webdiyer:AspNetPager ID="MyPager" AlwaysShow="true" runat="server"
|
|
FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
|
|
CustomInfoHTML="共 <font color="red">%RecordCount%</font> 条记录 当前 <font color="red">%CurrentPageIndex%/%PageCount%</font> 页"
|
|
PrevPageText="上一页" ShowPageIndexBox="Always" ShowCustomInfoSection="Left"
|
|
SubmitButtonText="Go" TextAfterPageIndexBox="页" ShowBoxThreshold="100"
|
|
CurrentPageButtonPosition="Center" ShowMoreButtons="False" PageIndexBoxType="DropDownList"
|
|
TextBeforePageIndexBox="转到" UrlPaging="True" EnableUrlRewriting="True">
|
|
</webdiyer:AspNetPager>
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div> <!--productcontent-->
|
|
|
|
</div> <!--middle-->
|
|
|
|
<div class="clear"></div>
|
|
</div> <!--main-->
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
var iid=0;
|
|
<%if(Request.QueryString["Price"]!=null){
|
|
if(Request.QueryString["Price"]=="0,")
|
|
{
|
|
%>
|
|
iid=0;
|
|
<%
|
|
}
|
|
if(Request.QueryString["Price"]=="0,30")
|
|
{
|
|
%>
|
|
iid=1;
|
|
<%
|
|
}
|
|
if(Request.QueryString["Price"]=="30,60")
|
|
{
|
|
%>
|
|
iid=2;
|
|
<%
|
|
}
|
|
if(Request.QueryString["Price"]=="60,90")
|
|
{
|
|
%>
|
|
iid=3;
|
|
<%
|
|
}
|
|
if(Request.QueryString["Price"]=="90,120")
|
|
{
|
|
%>
|
|
iid=4;
|
|
<%
|
|
}
|
|
if(Request.QueryString["Price"]=="120,160")
|
|
{
|
|
%>
|
|
iid=5;
|
|
<%
|
|
}
|
|
if(Request.QueryString["Price"]=="160,")
|
|
{
|
|
%>
|
|
iid=6;
|
|
<%
|
|
}
|
|
}
|
|
%>
|
|
|
|
$(".sexuality .sexualitytxt li").each(function (i) {
|
|
if ($(this).attr("id") != "lastPriceRange") {
|
|
if ($(this).attr("id") == ("PriceRange" + iid)) {
|
|
$(this).addClass("selected");
|
|
} else { $(this).removeClass("selected"); }
|
|
|
|
}
|
|
});
|
|
iid=0;
|
|
<%if(Request.QueryString["PageSize"]!=null){
|
|
if(Request.QueryString["PageSize"]=="32")
|
|
{
|
|
%>
|
|
iid=0;
|
|
<%
|
|
}
|
|
if(Request.QueryString["PageSize"]=="48")
|
|
{
|
|
%>
|
|
iid=1;
|
|
<%
|
|
}
|
|
if(Request.QueryString["PageSize"]=="64")
|
|
{
|
|
%>
|
|
iid=2;
|
|
<%
|
|
}
|
|
}
|
|
%>
|
|
$(".shownum a").each(function (i) {
|
|
if ($(this).attr("id") == ("PageSize_" + iid)) {
|
|
$(this).addClass("selectnum");
|
|
} else { $(this).removeClass("selectnum"); }
|
|
});
|
|
iid=-1;
|
|
<%if(Request.QueryString["stype"]!=null){
|
|
if(Request.QueryString["stype"]=="0")
|
|
{
|
|
%>
|
|
iid=0;
|
|
<%
|
|
}
|
|
if(Request.QueryString["stype"]=="1")
|
|
{
|
|
%>
|
|
iid=1;
|
|
<%
|
|
}
|
|
if(Request.QueryString["stype"]=="2")
|
|
{
|
|
%>
|
|
iid=2;
|
|
<%
|
|
}
|
|
if(Request.QueryString["stype"]=="3")
|
|
{
|
|
%>
|
|
iid=3;
|
|
<%
|
|
} if(Request.QueryString["stype"]=="4")
|
|
{
|
|
%>
|
|
iid=4;
|
|
<%
|
|
}
|
|
}
|
|
%>
|
|
$("#choosecheck input").each(function (i) {
|
|
|
|
if ($(this).val() == iid) {
|
|
$(this).attr("checked",true);
|
|
} else { $(this).removeAttr("checked") }
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
</form>
|
|
</div>
|
|
</asp:Content>
|