<%@ page language="C#" autoeventwireup="true" inherits="ShopIndex, LebiMall" enableviewstate="false" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>
<!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 id="Head1" runat="server">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><%=shopname %>-<%=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/css3.css" rel="stylesheet" type="text/css" />
<link href="images/css/css.css" rel="stylesheet" type="text/css">
<link href="images/css/shopcss.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="images/js/shopjs.js"></script>
<link href=<%=styleurl %> rel="stylesheet" type="text/css" />
<script type="text/javascript">
    function bookmark(){
        var title=document.title
        var url=document.location.href
        if (window.sidebar) window.sidebar.addPanel(title, url,"");
        else if( window.opera && window.print ){
        var mbm = document.createElement('a');
        mbm.setAttribute('rel','sidebar');
        mbm.setAttribute('href',url);
        mbm.setAttribute('title',title);
        mbm.click();}
        else if( document.all ) window.external.AddFavorite(url,title);
    }
    function tiaozhan(){
        window.location.href='ShopType.aspx?keyword='+document.getElementById("txtGuanjian").value+'&bprice='+document.getElementById("txtbeginPrice").value+'&eprice='+document.getElementById("txtendPrice").value+'&typeid='+document.getElementById("ddlstType").value+'&id='+<%=shopid %>;
    }
    function search2(){
            var texts2=document.getElementById("ser2").value;
            var select_v2=document.getElementById("Select3").value;
            window.location="list.aspx?tid="+select_v2+"&titlec="+escape(texts2);
        }
</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="<%=model.Website_Add %><%=model.WebPath %>/Default.aspx">
                <img src="Upload/WebAdminImages/<%=model.Logoimg %>" border="0" /></a></div>
    </div>
