<%@ page language="C#" autoeventwireup="true" inherits="def.Default, LebiMall" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><%=model.Title %></title>
    <meta name="description" content="<%=model.Description %>" />
    <meta name="keywords" content="<%=model.Keywords %>" />
    <meta name="generator" content="LBMall 3.0.0" />
    <link href="images/css/css.css" rel="stylesheet" type="text/css" />
    <link href="images/css/toplz.css" rel="stylesheet" type="text/css" />
    <link href="images/css/index.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="images/js/shopjs.js"></script>
    <script type="text/javascript" src="images/js/LanternN.js"></script>
    <script type="text/javascript">  
        window.onerror = function(){
            return true;
        }
        function search(){
            var texts=document.getElementById("ser").value;
            var select_v=document.getElementById("Select1").value;
            window.location="list.aspx?tid="+select_v+"&titlec="+ escape(texts);
        }
        function search2(){
            var texts2=document.getElementById("ser2").value;
            var select_v2=document.getElementById("Select2").value;
            window.location="list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
        function show_hotrank(ic){
            var top_count =<%=top_count %>;
            for(var i=0;i<top_count;i++){
                if(i==ic){
                    document.getElementById("hot_"+i).className="expand";
                    document.getElementById("hot_"+i+"_1").style.display="block";
                    document.getElementById("hot_"+i+"_2").style.display="none";
                }else{
                    document.getElementById("hot_"+i).className="redu";
                    document.getElementById("hot_"+i+"_1").style.display="none";
                    document.getElementById("hot_"+i+"_2").style.display="block";
                }
            }
        }
    </script>

</head>
<body>
    <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 %><%=model.WebPath %>/">
                <img src="Upload/WebAdminImages/<%=model.Logoimg %>" border="0" /></a></div>
    </div>
    <div id="sp-menu">
        <ul>
            <li><a href="http://<%=Request.Url.Host %><%=model.WebPath %>/">首页</a></li>
            <%for (int i = 0; i < ds_tab.Tables[0].Rows.Count; i++){ %>
            <li><%if (model.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 %><%=model.WebPath %>/News/" target="_blank">资讯</a></li>
        </ul>
        <p>
            <span><a href="ShopCoupon.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="Select1" runat="server">
                        </select>
                    </div>
                    <div class="search-left-button">
                        <img src="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="rim">
                <div class="pic">
                    <div id="jsd" runat="server"></div>
                    <div class="pv_body">
                        <div class="png">
                            <div id="lantern">
                                <div id="lanternMain">
                                    <div id="lanternImg">
                                        <div style="z-index: 100; width: 650px; border-bottom: #ffffff 1px solid; position: absolute;
                                            top: 147px; height: 2px">
                                            <img id="lanternPoint" style="position: absolute" src="images/lanternpoint.gif" />
                                        </div>
                                    </div>
                                </div>
                                <div id="lanternNavy">
                                </div>

                                <script type="text/javascript">
                               Lantern.info=parent.document.lanterninfo();
                               Lantern.init();
                                </script>

                            </div>
                        </div>
                    </div>
                </div>
                <div class="dyn">
                    <div class="ang01">
                    </div>
                    <div class="ang02">
                    </div>
                    <div class="dyn-content">
                        <div class="dyn-content-title">
                            最新公告</div>
                        <div class="dyn-content-content">
                            <ul>
                                <%for (int i = 0; i < dsgg.Tables[0].Rows.Count; i++)
                                  { %>
                                <li><a href='support/detail.aspx?nid=<%=dsgg.Tables[0].Rows[i]["id"] %>' target="_blank">
                                    <%=dsgg.Tables[0].Rows[i]["ntitle"] %>
                                </a></li>
                                <%} %>
                            </ul>
                        </div>
                    </div>
                    <div class="ang02">
                    </div>
                    <div class="ang01">
                    </div>
                </div><script src="SiteAdv.aspx?tag=baidu"></script>
                <div class="both">
                </div>
            </div>
            <div class="rim">
                <div class="c-left">
                    <div class="ang01">
                    </div>
                    <div class="ang02">
                    </div>
                    <div class="list-content">
                        <div class="list-content-title">
                            商品类目</div>
                        <div class="list-content-title-right">
                            <a href="TypeDetail.aspx">所有类别</a></div>
                        <div class="list-content-content" runat="server" id="type_div">
                        </div>
                    </div>
                    <div class="ang02">
                    </div>
                    <div class="ang01">
                    </div>
                </div>
                <div class="c-right">
                    <div class="ang01">
                    </div>
                    <div class="ang02">
                    </div>
                    <div class="dyn-content">
                        <div class="dyn-content-title">
                            热销排行榜</div>
                        <div class="info">
                            <div class="ranking">
                                <ul>
                                    <%----%>
                                    <%for (int i = 0; i < ds2.Tables[0].Rows.Count; i++)
                                      { %>
                                    <li class="<%if(i==0){ %>expand<%}else{%>redu<%} %>" id="hot_<%=i%>" onmouseover="show_hotrank('<%=i%>');">
                                        <div id="hot_<%=i%>_1" <%if(i!=0){ %>style="display:none;" <%} %>>
                                            <a target="_blank" href='Detail.aspx?cid=<%=ds2.Tables[0].Rows[i]["id"] %>' class="ho_ph">
                                                <img onerror="this.src='Upload/Commodity/2.jpg'" src="Upload/commodity/<%=ds2.Tables[0].Rows[i]["cmin_img"] %>" alt="" title="" /></a>
                                            <p class="rk_title">
                                                <a target="_blank" href='Detail.aspx?cid=<%=ds2.Tables[0].Rows[i]["id"] %>'>
                                                    <%=this.GetSub(ds2.Tables[0].Rows[i]["cname"].ToString(),36)%>
                                                </a>
                                            </p>
                                            <p class="rk_price">
                                                <%if (ds2.Tables[0].Rows[i]["cjmoney"].ToString() != "0.00")
                                                  { %>
                                                减现金：<span style="color: #585858;"><%=ds2.Tables[0].Rows[i]["cjmoney"].ToString() %></span>&nbsp;&nbsp;<%} if (ds2.Tables[0].Rows[i]["cfmoney"].ToString() != "0.00")
                                                                                                                                                        { %>返现金：<span style="color: #585858;">60.00</span><%} %></p>
                                            <p class="rk_member">
                                                商城价：<span><%=ds2.Tables[0].Rows[i]["upcprice"]%></span></p>
                                        </div>
                                        <div id="hot_<%=i%>_2" <%if(i==0){ %>style="display:none;" <%} %>>
                                            <span <%if(i<4){ %>class="piao" <%}%>>
                                                <%=i+1%>
                                            </span>
                                            <p>
                                                <a href="Detail.aspx?cid=<%=ds2.Tables[0].Rows[i]["id"] %>" target="_blank">
                                                    <%=this.GetSub(ds2.Tables[0].Rows[i]["cname"].ToString(),22)%>
                                                </a>
                                            </p>
                                        </div>
                                    </li>
                                    <%} %>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="ang02">
                    </div>
                    <div class="ang01">
                    </div>
                </div>
                <div class="both">
                </div>
            </div>
            <div class="ware">
                <div class="ware-content-title">
                    <span>热销单品</span><span class="ware-content-title-list01"><a href="list.aspx?tid=3">更多</a></span>
                </div>
                <div class="ang01">
                </div>
                <div class="ang02">
                </div>
                <div class="ware-content">
                    <div class="ware-content-content">
                        <ul>
                            <%if (ds3.Tables[0].Rows.Count != 0)
                              { %>
                            <%for (int i = 0; i < ds3.Tables[0].Rows.Count; i++)
                              {%>
                            <li>
                                <div class="ware-pic">
                                    <a href="Detail.aspx?cid=<%=ds3.Tables[0].Rows[i]["id"] %>" target="_blank">
                                        <img onerror="this.src='Upload/Commodity/2.jpg'" src="Upload/commodity/<%=ds3.Tables[0].Rows[i]["cmin_img"] %>" width="100" height="100"
                                            align="middle" border="0" alt="<%=ds3.Tables[0].Rows[i]["cname"]%>" /></a></div>
                                <div class="ware-name" style="overflow: hidden; height: 30px; width: 100px;">
                                    <a href="Detail.aspx?cid=<%=ds3.Tables[0].Rows[i]["id"] %>" title="<%=ds3.Tables[0].Rows[i]["cname"]%>"
                                        target="_blank">
                                        <%=this.GetSub(ds3.Tables[0].Rows[i]["cname"].ToString(),16)%>
                                    </a>
                                </div>
                                <div class="ware-price">
                                    <strong>
                                        <%=ds3.Tables[0].Rows[i]["cprice"] %>
                                    </strong>
                                </div>
                            </li>
                            <%}%>
                            <%} %>
                        </ul>
                        <div class="both">
                        </div>
                    </div>
                </div>
                <div class="ang02">
                </div>
                <div class="ang01">
                </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="Select2" runat="server">
                                </select>
                            </div>
                            <div class="search-left-button">
                                <img src="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 id="links">
                <strong>友情链接</strong><br />
                <%for (int i = 0; i < dlinks.Tables[0].Rows.Count; i++)
                  {%><a href="<%=dlinks.Tables[0].Rows[i]["wurl"] %>" target="_blank"><%=dlinks.Tables[0].Rows[i]["wname"]%></a>&nbsp;&nbsp;<%} %>
            </div>
        </div>
    </div>
</body>
</html>
