<%@ page language="C#" autoeventwireup="true" inherits="aspx_mbindex, s1.chapk.com" %>
<%@ Register Src="../control/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="../control/footer.ascx" TagName="footer" TagPrefix="uc2" %>

<!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><%=Application["title"]%></title>
    <meta name="Keywords" content="<%=Application["keys"] %>" />
    <meta name="description" content="<%=Application["des"] %>" />
    <meta name="author" content="九五网络 - http://www.ak95.com" />    
    <link rel="stylesheet" type="text/css" href="css/public.css" />
    <link rel="stylesheet" type="text/css" href="css/index.css" />
    <script type="text/javascript" src="js/jquery.js"></script>
    <script src="js/index.lib.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/kinslideshow.js"></script>
    <script type="text/javascript" src="js/rec-pd.js"></script>
<script type="text/javascript"> 
$(function(){
	$("#KinSlideshow").KinSlideshow({
			moveStyle:"left",
			titleBar:{titleBar_height:30,titleBar_bgColor:"#fff8d8",titleBar_alpha:1.0},
			titleFont:{TitleFont_size:12,TitleFont_color:"#333333",TitleFont_weight:"normal"},
			btn:{btn_bgColor:"#FFFFFF",btn_bgHoverColor:"#70943c",btn_fontColor:"#000000",btn_fontHoverColor:"#FFFFFF",btn_borderColor:"#dddddd",btn_borderHoverColor:"#7fb138",btn_borderWidth:1}
	});
})
var serverTime = Date.parse(new Date());
$(function(){
    var dateTime = new Date();
    var difference = dateTime.getTime() - serverTime;
    
    setInterval(function(){
      $(".endtime").each(function(){
        var obj = $(this);
        var endTime = new Date(parseInt(obj.attr('value')) * 1000);
        var nowTime = new Date();
        var nMS=endTime.getTime() - nowTime.getTime() + difference;
        var myD=Math.floor(nMS/(1000 * 60 * 60 * 24));
        var myH=Math.floor(nMS/(1000*60*60)) % 24;
        var myM=Math.floor(nMS/(1000*60)) % 60;
        var myS=Math.floor(nMS/1000) % 60;
        var myMS=Math.floor(nMS/16) % 60;
        if(myD>= 0){
            var str = "剩余：<span class='orange'><strong>"+myD+"</strong></span>天<span class='orange'><strong>"+myH+"</strong></span>小时<span class='orange'><strong>"+myM+"</strong></span>分<span class='orange'><strong>"+myS+"</strong></span>秒<span class='orange'><strong>"+myMS+"</strong></span>";
        }else{
            var str = "<span class='orange'>已结束！</span>";   
        }
        obj.html(str);
      });
    }, 100);
});
</script>

</head>
<body>
<uc1:header ID="Header1" runat="server" />
    <div class="zuipin" style="display: table">
        <div class="nav_left">
            <ul class="sn_nav">
                <%=product.ReadProductList() %>
            </ul>
        </div>
        <div class="nav_right">
            <div class="banner_box">
                <div id="KinSlideshow" class="slides">
                    <%=bannerbox%>
                </div>
                <div class="news_box">
                    <div class="zuipin_mod">
                        <div class="zuipin_mod_t">
                            <div class="zuipin_mod_t_l">
                                商城公告</div>
                            <div class="zuipin_mod_t_r">
                                <a href="<%=STR.goURL("news", "1")%>" target="_blank">更多...</a></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="zuipin_mod_c">
                            <ul class="news_title">
                                <%=newsgg%>
                            </ul>
                        </div>
                    </div>
                    <div class="news_gg">
                        <%=indexAdA %></div>
                    <div class="news_gg">
                        <%=indexAdB %></div>
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="buy_products">
                <div class="buy_mod">
                    <div class="zuipin_mod_t">
                        <div class="zuipin_mod_t_l">
                            限时抢购</div>
                        <div class="zuipin_mod_t_r">
                            <div class="endtime" value="<%=timeEnd %>">
                                剩余：</div>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="zuipin_mod_c">
                        <%=indexAdC %></div>
                </div>
                <div class="buy_mod">
                    <div class="zuipin_mod_t">
                        <div class="zuipin_mod_t_l">
                            每周抢购</div>
                        <div class="zuipin_mod_t_r">
                            <label class="orange">
                                精彩上演,惊喜不断</label></div>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="zuipin_mod_c">
                        <%=indexAdD %></div>
                </div>
                <div class="inte_mod">
                    <div class="zuipin_mod_t">
                        <div class="zuipin_mod_t_l">
                            积分换购</div>
                        <div class="zuipin_mod_t_r">
                            <label class="orange">
                                积分当钱花</label></div>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="zuipin_mod_c">
                        <%=indexAdE%></div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
        <div class="clear">
        </div>
        <div class="column">
            <%=indexAdF%></div>
    </div>

 <div class="zuipin">
    <div class="std">&nbsp;</div>
    <div id="alttabs" class="rec_products">
  <div id="tabs" >
    <ul id="tab">
      <li class="curr" alt="c1">新品抢鲜</li>
      <li class="norm" alt="c2">掌柜推荐</li>
      <li class="norm" alt="c3">茗茶热卖</li>
    </ul>
  <del></del>
  </div>
  <div id="contents">
    <div id="c1" class="dis">