<div class="malltop"><a href="<%=model.Website_Add %><%=model.WebPath %>/Default.aspx">首页</a> > <%=shopname %><span></span></div>
<div id="contenter2">
    <div id="contenter1">
        <form id="Form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
                <div id="mainbody">
                    <div style="background-image: url(Upload/shop/<%=banner %>);height: 160px" class="box shop-header ">
                        <div class="zl-divFlash"><embed src="images/flash/<%=flash %>" width="960px" height="160px" type="application/x-shockwave-flash" wmode="transparent"><param name="wmode" value="transparent" /></embed></div>
                        <div class="shop-summary">
                            <div class="shop-regular-hd"></div>
                        </div>
                        <div class="shop-nav">
                            <ul>
                                <li class="current" title="首页"><a title="首页" href="<%=getYm(shopid.ToString(),yuming) %>"><em>首页</em></a></li>
                                <asp:Repeater runat="server" ID="rpTab">
                                <ItemTemplate><li title='<%#Eval("Sname") %>'><a title='<%#Eval("Sname") %>' href="<%#Eval("Slink") %>?showid=<%#Eval("Id") %>&id=<%#Eval("Shopid") %>"><em><%#Eval("Sname") %></em></a></li></ItemTemplate>
                                </asp:Repeater>
                                <li title="优惠券"><a title="优惠券" href="<%=model.Website_Add %><%=model.WebPath %>/Coupons.aspx?id=<%=shopid %>"><em>优惠券</em></a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="col-body">
                        <div class="col-sub">
                            <div class="box">
                                <div class="shop-info">
                                    <div class="hd"><h3><span>店铺档案</span></h3></div>
                                    <div class="bd">
                                        <div id="shop-info" class="shop-intro-v2 hslice">
                                            <div class="entry-content">
                                                <asp:FormView runat="server" ID="formShopMgs">
                                                <ItemTemplate>
                                                <div class="credit">
                                                    <h4>联系信息</h4>
                                                    <ul>
                                                        <li><span>店铺名称：</span><a href="<%=getYm(shopid.ToString(),yuming)%>" title="<%#Eval("Sname") %>" target="_blank"><%#Eval("Sname") %></a></li>
                                                        <LI><div style="float:left;">联系方式：</div><div style="float:left;"><%#getPhone(Eval("Sphone").ToString())%></div></LI>
                                                        <li><span>所 在 地：</span><%#GetAddress(Eval("Saddress").ToString()) %></li>
                                                    </ul>
                                                </div>
                                                <div class="other"><input type="button" id="btnColl" value="收藏本店铺" onclick="javascript:bookmark();" /></div>
                                                </ItemTemplate>
                                                </asp:FormView>
                                                <div class="online-service">
                                                    <h4>在线客服</h4>
                                                    <ul><script>var online=new Array();</script>
                                                        <div id="kefu" runat="server" style="text-align: left; padding-left: 20px;"></div>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div id="div1" runat="server"></div>
                            <div id="div2" runat="server"></div>
                            <div class="box">
                                <div class="shop-search">
                                    <div class="hd"><h3><span>店内搜索</span></h3></div>
                                    <div class="bd">
                                        <div class="search-form">
                                            <ul>
                                                <li class="keyword">
                                                    <label for="keyword">关键字：</label>
                                                    <span><asp:TextBox runat="server" ID="txtGuanjian" CssClass="left_text"></asp:TextBox></span>
                                                </li>
                                                <li class="price">
                                                    <label for="price">价格：</label>
                                                    <span><asp:TextBox ID="txtbeginPrice" runat="server" CssClass="left_text1"></asp:TextBox> 到 <asp:TextBox ID="txtendPrice" runat="server" CssClass="left_text2"></asp:TextBox></span>
                                                </li>
                                                <li class="keyword">
                                                    <label for="keyword">类别：</label>
                                                    <span><asp:DropDownList runat="server" ID="ddlstType" Width="100px"></asp:DropDownList></span>
                                                </li>
                                                <li class="submit"><img src="images/search2.gif" onclick="tiaozhan()" style="cursor: pointer" /></li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div id="div3" runat="server"></div>
                            <div class="box">
                                <div class="shop-category">
                                    <div class="hd"><h3><span>商品分类</span></h3></div>
                                    <div class="bd">
                                        <ul id="J_Cats" class="cats">
                                            <div class="feileiall" runat="server" id="div_type"></div>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div id="div4" runat="server"></div>
                            <div class="box">
                                <div class="shop-rank">
                                    <div class="hd"><h3><span>商品排行榜</span></h3></div>
                                    <div class="bd">
                                        <div class="rank-panel">
                                            <!--热销商品排行-->
                                            <ul>
                                            <asp:Repeater ID="rpPaihang" runat="server">
                                                <ItemTemplate><li>
                                                    <div class="pic"><a href="<%=model.Website_Add %><%=model.WebPath %>/Detail.aspx?cid=<%#Eval("Id") %>" target="_blank"><img src="Upload/commodity/<%#Eval("Cmin_img") %>" bigpicurl="Upload/commodity/<%#Eval("Cmin_img") %>"  width="40" height="40" alt="<%#Eval("Cname") %>" /></a></div>
                                                    <div class="desc"><a title='<%#Eval("Cname") %>' href="<%=model.Website_Add %><%=model.WebPath %>/Detail.aspx?cid=<%#Eval("Id") %>" target="_blank"><%#Eval("Cname") %></a></div>
                                                    <div class="price"><strong><%#Eval("Cprice") %>元</strong></div>
                                                </li></ItemTemplate>
                                            </asp:Repeater>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div id="div5" runat="server"></div>
                            <div class="box">
                                <div class="shop-links">
                                    <div class="hd"><h3><span>友情链接</span></h3></div>
                                    <div class="bd">
                                        <ul>
                                            <asp:Repeater runat="server" ID="rpFriLink">
                                            <ItemTemplate><li><a href="<%#getYm(Eval("id").ToString(),Eval("syuming").ToString()) %>" target="_blank"><%#Eval("sname") %></a></li></ItemTemplate>
                                            </asp:Repeater>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div id="divleftEnd" runat="server"></div>
                        </div>
                        <div id="bd">
                            <div class="layout">
                                <div class="col-main">
                                    <div class="main-wrap">
                                        <div class="Ad" runat="server" id="divAd"></div>
                                        <div class="box" >
                                            <div class="shop-display">
                                                <div class="hd"><h3><span>推荐商品</span></h3></div>
                                                <div class="bd">
                                                    <div class="grid big">
                                                        <ul class="shop-list">
                                                        <asp:Repeater runat="server" ID="rpTuijian">
                                                            <ItemTemplate><li>
                                                                    <h4><a href="<%=model.Website_Add %><%=model.WebPath %>/Detail.aspx?cid=<%#Eval("Id") %>" target="_blank"><%#Eval("Cname") %></a></h4>
                                                                    <div class="item">
                                                                        <div class="pic"><a href="<%=model.Website_Add %><%=model.WebPath %>/Detail.aspx?cid=<%#Eval("Id") %>" target="_blank"><img src="Upload/commodity/<%#Eval("Cmin_img") %>" alt="<%#Eval("Cname") %>"  /></a></div>
                                                                        <div class="both"></div>
                                                                        <div class="desc"><a class="permalink" href="<%=model.Website_Add %><%=model.WebPath %>/Detail.aspx?cid=<%#Eval("Id") %>" target="_blank"><%#Eval("Cname") %></a></div>
                                                                        <div class="price"><span>价格</span> <strong><%#Eval("Cprice") %>元</strong></div>
                                                                        <div class="remain-date">库存剩余：<%#Eval("Cnum") %></div>
                                                                    </div>
                                                                </li></ItemTemplate>
                                                        </asp:Repeater>
                                                        </ul>
                                                        <div class="both"></div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div id="div6" runat="server" class="right-display">
                                            <div class="box">
                                                <div class="shop-display">
                                                    <div class="hd"><h3><span>最新商品</span></h3></div>
                                                    <div class="bd">
                                                        <div class="grid big">
                                                            <ul class="shop-list">
                                                            <asp:Repeater runat="server" ID="rpNew">
                                                                <ItemTemplate><li>
                                                                    <h4><a href="<%=model.Website_Add %><%=model.WebPath %>/Detail.aspx?cid=<%#Eval("Id") %>" target="_blank"><%#Eval("Cname") %></a></h4>
                                                                    <div class="item">
                                                                        <div class="pic"><a href="<%=model.Website_Add %><%=model.WebPath %>/Detail.aspx?cid=<%#Eval("Id") %>" target="_blank"><img src="Upload/commodity/<%#Eval("Cmin_img") %>" alt="<%#Eval("Cname") %>" /></a></div>
                                                                        <div class="both"></div>
                                                                        <div class="desc"><a class="permalink" href="<%=model.Website_Add %><%=model.WebPath %>/Detail.aspx?cid=<%#Eval("Id") %>" target="_blank"><%#Eval("Cname") %></a></div>
                                                                        <div class="price"><span>价格</span> <strong><%#Eval("Cprice") %>元</strong></div>
                                                                        <div class="remain-date">库存剩余：<%#Eval("Cnum") %></div>
                                                                    </div>
                                                                </li></ItemTemplate>
                                                            </asp:Repeater>
                                                            </ul>
                                                            
                                                            <p class="more-items"><a class="button" href="<%=model.Website_Add %><%=model.WebPath %>/ShopHotNew.aspx?id=1&shopid=<%=shopid %>">更多商品</a></p>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div id="div7" runat="server" class="right-display">
                                            <div class="box">
                                                <div class="shop-display">
                                                    <div class="hd"><h3><span>热门商品</span></h3></div>
                                                    <div class="bd">
                                                        <div class="grid big">
                                                            <ul class="shop-list">
                                                            <asp:Repeater runat="server" ID="rpReCom">
                                                                <ItemTemplate><li>
                                                                    <h4><a href="<%=model.Website_Add %><%=model.WebPath %>/Detail.aspx?cid=<%#Eval("Id") %>" target="_blank"><%#Eval("Cname") %></a></h4>
                                                                    <div class="item">
                                                                        <div class="pic"><a href="<%=model.Website_Add %><%=model.WebPath %>/Detail.aspx?cid=<%#Eval("Id") %>" target="_blank"><img src="Upload/commodity/<%#Eval("Cmin_img") %>" alt="<%#Eval("Cname") %>" /></a></div>
                                                                        <div class="both"></div>
                                                                        <div class="desc"><a class="permalink" href="<%=model.Website_Add %><%=model.WebPath %>/Detail.aspx?cid=<%#Eval("Id") %>" target="_blank"><%#Eval("Cname") %></a>
                                                                        </div>
                                                                        <div class="price"><span>价格</span> <strong><%#Eval("Cprice") %>元</strong></div>
                                                                        <div class="remain-date">库存剩余：<%#Eval("Cnum") %></div>
                                                                    </div>
                                                                </li></ItemTemplate>
                                                            </asp:Repeater>
                                                            </ul>
                                                            <p class="more-items"><a class="button" href="<%=model.Website_Add %><%=model.WebPath %>/ShopHotNew.aspx?id=0&shopid=<%=shopid %>">更多商品</a></p>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <asp:Repeater runat="server" ID="rpTypeMode" OnItemDataBound="rpTypeMode_ItemDataBound">
                                            <ItemTemplate>
                                                <input type="hidden" runat="server" id="hidId" value='<%#Eval("Id") %>' />
                                                <input type="hidden" runat="server" id="hid" value='<%#Eval("Isshow") %>' />
                                                <div id="div8" runat="server" class="right-display">
                                                    <div class="box">
                                                        <div class="shop-display">
                                                            <div class="hd"><h3><span><%#Eval("Modename") %></span></h3></div>
                                                            <div class="bd">
                                                                <div class="grid big">
                                                                    <ul class="shop-list">
                                                                    <asp:Repeater ID="rptypecom" runat="server">
                                                                        <ItemTemplate><li>
                                                                            <h4><a href="<%=model.Website_Add %><%=model.WebPath %>/Detail.aspx?cid=<%#Eval("Id") %>" target="_blank"><%#Eval("Cname") %></a></h4>
                                                                            <div class="item">
                                                                                <div class="pic"><a href="<%=model.Website_Add %><%=model.WebPath %>/Detail.aspx?cid=<%#Eval("Id") %>" target="_blank"><img src="Upload/commodity/<%#Eval("Cmin_img") %>" alt="<%#Eval("Cname") %>" /></a></div>
                                                                                <div class="both"></div>
                                                                                <div class="desc"><a class="permalink" href="<%=model.Website_Add %><%=model.WebPath %>/Detail.aspx?cid=<%#Eval("Id") %>" target="_blank"><%#Eval("Cname") %></a>
                                                                                </div>
                                                                                <div class="price"><span>价格</span> <strong><%#Eval("Cprice") %>元</strong></div>
                                                                                <div class="remain-date">库存剩余：<%#Eval("Cnum") %></div>
                                                                            </div>
                                                                        </li></ItemTemplate>
                                                                    </asp:Repeater>
                                                                    </ul>
                                                                    <p class="more-items"><a class="button" href="<%=model.Website_Add %><%=model.WebPath %>/ShopType.aspx?typeid=<%#Eval("Stypeid") %>&id=<%=shopid %>">更多商品</a></p>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                        <div id="liudiv" runat="server" class="right-display">
                                            <div class="box">
                                                <div class="shop-bbs">
                                                    <div class="hd"><h3><span>店铺交流区</span></h3></div>
                                                    <div class="bd" style=" padding-left:5px;">
                                                        <table cellpadding=0 cellspacing=0>
                                                                <%for(int i=0;i<dsl.Tables[0].Rows.Count;i++){ %>
                                                                    <%if (uid != int.Parse(dsl.Tables[0].Rows[i]["uid"].ToString())){ %>
                                                                        <tr>
                                                                            <td class="td-1">
                                                                                <div class="discuss-content">
                                                                                    <span class="s40b"><%=dsl.Tables[0].Rows[i]["stitle"].ToString()%></span><br/>
                                                                                    <span class="s40"><%=dsl.Tables[0].Rows[i]["scontent"].ToString()%></span>
                                                                                    <span class="datetime">[<%=dsl.Tables[0].Rows[i]["submittime"].ToString()%>]</span>
                                                                                </div>
                                                                            </td>
                                                                            <td class="td-2"><%=dsl.Tables[0].Rows[i]["uname"].ToString()%></a></td>
			                                                                <td class="td-3"><a href="<%=model.Website_Add %><%=model.WebPath %>/ForumDetail.aspx?id=<%=dsl.Tables[0].Rows[i]["id"].ToString()%>" target="_blank">查看详情 >></td>
                                                                        </tr>
                                                                       <%if (dsl.Tables[0].Rows[i]["state"].ToString() == "1"){%>
                                                                            <%for (int j = 0; j < dsl.Tables[1].Rows.Count; j++){%>
                                                                                <%if (dsl.Tables[0].Rows[i]["id"].ToString() == dsl.Tables[1].Rows[j]["pid"].ToString()){ %>
                                                                                    <tr class="line">
                                                                                        <td colspan="2">
                                                                                            <dl class="td-4">
                                                                                                <dt class="dt1">掌柜回复：</dt>
                                                                                                <dt class="dt2"><%=dsl.Tables[1].Rows[j]["scontent"].ToString()%><span class="datetime">[<%=dsl.Tables[1].Rows[j]["submittime"].ToString()%>]</span></dt>
                                                                                                <dd class="both"></dd>
                                                                                            </dl>
                                                                                        </td>
                                                                                        <td></td>
                                                                                    </tr>
                                                                                <%break;} %>
                                                                            <% } %>
                                                                       <%} %>
                                                                    <%}else{ %>
                                                                            <tr class="line">
                                                                                <td colspan="2">
                                                                                    <dl class="td-4" style=" margin-top:10px;">
                                                                                        <dt class="dt1">掌柜发言：</dt>
                                                                                        <dt class="dt2"><%=dsl.Tables[0].Rows[i]["scontent"].ToString()%><span class="datetime">[<%=dsl.Tables[0].Rows[i]["submittime"].ToString()%>]</span></dt>
                                                                                        <dd class="both"></dd>
                                                                                    </dl>
                                                                                </td>
                                                                                <td class="td-3"><a href="<%=model.Website_Add %><%=model.WebPath %>/ForumDetail.aspx?id=<%=dsl.Tables[0].Rows[i]["id"].ToString()%>" target="_blank">查看详情 >></a></td>
                                                                            </tr>
                                                                    <%} %>
                                                                <%} %>
                                                        </table>
                                                    </div>
                                                    <DIV class="ft">
                                                    <UL class="act">
                                                      <LI><A href="<%=model.Website_Add %><%=model.WebPath %>/Forum.aspx?shopid=<%=shopid %>">全部帖子</A></LI>
                                                    </UL></DIV>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="both">
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        </form>
        <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="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>
<div id="hdiv"></div>
</body>
</html>