<%@ Page Language="C#" Inherits="TopWinCMS.BLL.PageFactory.Pages.ShopIndex" EnableSessionState="false"
    EnableViewState="false" %>

<%@ Register Src="Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="SearchBar.ascx" TagName="searchbar" TagPrefix="uc1" %>
<%@ Register Src="Left.ascx" TagName="Left" 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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>园玉商城</title>
    <link href="/Shop/css.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="/JS/TopWinCMS.js"></script>

    <script language="javascript" type="text/javascript" src="/JS/Ajax/Ajax.js"></script>

    <script language="javascript" type="text/javascript" src="/JS/Ajax/MemberLoginBar.js"></script>

    <script language="javascript" type="text/javascript" src="/JS/Ajax/Shop.js"></script>

    <script language="javascript" type="text/javascript" src="/JS/Ajax/GetVote.js"></script>
 

    <script runat="server">
        private void Page_Load(object sender, System.EventArgs e)
        {
            TopWinCMS.BLL.Public_Shop MyBLLClass = new TopWinCMS.BLL.Public_Shop(4);

            if (!IsPostBack)
            {
                DL_TeJia.DataSource = MyBLLClass.GetTeJia(9);
                DL_TeJia.DataBind();
                DL_ReMai.DataSource = MyBLLClass.HotGoods(9, 0);
                DL_ReMai.DataBind();

            }
        }
    
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <uc1:Header ID="Header1" runat="server" />
                <table width="1002
      " border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="68" colspan="2" valign="top" background="images/Shop/top_nav.gif">
                            <uc1:searchbar ID="SearchBar1" runat="server" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td height="5">
            </td>
        </tr>
        <tr>
            <td>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="204" valign="top">
                            <uc2:Left ID="Left1" runat="server" />
                        </td>
                        <td valign="top">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="center"><script type="text/javascript" src="js/JsAd1.js"></script>
                                       
                                    </td>
                                </tr>
                                <tr>
                                    <td height="5">
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="587" border="0" align="center" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="587" height="29" background="images/Shop/middle_bg.gif">
                                                    <span class="chen01">&nbsp;&nbsp;<strong>特价</strong><span class="black02"><strong>产品</strong></span></span><span
                                                        class="black02">Hot</span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:DataList ID="DL_TeJia" runat="server" HorizontalAlign="Center" RepeatColumns="3"
                                            RepeatDirection="Horizontal" ShowFooter="False" ShowHeader="False" CellSpacing="20"
                                            CellPadding="1" Width="580px">
                                            <ItemTemplate>
                                                <table width="0" border="0" align="center" cellpadding="0" cellspacing="0">
                                                    <tr>
                                                        <td>
                                                            <div align="center">
                                                                <a href="<%#Eval("StaticURL") %>" onmouseout="ClearImg()" onmouseover="onmouseshow(event,document.documentElement,<%#Eval("ID") %>)">
                                                                    <img alt="" src="<%#Eval("PicUrl") %>" width="111" height="111" /></a>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="20" class="black01">
                                                            产品名称：<%#Eval("GoodsName") %>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <img src="images/Shop/icon2.gif" width="16" height="16" align="absmiddle" /><span class="black01">&nbsp;原价：<%# Eval("PriceMarket", "{0:c}")%></span><br />
                                                            <img src="images/Shop/icon3.gif" width="16" height="16" align="absmiddle" /><span class="chen02">&nbsp;特价：<%# Eval("PriceMember", "{0:c}")%></span>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="30">
                                                            <input type="image" src="images/Shop/bt_6.gif" width="99" height="21" onclick="JoinCart(<%=Request["ModelID"] %>,<%#Eval("ID") %>); return false;" />
                                                            <input type="image" src="images/Shop/bt_7.gif" width="53" height="21" hspace="10" onclick="Favorite('<%#Eval("GoodsName") %>','<%=Request.Url %>'); return false;" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </asp:DataList>
                                        <%
                                            if (DL_TeJia.Items.Count == 0)
                                            {
                                        %>
                                        没有特价商品
                                        <%
                            
                                            } %>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div align="center">
                                            <img src="images/Shop/banner2.jpg" width="587" height="130" /></div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="587" border="0" align="center" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="587" height="29" background="images/Shop/middle_bg.gif">
                                                    <span class="chen01">&nbsp;&nbsp;<strong>热卖</strong><span class="black02"><strong>产品</strong></span></span><span
                                                        class="black02">Hot</span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:DataList ID="DL_ReMai" runat="server" HorizontalAlign="Center" RepeatColumns="3"
                                            RepeatDirection="Horizontal" ShowFooter="False" ShowHeader="False" CellSpacing="20"
                                            CellPadding="1" Width="580px">
                                            <ItemTemplate>
                                                <table width="0" border="0" align="center" cellpadding="0" cellspacing="0">
                                                    <tr>
                                                        <td>
                                                            <div align="center">
                                                                <a href="<%#Eval("StaticURL") %>" onmouseout="ClearImg()" onmouseover="onmouseshow(event,document.documentElement,<%#Eval("ID") %>)">
                                                                    <img alt="" src="<%#Eval("PicUrl") %>" width="111" height="111" /></a></div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="20" class="black01">
                                                            产品名称：<%#Eval("GoodsName") %>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <img src="images/Shop/icon2.gif" width="16" height="16" align="absmiddle" /><span class="black01">&nbsp;原价：<%# Eval("PriceMarket", "{0:c}")%></span><br />
                                                            <img src="images/Shop/icon3.gif" width="16" height="16" align="absmiddle" /><span class="chen02">&nbsp;特价：<%# Eval("PriceMember", "{0:c}")%></span>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="30">
                                                            <input type="image" src="images/Shop/bt_6.gif" width="99" height="21" onclick="JoinCart(<%=Request["ModelID"] %>,<%#Eval("ID") %>); return false;" />
                                                            <input type="image" src="images/Shop/bt_7.gif" width="53" height="21" hspace="10" onclick="Favorite('<%#Eval("GoodsName") %>','<%=Request.Url %>'); return false;" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </asp:DataList><%
                                                           if (DL_ReMai.Items.Count == 0)
                                                           {
                                        %>
                                        没有特价商品
                                        <%
                            
                                            } %>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td width="204" valign="top">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <table width="204" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="204" height="29" background="images/Shop/right_nav.gif">
                                                    <span class="chen01">&nbsp;&nbsp;<strong>最新</strong><span class="black02"><strong>快报</strong></span></span><span
                                                        class="black02">New arrival</span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table width="100%" border="0" cellpadding="3" cellspacing="0" class="box3">
                                                        <tr>
                                                            <td>
                                                                <p class="gray01_right">
                                                                    <tw:announce rows="10">
          <ItemTemplet>
                                                                        ·<a href='/Announce/Announce.aspx?ID=@ID@' target="_blank">@DateTime@&nbsp;［@Title@］</a><br />
          </ItemTemplet>
          <EmptyTemplet>没有公告</EmptyTemplet>
          </tw:announce>
                                                                    <span id="chen5"><span class="chen02"><a href="Announce/AnnounceList.aspx">更多</a> </span>
                                                                        &nbsp;</span><img src="images/Shop/narrow.gif" width="6" height="8" align="absmiddle" /></p>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="5">
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="204" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="204" height="29" background="images/Shop/right_nav.gif">
                                                    <span class="chen01">&nbsp;&nbsp;<strong>热卖</strong><span class="black02"><strong>产品</strong></span></span><span
                                                        class="black02">Hot</span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table width="100%" border="0" cellpadding="3" cellspacing="0" class="box3">
                                                        <tr>
                                                            <td>
                                                                <tw:hotgoods rows="8" length="32">
                 <ItemTemplet>
          <span class="chen02_right"><a href="@StaticURL@" title="@GoodsName@" onmouseout="ClearImg()" onmouseover="onmouseshow(event,document.documentElement,@ID@)">@ShortTitle@</a></span>
                                                                <br />
                                                                <span class="gray01_right">·发布日期：@UpdateTime@</span>
                                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                    <tr>
                                                                        <td height="5">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" background="images/Shop/line.gif">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="5">
                                                                        </td>
                                                                    </tr>
                                                                </table>
          </ItemTemplet>
          <EmptyTemplet>没有产品</EmptyTemplet>
        </tw:hotgoods>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="5">
                                    </td>
                                </tr>
                                <tr>
                                    <td height="5">
                                        <img src="images/Shop/banner3.jpg" width="204" height="217" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="5">
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="204" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="204" height="29" background="images/Shop/right_nav.gif">
                                                    <span class="chen01">&nbsp;&nbsp;<strong>洗发产品</strong><span class="black02"><strong>畅销排行榜</strong></span></span><span
                                                        class="black02">Hot</span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table width="100%" border="0" cellpadding="3" cellspacing="0" class="box3">
                                                        <tr>
                                                            <td>
                                                                <tw:hotgoods rows="8" length="32" classid="86">
                 <ItemTemplet>
          <span class="chen02_right"><a href="@StaticURL@" title="@GoodsName@" onmouseout="ClearImg()" onmouseover="onmouseshow(event,document.documentElement,@ID@)">@ShortTitle@</a></span>
                                                                <br />
                                                                <span class="gray01_right">·发布日期：@UpdateTime@</span>
                                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                    <tr>
                                                                        <td height="5">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" background="images/Shop/line.gif">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="5">
                                                                        </td>
                                                                    </tr>
                                                                </table>
          </ItemTemplet>
          <EmptyTemplet>没有产品</EmptyTemplet>
        </tw:hotgoods>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="5">
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="204" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="204" height="29" background="images/Shop/right_nav.gif">
                                                    <span class="chen01">&nbsp;&nbsp;<strong>生活用品</strong><span class="black02"><strong>畅销排行榜</strong></span></span><span
                                                        class="black02">Hot</span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table width="100%" border="0" cellpadding="3" cellspacing="0" class="box3">
                                                        <tr>
                                                            <td>
                                                                <tw:hotgoods rows="8" length="32" classid="81">
                 <ItemTemplet>
          <span class="chen02_right"><a href="@StaticURL@" title="@GoodsName@" onmouseout="ClearImg()" onmouseover="onmouseshow(event,document.documentElement,@ID@)">@ShortTitle@</a></span>
                                                                <br />
                                                                <span class="gray01_right">·发布日期：@UpdateTime@</span>
                                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                    <tr>
                                                                        <td height="5">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="1" background="images/Shop/line.gif">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td height="5">
                                                                        </td>
                                                                    </tr>
                                                                </table>
          </ItemTemplet>
          <EmptyTemplet>没有产品</EmptyTemplet>
        </tw:hotgoods>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
            <!--#include file="../Footer.aspx"-->
                <br />
                <table width="1002" border="0" cellpadding="5" cellspacing="1" bgcolor="#E3E3E3" align="center">
      <tr>
        <td valign="top" bgcolor="#E4E4E4" class="black01">友情链接</td>
        
      </tr>
    
     <table style="width: 100%; margin-left:auto; margin-right:auto; width:900px">
        <tr>
    <TW:FriendLink Type="Logo">
    <ItemTemplet>
     <td><a href="@FL_URL@" target="_blank"><img src="@FL_Logo@" width="88" height="33" alt="@FL_Title@" title="@FL_Title@" /></a> </td>
    </ItemTemplet>
    <EmptyTemplet> <td>
            没有Logo链接</td></EmptyTemplet>
    </TW:FriendLink>
    </tr>
    </table> 
    
   
   <table style="width: 100%; margin-left:auto; margin-right:auto; width:900px">
        <tr>
    <TW:FriendLink Type="Text">
    <ItemTemplet>
     <td> <a href="@FL_URL@" target="_blank">@FL_Title@</a>  </td>
    </ItemTemplet>
    <EmptyTemplet> <td>
            没有文字链接</td></EmptyTemplet>
    </TW:FriendLink>
    </tr>
    </table> 
    
     </table> 
            </td>
        </tr>
    </table>
  
            
    
    
    
    <script language="javascript" type="text/javascript">
      //Ajax显示购物车界面
                ShowShopingCart(<%=Request["ModelID"] %>);
    </script>

    <div id="showLayers" style="display: none">
        <div id="ShowContentTitle">
            图标标题..</div>
        <img id="ShowContentImg" src="images/Shop/Ajax_Loading.gif" border="0" alt="读取中" />
        <div id="ShowConfig">
            配置信息：</div>
    </div>
    </form>
</body>
</html>