<asp:Repeater ID="data1" runat="server">
<ItemTemplate>
<div class="products_box">
 <div class="products_img"><span><a href="<%#STR.goURL("products",Eval("id").ToString())%>" target="_blank"><img src="<%#STR.FirstLogo(Eval("s_logo").ToString(),"230_184/") %>" alt="<%#Eval("s_mc") %>"/></a></span><span class="products_lab lab1"></span></div>
 <div class="products_name"><a href="<%#STR.goURL("products",Eval("id").ToString())%>" target="_blank"><%#Eval("s_mc") %></a></div>
 <div class="products_price"><label class="m_price">市场价:￥<%#Eval("s_jg1", "{0:f0}")%></label><label class="zp_price"><b class="green">抢鲜价:￥</b><b><span><%#Eval("s_jg", "{0:f0}")%></span></b></label><del></del></div>
</div>
</ItemTemplate>
</asp:Repeater>
<div class="clear"></div></div>
    <div id="c2" class="undis">
 <asp:Repeater ID="data2" runat="server">
<ItemTemplate>
<div class="products_box">
 <div class="products_img"><span><a href="<%#STR.goURL("products",Eval("id").ToString())%>" target="_blank"><img src="<%#STR.FirstLogo(Eval("s_logo").ToString(),"230_184/") %>" alt="<%#Eval("s_mc") %>"/></a></span><span class="products_lab lab2"></span></div>
 <div class="products_name"><a href="<%#STR.goURL("products",Eval("id").ToString())%>" target="_blank"><%#Eval("s_mc") %></a></div>
 <div class="products_price"><label class="m_price">市场价:￥<%#Eval("s_jg1", "{0:f0}")%></label><label class="zp_price"><b class="green">推荐价:￥</b><b><span><%#Eval("s_jg", "{0:f0}")%></span></b></label><del></del></div>
</div>
</ItemTemplate>
</asp:Repeater>
<div class="clear"></div></div>
    <div id="c3" class="undis">
    <asp:Repeater ID="data3" runat="server">
<ItemTemplate>
<div class="products_box">
 <div class="products_img"><span><a href="<%#STR.goURL("products",Eval("id").ToString())%>" target="_blank"><img src="<%#STR.FirstLogo(Eval("s_logo").ToString(),"230_184/") %>" alt="<%#Eval("s_mc") %>"/></a></span><span class="products_lab lab3"></span></div>
 <div class="products_name"><a href="<%#STR.goURL("products",Eval("id").ToString())%>" target="_blank"><%#Eval("s_mc") %></a></div>
 <div class="products_price"><label class="m_price">市场价:￥<%#Eval("s_jg1", "{0:f0}")%></label><label class="zp_price"><b class="green">热卖价:￥</b><b><span><%#Eval("s_jg", "{0:f0}")%></span></b></label><del></del></div>
</div>
</ItemTemplate>
</asp:Repeater>
<div class="clear"></div></div>
  </div>
</div>
<asp:Repeater ID="data4" runat="server">
<ItemTemplate>
<div class="column">
    <div class="pd_mod_img"><a href="<%#STR.goURL(Eval("s_lb").ToString(),"0","0")%>" target="_blank"><img src="<%#Eval("s_logo") %>" /></a></div>
    <div class="pd_mod1" style="border-top:3px solid <%#Eval("s_ys") %>;">
    <div class="zuipin_mod_t">
      <div class="zuipin_mod_t_l"><span class="pd_mod_t" style="color:<%#Eval("s_ys") %>"><%=pubi++ %>F</span><a href="<%#STR.goURL(Eval("s_lb").ToString(),"0","0")%>" target="_blank"><h2><%#Eval("s_mc") %></h2></a></div>
      <div class="zuipin_mod_t_r">
        <%# clid(Eval("s_lb").ToString(),"8") %>
      </div>
      <div class="clear"></div>
    </div>
    <div class="pd_mod_c">
      <div class="pd_mod_all">
      <%# clids(Eval("s_lb").ToString(),3,4) %>
    <div class="clear"></div>
     </div>
     <div class="clear"></div>
    </div>
 </div>
  <div class="clear"></div>
</div>
</ItemTemplate>
</asp:Repeater>

</div>
    
    
    
<%=PUB_LINK%>
    
    
<uc2:footer ID="Footer1" runat="server" />
</body>
</html>
