<%@ page language="C#" autoeventwireup="true" inherits="TopTab, LebiMall" %>

<!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><%=title.Title %>_<%=ctitle%></title>
    <meta name="description" content=<%=title.Description %>,<%=cdes %>/>
    <meta name="keywords" content=<%=title.Keywords %>,<%=ckeyword %> />
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="<%=strpath %>images/css/css.css" rel="stylesheet" type="text/css">
    <link href="<%=strpath %>images/css/css2.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="<%=strpath %>images/js/shopjs.js"></script>
    <script type="text/javascript">var strc='<%=strpath %>';</script>
    <script type="text/javascript" src="<%=strpath %>images/js/js_s2.js"></script>
    <script type="text/javascript">
        function searchClick(){
            window.location.href="<%=strpath %>"+"list_pic.aspx?tid=0&price1="+document.getElementById("pricefrom").value+"&price2="+document.getElementById("priceto").value;
        }
        function search2(){
            var texts2=document.getElementById("ser2").value;
            var select_v2=document.getElementById("Select3").value;
            window.location="<%=strpath %>"+"list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
        function search(){
            var texts2=document.getElementById("ser").value;
            var select_v2=document.getElementById("Select2").value;
            window.location="<%=strpath %>"+"list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
    </script>
</head>
<body>
<form id="form" runat="server">
<div id="top-menu02">
    <div id="top-menu">
        <div class="right">
            <script type="text/javascript">indexhead();</script>
        </div>
    </div>
</div>
<div id="top">
    <div id="logo"><a href="http://<%=Request.Url.Host %><%=title.WebPath %>/"><img src="<%=strpath %>Upload/WebAdminImages/<%=title.Logoimg %>" border="0" /></a></div>
</div>
<div id="sp-menu">
    <ul>
        <li><a href="http://<%=Request.Url.Host %><%=title.WebPath %>/">首页</a></li>
        <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li <%if(type==ds_tab.Tables[0].Rows[i]["tdirname"].ToString()){ %> class="on" <%} %>><%if (title.Tab == "1"){ %>
                <a href="../<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>/" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%}else{%>
                <a href="TopTab.aspx?type=<%= ds_tab.Tables[0].Rows[i]["tdirname"]%>" target="_blank"><%= ds_tab.Tables[0].Rows[i]["tname"]%></a>
                <%} %></li>
            <%} %>
        <li><a href="http://<%=Request.Url.Host %><%=title.WebPath %>/News/" target="_blank">资讯</a></li>
    </ul>
    <p><span><a href="<%=strpath %>Coupon_s.aspx">优惠券</a></span></p>
</div>
<div id="contenter2">
    <div id="contenter">
        <div id="search">
            <div class="search-left">
                <div class="search-left-title">
                    搜索：</div>
                <div class="search-left-form">
                    <input type="text" runat="server" id="ser" size="30" /></div>
                <div class="search-left-list">
                    <select id="Select2" runat="server">
                    </select>
                </div>
                <div class="search-left-button">
                    <img src="<%=strpath %>images/search-buttom.gif" width="60" height="20" onclick="search()" />
                    </div>
            </div>
            <div class="search-right">
                <div runat=server id="div_s"></div>
            </div>
        </div>
        <div class="sp-left-k">
            <div class="sp-left-sreach">
                <div class="ang-list01"></div>
                <div class="ang-list02"></div>
                <div class="ang-topheight">搜索条件</div>
                <div class="left-list">
                    <div class="left-list-title">价格</div>
                    <div class="left-list-contenter">
                        <a href="<%=strpath %>list_pic.aspx?tid=<%=id %>&price1=0&price2=50">0-50元以下</a><br />
                        <a href="<%=strpath %>list_pic.aspx?tid=<%=id %>&price1=50&price2=200">50-200元</a><br />
                        <a href="<%=strpath %>list_pic.aspx?tid=<%=id %>&price1=200&price2=1000">200-1000元</a><br />
                        <a href="<%=strpath %>list_pic.aspx?tid=<%=id %>&price1=1000&price2=5000">1000-5000元</a><br />
                        <a href="<%=strpath %>list_pic.aspx?tid=<%=id %>&price1=5000&price2=max">5000元以上</a><br />
                        <a href="<%=strpath %>list_pic.aspx?tid=<%=id %>&dtl=fd">全部</a><br />
                        <input id="pricefrom" type="text" class="text_p" value="￥From" runat="server" onfocus="this.value=''" />&nbsp;
                        <input id="priceto" type="text" class="text_p" value="￥To" runat="server" onfocus="this.value=''" />
                        <input id="Button1" type="button" style="cursor:pointer;" value="搜 索" onclick="searchClick();"/>
                    </div>
                </div>
                <div class="left-list">
                    <div class="left-list-title">类别</div>
                    <div class="left-list-contenter" id="typec" runat="server"></div>
                </div>
                <div class="ang-bottomheight"></div>
                <div class="ang-list02"></div>
                <div class="ang-list01"></div>
            </div>
            <div class="sp-left-History">
                <div class="ang-xlist01"></div>
                <div class="ang-xlist02"></div>
                <div class="his_div">
                    <div class="his_div_title"> 历史浏览：[&nbsp;<a href="javascript:ClearHistoryView();">清空</a>&nbsp;]</div>
                    <div class="his_div_content">
                        <ul id="h_ul"></ul>
                        <script type="text/javascript">GetHistoryView();</script>
                        <div class="both"></div>
                    </div>
                </div>
                <div class="ang-xlist02"></div>
                <div class="ang-xlist01"></div>
            </div>
        </div>
        <div class="sp-right-k">
            <div class="sp-right-content">
            <%for (int i = 0; i < dsc.Tables.Count;i++){ %>
                <div class="sp-right-title1">
                   <span style=" font-weight:bold; color:#4b4b4b;"><%=ds.Tables[0].Rows[i]["ctname"] %></span> 
                    <div class="both"></div>
                </div>
                <div class="sp-right-list1">
                    <ul>
                        <%for (int a = 0; a < dsc.Tables[i].Rows.Count; a++)
                          {%>
                        <li>
                            <div class="sp-right-product-pic">
                                <a href="<%=strpath %>Detail.aspx?cid=<%=dsc.Tables[i].Rows[a]["id"] %>" target="_blank"><img src="<%=strpath %>upload/commodity/<%=dsc.Tables[i].Rows[a]["cmin_img"] %>" width="130" height="130" border="0" alt="<%=dsc.Tables[i].Rows[a]["cname"] %>" /></a></div>
                            <div class="sp-right-product-name1">
                                 <a href="<%=strpath %>Detail.aspx?cid=<%=dsc.Tables[i].Rows[a]["id"] %>" title="<%=dsc.Tables[i].Rows[a]["cname"] %>" target="_blank"><%=dsc.Tables[i].Rows[a]["cname"].ToString().Length > 24 ? dsc.Tables[i].Rows[a]["cname"].ToString().Substring(0, 22) + "..." : dsc.Tables[i].Rows[a]["cname"].ToString()%>
                                </a>
                            </div>
                            <div class="sp-right-product-price" style="line-height:19px;">
                                购买价：￥<%=dsc.Tables[i].Rows[a]["cprice"]%>
                                <%if (dsc.Tables[i].Rows[a]["cjmoney"].ToString() != "0.00")
                                  { %><img src="<%=strpath %>images/jian.gif" title='<%=dsc.Tables[i].Rows[a]["cjmoney"]%>' alt='<%=dsc.Tables[i].Rows[a]["cjmoney"]%>' /><%} %>
                                <%if (dsc.Tables[i].Rows[a]["cfmoney"].ToString() != "0.00")
                                  { %><img src="<%=strpath %>images/fan.gif" title='<%=dsc.Tables[i].Rows[a]["cfmoney"]%>' alt='<%=dsc.Tables[i].Rows[a]["cfmoney"]%>' /><%} %>
                            </div>
                        </li>
                        <%} %>
                        <div class="both"></div>
                    </ul>
                    <div class="both"></div>
                </div>
            <%} %>
            </div>
        </div>
        <div class="both"></div>
        <div id="footer">
                <div id="copyright">
                    <div class="search">
                        <div class="search-left">
                            <div class="search-left-title">
                                搜索：</div>
                            <div class="search-left-form">
                                <input type="text" runat="server" id="ser2" size="30" /></div>
                            <div class="search-left-list">
                                <select id="Select3" runat="server">
                                </select>
                            </div>
                            <div class="search-left-button">
                                <img src="<%=strpath %>images/search-buttom.gif" width="60" height="20" onclick="search2()" /></div>
                        </div>
                        <div class="search-right">
                            <div runat=server id="div_s2"></div>
                        </div>
                    </div>
                </div>
            </div>
        <div class="copyright" runat="server" id="copr"></div>
    </div>
</div>
</form>
</body>
</html>
